Abstract
While Large Language Models (LLMs) have become proficient at solving standalone programming puzzles and repairing isolated bugs, their ability to perform "incremental development"—adding entirely new features to complex, real-world repositories—remains a significant challenge. We introduce FEA-Bench, a benchmark designed to evaluate this specific capability. Our findings reveal a substantial performance gap: even the most advanced reasoning models, such as DeepSeek-R1, successfully implement new features in only about 10% of cases. This paper details the construction of FEA-Bench and provides a reality check on the current state of autonomous AI coding agents.
Introduction
Most existing code generation benchmarks fall into two categories: "toy" problems like HumanEval, which focus on standalone functions, or bug-fixing tasks like SWE-bench, which focus on repairing existing logic. However, a primary responsibility of software engineers is incremental development: the process of adding new capabilities to an existing codebase.
Feature implementation is inherently more complex than bug fixing. It requires a model to create new components (classes or functions) from scratch while simultaneously modifying existing code to integrate these components. This necessitates a deep understanding of repository-wide context and the ability to manage interconnected dependencies. FEA-Bench was developed to address the lack of a dedicated framework for evaluating these high-level engineering tasks.
Methodology
The researchers developed an automated pipeline to construct FEA-Bench from real-world GitHub data, ensuring the benchmark reflects actual development practices. The construction process involved four key stages:
- Data Sourcing: Pull requests (PRs) were collected from 83 diverse Python repositories.
- Component Filtering: Using rule-based parsing, the team ensured each task required the addition of at least one new class or function, moving beyond simple line edits.
- Intent Filtering: To distinguish features from refactors or bug fixes, GPT-4o was employed to analyze PR descriptions, selecting only those intended to introduce new functionality.
- Execution-Based Verification: Each task is paired with unit tests. A solution is only marked as "resolved" if the model's generated code passes all relevant tests after integration.
To understand how models interact with the repository, the researchers tested various prompting strategies, including different context levels (Oracle vs. BM25 retrieval) and output formats (raw .patch files vs. a "Natural" format using before-and-after snippets).
The FEA-Bench Dataset
FEA-Bench consists of two primary versions:
- FEA-Bench (Full): 1,401 task instances across 83 repositories.
- FEA-Bench Lite: A curated subset of 200 high-quality tasks designed for more cost-effective and rapid evaluation.
Compared to bug-centric benchmarks like SWE-bench, FEA-Bench tasks are significantly more demanding. On average, FEA-Bench tasks involve 128 modified lines of code—a stark contrast to the 14–37 lines typically seen in SWE-bench. Furthermore, FEA-Bench requires a much higher percentage of entirely new code generation rather than just modification.
Key Insights and Results
The evaluation of leading LLMs on FEA-Bench provides a sobering look at the current state of AI-driven software engineering.
The Performance Gap
Feature implementation appears to be the "final boss" of current code generation tasks. DeepSeek-R1 emerged as the top performer but only achieved a 9.92% success rate on the full benchmark. It was followed by OpenAI o1 (7.28%) and GPT-4o (6.14%). Specialized open-source models, such as Qwen2.5-Coder-32B, performed competitively at 4.43%, often rivaling larger general-purpose models.
Formatting and Reasoning
A model's success is heavily tied to its "Apply Rate"—its ability to follow strict formatting instructions to place code correctly. If a model cannot accurately describe where to insert its changes, the quality of the code itself becomes irrelevant. Interestingly, models performed significantly better when using the "Natural" before-and-after format rather than raw Git patches. The strict syntax of patches (such as precise line numbering) appears to act as a cognitive "tax" that hinders the model's reasoning.
Retrieval vs. Context Window
Counter-intuitively, simply increasing the context window does not guarantee better results. In several tests, providing a 40k token window actually decreased performance compared to a 27k window. This suggests that models still suffer from "lost in the middle" issues and that the precision of retrieved files is more critical than the sheer volume of context.
Limitations and Future Directions
Currently, FEA-Bench is limited to Python repositories. Expanding the benchmark to include languages like Java, C++, or Go is a priority for future work. Additionally, these evaluations were primarily "one-shot." In real-world scenarios, developers iterate based on compiler errors or test failures. Future research should explore multi-turn "agentic" workflows where models are given the opportunity to self-correct based on execution feedback.
Conclusion
FEA-Bench highlights that while LLMs are making strides in coding, they are still far from autonomous feature developers. The low success rates across the board suggest that repository-level implementation requires a level of planning and architectural understanding that current models are only beginning to grasp. FEA-Bench provides a rigorous new standard for measuring progress toward truly autonomous software engineering.
Summary updated