High-quality data augmentation for code comment classification
Preprint
Abstract
Code comments serve a crucial role in software development for documenting functionality, clarifying design choices, and assisting with issue tracking. They capture developers' insights about the surrounding source code, serving as an essential resource for both human comprehension and automated analysis. Nevertheless, since comments are in natural language, they present challenges for machine-based code understanding. To address this, recent studies have applied natural language processing (NLP) and deep learning techniques to classify comments according to developers' intentions. However, existing datasets for this task suffer from size limitations and class imbalance, as they rely on manual annotations and may not accurately represent the distribution of comments in real-world codebases. To overcome this issue, we introduce new synthetic oversampling and augmentation techniques based on high-quality data generation to enhance the NLBSE'26 challenge datasets. Our Synthetic Quality Oversampling Technique and Augmentation Technique (Q-SYNTH) yield promising results, improving the base classifier by $2.56\%$.
Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Optimizing Deep Learning Models to Address Class Imbalance in Code Comment Classification2025
- Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference2025
- How to identify class comment types? A multi-language approach for class comment classificationJournal of Systems and Software, 2021
- Self-admitted technical debt practices: a comparison between industry and open-sourceEmpirical Software Engineering, 2021
- Survey on deep learning with class imbalanceJournal of Big Data, 2019
- The class imbalance problem: A systematic study1Intelligent Data Analysis: An International Journal, 2002