FeatBench: Towards More Realistic Evaluation of Feature-level Code Generation

Haorui Chen, Chengze Li, Jia Li
9/26/2025
cs.CLcs.AIcs.SE

No official code found. Best implementation: TsinghuaISE/FeatBench (14 stars, MIT, last commit 2026-03-13).

Abstract

Evaluating Large Language Models (LLMs) on repository-level feature implementation is a critical frontier in software engineering. However, establishing a benchmark that faithfully mirrors realistic development scenarios remains a significant challenge. Existing feature-level benchmarks generally suffer from two primary limitations: unrealistic task inputs enriched with code hints and significant data leakage risks due to their static nature. To address these limitations, we propose a new benchmark - FeatBench, which introduces the following advances: (1) Realistic Task Inputs. Task inputs consist solely of natural language requirements, strictly devoid of code hints (e.g., function signatures). This format mirrors realistic software development by requiring agents to independently bridge the gap between abstract user intent and concrete code changes. (2) Evolving Data. FeatBench employs a fully automated pipeline to construct new benchmark versions from the latest repositories, effectively mitigating data contamination. The initial release comprises 157 tasks sourced from 27 actively maintained repositories. We evaluate two state-of-the-art agent frameworks with four leading LLMs on FeatBench. The results reveal that FeatBench poses a significant challenge, with the highest resolved rate reaching only 29.94%. Crucially, our analysis uncovers a prevalent behavioral pattern of aggressive implementation, which leads to "scope creep" and widespread regressions where agents break existing features by diverging from the user's explicit intent. We release FeatBench, our automated pipeline, and all experimental results to facilitate further community research.

View on arXivView PDF

Code Implementations(1)

MIT

Offical implementation of our paper "FeatBench: Towards More Realistic Evaluation of Feature-level Code Generation".

142PythonSep 25, 20257 months agoMIT

Similar Papers

Cite this paper

@article{chen2025featbench,
  title  = {FeatBench: Towards More Realistic Evaluation of Feature-level Code Generation},
  author = {Haorui Chen and Chengze Li and Jia Li},
  year   = {2025},
  eprint = {2509.22237},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.22237v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.22237.svg)](https://codeofpaper.com/paper/2509.22237)

Discussion