Research map / Large language models / Reasoning and chain of thought
Improving LLM Code Reasoning via Semantic Equivalence Self-Play with Formal Verification
Poon Tsz Nok, Antonio Valerio Miceli Barone
University of Edinburgh
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
6improved
2no clear effect
4hurt
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 |
|---|---|---|---|
| train evaluator Bob with self-play for one round | DeepSeek-R1-Distill-Qwen-7B · OpInstruct-HSx (Test) | accuracy: 88.24 -> 88.79 | Improved |
| self-play training of Bob | DeepSeek-R1-Distill-Qwen-7B · HumanEval (Haskell) | Pass@1: 17.7 -> 26.4 | Improved |
| self-play training of Bob | DeepSeek-R1-Distill-Qwen-7B · MBPP (Haskell) | Pass@1: 26.7 -> 36.9 | Improved |
| self-play training of Bob | DeepSeek-R1-Distill-Qwen-7B · PySecDB | F1: 51.3 -> 54.0 | Improved |
| self-play training of Bob | DeepSeek-R1-Distill-Qwen-7B · CodeXGLUE defect detection | F1: 47.9 -> 43.2 | Hurt |
| self-play training of Bob | DeepSeek-R1-Distill-Qwen-7B · CodeXGLUE defect detection | accuracy: 48.8 -> 50.5 | No clear effect |
| add equivalence (SEQ) supervision: 50/50 mix (E0) vs pure inequivalence (E1) (ablation) | Bob · EquiBench OJ_V | accuracy: 61.4 -> 69.8 | Improved |
| add SEQ supervision at matched data volume (E2 vs E3) (ablation) | Bob · EquiBench OJ_A | accuracy: 53.3 -> 55.5 | Improved |
| add SEQ supervision at matched data volume (E2 vs E3) (ablation) | Bob · EquiBench OJ_V | accuracy: 65.8 -> 63.2 | Hurt |
| add SEQ supervision, E0 vs E1 (ablation) | Alice · MBPP (Haskell) | Pass@1: 39.3 -> 34.3 | Hurt |
| aggressive SEQ (96%) with low proof yield (E2) vs E0 (ablation) | Bob · EquiBench OJ_V | accuracy: 69.8 -> 63.2 | Hurt |
| self-play on Haskell, transfer to low-level tasks | Bob · EquiBench DCE/STOKE/TVM | accuracy: STOKE 51.8, TVM 50.1, DCE 51.9 (E0) | No clear effect |
Open problems in efficient and adaptive thinking
How long should a reasoning model think, and when should it stop?
- It works on math. Nobody knows about the rest. · 43 papers state it
- The method needs a gold answer or an LLM judge. · 34 papers state it
- Do stopping thresholds transfer between models? · 28 papers state it
Closest papers by meaning
- VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code (ICLR 2026 · similarity 0.89)
- Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning (NeurIPS 2025 · similarity 0.86)
- Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus (NeurIPS 2024 · similarity 0.86)
- APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoning (NeurIPS 2025 · similarity 0.86)
- VERSE: Verification-based Self-Play for Code Instructions (AAAI 2025 · similarity 0.86)
- FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Proving (NeurIPS 2024 · 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.