Adversarial Reasoning for Repair Based on Inferred Program Intent
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Automated program repair (APR) has shown promising results, particularly with the use of neural networks. Currently, most APR tools focus on code transformations specified by test suites, rather than reasoning about the program intent and the high-level bug specification. Without a proper understanding of program intent, these tools tend to generate patches that overfit incomplete test suites and fail to reflect the developers intentions. However, reasoning about program intent is challenging. In our work, we propose an approach called AdverIntent-Agent, based on critique and adversarial reasoning. Our approach is novel to shift the focus from generating multiple APR patches to inferring multiple potential program intents. Ideally, we aim to infer intents that are, to some extent, adversarial to each other, maximizing the probability that at least one aligns closely with the developers original intent. AdverIntent-Agent is a multi-agent approach consisting of three agents: a reasoning agent, a test agent, and a repair agent. First, the reasoning agent generates adversarial program intents along with the corresponding faulty statements. Next, the test agent produces adversarial test cases that align with each inferred intent, constructing oracles that use the same inputs but have different expected outputs. Finally, the repair agent uses dynamic and precise LLM prompts to generate patches that satisfy both the inferred program intent and the generated tests. AdverIntent-Agent was evaluated on two benchmarks: Defects4J 2.0 and HumanEval-Java. AdverIntent-Agent correctly repaired 77 and 105 bugs in both benchmarks, respectively.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 14 of its 84 references that are in the map. First posted on arXiv 19 May 2025.
Builds on
14 of 84 references.
Closest ancestors · 1
Same direction, newest first
Other references · 13
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
- 2024AutoCodeRover: Autonomous Program Improvementcited by 278
- 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 240
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 232
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2024SpecRover: Code Intent Extraction via LLMscited by 72
- 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
- 2022SelfAPR: Self-supervised Program Repair with Test Execution Diagnosticscited by 33
- 2024ContrastRepair: Enhancing Conversation-Based Automated Program Repair via Contrastive Test Case Pairscited by 19
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 15
1 more
- 2024ChatDBG: Augmenting Debugging with Large Language Modelscited by 9
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities
- 2026Project Prometheus: Bridging the Intent Gap in Agentic Program Repair via Reverse-Engineered Executable Specifications
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study
- 2025Red Teaming Program Repair Agents: When Correct Patches can Hide Vulnerabilities
- 2026The Troy Moment: How LLM Agents Adjudicate the Decision Point Under Impossible Tasks, Claimed Authority, and Peer Information
- 2026Rebuild Dossier: Mechanically-Enforced Specs for Agentic App Rebuilds, and What Model-Tier Failures Reveal
- 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs