paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Generating Code Tours Using Locally-Runnable LLMs

使用本地可运行的大语言模型生成代码导览
FSE Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering2025匹配度 2/10 · 该论文用本地 LLM 自动生成面向调试的代码导览,属于代码理解与开发者工具,与用户核心方向(静态分析、形式化验证、浮点/贝叶斯程序分析及其与 LLM 的交叉)均无直接关联。它既不是把静态分析用于 AI 系统/Agentic 程序,也不是用 LLM 改进静态分析或形式化验证。引用 1 inbox
Martin Balfroid
crossref: 2026-09-12

AI 速览

一句话:探索用本地部署的 LLM 自动生成面向调试的代码导览,以降低新开发者上手与资深开发者带教的负担。

新开发者入职会带来可观的额外开销,往往需要资深开发者投入带教与撰写文档。代码导览(code tour)——对关键代码片段的结构化指引——能够简化这一过程,但人工编写仍然费时费力。本文提出一项研究计划,探讨如何利用本地可运行的大语言模型自动生成以调试为导向的代码导览;相比云端模型,本地模型在保密性、稳定性与可复现性上更具优势。作者计划应对三个关键挑战:其一,选取相关的代码片段;其二,生成清晰且具备上下文感知能力的解释;其三,自动评估所生成导览的质量。最终目标是自动产出持久、可验证的文档产物,帮助初级开发者浏览并理解代码库,从而减轻资深开发者的入职培训负担。

问题
新开发者入职需要资深开发者提供带教与文档,成本高昂;代码导览虽能缓解这一问题,但人工创建仍耗时耗力,且云端 LLM 在保密性、稳定性与可复现性方面存在不足。
方法
研究如何用本地可运行的大语言模型自动生成面向调试的代码导览,重点解决相关代码片段选取、上下文感知解释生成以及生成导览质量自动评估三个挑战。
评估
论文将自动评估生成的代码导览质量列为三大挑战之一,计划建立相应的自动评估手段;本文为研究计划,尚未给出具体实验结果。
原文摘要(Abstract)

Onboarding new developers is a considerable overhead, requiring senior developers to provide mentorship and documentation. Code tours—structured guides to key code sections—can streamline this process, yet their manual creation still requires time and effort. This research investigates how to automate the generation of debugging-focused code tours using locally runnable Large Language Models (LLMs), which provide more confidentiality, stability, and reproducibility than cloud-based models. We plan to address three key challenges: (1) selecting relevant code segments, (2) generating clear and context-aware explanations, and (3) automatically evaluating the quality of generated tours. Ultimately, our goal is to reduce the onboarding burden on senior developers by automatically generating persistent, verifiable documentation artifacts to help junior developers navigate and understand a codebase.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8974,
  title = {Generating Code Tours Using Locally-Runnable LLMs},
  author = {Martin Balfroid},
  booktitle = {FSE},
  year = {2025},
  doi = {10.1145/3696630.3731462}
}