Benchmarking LLMs for Fine-Grained Code Review with Enriched Context in Practice
Not on the map. Why?
Abstract (arXiv)
Code review is a cornerstone of software quality assurance, and recent advances in Large Language Models (LLMs) have shown promise in its automation. However, existing benchmarks for LLM-based code review face three major limitations. Lack of semantic context: most benchmarks provide only code diffs without textual information such as issue descriptions, which are crucial for understanding developer intent. Data quality issues: without rigorous validation, many samples are noisy-e.g., reviews on outdated or irrelevant code-reducing evaluation reliability. Coarse granularity: most benchmarks operate at the file or commit level, overlooking the fine-grained, line-level reasoning essential for precise review. We introduce ContextCRBench, a high-quality, context-rich benchmark for fine-grained LLM evaluation in code review. Our construction pipeline comprises: Raw Data Crawling, collecting 153.7K issues and pull requests from top-tier repositories; Comprehensive Context Extraction, linking issue-PR pairs for textual context and extracting the full surrounding function or class for code context; and Multi-stage Data Filtering, combining rule-based and LLM-based validation to remove outdated, malformed, or low-value samples, resulting in 67,910 context-enriched entries. ContextCRBench supports three evaluation scenarios aligned with the review workflow: hunk-level quality assessment, line-level defect localization, and line-level comment generation. Evaluating eight leading LLMs (four closed-source and four open-source) reveals that textual context yields greater performance gains than code context alone, while current LLMs remain far from human-level review ability. Deployed at ByteDance, ContextCRBench drives a self-evolving code review system, improving performance by 61.98% and demonstrating its robustness and industrial utility. https://github.com/kinesiatricssxilm14/ContextCRBench.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 17 of its 50 references that are in the map. First posted on arXiv 10 Nov 2025.
Builds on
17 of 50 references.
References · 17
- 2017Learning to Compare: Relation Network for Few-Shot Learningcited by 1,139
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023A Survey on Large Language Models for Recommendationcited by 378
- 2024LLMs instead of Human Judges? A Large Scale Empirical Study across 20 NLP Evaluation Taskscited by 236
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 93
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 50
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 35
- 2022AUGER: Automatically Generating Review Comments with Pre-training Modelscited by 23
- 2024AEGIS: An Agent-based Framework for General Bug Reproduction from Issue Descriptionscited by 15
- 2024RepoMasterEval: Evaluating Code Completion via Real-World Repositoriescited by 10
5 more
- 2023Generation-based Code Review Automation: How Far Are We?cited by 9
- 2024Modern Code Reviews -- Survey of Literature and Practicecited by 6
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generationcited by 6
- 2018CORRECT: Code Reviewer Recommendation in GitHub Based on Cross-Project and Technology Experiencecited by 4
- 2022Modeling Review History for Reviewer Recommendation:A Hypergraph Approachcited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026AACR-Bench: Evaluating Automatic Code Review with Holistic Repository-Level Contextcited by 5
- 2026Code Review Agent Benchmarkcited by 4
- 2026Agentic Code Review in the Terminal: A Trajectory-Level Analysis of Behavior, Cost, and Human-Alignmentcited by 1
- 2026Using Agentic AI for contextualized and multifaceted code review at Ericssoncited by 0
- 2026Using Agentic AI for contextualized and multifaceted code review at Ericsson14 Sep 2026
- 2026Agentic Code Review in the Terminal: A Trajectory-Level Analysis of Behavior, Cost, and Human-Alignment18 Jul 2026
- 2026Code Review Agent Benchmark24 Mar 2026
- 2026AACR-Bench: Evaluating Automatic Code Review with Holistic Repository-Level Context27 Jan 2026