Research map / Large language models / Agents, code and math
Ranking LLM-Generated Loop Invariants for Program Verification
Saikat Chakraborty, Shuvendu K. Lahiri, Sarah Fakhoury, Madanlal Musuvathi, Akash Lal, Aseem Rastogi, Aditya Senthilnathan, Rahul Sharma, Nikhil Swamy
Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
6improved
2no clear effect
2hurt
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 |
|---|---|---|---|
| apply contrastive-trained iRank re-ranking (Davinci) | gpt-3.5-turbo generations · SyGuS loop invariants | median rank of verified invariant: 32.00 -> 4.00 (raw Davinci embedding vs iRank) | Improved |
| re-rank with iRank (Davinci) instead of LLM order | gpt-3.5-turbo generations · SyGuS loop invariants | mean rank: 189.78 -> 34.48 | Improved |
| re-rank with iRank (Ada) | gpt-4 generations · SyGuS loop invariants | V@1 (%): 17.6 -> 44.7 | Improved |
| use raw LLM embeddings without training for ranking | gpt-3.5-turbo / gpt-4 generations · SyGuS loop invariants | mean rank: 95.35 -> 115.89 (Ada, gpt-3.5) | No clear effect |
| train transformation on embeddings (iRank vs raw Ada) | embedding ranker · SyGuS loop invariants (gpt-3.5-turbo) | V@10 (%): 30.0 -> 60.8 | Improved |
| use Davinci instead of Ada embeddings in iRank (ablation) | iRank · SyGuS loop invariants | mean rank: 38.78 -> 34.48 (gpt-3.5-turbo) | No clear effect |
| compare TF-IDF textual similarity ranking with iRank | TF-IDF · SyGuS loop invariants (gpt-3.5-turbo) | median rank: 24.00 vs 5.00 for iRank Ada | Hurt |
| remove semantically duplicate candidates (ablation) | iRank (Ada) · SyGuS loop invariants (gpt-3.5-turbo) | mean rank: 38.78 -> 18.79 | Improved |
| use iRank (Ada) in wall-clock time | gpt-3.5-turbo generations · SyGuS loop invariants | total mean time (s): 7.33 -> 2.98 | Improved |
| use iRank (Davinci) in wall-clock time | gpt-3.5-turbo generations · SyGuS loop invariants | total mean time (s): 7.33 -> 10.93 | Hurt |
Closest papers by meaning
- Towards General Loop Invariant Generation: A Benchmark of Programs with Memory Manipulation (NeurIPS 2024 · similarity 0.91)
- Not All Invariants Are Equal: Curating Training Data to Accelerate Program Verification with SLMs (ICML 2026 · similarity 0.91)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.86)
- Lemur: Integrating Large Language Models in Automated Program Verification (ICLR 2024 · similarity 0.86)
- Verified Code Transpilation with LLMs (NeurIPS 2024 · similarity 0.86)
- AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement (ICML 2025 · similarity 0.85)
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.
