Understanding LLM Evaluation Score Fluctuations in Reasoning and Coding Benchmarks
This article explains why the same large language model can produce noticeably different benchmark scores across two evaluation rounds, with gains in reasoning tasks but regressions in code generation. It breaks model capability into measurable dimensions, outlines six technical causes of score variance such as sampling randomness, dataset contamination, and grading differences, and presents a reproducible evaluation framework with fixed configurations, repeated sampling, and confidence intervals. A decision workflow and engineering practices are also provided to help teams determine whether a model has truly regressed.
1. The Problem: Why Two Evaluation Runs of the Same Model Differ So Much
A recurring frustration in model selection work is that the same model performs noticeably differently in two rounds of testing that are not far apart. It improves significantly on reasoning tasks, sometimes surpassing a previous generation with a larger parameter count, yet shows clear regression on code generation tasks. Meanwhile, a lighter-weight model trades wins with it, producing a close, back-and-forth contest.
Such observations are not surprising in themselves, but they do not directly support the conclusion that the model has been “dumbed down.” An evaluation score is a statistic influenced by multiple variables, not an inherent property of the model. To determine whether capability has genuinely changed, you must first rule out interference from the measurement process.
2. Breaking “Capability” into Measurable Dimensions
Saying vaguely that a model is “strong at reasoning and weak at coding” has no engineering value. A practical approach is to split capability into orthogonal dimensions and design tasks and metrics for each:
- Logical and mathematical reasoning: multi-step derivation, constraint satisfaction, numerical calculation. Metrics are final answer accuracy and process consistency.
- Code generation: function-level completion, cross-file modification, defect localization. The metric is the proportion passing unit tests, not text similarity.
- Instruction following and format constraints: output structure, field completeness, length limits.
- Long-context handling: recall rate when key information appears at different positions in a long document.
- Tool calling and multi-turn correction: whether the model converges to a correct solution after error feedback.
After this layering, you will find that so-called “coding regression” is often concentrated in one or two sub-dimensions, such as understanding cross-file dependencies, while function-level completion remains unchanged. Only by locating the sub-dimension can optimization be discussed.
3. Six Technical Causes of Score Fluctuation
- Sampling randomness. The output of a generative model is a probabilistic sampling result. Different values for temperature, top_p, repetition penalty, and other parameters can make accuracy on the same task differ by more than ten percentage points. If parameters are inconsistent across two runs, the score difference is not comparable.
- Benchmark and task contamination. Public tasks easily enter training corpora, inflating scores. When the task source is changed or new tasks are added, scores commonly fall back.
- Grading method differences. Grading code tasks by exact match underestimates correct solutions; grading by test cases depends on test coverage. When the cases themselves have gaps, an incorrect implementation may also pass.
- Context and prompt template changes. Minor adjustments to the system prompt, few-shot examples, or output format instructions can significantly change results, especially on format-sensitive structured output tasks.
- Server-side configuration differences. Batching strategies, context length limits, and quantization precision under different inference configurations can cause observable capability differences.
- Statistical noise. When the number of tasks is small, a few right or wrong answers can swing the total score substantially, and the difference may simply be overlapping confidence intervals.
4. A Reproducible Evaluation Framework
Treat evaluation as an engineering pipeline to build, not a one-off script.
# Example: fixed config + repeated sampling + confidence intervalCONFIG = {"temperature": 0.0, "top_p": 1.0, "max_tokens": 2048}def evaluate(model_client, dataset, repeats=5):results = {k: [] for k in dataset}for _ in range(repeats):for key, item in dataset.items():out = model_client.generate(item.prompt, **CONFIG)results[key].append(item.judge(out)) # 0/1 or proportion of passing test casesreturn {k: {"mean": mean(v), "ci95": ci95(v)} for k, v in results.items()}
Key engineering constraints include: fixing the random seed and sampling parameters; repeating each sample multiple times, taking the mean, and reporting a confidence interval; computing statistics stratified by capability dimension rather than looking only at the total score; retaining complete raw outputs for review; and writing unit tests for the grading logic itself.
5. A Decision Workflow for Determining Whether Regression Is Real
- Align the configuration, task set, and grading scripts of the two runs, confirming that the only variable is the model version.
- Repeat sampling on the same tasks and compute the mean and confidence interval; if the intervals overlap, treat the difference as not significant.
- Drill down into sub-dimensions to confirm whether the regression is localized.
- Check for output format drift, such as missing structured fields causing grading failures.
- Introduce unpublished new tasks for cross-validation to rule out inflation caused by contamination.
- If the difference persists stably, then discuss server-side configuration or version strategy issues.
6. Engineering Practice Recommendations
In real projects, model capability is only one part of the chain. A stable approach is to isolate uncertainty at system boundaries: use strict output schema validation and automatic retries to handle format issues; use unit tests as the sole acceptance standard for code output; break large tasks into small steps and retain intermediate results; and record the parameters and latency of each call through logging services and monitoring alerts to form a traceable evaluation archive. If you need to run evaluations in batches, container platforms and object storage can be used to freeze datasets and results and ensure environment consistency.
The conclusion is straightforward: the rise and fall of a single leaderboard score is not enough to support a capability judgment. Only evaluation with controllable configuration, stratified statistics, and confidence intervals can turn “it feels dumber” into an engineering conclusion that is locatable, reproducible, and optimizable.
