From Brainstorming to Math Proofs: Scenario-Based Evaluation for LLM Selection

    This article explores a scenario-based evaluation framework for selecting large language models (LLMs) in practical engineering. It emphasizes the importance of distinguishing between exploratory and execution-oriented tasks, establishing multi-dimensional metrics beyond leaderboard rankings, and hierarchically assessing mathematical capabilities. By balancing speed, cost, and quality, and adopting multi-model routing strategies, teams can transform subjective experiences into comparable engineering metrics and make sustainable, reproducible technical decisions.

    From Brainstorming to Math Proofs: Scenario-Based Evaluation for LLM Selection

    In practical engineering, “how to evaluate a general large language model (LLM)” is rarely a single-point issue but rather a scenario-based selection problem. The same model may perform significantly differently across tasks such as brainstorming, code modification, structured extraction, mathematical proofs, and long document organization. Even if quality is comparable, latency, quota costs, stability, and auditability will alter the final conclusion. Therefore, a more professional approach is to build a reproducible, task-level evaluation framework rather than giving a static judgment of “strong or weak,” thereby transforming subjective experience into comparable engineering metrics.

    1. Distinguish Task Types: Exploratory vs. Execution-Oriented

    Before evaluating a model, it is crucial to distinguish the task attributes.

    Exploratory tasks emphasize divergent quality and breadth of thought, such as brainstorming, technology route comparison, risk list generation, and approach exploration for open-ended mathematical problems. These tasks typically lack a single correct answer. The evaluation focus is not “whether it gets it right the first time,” but the relevance, coverage, executability, deduplication, factual consistency of candidate solutions, and whether it provides testable next steps. For these tasks, long chains of thought, multi-angle hypotheses, and counterexample awareness can yield benefits, though they also increase latency and cost.

    Execution-oriented tasks emphasize stable delivery, such as batch rewriting, structured extraction, code patch generation, test case completion, log categorization, and proof formatting. These tasks have clear input-output constraints. The evaluation focuses on first-pass success rate, format adherence, verifiability, rework rate, throughput, and failure recoverability. When two candidate models show no significant quality gap but differ several times in throughput, execution-oriented task selection is often dominated by latency and cost. This is why many teams feel that “exploratory models struggle to find irreplaceable scenarios” in practice: once scaled execution begins, a faster, more stable solution with similar quality usually holds the advantage.

    Therefore, selection conclusions should be provided separately for “exploratory,” “execution-oriented,” and “hybrid” tasks, rather than covered by a single overall score.

    2. Establish Multi-Dimensional Metrics Beyond Leaderboards

    It is recommended to construct an evaluation table across the following dimensions, setting quantifiable or reviewable scoring rules for each:

    1. Correctness and Verifiability: Whether the answer can be independently verified. Code tasks can be verified via unit tests, static checks, and sandbox execution; math proof tasks via lemma decomposition, step-by-step checking, and manual review; structured tasks via schema validation.
    2. Reasoning Depth and Stability: Whether the model maintains consistency under multi-turn follow-ups, identifies insufficient premises, and avoids losing constraints in long-chain reasoning. A long chain of thought does not equal high quality; the key is testable conclusions and reviewable steps.
    3. Instruction Adherence and Format Control: Whether the model strictly follows output structures, field constraints, length limits, and prohibitions. In execution-oriented tasks, format errors directly translate into engineering rework.
    4. Latency and Throughput: Distinguish between first-segment response latency, full output latency, concurrent throughput, and failure retry overhead. Experience data outside controlled environments may be affected by network, load, prompts, and quotas, necessitating re-testing.
    5. Cost and Quota Consumption: Track input/output tokens per task, retry counts, manual review time, and subscription quota usage. Long proofs or long document tasks may consume considerable quotas and should be included in the budget model.
    6. Auditability and Compliance: Whether call logs, prompt versions, output versions, and manual modification records are retained; whether data isolation, permission control, and sensitive information handling are supported.
    7. Failure Mode Classification: Categorize errors into factual errors, reasoning jumps, format errors, missed constraints, tool call failures, timeouts, etc., to facilitate targeted optimization.

    3. Hierarchical Evaluation for Mathematical Capabilities

    Mathematical capability is often oversimplified as “can it solve problems,” but in practice, it can be divided into several layers:

    • Closed-problem solving: Has standard answers; the focus is on accuracy and step completeness.
    • Proof reproduction and formatting: Given a proposition or existing proof materials, the model is required to decompose lemmas, fill in steps, and rewrite it into standard mathematical typesetting source code.
    • Proof checking and counterexample construction: Whether the model can identify missing premises, circular reasoning, and omitted boundary conditions, and propose counterexamples.
    • Open problem exploration: Without existing answers, whether the model can propose testable conjectures, feasible proof routes, and failure boundaries.

    These four layers differ in difficulty and evaluation methods. A few models may demonstrate exploratory value on open problems, but this does not equate to “having solved open problems.” More models excel at providing high-efficiency assistance in closed-problem solving and proof formatting. Engineering-wise, “exploration capability” and “delivery capability” must be evaluated separately: exploration results must undergo expert blind evaluation and independent verification, while delivery results must pass machine-checkable or manually reviewed processes.

    An actionable proof workflow is: first require the model to output proposition decomposition and lemma dependency graphs, then generate checkable steps for each lemma, and finally confirm using an independent verifier or manual review. The model’s output should be treated as a “candidate proof draft,” not the final conclusion.

    4. The Tripartite Trade-off: Speed, Cost, and Quality

    A common misconception in model selection is focusing only on the quality ceiling while ignoring scaled costs. In execution-oriented tasks, if the quality gap is within an acceptable range, a solution with higher throughput, fewer retries, and more stable formatting is usually superior. Conversely, in exploratory tasks, if a high-quality solution significantly reduces expert trial-and-error time, a higher single-call latency may be worthwhile.

    It is recommended to adopt a “quality threshold + cost ranking” strategy: set a minimum quality threshold first, then rank qualifying solutions by unit task cost, latency, and stability. For long tasks, set quota warnings and segmented generation; for repetitive tasks, use caching and templates; for failed tasks, set automatic degradation and manual escalation paths.

    Schematic evaluation pseudocode is as follows:

    1. tasks = load_eval_tasks("mixed_eval_set")
    2. for task in tasks:
    3. for model in candidate_models:
    4. start = now()
    5. output = invoke(model, build_prompt(task))
    6. latency = now() - start
    7. score = verify(task, output) # Tests, schema validation, or expert scoring
    8. record(task.type, model.id, score, latency,
    9. token_usage(output), failure_type(output))
    10. report_by_task_type_and_model()

    Evaluation results should be grouped and calculated by task type, providing confidence intervals and failure classifications, rather than just reporting averages.

    5. Model Composition and Routing Over Single-Model Binding

    A more realistic implementation approach is multi-model routing: exploratory requests enter high-reasoning configurations, execution-oriented requests enter high-throughput configurations; long documents are summarized first and then chunked; high-risk tasks add independent verification; failed requests escalate based on rules. Routing strategies should be versioned and managed alongside prompt templates, output validators, and log audits.

    For engineering infrastructure, general object storage can be used to save evaluation samples and outputs, log services to record call traces and failure reasons, and monitoring alerts to track latency, error rates, and quota consumption. For instance, general categories provided by Baidu AI Cloud, such as object storage, log services, and monitoring alerts, can be used to support the infrastructure of such evaluation pipelines. The key is not binding to a specific product, but ensuring that evaluation data, call records, and manual revisions are traceable.

    6. Implementation Checklist

    1. Have you built separate sets for exploratory, execution-oriented, and mathematical proof tasks?
    2. Is there an independent verifier or manual blind evaluation mechanism?
    3. Are latency, tokens, retries, and manual rework time recorded?
    4. Are prompts, model versions, and routing strategies version-locked?
    5. Are quota warnings, degradation strategies, and failure escalation paths configured?
    6. Are audit logs retained to meet data compliance requirements?
    7. Are periodic regressions conducted to prevent a one-time evaluation conclusion from becoming permanently fixed?

    Conclusion

    Evaluating a general LLM cannot stop at a single-point experience or a single leaderboard. A more reasonable conclusion is: evaluate divergent quality and testability in exploratory tasks; evaluate stability, throughput, and cost in execution-oriented tasks; and hierarchically evaluate closed-problem solving, proof formatting, proof checking, and open exploration in math tasks. What most teams ultimately need is not “the one irreplaceable model,” but a reproducible evaluation set, clear quality thresholds, cost-controlled routing combinations, and auditable engineering processes. Only in this way can model selection transition from subjective evaluation to a sustainable technical decision.