KFCC: A differentiation-aware and keyword-guided fine-grain code comment generation model

Rui Zhang, Ziyue Qiao, Chenghao Zhang, Jianjun Yu

Abstract

Highlights•A new scene of generating fine-grain comments with the help of method-level Comments.•Keyword-Guided Fine-Grain Comment Extractor is applied to generation via gate fusion.•Differentiation-aware enhancing encoder comprehension enhances the model's robustness.•Our proposed model outperforms all benchmarks, whether automated or human evaluation.•All auxiliary modules and all variant strategies contribute to our KFCC model.
BibTeX
@article{zhang2024kfcc,
  author = {Rui Zhang and Ziyue Qiao and Chenghao Zhang and Jianjun Yu},
  title = {{KFCC: A differentiation-aware and keyword-guided fine-grain code comment generation model}},
  journal = {Expert Systems with Applications},
  year = {2024},
  doi = {10.1016/j.eswa.2024.123946},
}

Loading related content...

Figure