跳到主要导航 跳到搜索 跳到主要内容

MS-CUP: A Multi-Source Code Comment Updating Method

  • Northwestern Polytechnical University Xian

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Code comments are vital for program comprehension and maintenance, yet developers often neglect to update them during code evolution, which results in inconsistent or misleading documentation. Existing methods for automatic comment updates, such as CUP, HEB-CUP, and HAT-CUP, primarily treat code as natural language text. These methods overlook the inherent structural properties of code and struggle to align complex code changes with comment semantics. To address these limitations, we propose MS-CUP, a multi-source fusion method that integrates old comment sequences, code edit sequences, and AST difference sequences within a Transformer- based architecture. By simplifying AST differences and leveraging multi-head attention mechanisms, MS-CUP captures syntactic and semantic dependencies between code evolution and comment updates. Experiments on a dataset of 108k code-comment coevolution samples demonstrate that MS-CUP outperforms other advanced methods, achieving improvements of 5.3% in Accuracy and 2.6% in Recall@5 at least.

源语言英语
主期刊名Proceedings - 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer
编辑Hyun Yoe, Ha Jin Hwang, Meonghun Lee, Rackwoo Kim, Ryugap Lim, Sungtaek Lee, Seaeul Kim, Simon Xu, Miguel Garcia-Ruiz, Wenyin Feng, A B M Bodrul Alam, Randy Lin, Ajmery Sultana, Faria Khandaker, Mahreen Nasir, Ken Higuchi, Shinichiro Mori, Teruhisa Hochin
出版商Institute of Electrical and Electronics Engineers Inc.
57-62
页数6
ISBN(电子版)9798331512583
DOI
出版状态已出版 - 2025
活动29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer - Busa, 韩国
期限: 25 6月 202527 6月 2025

出版系列

姓名Proceedings - 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer

会议

会议29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer
国家/地区韩国
Busa
时期25/06/2527/06/25

指纹

探究 'MS-CUP: A Multi-Source Code Comment Updating Method' 的科研主题。它们共同构成独一无二的指纹。

引用此