Competitive Programming with Large Reasoning Models

Ahmed El-Kishky, Alexander Wei, Andre Saraiva, Borys Minaiev, Daniel Selsam, David Dohan, Francis Song, Hunter Lightman, Ignasi Clavera Gilaberte, Jakub Pachocki, Jerry Tworek, Lorenz Kuhn, Lukasz Kaiser, Mark Chen, Max Schwarzer, Mostafa Rohaninejad, Nat McAleese, o3 contributors, Oleg Mürk, Rhythm Garg, Rui Shu, Szymon Sidor, Vineet Kosaraju, Wenda ZhouarXiv 2025 · DOI

Introduction

Competitive programming has long served as a "grand challenge" for artificial intelligence, requiring a synthesis of algorithmic intuition, mathematical reasoning, and precise implementation under strict constraints. OpenAI’s latest research into Large Reasoning Models (LRMs) demonstrates a paradigm shift: by scaling reinforcement learning (RL) and internal "chain-of-thought" processes, general-purpose models can now surpass specialized, hand-engineered systems. The latest iteration, o3, achieved gold-medal-level performance at the 2024 International Olympiad in Informatics (IOI) and reached the 99.8th percentile on Codeforces.

Methodology: The Evolution of Reasoning

The research tracks the progression of OpenAI’s reasoning capabilities through three distinct stages:

  1. OpenAI o1: A baseline model trained via RL to use Chain-of-Thought (CoT) reasoning. It breaks down complex problems into manageable steps and uses external tools like code interpreters for verification.
  2. o1-ioi: A specialized version fine-tuned for the IOI, utilizing a hand-crafted inference strategy that partitioned problems into subtasks and used complex clustering to select the best 50 submissions from 10,000 samples.
  3. o3: A general-purpose model that replaces domain-specific heuristics with massive scaling of RL training compute, proving that learned reasoning is more robust than human-crafted heuristics.

The Power of Scaling Compute

A central finding of this work is the relationship between compute and reasoning performance. Unlike traditional LLMs where performance is largely a function of parameter count, LRMs show significant gains from scaling both training and inference (test-time) compute.

Scaling of train-time and test-time compute leads to consistent improvements in reasoning accuracy, as seen in AIME benchmarks.

By allowing the model more "thinking time" during inference, it can explore a broader space of potential solutions and self-correct errors, following a log-linear performance trend. This "test-time compute" allows the model to refine its internal chain-of-thought before committing to an answer.

Benchmarks and Results

The models were evaluated against premier competitive programming platforms and real-world software engineering tasks, including Codeforces, IOI 2024, and SWE-bench Verified.

Codeforces and IOI Performance

On Codeforces, the base o1 model achieved a rating of 1673 (89th percentile). Through specialized strategies and further scaling, the performance trajectory moved toward the elite "Grandmaster" level.

Codeforces rating progression across different model iterations and inference strategies, showing the leap from base reasoning to specialized competitive performance.

While the figures illustrate the progression of the o1-series, the subsequent o3 model shattered these benchmarks, reaching a rating of 2724 (99.8th percentile). This places it among the top 200 active human competitors worldwide. In the IOI 2024 competition, under official rules (max 50 submissions), o3 scored 395.64 points, comfortably surpassing the gold-medal threshold of approximately 360 points.

Real-World Software Engineering

The reasoning capabilities generalized beyond competitive puzzles. On SWE-bench Verified, a human-validated subset of 500 real-world software issues from GitHub, o3 solved 71.7% of problems, a massive improvement over o1’s 48.9%.

Key Insights: Emergent Verification

Perhaps the most notable qualitative result was o3’s emergent behavior of "self-imposed validation." Without explicit instruction, the model frequently wrote simple brute-force solutions to verify the outputs of its more complex, optimized algorithms. This mirrors the behavior of elite human programmers and suggests that high-level verification strategies can be learned through RL rather than being hand-coded.

Conclusion

The success of o3 indicates that "learning to reason" is a more powerful and scalable path to state-of-the-art performance than domain-specific engineering. While the very top tier of human competitors (the top 100 globally) still holds a slight edge on the most novel algorithmic challenges, the gap is closing rapidly through the scaling of training and test-time compute.

Summary updated

BibTeX
@misc{elkishky2025competitive,
  author = {Ahmed El-Kishky and Alexander Wei and Andre Saraiva and Borys Minaiev and Daniel Selsam and David Dohan and Francis Song and Hunter Lightman and Ignasi Clavera Gilaberte and Jakub Pachocki and Jerry Tworek and Lorenz Kuhn and Lukasz Kaiser and Mark Chen and Max Schwarzer and Mostafa Rohaninejad and Nat McAleese and o3 contributors and Oleg Mürk and Rhythm Garg and Rui Shu and Szymon Sidor and Vineet Kosaraju and Wenda Zhou},
  title = {{Competitive Programming with Large Reasoning Models}},
  year = {2025},
  eprint = {2502.06807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06807},
}
Figure