Research map / Large language models / Agents, code and math
ContractEval: A Benchmark for Evaluating Contract-Satisfying Assertions in Code Generation
Soohan Lim, Joonghyuk Hahn, Hyunwoo Park, Sang-Ki Ko, Yo-Sub Han
Yonsei University · University of Seoul
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Chain-of-thought prompting
Add chain-of-thought to EAS · ContractEval · pass@1 and CSR: Phi-4 72.99% -> 3.66% pass@1; 50.73% -> 1.91% CSR Hurt
What 2,675 accepted papers report for this change
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add contract specification (CS) to the prompt (ablation) | five open code LLMs · ContractEval | CSR: 0% -> 22.69-40.71% | Improved |
| Add verified CVT examples (EAS) on top of CS (ablation) | five open code LLMs · ContractEval | CSR: e.g. DeepSeek-R1 27.24% -> 52.66% | Improved |
| Use CS instead of standard prompt (ablation) | five open code LLMs · ContractEval | pass@1: e.g. DeepSeek-R1 80.81% -> 73.29% | Hurt |
| Add wrong input-output examples (negative-example prompt) (ablation) | code LLMs · ContractEval | CSR: 0% -> 0% | No clear effect |
| Add chain-of-thought to EAS (ablation) | Phi-4 and Phi-4-plus · ContractEval | pass@1 and CSR: Phi-4 72.99% -> 3.66% pass@1; 50.73% -> 1.91% CSR | Hurt |
| Add chain-of-thought to EAS (ablation) | gemma-3, Qwen-3 · ContractEval | pass@1: gemma-3 69.56% -> 70.46%; Qwen-3 69.65% -> 71.13% | No clear effect |
| Add multi-turn refinement to EAS (ablation) | five open code LLMs · ContractEval | pass@1: Phi-4-plus 73.21% -> 77.42% | Improved |
| Add multi-turn refinement to EAS (ablation) | five open code LLMs · ContractEval | CSR: Phi-4-plus 50.94% -> 48.52% | Hurt |
| Generate CVTs with LLM + SMT solver instead of o4-mini alone (ablation) | CVT generation · CVT quality | TS: 72.69% -> 84.92% | Improved |
| Generate CVTs with LLM + SMT solver instead of o4-mini alone (ablation) | CVT generation · CVT quality | AVC: 97.58% -> 94.11% | Hurt |
| Use larger commercial LLMs (GPT-4o, Gemini-3-flash) | code generation · ContractEval 100-task sample | CSR under EAS: 56.51% and 62.94% CSR | Mixed |
| Replace o4-mini with GPT-4o or Gemini-3-flash for CVT generation (ablation) | CVT generation · 100-task sample | AVC and TS: TS 74.11% -> 78.73% / 84.18%; AVC 98.68% -> 93.41% / 95.70% | Mixed |
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- PGS: Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedback (ICML 2026 · similarity 0.89)
- Learning to Code by Learning to Verify: Execution-Grounded Co-Evolution of Code Generation and Self-Verification for Reliable Code LLMs (EMNLP 2026 · similarity 0.89)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.88)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.88)
- AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement (ICML 2025 · similarity 0.87)
- Rethinking Verification for LLM Code Generation: From Generation to Testing (NeurIPS 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.