Dual-Mode Open-Source LLM Evaluation: Output Budgets, Thinking Efficiency, and Agent Coding
This article examines how to evaluate open-source LLMs that support fast and slow thinking modes. It proposes budget-aware evaluation that records strict and usable scores, over-limit and truncation rates, token cost per correct answer, and quantile distributions; discusses long-chain reasoning efficiency, multi-solution logic coverage, repository-level coding and Agent closed-loop validation, and a reproducible cloud evaluation pipeline for isolation, observability, and cost control.
1. Background: Why Dual-Mode Models Need New Evaluation Criteria
A recent wave of open-source models supporting “fast thinking / slow thinking” dual modes has prompted developers to revisit evaluation methods. Non-reasoning mode is usually understood as a low-thinking-budget, low-latency path, while reasoning mode allows the model to expand a longer chain of thought in exchange for higher accuracy on complex tasks. In practice, however, non-reasoning mode does not always produce short outputs: simple questions may finish within fewer tokens, while complex tasks may adaptively extend output until they hit a preset limit. If the evaluation rule says “over-limit outputs are not scored,” many complex samples will be recorded as failures due to truncation or over-limit output, lowering the overall score and potentially preventing non-reasoning mode from completing the full test.
Reasoning mode carries a similar risk. Long-chain reasoning may continue expanding on hard problems, and a small number of samples tested multiple times may exceed the output limit. Under strict rules, these can only receive zero, significantly affecting statistics such as median scores. Therefore, evaluation of dual-mode models should not rely on a single average score. It should also record strict scores, usable scores, over-limit rate, truncation rate, token cost per correct answer, and quantile distributions. Otherwise, the evaluation result may reflect whether the budget setting matches the test set rather than the model’s true capability.
From an engineering perspective, a tiered budget is recommended: set different output limits for simple, medium, and complex questions; retain the original artifacts for over-limit samples and mark the reason; and report both strict and lenient criteria to avoid misleading model selection with a single metric.
2. Evaluation Design: Treat Output Budget as a First-Class Metric
The first principle of dual-mode evaluation is to explicitly model the output budget. Each request can be configured as a structured record containing mode, maximum output tokens, sampling repeats, timeout, and scoring policy. A pseudocode example is shown below:
def evaluate_case(case, mode, max_output_tokens, repeats=3):results = []for _ in range(repeats):output = run_model(case.prompt, mode=mode, max_tokens=max_output_tokens)exceeded = output.token_count >= max_output_tokensstrict = 0 if exceeded else score_strict(case, output.text)usable = score_partial(case, output.text) if exceeded else strictresults.append({"case_id": case.id,"mode": mode,"tokens": output.token_count,"exceeded": exceeded,"strict": strict,"usable": usable,"latency": output.latency,})return summarize(results)
At minimum, the summary should report: full-score rate, strict median score, usable median score, over-limit rate, average output tokens, P95 output tokens, and token cost per full-score result. For logic problems, “solution-space exploration sufficiency” should also be evaluated: when a problem has multiple solutions, does the model provide only one feasible solution, or does it try to find as many as possible? Scoring multi-solution problems against only a single answer underestimates exploration capability; if the requirement is to find all solutions, missed-solution rate and duplicate-solution rate should be tracked. It is recommended to include solution completeness rate and effective reasoning ratio in the report so that total token usage does not mask efficiency problems.
3. Long-Chain Reasoning: The Advantage Is Exploration, the Cost Is Budget
Long-chain logic and multi-step reasoning are key scenarios for dual-mode models. Newer iterations can usually explore possibilities more fully on multi-solution problems and reduce “insufficient solution-space exploration,” but the cost is that they are more likely to run against the thinking budget limit. Even when overall token consumption is flat, complex logic problems may consume noticeably more tokens. For developers, the key question is not simply whether a model is “stronger” or “weaker,” but how token-efficient it is at the same accuracy level.
Optimization is recommended in three dimensions. First, allocate budgets dynamically by problem type: set a lower limit for simple questions and a higher limit for complex questions, with staged expansion allowed. Second, introduce early stopping: end reasoning early when consecutive steps produce no new constraints or new candidate solutions. Third, for multi-solution problems, use “candidate solution cache + coverage check” to reduce repeated exploration. During evaluation, “full score and not over limit” can be treated as a strict pass, while “partially correct but over limit” can be reported separately as a usable result, distinguishing insufficient capability from insufficient budget.
4. Coding and Agent Capabilities: From Single-Pass Generation to Repository-Level Closed Loop
Coding capability evaluation can easily fall into the “single-pass generation” trap. Previous-generation models may have already improved single-pass coding considerably, but in real Agents and real projects they may still perform inconsistently due to a lack of effective debugging methods. Newer preview forms often improve Agent coding, and routine front-end and back-end coding capability enters a “usable” range, but engineering deployment still requires closed-loop validation.
Coding evaluation should be split into five stages: patch generation, test execution, failure replay, patch correction, and regression validation. Metrics include first-fix rate, test pass rate, regression pass rate, average interaction rounds, average token cost, and number of manual interventions. Real projects should emphasize repository-level context, dependencies, and visibility into build logs and test logs. Only by executing tests in an isolated sandbox and replaying failed cases can one judge whether a model has effective debugging capability, rather than relying on the appearance of code snippets.
5. Cloud Evaluation Pipeline: Isolation, Observability, and Controllable Cost
Dual-mode evaluation generates large numbers of samples, outputs, logs, and intermediate artifacts. It is advisable to build the pipeline using generic cloud product categories: object storage for sample sets, model outputs, and scoring artifacts; container platforms for isolated sandboxes and test environments; log services and monitoring/alerting to collect token, latency, over-limit, and failure metrics; message queues to decouple scheduling and execution; and permission and key management to secure the evaluation environment. For example, on Baidu AI Cloud, generic service categories such as object storage, container platforms, log services, monitoring and alerting, and message queues can be combined to build a reproducible evaluation pipeline.
Configuration should version the sample set, scoring scripts, and budget parameters so that the same model can be retested at different times. For over-limit samples, retain the raw output and truncation position to help analyze whether the cause is “insufficient budget” or “reasoning divergence.” Cost control can use batch sampling, cache-hit reuse, per-question-type throttling, and retry caps. The final report should present both capability metrics and cost metrics, helping teams make explainable trade-offs among accuracy, latency, and expense.
6. Conclusion: Highlights and Open Questions Matter Equally
The highlights of dual-mode open-source model iterations are mainly the sufficiency of long-chain reasoning exploration, solution completeness on complex logic problems, and the closed-loop potential of Agent coding. Open questions center on thinking efficiency, output budget management, and over-limit scoring criteria. When selecting models, developers should not rely only on a single leaderboard average. They should establish a multi-dimensional evaluation system that includes strict scores, usable scores, over-limit rate, token cost per correct answer, and regression pass rate. Only by incorporating budget, scoring, and engineering closed loops into evaluation can the capability differences between “fast thinking” and “slow thinking” become reproducible, deployable technical decision inputs.
