mlsanityData to 14 Oct 2026

Rethinking Training Data for Generating Code Review Comments

arXiv 2607.25851 ↗First posted 28 Jul 2026cs.SEcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Generating code review comments has become a prominent research direction in automated code review, commonly formulated as a text generation task over diff-comment pairs. Despite advances in learning-based approaches, generated review comments are often generic, weakly grounded, or non-actionable. Recent studies have also shown that review comment datasets contain noisy or unsuitable training instances, motivating LLM-based dataset cleaning approaches. In this paper, we argue that problematic training instances are not homogeneous and that some limitations stem from deeper issues in the task formulation itself. Through an empirical inspection of a widely used review comment dataset, we identify misaligned training pairs: instances where the relationship between the code change and the review comment does not provide a reliable learning signal for generating actionable review feedback from localized inputs. We derive a taxonomy of misalignment capturing three recurring sources: semantic ambiguity, lack of actionability, and context dependence. We further explore whether incorporating this taxonomy into LLM-based filtering improves the identification of problematic training instances, observing that detecting misaligned training pairs remains challenging. Based on these observations, we argue that improving review comment generation requires more than dataset cleaning alone, motivating explicit validity criteria, richer contextual inputs, and evaluation practices aligned with review intent and actionability.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 2 of its 15 references that are in the map. First posted on arXiv 28 Jul 2026.

Builds on

2 of 15 references.

References · 2

  1. 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
  2. 2025Automating Code Review: A Systematic Literature Reviewcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Automated Classification of Human Code Review Comments with Large Language Models
  2. 2024Prompting and Fine-tuning Large Language Models for Automated Code Review Comment Generation
  3. 2025Leveraging Reward Models for Guiding Code Review Comment Generation
  4. 2024Distilling Desired Comments for Enhanced Code Review with Large Language Models
  5. 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLM
  6. 2025Retrieval-Augmented Code Review Comment Generation
  7. 2026HalluJudge: A Reference-Free Hallucination Detection for Context Misalignment in Code Review Automation
  8. 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models