Towards Improving the Performance of Comment Generation Models by Using Bytecode Information
IEEE Transactions on Software Engineering · 2025-02 · 51 (2) · 503-520
DOI: 10.1109/tse.2024.3523713 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2025-02. Verfasst von Yuan Huang und 3 weiteren Autor:innen. Die Arbeit wurde bisher 4-mal zitiert (Crossref) und nennt 67 Literaturangaben. Gefördert von: National Key R&D Program of China, National Natural Science Foundation of China, Natural Science Foundation of Guangdong Province.
Abstract (Originalsprache)
Code comment plays an important role in program understanding, and a large number of automatic comment generation methods have been proposed in recent years. To get a better effect of generating comments, many studies try to extract a variety of information (e.g., code tokens, AST traverse sequence, APIs call sequence) from source code as model input. In this study, we found that the bytecode compiled from the source code can provide useful information for comment generation, hence we propose to use the information from bytecode to assist the comment generation. Specifically, we extract the control flow graph (CFG) from the bytecode and propose a serialization method to obtain the CFG sequence that preserves the program structure. Then, we discuss three methods for introducing bytecode information for different models. We collected 390,000 Java methods from the maven repository, and created a dataset of 101,124 samples after deduplication and preprocessing to evaluate our method. The results show that introducing the information extracted from the bytecode can improve the BLEU-4 of 7 comment generation models.
Förderung
- National Key R&D Program of China
- National Natural Science Foundation of China
- Natural Science Foundation of Guangdong Province
Zitieren
APA
Huang, Y., Huang, J., Chen, X., & Zheng, Z. (2025). Towards Improving the Performance of Comment Generation Models by Using Bytecode Information. IEEE Transactions on Software Engineering, 51(2), 503-520. https://doi.org/10.1109/tse.2024.3523713
Vancouver
Huang Y, Huang J, Chen X, Zheng Z. Towards Improving the Performance of Comment Generation Models by Using Bytecode Information. IEEE Transactions on Software Engineering. 2025;51(2):503-520. doi:10.1109/tse.2024.3523713
BibTeX
@article{Huang2025,
author = {Huang, Yuan and Huang, Jinbo and Chen, Xiangping and Zheng, Zibin},
title = {Towards Improving the Performance of Comment Generation Models by Using Bytecode Information},
journal = {IEEE Transactions on Software Engineering},
year = {2025},
volume = {51},
number = {2},
pages = {503--520},
doi = {10.1109/tse.2024.3523713}
}
EUVIMED