scimeatlas

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

ACL 2026Large language models › Agents, code and mathapproach: Execution-based code verificationopen problems in this approach6 citations (OpenAlex)

Yonsei University · University of Seoul

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
4improved
2no clear effect
4hurt
2mixed

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

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 changedWhereMeasuredEffect
Add contract specification (CS) to the prompt (ablation)five open code LLMs · ContractEvalCSR: 0% -> 22.69-40.71%Improved
Add verified CVT examples (EAS) on top of CS (ablation)five open code LLMs · ContractEvalCSR: e.g. DeepSeek-R1 27.24% -> 52.66%Improved
Use CS instead of standard prompt (ablation)five open code LLMs · ContractEvalpass@1: e.g. DeepSeek-R1 80.81% -> 73.29%Hurt
Add wrong input-output examples (negative-example prompt) (ablation)code LLMs · ContractEvalCSR: 0% -> 0%No clear effect
Add chain-of-thought to EAS (ablation)Phi-4 and Phi-4-plus · ContractEvalpass@1 and CSR: Phi-4 72.99% -> 3.66% pass@1; 50.73% -> 1.91% CSRHurt
Add chain-of-thought to EAS (ablation)gemma-3, Qwen-3 · ContractEvalpass@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 · ContractEvalpass@1: Phi-4-plus 73.21% -> 77.42%Improved
Add multi-turn refinement to EAS (ablation)five open code LLMs · ContractEvalCSR: Phi-4-plus 50.94% -> 48.52%Hurt
Generate CVTs with LLM + SMT solver instead of o4-mini alone (ablation)CVT generation · CVT qualityTS: 72.69% -> 84.92%Improved
Generate CVTs with LLM + SMT solver instead of o4-mini alone (ablation)CVT generation · CVT qualityAVC: 97.58% -> 94.11%Hurt
Use larger commercial LLMs (GPT-4o, Gemini-3-flash)code generation · ContractEval 100-task sampleCSR under EAS: 56.51% and 62.94% CSRMixed
Replace o4-mini with GPT-4o or Gemini-3-flash for CVT generation (ablation)CVT generation · 100-task sampleAVC 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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy