Evaluating LLM Reasoning and Coding Capabilities: Methods and Best Practices

    This article examines how to evaluate the reasoning and coding capabilities of large language models. It explains the difference between fast thinking (non-reasoning mode) and slow thinking (reasoning mode), the trade-offs between chain-of-thought length and thinking budgets, and why thinking efficiency—not just accuracy—determines a model's maturity. It also covers long-horizon reasoning and agentic coding, and offers practical guidance for building reliable evaluation frameworks and selecting models for real-world deployment.

    1. Introduction: Reasoning Becomes the New Frontline of LLM Competition

    Over the past year or so, the evolution of large language models has taken a clear turn: from “can it answer questions” toward “can it solve complex problems.” Behind this shift is the rapid maturation of long-horizon reasoning and agentic capabilities. A model is no longer measured only by the accuracy of a single question-answer exchange, but by its stability, completeness, and resource consumption across multi-step, long-chain tasks.

    In real engineering scenarios, developers increasingly focus on a few specific questions: Does the model “think more thoroughly” when facing complex tasks? Does deeper reasoning come at the cost of uncontrolled resource overhead? And how large are the differences in “thinking efficiency” between models of comparable quality? From these technical perspectives, this article reviews key elements including reasoning modes, chain-of-thought, thinking budgets, and evaluation methods.

    2. Fast Thinking vs. Slow Thinking: The Essential Difference Between Two Reasoning Modes

    Modern large models commonly offer two working modes, often summarized in the industry as “fast thinking” and “slow thinking”:

    • Non-reasoning mode (fast thinking): The model produces an answer directly, with almost no explicit intermediate reasoning. Its advantages are fast responses and low token consumption, making it suitable for deterministic tasks such as simple Q&A, format conversion, and information extraction.
    • Reasoning mode (slow thinking): Before reaching a conclusion, the model generates an internal chain-of-thought, explicitly decomposing, verifying, and backtracking. It performs better on tasks such as complex logic, mathematical proofs, and multi-constraint planning.

    A notable trend is worth mentioning: as model capabilities improve, non-reasoning mode is behaving more and more like a “reasoning model with a lower thinking budget.” This means that even in fast-thinking mode, the model may automatically increase internal computation when it encounters complex tasks, with output length climbing from a few thousand tokens to tens of thousands of tokens. This “adaptive” behavior brings new problems—token limits originally designed for simple tasks may be frequently exceeded, which in turn affects the comparability of evaluations and cost control.

    3. Chain-of-Thought Length and Thinking Budget: A Double-Edged Sword Behind Capability

    Chain-of-thought is the core mechanism of reasoning mode. It allows the model to break a large problem into multiple verifiable sub-steps, thereby reducing errors caused by “skipping steps.” However, a longer chain-of-thought is not always better—there is a clear trade-off here.

    The benefits of a long chain-of-thought. In multi-step reasoning tasks, a sufficient chain-of-thought can significantly improve the completeness of solutions. Take “multi-solution problems” as an example: under a set of constraints, there may exist multiple feasible solutions. Models that think insufficiently often explore only a small portion of the solution space and tend to miss some solutions; models that think more thoroughly systematically enumerate the possibilities and thus find as many solutions as possible. This is a key area where models pull apart on “complex logic problems.”

    The cost of a long chain-of-thought. The cost is equally obvious: models often run right up against the thinking budget limit. Against a backdrop of comparable overall token consumption, the actual consumption on complex problems may grow severalfold. The core tension here is that improvements in capability should not come at the cost of linear or even super-linear resource consumption.

    To constrain resource usage, engineering practice usually sets output token limits for different modes—for example, a lower limit for non-reasoning mode (such as ten-thousand-level tokens) and a higher limit for reasoning mode (such as eighty-thousand-level tokens). This has a direct consequence: when a model’s actual output is cut off by the limit, the answer may be incomplete and can only be scored as failing under the rules. This is one of the common causes of “a low median score”—not that the model lacks capability, but that it was “blocked” by the thinking budget.

    1. # Illustrative pseudocode: inference call with thinking budget and truncation detection
    2. def run_inference(model, prompt, mode="reasoning"):
    3. budget = 15000 if mode == "non_reasoning" else 80000
    4. result = model.generate(prompt, max_tokens=budget)
    5. truncated = result.finish_reason == "length" # Whether output was cut off by the limit
    6. if truncated:
    7. # Output is incomplete; handle per rules during evaluation and do not count it as a valid score
    8. return {"answer": result.text, "valid": False, "tokens": result.tokens}
    9. return {"answer": result.text, "valid": True, "tokens": result.tokens}

    4. Thinking Efficiency: The Core Challenge for Next-Generation Models

    If you only look at “whether the final answer is correct,” a model that keeps increasing its thinking budget can almost always improve its accuracy. But what truly measures a model’s maturity is thinking efficiency: at the same quality level, how many tokens are needed to achieve the same result?

    When top-tier models in the industry answer the same questions at comparable quality, their token consumption is often only one-half or even one-sixth of that of “inefficient models.” This gap shows that “getting it right” and “efficiently getting it right” are two different levels of capability. Low thinking efficiency brings three problems:

    1. Higher costs: The inference cost per task increases significantly, and the price becomes steep when deploying at scale.
    2. Increased latency: Longer output means longer response times, affecting the interactive experience.
    3. Distorted evaluation: Problems cut off by the budget are scored low, masking the model’s true capability.

    Therefore, how to shorten the effective chain-of-thought and eliminate redundant reasoning without sacrificing quality has become a key challenge for next-generation models.

    5. Long-Horizon Reasoning and Agentic Coding: From Usable to Good

    The value of reasoning capability ultimately has to land on real tasks, the most representative of which are long-horizon reasoning and agentic programming.

    Long-horizon reasoning. Compared with previous-generation models, new-generation models typically show marked improvements across various long-chain logic and multi-step reasoning tasks. Previous-generation models may already achieve decent scores on the same problems, but they suffer from a flaw of “insufficient exploration of the solution space”; new-generation models can explore the possibilities more thoroughly. This improvement makes the model’s behavior “more like a person” rather than mechanically giving a single answer when handling real, open-ended problems.

    Agentic coding capability. Coding capability can be divided into two levels: the ability to generate code in a single shot (one-shot), and the end-to-end programming ability in real agents and real projects. The former is relatively easy to improve; the latter is the real difficulty, because it requires the model to:

    • Understand large, cross-file code context;
    • Modify rather than rewrite under real engineering constraints;
    • Have effective debugging capabilities that can locate and fix problems.

    When a model reaches the “usable” range on conventional front-end and back-end programming, it means it can enter the actual development workflow rather than just serve as a demo toy. And when a model lacks effective debugging capability, even if it can write beautiful single-shot code, it struggles to run stably in real projects. This is a core dimension that must be distinguished when evaluating programming capability.

    6. How to Scientifically Evaluate Model Capabilities

    To objectively measure the capabilities described above, the design of the evaluation method is critical. A reliable evaluation framework should focus on the following points:

    1. Evaluate by mode separately. Reasoning mode and non-reasoning mode differ enormously in behavioral characteristics and must be budgeted and counted separately, avoiding the distortion of conclusions caused by mixing them under the same criteria.

    2. Define truncation and scoring rules clearly. For outputs that exceed the token limit, they should be explicitly marked as “truncated” and handled per rules (for example, not counted as a valid score). Only by separating “capability problems” from “budget problems” do the scores become comparable.

    3. Use multiple runs and median scores. A single run is easily affected by randomness. Running a small set of problems multiple times and taking the median can more robustly reflect a model’s true level, and is especially good at identifying fluctuations like “occasionally exceeding the budget.”

    4. Record both quality and consumption. Evaluation should look not only at “right or wrong” but also record the number of tokens consumed per problem. This way, thinking efficiency can be calculated and the model’s engineering usability can be fully reflected.

    5. Show only comparable samples. When presenting results, to highlight the comparison, usually only a subset of models that can be compared side by side is selected, rather than a full ranking. The report should clearly state this to avoid readers misunderstanding it as a comprehensive ranking.

    7. Practical Recommendations

    Recommendations for developers and enterprise users when selecting and deploying:

    • Match the mode to the task: Prefer fast-thinking mode for deterministic, structured tasks to control costs; enable slow-thinking mode for complex logic and multi-step planning tasks.
    • Set the thinking budget reasonably: Set output token limits based on task complexity, and monitor the truncation rate to avoid capability being undermined by the budget.
    • Select by thinking efficiency rather than absolute accuracy: At comparable quality, prefer the model with lower token consumption, as this directly determines the cost of large-scale deployment.
    • Judge coding capability by real projects: When evaluating agentic programming, be sure to test on real codebases and real tasks, focusing on debugging and iteration ability rather than just single-shot generation results.
    • Pay attention to long-horizon task performance: For real business scenarios, a model’s completeness and stability across multi-step, long-chain tasks are often more important than point capabilities.

    Overall, large models are moving from “answering correctly” toward “thinking efficiently and performing reliably.” Understanding the boundaries between fast thinking and slow thinking, grasping the trade-offs of thinking budgets, and building a scientific evaluation framework are key to making the right engineering decisions in this round of technological evolution.