RampSachet Bangia, Shaiyon HaririExplainer
Building LLM Judges to Judge LLMs
Summary
Ramp built Ramp SWE-Bench V2 to evaluate how different LLMs perform on coding tasks drawn from real engineering work. The original V1 graded solutions by running them against a predefined test suite, but those tests were often overspecified or underspecified. V2 replaced test-based grading with LLM judges that compare candidate patches against an engineer-reviewed gold patch. A multi-step pipeline separates identifying differences between patches from judging whether those differences matter, and then has judges deliberate to reach a consensus. This approach raised judge agreement from 54% to 94%, and engineers agreed with nearly 90% of the pipeline’s task-level verdicts.
Context
Ramp built its own coding benchmark, Ramp SWE-Bench, to evaluate LLM performance on real engineering tasks. The original V1 graded solutions by running them against a predefined test suite, but those tests were often overspecified (rejecting valid solutions) or underspecified (passing incomplete solutions). To address this, V2 replaced test-based grading with LLM judges that compare candidate patches against an engineer-reviewed gold patch.
Approach / What changed
A multi-step pipeline that first identifies differences between the gold patch and candidate patch, then judges whether each difference is material to the task, and finally has judges deliberate to reach a consensus verdict.
Takeaways
Test-based grading in coding benchmarks often rejects valid solutions due to overspecified tests or passes incomplete solutions due to underspecified tests.
A pipeline that separates identifying differences between patches from judging their materiality, followed by judge deliberation, raised agreement between two LLM judges from 54% to 94%.
Engineers agreed with nearly 90% of the pipeline’s task-level verdicts, and models were neither rewarded nor penalized for sharing a provider with the model that produced the gold patch.
FAQ
How does the pipeline get LLM judges to agree?
The pipeline first identifies all differences between the gold patch and candidate patch, then judges whether each difference is material to the task. After both judges assess the same list of differences, they deliberate to reach a consensus. This separation of identification from judgment, plus deliberation, raised agreement from 54% to 94%.
How was the pipeline's accuracy validated?
Engineers behind the original PRs for each task evaluated whether the identified differences were material enough that they would not merge the candidate patch without changes. The engineers agreed with nearly 90% of the task-level verdicts from the pipeline.
Does the grading favor models from the same provider as the gold patch?
Ramp found no evidence that a candidate scored better if it came from the same model provider as the gold patch. Models were neither rewarded nor penalized for sharing a provider with the model that produced the gold patch.
Source and freshness
- Source
- builders.ramp.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.