Turning the Tide: Repository-based Code Reflection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Wei, Yang, Jian, Yang, Jiaxi, Wang, Ya, Li, Zhoujun, Cui, Zeyu, Hui, Binyuan, Lin, Junyang
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913939767427072
author Zhang, Wei
Yang, Jian
Yang, Jiaxi
Wang, Ya
Li, Zhoujun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
author_facet Zhang, Wei
Yang, Jian
Yang, Jiaxi
Wang, Ya
Li, Zhoujun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
contents 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 $6$ programming languages to ensure diversity, correctness, and high difficulty. Further, we create RepoReflection-Instruct, a large-scale, quality-filtered instruction-tuning dataset derived from diverse sources, used to train RepoReflectionCoder through a two-turn dialogue process involving code generation and error-driven repair. The leaderboard evaluates over 40 LLMs to reflect the model performance of repository-based code reflection.
format Preprint
id arxiv_https___arxiv_org_abs_2507_09866
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Turning the Tide: Repository-based Code Reflection
Zhang, Wei
Yang, Jian
Yang, Jiaxi
Wang, Ya
Li, Zhoujun
Cui, Zeyu
Hui, Binyuan
Lin, Junyang
Software Engineering
Artificial Intelligence
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 $6$ programming languages to ensure diversity, correctness, and high difficulty. Further, we create RepoReflection-Instruct, a large-scale, quality-filtered instruction-tuning dataset derived from diverse sources, used to train RepoReflectionCoder through a two-turn dialogue process involving code generation and error-driven repair. The leaderboard evaluates over 40 LLMs to reflect the model performance of repository-based code reflection.
title Turning the Tide: Repository-based Code Reflection
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2507.09866