Turning the Tide: Repository-based Code Reflection
Wei Zhang, Jian Yang, Jiaxi Yang, Ya Wang, Zhoujun Li, Zeyu Cui, Binyuan Hui, Junyang Lin

TL;DR
This paper introduces LiveRepoReflection, a challenging benchmark for multi-file repository code understanding, and RepoReflectionCoder, a model trained on a new instruction-tuning dataset, to improve code reflection capabilities in repositories.
Contribution
It presents a novel benchmark and training dataset specifically designed for repository-based code reflection, addressing limitations of previous benchmarks and models.
Findings
Over 40 LLMs evaluated on the new benchmark.
RepoReflectionCoder outperforms existing models in code understanding.
Benchmark reveals challenges in multi-file repository code reflection.
Abstract
Code large language models (LLMs) enhance programming by understanding and generating code across languages, offering intelligent feedback, bug detection, and code updates through reflection, improving development efficiency and accessibility. While benchmarks (e.g. HumanEval/LiveCodeBench) evaluate code generation and real-world relevance, previous works ignore the scenario of modifying code in repositories. Considering challenges remaining in improving reflection capabilities and avoiding data contamination in dynamic benchmarks, we introduce LiveRepoReflection, a challenging benchmark for evaluating code understanding and generation in multi-file repository contexts, featuring 1,888 rigorously filtered test cases across programming languages to ensure diversity, correctness, and high difficulty. Further, we create RepoReflection-Instruct, a large-scale, quality-filtered…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsEngineering and Information Technology
