Reproduce “Too Noisy To Learn: Enhancing Data Quality for Code Review Comment Generation” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Chunhua Liu, Hong Yi Lin, Patanamon Thongtanunam

Researchers at The University of Melbourne developed an LLM-based semantic cleaning approach for code review comment datasets, demonstrating that training on the enhanced data substantially improves the accuracy and quality of generated comments. This method led to a 4.2-9.2% increase in BLEU-4 scores for comment generation models and reduced low-quality generated comments by up to 80%, even with significantly smaller training sets.

Key insights

  • LLMs demonstrated effective semantic understanding for classifying code review comments, achieving high precision (up to 85.1%) in identifying valid comments.
  • Data quality is more critical than data quantity; models trained on substantially smaller but semantically cleaned datasets outperform those trained on larger, noisier ones.
  • Simpler LLM prompts generally yielded better classification performance compared to more complex prompts with additional context or auxiliary rules.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.