Why Old and New Benchmarks Produce Opposite Results: A Deep Dive into AI Coding Model Evaluation

    When a new coding benchmark reshuffles the rankings of top AI models, it exposes systemic flaws in how we measure model capability. This article examines why a single new evaluation (DeepSWE) reversed the conclusions of older benchmarks, analyzing three core sources of error: data contamination, insufficient task discrimination, and verifier inaccuracies. Beyond diagnosing the problem, it provides a practical framework for evaluating benchmark credibility and outlines a step-by-step guide for building a reliable, private evaluation pipeline within your own codebase to ensure model selection is based on real engineering performance rather than misleading public leaderboards.

    Introduction: Why One New Benchmark Reordered the Leaderboard

    As AI coding tools move into full-scale engineering adoption, every technical team faces the same question: which model should we choose? Public evaluation benchmarks are often treated as the primary source of truth, but a benchmark score is just a single measurement, not an absolute measure of a model’s capability.

    Recently, an evaluation group released a new coding benchmark called DeepSWE, designed with “zero contamination” as a core principle. It consists of 113 original tasks. On its first-day leaderboard, two leading models from major vendors swapped positions dramatically:

    Model (Reasoning Tier) Old Benchmark Score (Public Reports) New Benchmark Score Rank Change
    Model A (Highest Reasoning Tier) 59%, 2nd 70%±4%, 1st ↑
    Model B (Highest Reasoning Tier) 64%, 1st 54%±5%, 3rd ↓
    Model C (Highest Reasoning Tier) — 56%±5%, 2nd —
    Mid-tier model (Same Series, Higher Tier) — 32% —
    • A New Leader Emerges: On the new benchmark, Model A took the top spot with a 70% pass rate, while Model B dropped to third. The top two are separated by 16 percentage points, yet public scores on the old benchmark ranked them in the exact opposite order.
    • The Gap Has Widened: Across the 12 models tested, the score gap between the highest and lowest performers expanded from roughly 30 percentage points on the old benchmark to 70 percentage points on the new one. The same models, performing the same category of tasks, produced near-converged scores under one measurement and a massive chasm under another.

    What is most striking about this rank reversal is not who “won,” but how the same set of models can yield nearly opposite conclusions under different measurement tools. This is not an isolated issue with a single leaderboard; it is a systemic problem in the coding evaluation space. This article first dissects why the “ruler” is inaccurate, then outlines principles for building a trustworthy benchmark, and finally demonstrates how enterprises can set up private evaluations using their own codebases.

    Part 1: Why the Old Benchmark Was Inaccurate — Three Sources of Systematic Error

    Traditional software engineering benchmarks are typically modeled after bug-fixing tasks from real open-source repositories, requiring models to locate issues and provide patches that pass tests. While these have long served as industry references, that does not mean they accurately measure a model’s real-world engineering ability. Combined with the first-day data from the new benchmark, the distortion in the old benchmark stems from three main areas.

    1.1 Data Contamination: Scores May Reflect Memorization, Not Capability

    The Core Issue: When tasks, answers, and even test code are publicly available on the internet, they likely enter the model’s training corpus. A model can produce the “correct answer” through pattern matching, even if it does not understand the task.

    Findings from the New Benchmark: The evaluation team used a new methodology to audit submissions from two model series on the old benchmark. They found that over 12% were judged to be “cheating.” Given that these two model series scored in the 64% to 74% range, the cheated portion accounts for roughly 10% to 20% of their total scores.

    Impact Analysis: The harm of data contamination goes beyond “getting a few questions right by luck”; it can systematically alter rankings.

    • If a model’s training data overlaps more heavily with an old benchmark, a larger portion of its score is “artificially inflated,” pushing it higher on the leaderboard.
    • It is telling that one model scored 54% on unseen tasks but over 64% on “seen” ones. That 14-percentage-point gap warrants scrutiny.

    Important Limitations: “Cheating” judgments typically rely on heuristic rules, such as checking if a patch hardcodes specific return values or closely mirrors the reference solution. These rules can produce false positives. The 12% figure is provided by the auditors and must be interpreted alongside the quality of the detection methodology itself.

    Common Detection and Prevention Methods:

    Method Approach Limitation
    Training Cutoff Split Only use bug-fix records generated after a model’s training cutoff date Relies on officially announced cutoff dates; some models may have been exposed to earlier data indirectly
    Original or Private Task Sets Tasks are used internally and never made public Limited task scale; requires continuous replenishment
    Semantic Deduplication Compare task similarity against corpora the model may have seen Threshold setting is difficult; susceptible to missed detections
    Canary Markers Embed hard-to-detect marker strings in tasks and reference solutions to see if they appear in model outputs Can only catch partial leakage scenarios
    Blind Evaluation Do not publish per-task scores during the evaluation cycle Weakens community oversight; requires supplementary audit mechanisms

    Direct Implications for Enterprises: Public benchmarks are open to everyone, including the model vendors who can optimize specifically for them. The only evaluation that truly reflects how a model performs in your business context is one built on your own codebase using private, unreleased tasks.

    1.2 Insufficient Discrimination: Small Task Scale, Crowded Scores

    Key Comparison: On the old benchmark, a single task involved an average of about 5 files. On the new benchmark, the average is about 7 files, with roughly 5.5 times the reference code volume per task.

    • Small changes can be “guessed”: Tasks requiring edits to only a few files allow models to sometimes stumble upon correct answers via local pattern matching. Both strong and weak models score points, naturally compressing the gap.
    • Cross-file changes require “understanding”: To correctly complete changes spanning multiple coupled files, a model must understand dependencies between modules, plan the order of modifications, and verify its logic at each step. This capability cannot be replaced by memorization.

    Therefore, as task scale increases, scores better reflect genuine engineering ability. This is a reasonable explanation for why the score gap on the new benchmark expanded from about 30 percentage points to 70 percentage points.

    Why “Appearing Close” Does Not Mean “Being Close”: We can borrow the concept of “discrimination” from measurement science, defined as a tool’s ability to distinguish between different objects being measured.

    • It is like measuring height with a ruler that has markings too coarse to be useful; if two groups read the same, it does not mean their heights are identical.
    • Models clustered in a narrow score band on the old benchmark might genuinely be close in capability, or the task difficulty might be concentrated in the middle range where both strong and weak models get partial credit. Combined with measurement noise, this smooths out real differences.
    • Discrimination is especially critical for top-tier models: when tasks are too easy, a “ceiling effect” occurs where top models all approach full marks, making the leaderboard unable to distinguish who is truly stronger.

    Note: “More files” here refers to the actual code scale relevant to the task, not just mechanically piling on code volume. Effective difficulty comes from cross-file logical coupling and the localization and reasoning required starting from a bug description.

    1.3 Verifier Error: 8.5% False Positives, 24.0% False Negatives

    The vast majority of coding benchmarks use automated tests to determine if a patch is valid. Therefore, the quality of the tests and judgment scripts (i.e., the verifiers) directly determines the credibility of the scores. After auditing the old benchmark’s verifiers, the new benchmark team found a false positive rate of about 8.5% and a false negative rate of about 24.0%.

    Clarifying Two Concepts:

    • False Positive (Incorrect Pass): The patch does not truly fix the issue but is marked as passing. Common causes include: insufficient test coverage where the patch happens to touch a tested path; test order dependencies; or inherent test randomness that allows an accidental pass.
    • False Negative (Incorrect Fail): The patch is actually correct but is marked as failing. Common causes include: tests relying on undeclared external conditions (e.g., current time, network); the reference implementation not being unique, leaving legitimate alternative solutions unaccounted for in certain edge cases; or unstable tests.

    The Implications of the Two Numbers: An 8.5% false positive rate means nearly 1 in 10 “passes” does not hold up. A 24.0% false negative rate means roughly 1 in 4 “failures” unfairly penalizes the model. The latter also pollutes rankings because it unfairly lowers the scores of high-performing models. Moreover, the harder the task and the larger the change, the more opportunities there are for misjudgment.

    An Illustrative Derivation: To illustrate the impact of verifier error, assume both types of misjudgment are uniformly distributed across tasks. Let the verifier’s false positive rate be $a$ and false negative rate be $b$. Let $P(\text{Reported Pass})$ be the pass rate shown on the leaderboard and $P(\text{True Pass})$ be the proportion the model actually solved, then:

    1. P(Reported Pass) = P(True Pass) × (1 − b) + (1 − P(True Pass)) × a
    2. # Plugging in a = 0.085, b = 0.240, solving for True Pass rate:
    3. p = (P(Reported Pass) - a) / (1 - a - b)
    4. # Model A: Reported pass rate 70% → True pass rate ≈ (0.70 − 0.085) / 0.675 ≈ 91%
    5. # Model B: Reported pass rate 54% → True pass rate ≈ (0.54 − 0.085) / 0.675 ≈ 67%
    6. # The gap between them after correction is about 24 percentage points, greater than the reported 16 percentage points

    It is important to note that this result relies on the assumption that “misjudgment is independent of model capability,” which often does not hold in reality. For example, incomplete patches are more likely to trigger false negatives, while weaker models might be more likely to “luck into” false positives. However, the derivation proves a point: when verifier error reaches double digits, pass rates cannot be equated with true capability, and a 1- or 2-percentage-point difference on the leaderboard proves nothing.

    The Combined Effect of Three Errors: Contamination artificially inflates scores, insufficient discrimination compresses gaps, and verifier error skews readings away from true values. Together, they render the old benchmark’s conclusion of “neck-and-neck” competition completely invalid.

    Part 2: How to Evaluate the Credibility of a Benchmark Report

    Before accepting the next claim that “Model X has reached the top,” you can check the following items point by point.

    1. Do the confidence intervals overlap? Model A is at 70%±4% and Model C is at 56%±5%. Since these intervals do not overlap, the lead is relatively reliable. Model B is at 54%±5%; its upper bound of 59% overlaps with the lower bound of 51% for Model C’s 56%, so drawing strong conclusions about the gap between 3rd and 2nd place is inappropriate.

    2. Is the method for calculating confidence intervals clearly explained? Using simple random sampling as an example, for a model with a 70% pass rate across 113 questions, the half-width of the 95% confidence interval is approximately 8 percentage points (calculated as $1.96 \times \sqrt{0.7 \times 0.3 / 113}$). To narrow this to ±4 percentage points, you would need roughly 500 questions. So when you see a combination like “113 tasks, ±4%,” it is worth questioning the statistical methodology used.

    3. Is the comparison paired? Who got a specific question right or wrong on the same task is more telling than comparing two independent aggregate pass rates. When calculating true gaps, running models on the exact same batch of tasks and comparing results question-by-question is often more reliable than subtracting two independent trials.

    4. Is the inference budget aligned? In the original report, the two models compared were running at their highest reasoning tiers, but whether the computational cost for each was comparable is often left unstated. If one model was given several times more compute, the comparison reflects “how much was invested” rather than “how capable the model itself is.”

    5. Are sampling and judgment settings fixed? Is multiple-attempt allowed? Are sampling temperature, random seeds, and per-task execution time limits consistent? These directly affect result stability.

    6. Are the scores reproducible? If you rerun the same model several times, how much do the results fluctuate? If the fluctuation range is comparable to the gap between models, the ranking is practically meaningless.

    7. Can a single leaderboard represent real-world scenarios? Even if the conclusions hold, they only indicate relative strengths “on this batch of tasks.” No single leaderboard is equivalent to how a model will perform on your business codebase.

    Part 3: Seven Essentials for Building a Trustworthy Coding Benchmark

    Translating the above critiques into design principles, a credible benchmark should at minimum cover the following aspects.

    (1) Tasks must be realistic and scaled. Tasks should be sourced from real repository bug-fixes or feature development records, including complete background descriptions, reproducible failure symptoms, and reference patches approved by maintainers. The task scale must ensure sufficient cross-file coupling, avoiding a dominance of “single-file minor fixes.”

    (2) Verification must be multi-layered and explainable. In addition to standard unit and integration tests, it is recommended to check the following metrics simultaneously:

    1. # Evaluation for a single task (illustrative)
    2. result = evaluate(patch, task)
    3. result.fail_to_pass # Do all target tests that failed before the fix and should pass after all pass?
    4. result.pass_to_pass # Are existing passing functional tests broken (regression check)?
    5. result.lint_ok # Do static checks pass?
    6. result.security_ok # Are there any newly introduced security issues?

    The regression check for “was passing, still passes after modification” is particularly critical, as it catches patches that are locally correct but globally broken (fixing A but breaking B).

    (3) Difficulty must be tiered with high discrimination. Group tasks into tiers: easy, medium, hard, and extreme, avoiding a concentration in the mid-range. Simultaneously evaluate multiple dimensions such as localization speed, modification accuracy, regression risk, and cost (steps, time, tokens consumed), rather than only checking final pass/fail.

    (4) Contamination must be prevented. Prioritize using newly generated tasks or proprietary ones, perform semantic deduplication, use marker detection on model outputs to check for reference solution features, and withhold per-task results during the evaluation cycle.

    (5) Budget must be controlled and configurations comparable. All models must run under identical conditions, with the following limits defined:

    • Maximum steps or maximum tool call count;
    • Readable context range;
    • Per-task execution time limit;
    • Reasoning tier.

    (6) Statistics must be rigorous. Report confidence intervals rather than single numbers; use paired tests (such as McNemar’s test or paired resampling) for same-task comparisons to achieve tighter intervals; run models multiple times to aggregate means and fluctuation ranges; and repeatedly validate the execution environment to estimate the verifier’s own misjudgment rate.

    (7) Must be reproducible and auditable. Fix the baseline code, dependency versions, and execution environment, and completely log each run’s traces, patches, and test results so that any evaluation can be traced and reviewed.

    Part 4: Implementation: Building a Private Evaluation in Your Own Codebase

    Public leaderboards are only references; the most relevant judgment for your business comes from private evaluations.

    Step 1: Build the Task Set

    • Extract “problem description + baseline version + fix patch + verification tests” from your own codebase’s bug tracking and merge requests.
    • Prioritize changes that span multiple modules and involve multiple files.
    • Remove tasks containing sensitive information; introduce a proportion of recent tasks when necessary to combat contamination.
    • The task set does not need to be massive; a few dozen well-designed tasks often offer better discrimination than hundreds of homogeneous ones.

    Step 2: Standardize the Task Format (Example)

    1. {
    2. "id": "order-refund-001",
    3. "repo": "internal/order-service",
    4. "base_commit": "a1b2c3d",
    5. "problem": "After canceling an order, the refund API returns an incorrect amount under specific conditions.",
    6. "tests": {
    7. "fail_to_pass": ["tests/test_refund_amount.py::test_refund_amount"],
    8. "pass_to_pass": ["tests/test_order.py", "tests/test_payment.py"]
    9. },
    10. "limits": {"max_steps": 50, "timeout_sec": 600}
    11. }

    Step 3: Isolate Execution and Standardize Judgment (Illustrative code, demonstrating the flow)

    1. def run_case(case, model_runner):
    2. # 1. Check out the baseline version in an isolated container
    3. repo = prepare_repo(case["repo"], case["base_commit"])
    4. # 2. Model attempts to modify the code within the limited budget, outputting a patch or workspace changes
    5. patch = model_runner(case["problem"], repo, limits=case["limits"])
    6. # 3. Apply the patch; if it fails, mark it as "patch_invalid"
    7. if not apply_patch(repo, patch):
    8. return {"id": case["id"], "status": "patch_invalid"}
    9. # 4. Target tests: must fail before the fix and must pass after
    10. # 5. Regression tests: existing passing cases must not be broken
    11. # 6. Aggregate results across layers to determine pass/fail
    12. return verify(repo, case["tests"])

    Step 4: Quantify Result Uncertainty (Paired resampling illustrative code)

    1. import random
    2. from statistics import mean
    3. def paired_bootstrap(a, b, rounds=10000, alpha=0.05, seed=42):
    4. """Perform paired resampling on per-task results to estimate the confidence interval
    5. for the difference in pass rates between two models.
    6. a and b are equal-length 0/1 lists, where item i indicates whether the model passed task i."""
    7. n = len(a)
    8. rng = random.Random(seed)
    9. diffs = []
    10. for _ in range(rounds):
    11. sample = [rng.randrange(n) for _ in range(n)]
    12. diffs.append(mean(a[i] for i in sample) - mean(b[i] for i in sample))
    13. diffs.sort()
    14. lo = diffs[int(alpha / 2 * rounds)]
    15. hi = diffs[int((1 - alpha / 2) * rounds)]
    16. return lo, hi
    17. # Example: Model A passes 70 out of 100 tasks, Model B passes 62
    18. a = [1] * 70 + [0] * 30
    19. b = [1] * 62 + [0] * 38
    20. lo, hi = paired_bootstrap(a, b)
    21. print(f"95% CI for pass rate difference: [{lo:.3f}, {hi:.3f}]")
    22. # Only if the interval is clearly greater than 0 can we conclude Model A genuinely outperforms Model B on this task set.

    Step 5: Leveraging Cloud Platforms for Execution and Observability

    • Evaluation Executor: Containerized as images, running on an elastic container platform, executing tasks concurrently. Configure CPU, memory limits, and execution timeouts to prevent individual tasks from exhausting resources.
    • Tasks and Results: Store datasets, patches, and execution logs uniformly in object storage, organized by task and run batch for easy tracing.
    • Task Scheduling: Distribute evaluation tasks via message queues, supporting asynchronous execution and failure retries.
    • Observability: Use logging and monitoring/alerting services to track trends in pass rates, average duration, and failure types across models. For instance, trigger alerts when metrics fluctuate abnormally after a model upgrade or inference configuration change.

    General-purpose cloud capabilities—such as containers, object storage, message queues, logging, and monitoring provided by cloud vendors like Baidu AI Cloud—can be directly combined into a private evaluation pipeline, giving “the ruler used to score models” engineering-grade stability.

    Part 5: Conclusion — Rankings Change, Methodology Matters More

    The fact that a single new benchmark can flip the rankings of two top models is a reminder that in coding model comparisons, the reliability of the measurement methodology is at least as important as the model capability itself.

    • Data contamination mixes memorization into scores;
    • Insufficient task scale compresses real gaps;
    • Verifier error skews readings from true values.

    Together, these three factors are enough to transform a “neck-and-neck” result from an inaccurate ruler into a clear picture of a massive gap. The implications for enterprises are straightforward:

    1. Treat public leaderboards as initial screening references, not direct selection conclusions;
    2. Focus on confidence intervals, task scale, contamination prevention design, and inference budgets, rather than just rankings;
    3. Use private evaluations on your own codebase as the final basis, and build a reproducible, continuously evolving evaluation pipeline.

    When the evaluation is rigorous enough, the true gaps between models will naturally emerge. At that point, the decision will no longer be about who “reached the top,” but about who can reliably complete tasks in your codebase.