TL;DR
CoDiQ introduces a novel framework for generating controllable, competition-grade math and coding questions by leveraging test-time scaling. By optimizing an 8B parameter model via reinforcement learning to balance difficulty and solvability, the authors produced a 44K dataset (CoDiQ-Corpus) that significantly boosts the reasoning performance of downstream models through curriculum learning.
What Problem Does This Paper Address?
Large Reasoning Models (LRMs) thrive on complex, competition-level problems. However, automatically generating such data at scale is notoriously difficult. Existing synthesis methods suffer from a "generator capacity ceiling" (models struggle to create problems harder than they can reliably solve themselves) and a "solvability-complexity trade-off" (pushing for complexity often breaks logical consistency, leading to unsolvable or "fake hard" questions). Furthermore, without a reliable way to measure and control difficulty, curriculum-style training remains brittle and difficult to scale without expensive human intervention.
Methods
The authors introduce CoDiQ (Controllable Difficult Question Generation), which uses an iterative evolutionary loop to scale up difficulty at inference time.
- CoDiQ Pipeline: Takes a seed question and progressively evolves it into harder variants over multiple rounds (up to $T_{max} = 8$).
- Difficulty-Enhancement Strategies: Six structured cognitive scaffolds (e.g., Dimensionality & Constraints, Theorem Disguise, State Explosion) guide the LLM to inject deep algorithmic complexity rather than superficial changes.
- Dual Verification Modules: To maintain quality, the pipeline uses LLMs-Ranking (listwise estimation via Doubao-Seed-1.8) and a trajectory-based ValueNetwork (an MLP predicting correctness probability from Qwen3-8B hidden states) to continuously estimate relative difficulty, alongside a separate model (Qwen3-32B) to verify problem solvability.
- CoDiQ-Generator: To push past the generator ceiling, the authors fine-tuned a Qwen3-8B model using Group Relative Policy Optimization (GRPO) with a difficulty-aware reward function, specifically training it on its own evolutionary "breaking points."
Datasets
- CoDiQ-Bench: A curated evaluation benchmark consisting of 200 relatively simple seed questions (100 math, 100 code) sampled from GSM8K, MATH12K, CodeAlpaca_20K, and LeetCodeDataset.
- CoDiQ-Corpus: A newly introduced large-scale dataset containing 44,453 competition-grade question sequences with progressive difficulty, scaled up from 8 diverse source repositories.
Key Insights and Ideas
- The Test-Time Scaling Tendency: The authors identified a clear scaling law: increasing a model's test-time compute budget (reasoning tokens) directly boosts the difficulty of the questions it can generate, but simultaneously reduces their solvability.
- Decoupling Difficulty from Validity via RL: While smaller models typically suffer a total collapse in problem validity when forced to generate complex questions, reinforcement learning alignment allows the 8B CoDiQ-Generator to break this trend, maintaining high solvability even as difficulty scales.
- The Verifier Paradox: A fascinating failure mode where valid, highly complex problems are incorrectly rejected by the automated verifier because the problem's difficulty exceeds the verifier's own reasoning horizon, causing it to misclassify them as "unsolvable."
Key Results
- Superior Generation: The RL-tuned CoDiQ-Gen-8B outperformed the significantly larger Qwen3-32B base model in generating high-complexity, valid instances, sustaining longer evolutionary trajectories without breaking.
- Dataset Hardness: CoDiQ-Corpus proved significantly more challenging than prominent benchmarks like AIME and LiveCodeBench under automated difficulty ranking metrics, while maintaining an 82% human-verified solvability rate.
- Downstream Gains: Training a Qwen3-4B model on CoDiQ-Corpus using a multi-stage curriculum learning strategy led to substantial performance jumps: accuracy on MATH-500 rose from 94.4% to 96.0%, and on AIME 2024, it surged from 63.1% to 70.6%.
Limitations and Future Work
- Domain and Language Constraints: The framework is currently restricted to English-language mathematics and coding tasks.
- High Computational Cost: The iterative generation and dual-verification pipeline incur significant token costs, limiting real-time application.
- Epistemic Ceiling: The pipeline's absolute upper bound is fundamentally capped by the verifier's capability (the Verifier Paradox), highlighting a critical need for scalable oversight mechanisms in future automated data generation loops.
Summary updated