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

Srijoni Majumdar, Soumen Paul, Bhargav Dave, Debjyoti Paul, Ayan Bandyopadhyay, Samiran Chattopadhyay, Partha Pratim Das, Paul D. Clough, Prasenjit Majumder

Abstract

Software maintainability is frequently compromised by "comment rot," where documentation becomes redundant, inconsistent, or uninformative. The Information Retrieval in Software Engineering (IRSE) track at FIRE 2023 investigated automated solutions for this problem, specifically focusing on binary classification to distinguish "Useful" from "Not Useful" code comments. This paper summarizes the findings from 17 participating teams, highlighting the role of Large Language Models (LLMs) in generating "silver standard" data to augment training sets. Results demonstrate that while LLM-generated data introduces specific biases, it acts as a regularizer that reduces model overfitting and improves classification performance by up to 4%.

Introduction

In modern software development, comments are vital for code comprehension. However, manual auditing of documentation to remove "noise" is a resource-intensive task. The IRSE track at FIRE 2023 sought to automate this process by challenging researchers to develop models that can identify comments providing non-obvious, relevant information. A central theme of the track was exploring whether high-quality, human-labeled "gold standard" data could be effectively supplemented by LLM-generated "silver standard" labels to overcome the high cost of manual data curation.

Methodology and Datasets

The core task involved binary classification: given a C-code snippet and an associated comment, the model must output a label of "Useful" (U) or "Not Useful" (NU). A comment is considered useful if it describes a software development concept relevant to the code that is not immediately obvious from the syntax itself.

Examples of code comments and snippets with their corresponding utility labels.

The study utilized a dataset of 9,048 code-comment pairs extracted from open-source C projects on GitHub, split into a development set of 8,048 rows and a test set of 1,000 rows. Participating teams employed diverse techniques, including:

  • Vector Space Representations: Ranging from traditional TF-IDF to context-aware models like BERT and ELMo.
  • Structural Analysis: Incorporating Abstract Syntax Trees (AST) and POS tagging to analyze the grammatical relationship between code and comments.
  • Data Augmentation: Using LLMs (such as GPT-3.5 or Llama) to generate supplementary labeled data.

Key Insights: The Overfitting/Bias Trade-off

A significant finding of the track was the impact of LLM-generated data on model behavior. While incorporating "silver" labels increased the inherent bias in prediction models, it simultaneously led to less over-fitted results. The synthetic data effectively served as a form of regularization, helping models generalize better to the unseen test set. Successful models prioritized the semantic correlation between the comment's intent and the code's logic rather than simple keyword matching.

Results and Performance

Most participating teams observed a performance boost when augmenting the human-labeled seed data with LLM-generated entries. As shown in the comparative results, F1-scores typically increased by 2% to 4% with the addition of silver data.

Comparative performance metrics (Precision, Recall, F1-Score) for teams using seed data versus augmented LLM data.

Top-performing models achieved exceptional accuracy, with teams like IIT ISM Dhanbad reaching F1-scores between 0.94 and 0.97. However, the results were not universally positive; some experimental setups saw slight performance decreases, suggesting that the quality of LLM augmentation is highly dependent on prompt engineering and data filtering strategies.

Conclusion and Future Work

The FIRE 2023 IRSE track confirms that LLMs can play a pivotal role in cleaning up software metadata. While the current research is limited to the C programming language, it provides a blueprint for scaling automated documentation auditing to other languages. Future research will focus on quantifying LLM bias and integrating these classifiers into real-time developer tools to help maintain high-quality documentation in legacy codebases.

Summary updated

BibTeX
@inproceedings{majumdar2023generative,
  author = {Srijoni Majumdar and Soumen Paul and Bhargav Dave and Debjyoti Paul and Ayan Bandyopadhyay and Samiran Chattopadhyay and Partha Pratim Das and Paul D. Clough and Prasenjit Majumder},
  title = {{Generative AI for Software Metadata: Overview of the Information Retrieval in Software Engineering Track at FIRE 2023}},
  booktitle = {Fire (working Notes)},
  year = {2023},
}
Figure