Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Models

Mehrzad Samadi, Aleksander Ficek, Sean Narenthiran, Siddhartha Jain, Wasi Uddin Ahmad, Somshubra Majumdar, Vahid Noroozi, Boris Ginsburg

TL;DR

This paper introduces GENCLUSTER, a scalable and reproducible test-time compute framework that enables an open-weight LLM (gpt-oss-120b) to achieve a gold medal at the International Olympiad in Informatics (IOI) 2025 for the first time. By combining large-scale parallel generation, behavioral clustering, and an LLM-driven tournament ranking system, the framework successfully navigates strict submission limits to unlock advanced reasoning in open models.

What Problem Does This Paper Address?

Competitive programming competitions like the IOI represent the pinnacle of algorithmic problem-solving, serving as a premier benchmark for evaluating AI reasoning. While proprietary models (such as OpenAI's o1 and o3) have claimed gold-medal status, their specialized test-time compute methods and models remain closed and undisclosed.

Achieving comparable results with open-weight models is exceptionally difficult. Competitive programming tasks feature highly complex problem spaces where only a tiny fraction of generated code is correct. Furthermore, systems must operate under a strict human-contestant budget of 50 submissions per problem. The authors address this gap by providing a transparent, reproducible framework to scale test-time compute effectively for open-weight models.

Methods

The authors propose GENCLUSTER, a four-stage pipeline designed to maximize performance under a limited submission budget:

  1. Parallel Candidate Generation: The model generates a large pool of $K$ candidate solutions (up to 5,000) in parallel.
  2. Behavioral Clustering: To reduce the candidate pool, solutions are grouped by execution behavior. The framework instructs the LLM to generate randomized test inputs alongside independent validator programs. Candidates that produce identical outputs across these validated test cases are clustered together.
  3. Tournament Ranking: Because majority voting fails on ultra-hard problems where correct answers are rare, GENCLUSTER runs a partial round-robin tournament between clusters. The solution with the longest reasoning trace represents its cluster, and an LLM acts as a judge to pick the winner in pairwise code comparisons. Clusters are ranked by total wins.
  4. Submission Strategy: Solutions are submitted to the official grader using a budget-aware round-robin strategy across clusters and subtasks, prioritizing the longest reasoning chains within top-ranked clusters until a subtask is solved.
Figure 1: The overall pipeline of GENCLUSTER for a single subtask, a process to be repeated for every subtask in the IOI benchmark.

Datasets

The framework is evaluated on IOI-2025, a benchmark constructed from the official tasks of the 2025 International Olympiad in Informatics. Following official scoring guidelines, the dataset is organized at the subtask level (2–12 subtasks per problem) to allow independent evaluation and granular scoring, mimicking the structure of the publicly available IOI-2024 benchmark on Hugging Face.

Key Insights and Ideas

  • Reasoning Length as a Proxy for Quality: Within a behavioral cluster, the length of the reasoning trace correlates positively with correctness. Selecting the longest-thinking solution as the cluster representative significantly outperformed random selection.
  • The Double-Edged Sword of Test Set Size: Increasing the number of synthetic test cases improves cluster purity (F1-score), meaning good and bad solutions are separated accurately. However, it also fragments the pool into a larger number of distinct clusters, making it harder to identify the best ones within a tight submission budget.
Figure 4: Shown are the cluster purity (F1-score), av- erage cluster size, and average number of clusters for different numbers of test cases. Results are reported for K = 5000 using gpt-oss-120b.
  • Model Scalability Varies: Not all open models scale equally with test-time compute. While gpt-oss-120b shows strong, consistent gains as the generation budget scales up to 5,000, other models like Qwen3-235B-A22B saturate early.

Key Results

  • Gold Medal Achievement: Armed with GENCLUSTER and a budget of 5,000 generations, gpt-oss-120b achieved a score of 446.75 on the IOI 2025 benchmark, comfortably clearing the official Gold Medal threshold of 438.3. This marks the first time an open-weight model has achieved gold-level performance.
Figure 3: Performance of gpt-oss-120b on IOI 2025 with and without the 50-submission limit, varying generation counts. Results are averaged over five runs (except K=5000, single run). Medal thresholds are indicated on the chart, and the score reported by OpenAI is shown for comparison.
  • Human-Level Ranking: This score corresponds to a 26th place ranking among all human contestants at IOI 2025.
  • Superiority Over Baselines: GENCLUSTER outperformed standard selection methods like majority voting (314.22) and cluster-size ranking (299.87) by over 130 points.
Figure 2: Final scores of different models on IOI 2025 when generating K solutions per subtask, assuming unlimited submissions. Medal thresholds are indicated on the chart, and the maximum achievable score is 600.

Limitations and Future Work

  • Extreme Compute Costs: The framework is incredibly resource-intensive, requiring roughly 7.3 billion tokens for candidate generation and another 7.3 billion tokens for the LLM-as-a-judge tournament per benchmark run, limiting its real-time applicability.
  • Synthetic Test Blind Spots: Relying on model-generated test cases means rare corner cases might be missed, causing incorrect solutions to cluster with correct ones.
  • LLM Judge Biases: The tournament ranking relies on an LLM judge, which can be noisy and influenced by superficial features like code style or explanation verbosity rather than true logical correctness.

Summary updated

Abstract

Competitive programming has become a rigorous benchmark for evaluating the reasoning and problem-solving capabilities of large language models (LLMs). The International Olympiad in Informatics (IOI) stands out as one of the most prestigious annual competitions in competitive programming and has become a key benchmark for comparing human and AI-level programming ability. While several proprietary models have been claimed to achieve gold medal-level performance at the IOI, often with undisclosed methods, achieving comparable results with open-weight models remains a significant challenge. In this paper, we present GenCluster, a scalable and reproducible test-time compute framework that attains IOI gold-level performance using open-weight models. It combines large-scale generation, behavioral clustering, ranking, and a round-robin submission strategy to efficiently explore diverse solution spaces under limited validation budgets. Our experiments show that the performance of our proposed approach scales consistently with available compute, narrowing the gap between open and closed systems. Notably, we will show that GenCluster can achieve a gold medal at IOI 2025 for the first time with an open-weight model gpt-oss-120b, setting a new benchmark for transparent and reproducible evaluation of reasoning in LLMs
BibTeX
@inproceedings{samadi2026scaling,
  author = {Mehrzad Samadi and Aleksander Ficek and Sean Narenthiran and Siddhartha Jain and Wasi Uddin Ahmad and Somshubra Majumdar and Vahid Noroozi and Boris Ginsburg},
  title = {{Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1532},
}
Figure