ArXiv TLDR

REAgent: Requirement-Driven LLM Agents for Software Issue Resolution

🐦 Tweet
2604.06861

Shiqi Kuang, Zhao Tian, Kaiwei Lin, Chaofan Tao, Shaowei Wang + 3 more

cs.SE

TLDR

REAgent is a requirement-driven LLM agent framework that improves software issue resolution by refining issue descriptions into structured requirements.

Key contributions

  • Proposes REAgent, an LLM agent framework for software issue resolution using requirement-driven patch generation.
  • Automatically constructs structured, information-rich issue-oriented requirements from raw descriptions.
  • Identifies and iteratively refines low-quality requirements to enhance LLM understanding and patch correctness.
  • Achieves an average 17.40% improvement in resolved issues over state-of-the-art baselines on three benchmarks.

Why it matters

LLMs struggle with software issue resolution due to complex issues and poor-quality descriptions. REAgent addresses this by transforming ambiguous issue descriptions into structured requirements. This novel approach significantly boosts LLM performance in generating correct patches, making software maintenance more efficient.

Original Abstract

Issue resolution aims to automatically generate patches from given issue descriptions and has attracted significant attention with the rapid advancement of large language models (LLMs). However, due to the complexity of software issues and codebases, LLM-generated patches often fail to resolve corresponding issues. Although various advanced techniques have been proposed with carefully designed tools and workflows, they typically treat issue descriptions as direct inputs and largely overlook their quality (e.g., missing critical context or containing ambiguous information), which hinders LLMs from accurate understanding and resolution. To address this limitation, we draw on principles from software requirements engineering and propose REAgent, a requirement-driven LLM agent framework that introduces issue-oriented requirements as structured task specifications to better guide patch generation. Specifically, REAgent automatically constructs structured and information-rich issue-oriented requirements, identifies low-quality requirements, and iteratively refines them to improve patch correctness. We conduct comprehensive experiments on three widely used benchmarks using two advanced LLMs, comparing against five representative or state-of-the-art baselines. The results demonstrate that REAgent consistently outperforms all baselines, achieving an average improvement of 17.40% in terms of the number of successfully-resolved issues (% Resolved).

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.