A Dual-Architecture Approach for Automatic Code Comment Generation: Integrating Structural Features and Reinforcement Learning

View at publisher Summarise with VIRAT
Authors: G. Srinivas, Lasya Anala, G. Kalyani, P. Darshini, J.V.R.S.S.M. Hanish
Cited by: 0
References: 18

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Writing good code comments is time-consuming, and honestly, most developers skip it when deadlines are tight. This paper proposes two architectures to automate this: a Dual Encoder model that freezes CodeT5 and CodeBERT encoders and trains custom fusion modules; and a CodeT5-RL model with reinforcement learning. The Dual Encoder achieves 61.82% BLEU-4 and 99.43% BERTScore-F1 on CodeXGLUE Python, while CodeT5-RL achieves 91.32% BLEU-4 on CodeSearchNet. Without any fine-tuning, an interesting stark contrast is observed when testing on HumanEvalPack: the Dual Encoder performs much better at semantic understanding (85.56% BERTScore), while CodeT5-RL focuses more on lexical precision (10.23% BLEU-4). By training only 41.1% of the Dual Encoder parameters, the model can be deployed in realworld applications.

Fields of Study & Subjects

Software Engineering Research Topic Modeling Natural Language Processing Techniques

Publication details

Journal / source
International Conference on Intelligent Sustainable Systems (ICISS)
Pages
1629–1634
Publication date
4 March 2026
Language
EN