TL;DR
X-Coder demonstrates that code LLMs can achieve expert-level competitive programming performance using an entirely synthetic post-training pipeline. By synthesizing and rigorously verifying tasks, solutions, and test cases from scratch, the authors successfully execute a complete SFT-to-RL cycle without directly using any real-world training data, boosting performance by over 40 percentage points.
What Problem Does This Paper Address?
While basic programming benchmarks like HumanEval are largely considered solved, competitive programming (e.g., Codeforces, LiveCodeBench) remains a major challenge for LLMs. Training models to handle these complex algorithmic problems typically requires massive amounts of high-quality data.
However, real-world competitive programming data is finite and heavily exhausted. This scarcity creates a bottleneck for scaling laws and raises serious concerns about benchmark contamination—where models accidentally memorize test-like questions during training. The authors of this paper tackle a fundamental question: Can we train models to reach expert-level coding reasoning without reusing real-world tasks, solutions, or test cases in post-training?
Methods
To eliminate direct dependence on real-world data, the authors developed a fully synthetic data generation and verification pipeline consisting of four main stages:
- Task Generation: Instead of inventing problems blindly, the pipeline extracts abstract competition-related features from 10k real-world code snippets (from the TACO dataset) and evolves them into a complex feature tree. It then uses a two-stage process—separating feature selection from scenario formulation—to generate hint-free, multi-style tasks (matching Codeforces, LeetCode, and AtCoder styles).
- Test Input Generation: To build robust test suites, the authors leveraged CYaRon, a dedicated test-case generation library, allowing the teacher LLM to programmatically construct complex boundary and stress-test inputs.
- Candidate Solution Generation: Multiple open-source reasoning LLMs sample candidate solutions, complete with Chain-of-Thought (CoT) reasoning paths.
- Dual-Verification: To eliminate noise from the synthetic data, the authors introduced a two-step verification strategy. First, Consensus Voting runs all candidate solutions against the generated inputs; a majority vote establishes the provisional ground-truth test outputs. Second, Weighted Evaluation & Hold-out Validation scores solutions based on test case difficulty (e.g., prioritizing edge cases) and validates them on an unseen hold-out set to select the final "golden solution."
Finally, the high-quality synthetic assets are used to train the X-Coder model series via Supervised Fine-Tuning (SFT) on the golden solutions, followed by Reinforcement Learning (RL) using the Group Relative Policy Optimization (GRPO) algorithm, where rewards are directly tied to passing the synthetic test cases.
Datasets
- Training Data: The final synthetic dataset was scaled up to 200k unique prompts for SFT and 40k prompts for RL.
- Evaluation Benchmarks: The models were evaluated on LiveCodeBench (v5 and v6) to test clean, contamination-free performance, as well as LiveBench, Codeforces, and MBPP+ to assess broader generalization.
Key Insights and Ideas
- Task Diversity Trumps Solution Diversity: Under a fixed compute budget, scaling the number of unique tasks (broader algorithmic coverage) is significantly more effective for model generalization than generating multiple solutions for the same task.
- Long-CoT as a Quality Filter: Tasks that naturally prompt models to generate longer Chain-of-Thought reasoning paths serve as an excellent heuristic for data selection. Pruning datasets to favor long-CoT tasks yields much higher training efficiency.
- Verification is Non-Negotiable: Training on dual-verified solutions outperformed raw, unverified synthetic solutions by 6.4 points on LiveCodeBench v5, proving that filtering out stochastic noise is critical when using synthetic data.
- Strong SFT Initializers Supercharge RL: Starting RL training from a highly optimized SFT model places the policy in a more promising region of the solution space, making execution rewards far more informative and easier to exploit.
Key Results
The resulting model series, X-Coder, achieved state-of-the-art performance among open-source models trained on synthetic data:
- X-Coder-14B achieved 67.5% avg@8 on LiveCodeBench v5 and 63.4% on v6, outperforming its base model by over 40 points and beating several pipelines trained on real-world data.
- X-Coder-7B reached 62.9% on LCB v5, matching the performance of larger models like Qwen3-8B while requiring 8x fewer rollouts during test-time scaling.
Limitations and Future Work
While highly successful, the authors note that their approach is currently limited to self-contained competitive programming tasks and does not yet extend to repository-level software engineering, debugging, or visual coding tasks.
Additionally, dual-verification is not entirely perfect; human audits revealed a 12.7% residual error rate before deterministic filtering, meaning that correlated errors among teacher models can occasionally slip through. Future work will focus on improving test synthesis, incorporating adversarial testing, and exploring more concise reasoning controls to prevent context-window exhaustion.
Summary updated