mlsanityData to 14 Oct 2026

Leveraging Generative AI: Improving Software Metadata Classification with Generated Code-Comment Pairs

arXiv 2311.03365 ↗First posted 14 Oct 2023cs.SE cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

In software development, code comments play a crucial role in enhancing code comprehension and collaboration. This research paper addresses the challenge of objectively classifying code comments as "Useful" or "Not Useful." We propose a novel solution that harnesses contextualized embeddings, particularly BERT, to automate this classification process. We address this task by incorporating generated code and comment pairs. The initial dataset comprised 9048 pairs of code and comments written in C, labeled as either Useful or Not Useful. To augment this dataset, we sourced an additional 739 lines of code-comment pairs and generated labels using a Large Language Model Architecture, specifically BERT. The primary objective was to build classification models that can effectively differentiate between useful and not useful code comments. Various machine learning algorithms were employed, including Logistic Regression, Decision Tree, K-Nearest Neighbors (KNN), Support Vector Machine (SVM), Gradient Boosting, Random Forest, and a Neural Network. Each algorithm was evaluated using precision, recall, and F1-score metrics, both with the original seed dataset and the augmented dataset. This study showcases the potential of generative AI for enhancing binary code comment quality classification models, providing valuable insights for software developers and researchers in the field of natural language processing and software engineering.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 3 of its 13 references that are in the map. First posted on arXiv 14 Oct 2023.

Builds on

3 of 13 references.

References · 3

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2018Predicting Usefulness of Code Review Comments using Textual Features and Developer Experiencecited by 13
  3. 2019Associating Natural Language Comment and Source Code Entitiescited by 6

Built on by

Not cited yet.