CodeSpecBench-Func - Correctness: leaderboard
CodeSpecBench (2026) asks models to write executable precondition and postcondition functions that specify the intended behaviour of a program; the function-level set uses 2,494 LeetCode problems with online-judge-validated valid and invalid tests. Correctness, the share of specifications that accept every valid test, in percent; higher is better.
Metric: Correctness (%), the share of generated executable pre/postcondition specifications that accept every valid test, on CodeSpecBench-Func (2,494 LeetCode problems; 50 valid and 50 invalid inputs plus valid and model-generated buggy outputs per problem, validated by the online judge); higher is better. Source: arxiv.org. Saturation forecast: Estimated already saturated. 15 models tracked. Updated 7 Oct 2026.
Top models
| # | Model | Setting | Score | Overall rank |
|---|---|---|---|---|
| 1 | Gemini 2.5 Pro | 88.1 | #276 | |
| 2 | Claude Sonnet 4.5 | Thinking | 85 | #261 |
| 3 | Gemini 2.5 Flash | 83.7 | #463 | |
| 4 | QwQ-32B | 83.1 | #907 | |
| 5 | GPT-OSS-120B | 82.6 | #704 | |
| 6 | GPT-5 Mini | 82 | #364 | |
| 7 | Qwen 3 32B | 81.9 | #972 | |
| 8 | Qwen 3 14B | 80.1 | #1269 | |
| 9 | Qwen 3 8B | 75.5 | #1873 | |
| 10 | GPT-5 | 75.1 | #178 | |
| 11 | GPT-OSS-20B | 73.7 | #1183 | |
| 12 | DeepSeek V3.2 | Non-reasoning | 72.9 | #419 |
| 13 | Qwen 3 4B | 71.5 | #2348 | |
| 14 | Qwen 3 1.7B | 14.7 | #5860 | |
| 15 | Qwen 3 0.6B | Non-reasoning | 8.4 | #8350 |
No result here: #1 Claude Fable 5.2, #3 Gemini 4 Neon, #4 GPT-6.2 Astra.
Interactive version: theaggregate.ai/benchmark?slug=codespecbench-func-correctness · How It Works · Data refreshed daily, snapshot 2026-11-21.