Reproduce “Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generation” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zhongxin Liu, Zhonghao Jiang, Zhifan Ye, Haoye Wang, Jiakun Liu, Xiaoxue Ren
A framework named DyCoder introduces DyRetriever, an LLM-driven context retrieval method that dynamically constructs partial dependency graphs for repository-level code generation. This approach significantly improves code generation effectiveness (up to 59.73% relative Pass@1 improvement) and efficiency (7.4 times faster than previous graph methods) compared to existing retrieval-augmented generation techniques.
Key insights
- Simulating human developers' iterative, on-demand exploration of partial dependency graphs with LLM guidance can efficiently and effectively retrieve context for code generation.
- Dynamically constructed partial dependency graphs offer greater flexibility and significantly reduce the computational and maintenance overhead associated with static, global graphs.
- Integrating LLM-driven semantic context retrieval with similarity-based methods yields complementary information, leading to enhanced overall code generation performance.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.