Fine-Tuning LLMs to Analyze Multiple Dimensions of Code Review: A Maximum Entropy Regulated Long Chain-of-Thought Approach
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large Language Models (LLMs) have shown great potential in supporting automated code review due to their impressive capabilities in context understanding and reasoning. However, these capabilities are still limited compared to human-level cognition because they are heavily influenced by the training data. Recent research has demonstrated significantly improved performance through fine-tuning LLMs with code review data. However, compared to human reviewers who often simultaneously analyze multiple dimensions of code review to better identify issues, the full potential of these methods is hampered by the limited or vague information used to fine-tune the models. This paper contributes MelcotCR, a chain-of-thought (COT) fine-tuning approach that trains LLMs with an impressive reasoning ability to analyze multiple dimensions of code review by harnessing long COT techniques to provide rich structured information. To address context loss and reasoning logic loss issues that frequently occur when LLMs process long COT prompts, we propose a solution that combines the Maximum Entropy (ME) modeling principle with pre-defined reasoning pathways in MelcotCR to enable more effective utilization of in-context knowledge within long COT prompts while strengthening the logical tightness of the reasoning process. Empirical evaluations on our curated MelcotCR dataset and the public CodeReviewer dataset reveal that a low-parameter base model, such as 14B Qwen2.5, fine-tuned with MelcotCR can surpass state-of-the-art methods in terms of the accuracy of detecting and describing code issues, with its performance remarkably on par with that of the 671B DeepSeek-R1 model.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 23 of its 64 references that are in the map. First posted on arXiv 25 Sep 2025.
Builds on
23 of 64 references.
References · 23
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
- 2018Reinforcement Learning and Control as Probabilistic Inference: Tutorial and Reviewcited by 482
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 465
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 326
- 2025When More is Less: Understanding Chain-of-Thought Length in LLMscited by 183
- 2025Multimodal Chain-of-Thought Reasoning: A Comprehensive Surveycited by 182
11 more
- 2017Equivalence Between Policy Gradients and Soft Q-Learningcited by 173
- 2024Improve Vision Language Model Chain-of-thought Reasoningcited by 136
- 2025Preference Leakage: A Contamination Problem in LLM-as-a-judgecited by 125
- 2025Small Models Struggle to Learn from Strong Reasonerscited by 113
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
- 2024Navigating the Metrics Maze: Reconciling Score Magnitudes and Accuraciescited by 40
- 2024Chain-of-Thought Prompting of Large Language Models for Discovering and Fixing Software Vulnerabilitiescited by 31
- 2025BitsAI-CR: Automated Code Review via LLM in Practicecited by 22
- 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agentscited by 16
- 2023Explaining Explanation: An Empirical Study on Explanation in Code Reviewscited by 3
- 2024Distilling Desired Comments for Enhanced Code Review with Large Language Modelscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
- 2025Cross-Task Benchmarking and Evaluation of General-Purpose and Code-Specific Large Language Models ↗
- 2025Automated Code Review Using Large Language Models with Symbolic Reasoning
- 2025CodeCriticBench: A Holistic Code Critique Benchmark for Large Language Models
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?
- 2026LLM attribution analysis across different fine-tuning strategies and model scales for automated code compliance
- 2025Combining Large Language Models with Static Analyzers for Code Review Generation
- 2025LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs