跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2601.00376 (cs)
[提交于 2026年1月1日 (v1),最后修订于 2026年5月6日 (此版本, v3)]

标题:In Line with Context: Repository-Level Code Generation via Context Inlining

作者:Chao Hu, Wenhao Zeng, Yuling Shi, Beijun Shen, Xiaodong Gu
查看论文《In Line with Context: Repository-Level Code Generation via Context Inlining》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Repository-level code generation has attracted growing attention in recent years. Unlike function-level code generation, it requires the model to understand the entire repository, reasoning over complex dependencies across functions, classes, and modules. However, existing approaches such as retrieval-augmented generation (RAG) or context-based function selection often fall short: they primarily rely on surface-level similarity and struggle to capture the rich dependencies that govern repository-level semantics. In this paper, we introduce InlineCoder, a novel framework for repository-level code generation. InlineCoder enhances the understanding of repository context by inlining the unfinished function into its call graph, thereby reframing the challenging repository understanding as an easier function-level coding task. Given a function signature, InlineCoder first generates a draft completion, termed an anchor, which approximates downstream dependencies and enables perplexity-based confidence estimation. This anchor drives a bidirectional inlining process: (i) Upstream Inlining, which embeds the anchor into its callers to capture diverse usage scenarios; and (ii) Downstream Retrieval, which integrates the anchor's callees into the prompt to provide precise dependency context. The enriched context, combining draft completion with upstream and downstream perspectives, equips the LLM with a comprehensive repository view.
评论: Accepted to FSE 2026
主题: 软件工程 (cs.SE); 人工智能 (cs.AI)
引用方式: arXiv:2601.00376 [cs.SE]
  (或者 arXiv:2601.00376v3 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2601.00376

提交历史

来自:Chao Hu
[v1] 2026年1月1日 星期四 15:56:24 UTC (1,007 KB)
[v2] 2026年4月30日 星期四 03:19:30 UTC (1,004 KB)
[v3] 2026年5月6日 星期三 09:55:05 UTC (1,031 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-05
切换浏览方式为:
cs.SE
cs.AI

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站