paperbot · PL 论文追踪

全部论文 待读 收藏

P2 CodeGenLink: A Tool to Find the Likely Origin and License of Automatically Generated Code

CodeGenLink:一个查找自动生成代码可能来源与许可证的工具
ASE 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE)2025匹配度 3/10 · 该论文关注 LLM/Copilot 生成代码的来源溯源与许可证识别,与 AI 生成代码的工程生态有一定关联,但不涉及用户核心关注的静态分析、形式化验证、浮点程序分析或贝叶斯程序分析。其方法以 LLM+网页搜索+相似度分析为主,研究目标更偏工具与合规场景,而非 PL→AI 或 AI→PL 的方法论贡献。引用 0 inbox
Daniele Bifolco, Guido Annicchiarico, Pierluigi Barbiero, Massimiliano Di Penta, Fiorella Zampetti
crossref: 2026-09-12

AI 速览

一句话:提出 CodeGenLink,一个 VS Code 扩展,通过 LLM 搜索与相似性分析为 Copilot 生成代码推荐来源链接并标注许可证。

大语言模型(LLM)已广泛用于软件开发,但其生成代码缺乏来源信息,开发者难以评估可信度,并担心潜在的版权或许可证违规。本文提出 CodeGenLink,一个面向 GitHub Copilot 的 Visual Studio Code 扩展,旨在为自动生成代码推荐包含高度相似代码的链接,并在可能时指出其可能来源的许可证。该方法结合 LLM 及其网络搜索能力检索候选链接,再对生成代码与检索到的代码进行相似性分析,以过滤不相关结果。初步结果表明,CodeGenLink 能通过相似性分析有效过滤无关链接,并在信息可用时提供许可信息。该工具为 LLM 生成代码的溯源与许可证识别提供了一种集成于开发环境的实用方案。

问题
LLM 自动生成的代码缺少来源与许可证信息,开发者难以判断其可信度并可能面临版权或许可证违规风险。
方法
CodeGenLink 作为 VS Code 中 GitHub Copilot 的扩展,先利用 LLM 的网络搜索能力检索候选链接,再对生成代码与检索代码做相似性分析,筛选可能来源并尽可能给出许可证。
评估
论文给出初步结果,表明相似性分析能有效过滤不相关链接,并可在信息可用时提供许可证信息。
原文摘要(Abstract)

Large Language Models (LLMs) are widely used in software development tasks nowadays. Unlike reusing code taken from the Web, for LLMs' generated code, developers are concerned about its lack of trustworthiness and possible copyright or licensing violations, due to the lack of code provenance information. This paper proposes CodeGenLink, a GitHub CoPilot extension for Visual Studio Code aimed at (i) suggesting links containing code very similar to automatically generated code, and (ii) whenever possible, indicating the license of the likely origin of the code. CodeGenLink retrieves candidate links by combining LLMs with their web search features and then performs similarity analysis between the generated and retrieved code. Preliminary results show that CodeGenLink effectively filters unrelated links via similarity analysis and provides licensing information when available.Tool URL: https://github.com/danielebifolco/CodeGenLinkTool Video: https://youtu.be/M6nqjBf_pw

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot9211,
  title = {CodeGenLink: A Tool to Find the Likely Origin and License of Automatically Generated Code},
  author = {Daniele Bifolco and Guido Annicchiarico and Pierluigi Barbiero and Massimiliano Di Penta and Fiorella Zampetti},
  booktitle = {ASE},
  year = {2025},
  doi = {10.1109/ase63991.2025.00358}
}