OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Recent advancements in reasoning-based Large Language Models (LLMs), particularly their potential through test-time scaling, have created significant opportunities for distillation in code generation and critique. However, progress in both areas fundamentally depends on large-scale, high-quality datasets. In this work, we introduce OpenCodeReasoning-II, a dataset consists of 2.5M question-solution-critique triples (approx. 35K unique programming questions), making it nearly twice the size of the previous largest publicly available code reasoning dataset. In this work, we employ a two-stage supervised fine-tuning strategy. The first stage focuses on fine-tuning for code generation, while the second stage involves the joint training of models for both code generation and critique. Our resulting finetuned Qwen2.5-Instruct models achieve performance in code generation that either exceeds or equals the best prior open-weight distilled models. Notably, the integration of our code generation and critique models leads to significant improvements in competitive coding performance. Furthermore, we present an extension of the LiveCodeBench benchmark to specifically support the C++ programming language, thereby facilitating more comprehensive LLM evaluation using this benchmark.
Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 43 of its 66 references that are in the map. First posted on arXiv 11 Jul 2025.
Builds on
43 of 66 references.
Closest ancestors · 5
Same direction, newest first
- 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Coding2 Apr
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Coding4 Mar
- 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generation13 Feb
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb
- 2022Competition-Level Code Generation with AlphaCode8 Feb
Other references · 38
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,057
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
- 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
- 2025The Lessons of Developing Process Reward Models in Mathematical Reasoningcited by 402
26 more
- 2024Skywork-Reward: Bag of Tricks for Reward Modeling in LLMscited by 322
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
- 2024Inference Scaling Laws: An Empirical Analysis of Compute-Optimal Inference for Problem-Solving with Language Modelscited by 282
- 2025Inference-Time Scaling for Generalist Reward Modelingcited by 233
- 2024HelpSteer2: Open-source dataset for training top-performing reward modelscited by 232
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 215
- 2023Rethinking Benchmark and Contamination for Language Models with Rephrased Samplescited by 192
- 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 165
- 2025Thoughts Are All Over the Place: On the Underthinking of o1-Like LLMscited by 162
- 2025Llama-Nemotron: Efficient Reasoning Modelscited by 151
- 2023TACO: Topics in Algorithmic COde generation datasetcited by 150
- 2025RM-R1: Reward Modeling as Reasoningcited by 149
- 2024Generative Reward Modelscited by 148
- 2024Nemotron-4 340B Technical Reportcited by 143
- 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
- 2024HelpSteer2-Preference: Complementing Ratings with Preferencescited by 129
- 2025Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuningcited by 121
- 2025Scaling Test-Time Compute Without Verification or RL is Suboptimalcited by 82
- 2024AceMath: Advancing Frontier Math Reasoning with Post-Training and Reward Modelingcited by 76
- 2025Revisiting the Test-Time Scaling of o1-like Models: Do they Truly Possess Test-Time Scaling Capabilities?cited by 69
- 2025Critique Fine-Tuning: Learning to Critique is More Effective than Learning to Imitatecited by 61
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2024Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systemscited by 24
- 2024Genetic Instruct: Scaling up Synthetic Generation of Coding Instructions for Large Language Modelscited by 17
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
- 2024InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instructcited by 7
Built on by
Citing papers per year: 2025: 8; 2026: 16.
24 papers.
Sort:
By area:
- 2025Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving Clipping Policy Optimizationcited by 39
- 2025AgentMath: Empowering Mathematical Reasoning for Large Language Models via Tool-Augmented Agentcited by 17
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluationcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual Worldcited by 10
- 2026Distilled Reinforcement Learning for LLM Post-trainingcited by 7
- 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipescited by 6
- 2026ASTER: Agentic Scaling with Tool-integrated Extended Reasoningcited by 5
- 2026Test-Time Scaling in Reasoning LLMs: Inference Regimes, Evaluation, and Reproducibilitycited by 4
- 2025When Reasoning Meets Its Lawscited by 3
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoningcited by 3
- 2025The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Modelscited by 2
12 more
- 2026Learning Generative Selection for Best-of-Ncited by 2
- 2025Motif-2-12.7B-Reasoning: A Practitioner's Guide to RL Training Recipescited by 1
- 2026A Primer in Post-Training Reasoning Data: What We Know About How It Workscited by 1
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debuggingcited by 0
- 2026The Master Key Hypothesis: Unlocking Cross-Model Capability Transfer via Linear Subspace Alignmentcited by 0
- 2026Length Value Model: Scalable Value Pretraining for Token-Level Length Modelingcited by 0
- 2026Primal Generation, Dual Judgment: Self-Training from Test-Time Scalingcited by 0
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual Worldcited by 0
- 2026Post-training is (Massive) Supervised Learningcited by 0
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithmscited by 0
- 2026Don't Let Gains FADE: Breaking Down Policy Gradient Weights in RLcited by 0
- 2026Post-Training Language Models for Gold-Medal Performance in Coding Competitionscited by 0
- 2026Post-Training Language Models for Gold-Medal Performance in Coding Competitions2 Sep 2026
- 2026Test-Time Scaling in Reasoning LLMs: Inference Regimes, Evaluation, and Reproducibility4 Aug 2026
- 2026Distilled Reinforcement Learning for LLM Post-training19 Jul 2026
- 2026Don't Let Gains FADE: Breaking Down Policy Gradient Weights in RL1 Jul 2026
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms24 Jun 2026
- 2026A Primer in Post-Training Reasoning Data: What We Know About How It Works1 Jun 2026
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual World14 May 2026
- 2026Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling11 May 2026
- 2026Length Value Model: Scalable Value Pretraining for Token-Level Length Modeling29 Apr 2026
- 2026Post-training is (Massive) Supervised Learning20 Apr 2026
- 2026The Master Key Hypothesis: Unlocking Cross-Model Capability Transfer via Linear Subspace Alignment7 Apr 2026
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World19 Mar 2026
12 more
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoning4 Feb 2026
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debugging3 Feb 2026
- 2026Learning Generative Selection for Best-of-N2 Feb 2026
- 2026ASTER: Agentic Scaling with Tool-integrated Extended Reasoning1 Feb 2026
- 2025AgentMath: Empowering Mathematical Reasoning for Large Language Models via Tool-Augmented Agent23 Dec 2025
- 2025When Reasoning Meets Its Laws19 Dec 2025
- 2025Motif-2-12.7B-Reasoning: A Practitioner's Guide to RL Training Recipes11 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Models7 Oct 2025
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluation5 Oct 2025
- 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipes29 Sep 2025
- 2025Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving Clipping Policy Optimization11 Aug 2025
- 2025Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving Clipping Policy Optimizationcited by 39
- 2025AgentMath: Empowering Mathematical Reasoning for Large Language Models via Tool-Augmented Agentcited by 17
- 2025Don't Pass@k: A Bayesian Framework for Large Language Model Evaluationcited by 15
- 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipescited by 6
- 2026ASTER: Agentic Scaling with Tool-integrated Extended Reasoningcited by 5
- 2026Test-Time Scaling in Reasoning LLMs: Inference Regimes, Evaluation, and Reproducibilitycited by 4
- 2025When Reasoning Meets Its Lawscited by 3
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoningcited by 3
- 2025The Valley of Code Reasoning: Scaling Knowledge Distillation of Large Language Modelscited by 2
- 2026Learning Generative Selection for Best-of-Ncited by 2
- 2025Motif-2-12.7B-Reasoning: A Practitioner's Guide to RL Training Recipescited by 1
- 2026A Primer in Post-Training Reasoning Data: What We Know About How It Workscited by 1
12 most cited of 17 All 17 (JSON)
- 2026Post-Training Language Models for Gold-Medal Performance in Coding Competitions2 Sep 2026
- 2026Test-Time Scaling in Reasoning LLMs: Inference Regimes, Evaluation, and Reproducibility4 Aug 2026
- 2026Don't Let Gains FADE: Breaking Down Policy Gradient Weights in RL1 Jul 2026
- 2026A Primer in Post-Training Reasoning Data: What We Know About How It Works1 Jun 2026
- 2026Primal Generation, Dual Judgment: Self-Training from Test-Time Scaling11 May 2026
- 2026The Master Key Hypothesis: Unlocking Cross-Model Capability Transfer via Linear Subspace Alignment7 Apr 2026
- 2026Contextual Drag: How Errors in the Context Affect LLM Reasoning4 Feb 2026
- 2026Synthesizing File-Level Data for Unit Test Generation with Chain-of-Thoughts via Self-Debugging3 Feb 2026
- 2026Learning Generative Selection for Best-of-N2 Feb 2026
- 2026ASTER: Agentic Scaling with Tool-integrated Extended Reasoning1 Feb 2026
- 2025AgentMath: Empowering Mathematical Reasoning for Large Language Models via Tool-Augmented Agent23 Dec 2025
- 2025When Reasoning Meets Its Laws19 Dec 2025
12 newest of 17 All 17 (JSON)
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual Worldcited by 10
- 2026Distilled Reinforcement Learning for LLM Post-trainingcited by 7
- 2026Length Value Model: Scalable Value Pretraining for Token-Level Length Modelingcited by 0
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual Worldcited by 0
- 2026Post-training is (Massive) Supervised Learningcited by 0
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithmscited by 0
- 2026Distilled Reinforcement Learning for LLM Post-training19 Jul 2026
- 2026The Generalization Spectrum: A Chromatographic Approach to Evaluating Learning Algorithms24 Jun 2026
- 2026ML-Embed: Inclusive and Efficient Embeddings for a Multilingual World14 May 2026
- 2026Length Value Model: Scalable Value Pretraining for Token-Level Length Modeling29 Apr 2026
- 2026Post-training is (Massive) Supervised Learning20 Apr 2026
- 2026F2LLM-v2: Inclusive, Performant, and Efficient Embeddings for a Multilingual World19 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025Z1: Efficient Test-time Scaling with Code
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code
- 2025Infinite-Instruct: Synthesizing Scaling Code instruction Data with Bidirectional Synthesis and Static Verification
- 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
- 2025A Code Comprehension Benchmark for Large Language Models for Code
- 2025CodeCriticBench: A Holistic Code Critique Benchmark for Large Language Models
- 2025rStar-Coder: Scaling Competitive Code Reasoning with a Large-Scale Verified Dataset