Skip to main content
QUICK REVIEW

[Paper Review] Generative AI for Software Metadata: Overview of the Information Retrieval in Software Engineering Track at FIRE 2023

Srijoni Majumdar, Soumen Paul|arXiv (Cornell University)|Oct 27, 2023
Software Engineering ResearchComputer Science5 citations
TL;DR

This paper evaluates the use of large language model (LLM)-generated 'silver standard' labels to improve binary classification of code comments as 'useful' or 'not useful' for software maintainability. Using a dataset of 9,048 C-based GitHub comments and LLM-augmented data, 17 teams submitted 56 experiments; results show LLM labels reduce model overfitting and modestly improve F1 scores (up to 4% gain), validating their utility in scaling comment quality assessment with minimal gold-standard labeling effort.

ABSTRACT

The Information Retrieval in Software Engineering (IRSE) track aims to develop solutions for automated evaluation of code comments in a machine learning framework based on human and large language model generated labels. In this track, there is a binary classification task to classify comments as useful and not useful. The dataset consists of 9048 code comments and surrounding code snippet pairs extracted from open source github C based projects and an additional dataset generated individually by teams using large language models. Overall 56 experiments have been submitted by 17 teams from various universities and software companies. The submissions have been evaluated quantitatively using the F1-Score and qualitatively based on the type of features developed, the supervised learning model used and their corresponding hyper-parameters. The labels generated from large language models increase the bias in the prediction model but lead to less over-fitted results.

Motivation & Objective

  • To investigate whether LLM-generated labels can effectively augment gold-standard datasets for classifying code comment usefulness in software engineering.
  • To evaluate the impact of silver-standard labels (from LLMs) on model generalization and performance in comment quality classification.
  • To analyze how different features, embedding techniques, and machine learning models affect classification performance when trained on combined gold and LLM-generated labels.
  • To understand the trade-offs between bias introduced by LLM labels and reduced overfitting in comment quality prediction models.
  • To establish a scalable, data-efficient approach for comment quality assessment applicable across diverse software systems and programming languages.

Proposed method

  • The study uses a binary classification task to label code comments as 'useful' or 'not useful' based on their contribution to code comprehension.
  • A seed dataset of 9,048 C-based code-comment pairs was collected from open-source GitHub projects, with human-annotated 'gold' labels.
  • Additional datasets were generated using LLMs (e.g., GPT-2, BERT) to produce 'silver-standard' labels for data augmentation.
  • Teams applied various textual, structural, and semantic features—such as TF-IDF, word2vec, BERT embeddings, POS tagging, and AST-based correlations—to represent code and comment pairs.
  • Supervised learning models (e.g., neural networks, SVMs) were trained on combined gold and silver-standard data, with performance evaluated via F1-score, precision, and recall.
  • Model performance was assessed quantitatively on the gold-standard test set and qualitatively based on feature design, model choice, and hyperparameter tuning.

Experimental results

Research questions

  • RQ1Can LLM-generated labels effectively improve the performance of machine learning models in classifying code comments as useful or not useful?
  • RQ2How does incorporating silver-standard labels from LLMs affect model bias and overfitting in comment quality classification?
  • RQ3What types of features and embedding techniques yield the most robust performance when training on mixed gold and LLM-generated labels?
  • RQ4To what extent does data augmentation with LLM-generated labels improve generalization across diverse codebases and comment styles?
  • RQ5How do different LLMs and prompting strategies influence the quality and reliability of synthetic labels for software metadata tasks?

Key findings

  • The integration of LLM-generated silver-standard labels led to a modest but consistent improvement in F1-score, with gains ranging from 2% to 4% across multiple submissions.
  • Despite introducing some bias, LLM-generated labels significantly reduced model overfitting, particularly when training on smaller gold-standard datasets.
  • Teams using BERT and ELMo embeddings achieved higher F1-scores (e.g., 0.885 on the DDU-1 dataset) compared to simpler methods like TF-IDF or one-hot encoding.
  • The best-performing models used a combination of textual features (e.g., POS tags, word frequency) and code-comment correlation features (e.g., grep-like string matching) to enhance semantic alignment.
  • The DDU-1 team achieved the highest F1-score of 0.893 on the combined dataset, demonstrating strong generalization with LLM-augmented data.
  • Several teams reported performance degradation when using only LLM-generated data, highlighting the importance of combining it with gold-standard labels for optimal results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.