CodeGrad: Integrating Multi-Step Verification with Gradient-Based LLM Refinement
Not on the map. Why?
Abstract (arXiv)
While Large Language Models (LLMs) have demonstrated remarkable capabilities in code generation, they often produce solutions that lack guarantees of correctness, robustness, and efficiency. This limitation is particularly acute in domains requiring strict constraints. CodeGrad introduces a principled framework that integrates rigorous verification techniques directly into an iterative LLM-based generation loop. It uniquely treats code as a differentiable variable, converting structured feedback and mathematical constraints into a textual pseudo-gradient. This gradient guides the model to iteratively refine solutions, ensuring they are not only functional but also robust and mathematically justified. We evaluate CodeGrad on the HumanEval, HumanEval+, and LiveCodeBench benchmarks. Our implementation outperforms strong baselines, achieving an absolute improvement of up to 27% on HumanEval and a 41% relative improvement on the challenging LiveCodeBench V6. StructuredGrad generates mathematically justified code that is robust and efficient, paving the way for reliable AI-assisted software development in high-stakes applications.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 12 Aug 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Searchcited by 7
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attentioncited by 4
- 2026ContextEvolve: Multi-Agent Context Compression for Systems Code Optimizationcited by 2
- 2026VERITAS: Verifier-Guided Proof Search for Zero-Shot Formal Theorem Provingcited by 2
- 2026Quality-Driven Agentic Reasoning for LLM-Assisted Software Design: Questions-of-Thoughts (QoT) as a Time-Series Self-QA Chaincited by 1
- 2026SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repaircited by 1
- 2026VERITAS: Verifier-Guided Proof Search for Zero-Shot Formal Theorem Proving17 Jun 2026
- 2026SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair19 Apr 2026
- 2026Quality-Driven Agentic Reasoning for LLM-Assisted Software Design: Questions-of-Thoughts (QoT) as a Time-Series Self-QA Chain10 Mar 2026
- 2026ContextEvolve: Multi-Agent Context Compression for Systems Code Optimization1 Feb 2026
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Search29 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attention22 Aug 2025