@inproceedings{43251c268dae4ec1b57ca077b9a12fee,
title = "MS-CUP: A Multi-Source Code Comment Updating Method",
abstract = "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.",
keywords = "Comment update, Deep learning, Transformer",
author = "Jinong Li and Chunyan Ma and Wei Lin and Zhe Zhang",
note = "Publisher Copyright: {\textcopyright} 2025 IEEE.; 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer ; Conference date: 25-06-2025 Through 27-06-2025",
year = "2025",
doi = "10.1109/SNPD65828.2025.11253856",
language = "英语",
series = "Proceedings - 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "57--62",
editor = "Hyun Yoe and Hwang, \{Ha Jin\} and Meonghun Lee and Rackwoo Kim and Ryugap Lim and Sungtaek Lee and Seaeul Kim and Simon Xu and Miguel Garcia-Ruiz and Wenyin Feng and Alam, \{A B M Bodrul\} and Randy Lin and Ajmery Sultana and Faria Khandaker and Mahreen Nasir and Ken Higuchi and Shinichiro Mori and Teruhisa Hochin",
booktitle = "Proceedings - 29th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, SNPD 2025-Summer",
}