Persistent Cross-Attempt State Optimization for Repository-Level Code Generation
Ruwei Pan, Jiangshuai Wang, Qisheng Zhang, Yueheng Zhu, Linhao Wu, Zixiong Yang, Yakun Zhang, Lu Zhang, Hongyu Zhang

TL;DR
LiveCoder introduces a persistent state framework for repository-level code generation, enabling knowledge reuse across attempts to improve efficiency and effectiveness of large language models.
Contribution
The paper presents LiveCoder, a novel method that maintains and leverages cross-attempt knowledge to enhance repository-level code generation.
Findings
Improves functional score by up to 22.94 percentage points.
Increases repository reuse to 81.58%.
Reduces cost by up to 53.63% on RAL-Bench.
Abstract
Large language models (LLMs) have achieved substantial progress in repository-level code generation. However, solving the same repository-level task often requires multiple attempts, while existing methods still optimize each attempt in isolation and do not preserve or reuse task-specific state across attempts. In this paper, we propose LiveCoder, a novel framework for repository-level code generation based on cross-attempt knowledge optimization. LiveCoder maintains persistent task-specific state from prior attempts to guide subsequent generation. This state includes success knowledge, which captures reusable signals from previously strong repositories, failure knowledge, which records unsuccessful outcomes and their diagnostic signals, and a historical-best repository, which preserves the strongest result found so far and prevents regression. These components collectively transform…
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
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
