paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Can Code Metrics Enhance Documentation Generation for Computational Notebooks?

代码度量能提升计算笔记本的文档生成吗?
ASE Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering2024匹配度 2/10 · 该论文研究的是用代码度量特征增强计算笔记本文档生成的深度学习模型,属于经典的软件工程+ML 应用任务,既不涉及静态分析/形式化验证,也与 Agentic 程序、LLM/Agent 驱动的程序分析、浮点程序分析或贝叶斯程序分析无关。仅在'AI 用于代码'这一宽泛层面与画像有微弱交集,且方法上是特征增广式的准确率提升,缺少画像偏好的问题驱动分析或工业落地深度。引用 1 inbox
Mojtaba Mostafavi Ghahfarokhi, Hamed Jahantigh, Sepehr Kianiangolafshani, Ashkan Khademian, Alireza Asadi, Abbas Heydarnoori
crossref: 2026-09-12

AI 速览

一句话:该论文验证在计算笔记本文档生成中引入代码度量可显著提升深度学习模型准确率。

论文关注计算笔记本中代码文档常被忽视、手工撰写成本高的问题,研究自动文档生成。作者构建了 22K 个代码-文档对的数据集,在深度学习文档生成模型中加入代码度量特征,如代码行数、API 流行度和复杂度,并与未增强模型对比。结果表明,融入这些代码度量能显著提高文档生成的准确率,说明代码度量与高质量文档之间存在紧密联系,为计算笔记本的自动化文档工具提供了新思路。

问题
计算笔记本中的代码文档撰写耗时且常被忽视,而代码度量能否帮助自动化文档生成尚不明确。
方法
使用 22K 个代码-文档对数据集,比较带与不带代码度量增强的深度学习文档生成模型。
评估
在数据集上对比模型准确率,发现加入代码行数、API 流行度和复杂度等度量后,文档生成性能显著提升。
原文摘要(Abstract)

In software development, code documentation is crucial for collaboration and maintenance, especially as projects become more complex. However, it is often neglected due to the tedious effort it requires. This paper explores automating documentation generation for computational notebooks, focusing on the impact of code metrics such as lines of code, API popularity, and complexity on this task. Using a dataset of 22K code-documentation pairs, we compare deep learning models with and without code metric augmentation. The results show that incorporating these metrics significantly improves the accuracy of documentation generation, underscoring the connection between code metrics and quality documentation.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8297,
  title = {Can Code Metrics Enhance Documentation Generation for Computational Notebooks?},
  author = {Mojtaba Mostafavi Ghahfarokhi and Hamed Jahantigh and Sepehr Kianiangolafshani and Ashkan Khademian and Alireza Asadi and Abbas Heydarnoori},
  booktitle = {ASE},
  year = {2024},
  doi = {10.1145/3691620.3695334}
}