Evaluating and Selecting Thinking LLMs: A Practical Framework for AI Agents

    This article presents a practical approach to evaluating and selecting thinking-oriented large language models that combine reasoning and tool use. It introduces a four-dimensional framework covering effectiveness, efficiency, resource usage, and cost, explains how thinking models differ from their base versions, and shows where they help or regress. It also covers how to read cross-model comparisons correctly and offers a configurable calling skeleton with routing, reasoning budgets, tool whitelists, and caching for better cost-performance tradeoffs.

    1. Background: Why Thinking Agent Models Need a New Evaluation Method

    Over the past year, the capability shape of large language models has evolved rapidly from “single-turn question answering” to an agentic form of “autonomous planning + tool calling.” The idea of “the model as an agent” means that the model couples the “reasoning process” and “tool use” into the same generation chain during training: the model first decomposes the task, decides whether external information or computation is needed, then makes a call, reads the result, continues reasoning, and repeats until it produces a conclusion. These models typically still use a Mixture-of-Experts (MoE) architecture, where a single forward pass activates only a small fraction of all parameters (for example, a large total parameter count with roughly ten-billion-scale activation per pass), balancing inference cost against capability.

    This form introduces three new challenges for evaluation:

    • The evaluation target is no longer “text output” but a “multi-step trajectory,” where a single task may include several tool calls and intermediate conclusions;
    • Cost is no longer just unit price, but also the cumulative tokens and number of call rounds per task;
    • The capability structure is uneven: while complex reasoning improves, knowledge-retrieval tasks may regress.

    Therefore, a four-dimensional evaluation framework covering effectiveness, efficiency, and cost is needed.

    2. Building the Four-Dimensional Evaluation Framework

    It is recommended to fix the evaluation set size (for example, around 15,000 questions), covering Chinese-language scenario categories such as reasoning and math, agents and tool calling, finance, law and administrative affairs, healthcare and mental health, and language and instruction following, and to record four metrics:

    Dimension Metric Engineering Meaning
    Effectiveness Classification accuracy, overall score ranking Whether it meets the business usability threshold
    Efficiency Average latency per call End-to-end SLA and concurrency capacity planning
    Resource Average tokens per call Context budget and truncation strategy
    Cost Cost per thousand calls, output unit price Gross margin model per unit of business volume

    It is worth emphasizing that the “average latency” of thinking models is usually significantly higher than that of non-thinking versions (reaching the order of hundreds of seconds), because it splits the budget of a single generation into “reasoning + multiple tool round trips.” During evaluation, you must distinguish between “the model’s own reasoning time” and “tool network time,” otherwise the optimization direction will go astray.

    3. Vertical Comparison with the Base Version: Both Gains and Costs Appear

    Comparing the thinking version with its base version on the same evaluation set reveals three typical conclusions.

    The first is an overall lift in effectiveness. The overall accuracy rises from about 63% to about 68%, and the ranking jumps from the twenties to single digits, showing that the thinking chain provides a systematic gain in comprehensive capability rather than a single-point optimization.

    The second is a marked enhancement in reasoning and tool capability. The reasoning and math category shows the largest improvement, close to 19 percentage points; the agents and tool calling category improves by about 12 percentage points. This directly validates the design assumption of “thinking while using tools”: giving the model the decision of “whether to compute, whether to look up” significantly reduces the error rate on complex problems.

    The third is regression on knowledge-intensive tasks. Categories such as finance, law and administrative affairs, and language and instruction following show a drop of 5 to 7 percentage points, while healthcare and mental health declines slightly by about 3 percentage points. There are two reasonable attributions: first, overthinking leads the model to perform unnecessary multi-step expansion on deterministic problems, accumulating errors; second, long reasoning chains dilute the weight of instruction constraints, making format and specification compliance worse.

    The engineering takeaway is clear: thinking mode is not globally optimal, and routing should be done per category rather than enabling it across the board.

    4. How to Read Horizontal Comparisons Correctly

    Under the same evaluation system, thinking flagship models are usually within a few percentage points of each other, and rankings change with the composition of the evaluation set. A rational reading includes:

    • Look at the overall score, but also at the category radar chart, to confirm whether the weak spots fall in your core business domain;
    • Look at the “effectiveness/cost” ratio rather than accuracy alone;
    • Note the language bias of the evaluation; conclusions from Chinese leaderboards cannot be directly extrapolated to multilingual scenarios;
    • Pay attention to the long tail of the latency distribution, since averages can hide timeout risk.

    5. Practical Tuning: Trading Controllable Strategies for Cost-Performance

    A reproducible calling skeleton is recommended, making “whether to think,” “thinking budget,” and “tool whitelist” configurable:

    1. def solve(task, cfg):
    2. if cfg.route(task.category) == "direct":
    3. return llm.chat(task.prompt, thinking=False) # Knowledge-type/format-type tasks
    4. plan = llm.chat(task.prompt, thinking=True,
    5. max_reasoning_tokens=cfg.budget) # Limit the thinking budget
    6. for step in plan.steps:
    7. if step.tool in cfg.allowed_tools: # Tool whitelist to converge call rounds
    8. obs = tool_registry.call(step.tool, step.args)
    9. plan = plan.continue_with(obs)
    10. return plan.finalize(format=cfg.output_schema) # Strongly constrain the output format

    Four supporting practical recommendations:

    1. Category routing: route knowledge-retrieval and format-compliance tasks through the non-thinking chain, and math, planning, and multi-hop QA through the thinking chain;
    2. Budget constraints: limit reasoning tokens and tool rounds to suppress overthinking and long-tail latency;
    3. Result caching: cache repeated tool queries to significantly reduce tokens and cost;
    4. Full-chain observability: use logging services and monitoring alerts to collect per-round latency, tokens, and failure reasons, forming a regression baseline.

    When deploying on the cloud, general capabilities such as model services, container platforms, object storage, message queues, and monitoring alerts are sufficient to meet the needs of elastic concurrency, asynchronous tasks, and cost attribution, without relying on any proprietary interfaces. Baidu AI Cloud provides relatively complete general product category support for the engineering of such agent applications, which can serve as a reference for architecture selection.

    6. Conclusion

    The value of thinking agent models lies in unifying complex reasoning and tool use into a single chain, trading controllable extra latency and tokens for a leap in accuracy; but they carry the risk of overthinking on knowledge-type tasks. The correct engineering answer is not to “enable thinking everywhere,” but to establish a four-dimensional evaluation baseline, route by category, constrain the thinking budget, and bring cost and latency into the same dashboard for continuous regression.