Reproduce “On the Impact of Code Comments for Automated Bug-Fixing: An Empirical Study” 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

Antonio Vitale, Emanuela Guglielmi, Simone Scalabrino, Rocco Oliveto

An empirical study reveals that providing code comments to Large Language Models (LLMs) during both training and inference substantially improves their automated bug-fixing capabilities, leading to a threefold increase in exact match for CodeT5+ and a twofold increase for DeepSeek-Coder.

Key insights

  • Comments are most beneficial for Automated Bug Fixing when Large Language Models are both fine-tuned with comments and provided with them during inference.
  • Even without prior training on comments, LLMs can leverage external comment context at inference time to improve bug-fixing performance.
  • Interpretability analysis shows "how" comments, detailing implementation specifics, are generally the most important type for LLMs in identifying and correcting bugs.

Summary by alphaXiv.

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