Research map / Large language models / Agents, code and math
POSTCONDBENCH: Benchmarking Correctness and Completeness in Formal Postcondition Inference
Gehao Zhang, Juan Zhai
University of Massachusetts Amherst
Read the paperPlace an idea next to itCheck your own paper ↗
15measured effects
8improved
5no clear effect
1hurt
1mixed
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add grammar guidance on the specification language to the F2P prompt (ablation) | Claude-4.5 · PostcondBench F2P | Corr@1: 0.629 -> 0.814 | Improved |
| add grammar guidance on the specification language to the F2P prompt (ablation) | Claude-4.5 · PostcondBench F2P | Comp@1: 0.207 -> 0.283 | Improved |
| add grammar guidance to the F2P prompt (ablation) | GPT-5 · PostcondBench F2P | Corr@1 / Comp@1: Corr 0.520 -> 0.767, Comp 0.298 -> 0.400 | Improved |
| add grammar guidance to the F2P prompt (ablation) | GPT-5 and Claude-4.5 · PostcondBench F2P | correctness-completeness gap | No clear effect |
| increase samples k from 1 to 5 | GPT-5 · PostcondBench | Corr@k / Comp@k: Corr 0.483 -> 0.802, Comp 0.255 -> 0.446 | Improved |
| increase samples k from 1 to 5 | Claude-4.5 · PostcondBench | Corr@k / Comp@k: Corr 0.629 -> 0.822, Comp 0.207 -> 0.292 | Improved |
| increase samples k | all models · PostcondBench | correctness-completeness gap | No clear effect |
| provide code in addition to NL (F2P vs N2P) | LLMs · PostcondBench | correctness-completeness gap | Improved |
| use standalone methods instead of repository-dependent methods | LLMs · PostcondBench Python | Comp@1: 0.035 -> 0.090 | Improved |
| use standalone methods instead of repository-dependent methods | LLMs · PostcondBench Java | Comp@1: 0.188 -> 0.316 | Improved |
| longer methods (LoC [0,20) vs [20,40) vs 40+) | Claude-4.5 C2P · PostcondBench | Comp@1: 0.388 -> 0.206 -> 0.076 | Hurt |
| drop any single rule-based mutation operator (ablation) | Comp@1 evaluation, Python · PostcondBench | Comp@1: at most 0.004 change | No clear effect |
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
- SpecMind: Cognitively Inspired, Interactive Multi-Turn Framework for Postcondition Inference (ACL 2026 · similarity 0.91)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.87)
- AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement (ICML 2025 · similarity 0.87)
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.86)
- CLEVER: A Curated Benchmark for Formally Verified Code Generation (NeurIPS 2025 · similarity 0.86)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.86)
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.