← Latest papers
💬 NLP

CoDiQ: Test-Time Scaling for Controllable Difficult Question Generation

This paper introduces CoDiQ, a framework that leverages test-time scaling to enable fine-grained control over the difficulty and solvability of generated competition-level questions, resulting in the CoDiQ-Corpus which significantly enhances Large Reasoning Models' performance when used for training.

Original authors: Zhongyuan Peng, Caijun Xu, Changyi Xiao, Shibo Hong, Eli Zhang, Stephen Huang, Yixin Cao

Published 2026-02-03
📖 5 min read🧠 Deep dive

Original authors: Zhongyuan Peng, Caijun Xu, Changyi Xiao, Shibo Hong, Eli Zhang, Stephen Huang, Yixin Cao

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: The "Hard Question" Problem

Imagine you are training a student (an AI) to become a grandmaster at solving complex puzzles, like advanced math or coding challenges. To get really good, the student needs to practice on the hardest problems available.

But there's a catch: Real hard problems are rare. Humans can only write so many of them, and it takes a long time to check if they are even solvable.

Existing AI methods try to invent their own hard problems, but they usually fail in two ways:

  1. They make things look hard but are actually broken (like a puzzle with missing pieces).
  2. They get stuck because the AI making the questions isn't smart enough to invent something harder than itself.

CoDiQ is a new framework designed to solve this. It's like a super-smart "Question Factory" that can automatically generate a massive library of competition-level math and coding problems that are both incredibly difficult and guaranteed to be solvable.


How CoDiQ Works: The "Difficulty Dial"

The core idea of CoDiQ is Test-Time Scaling. Think of this as a "Difficulty Dial" on a video game.

Usually, if you ask an AI, "Make this harder," it might just add random confusing words. CoDiQ does something different. It uses a specific process where the AI is encouraged to spend more "thinking time" (computing power) to make the question harder.

The Analogy: The "Thinking Budget"
Imagine you have a budget of "thinking tokens" (like coins).

  • Low Budget: The AI writes a simple question quickly.
  • High Budget: The AI is forced to think longer, adding more layers of logic, constraints, and tricks.

The paper discovered a fascinating rule: As you give the AI more "thinking coins" to spend, the questions get harder. However, there is a trade-off. If you push the budget too high, the AI might get so confused that it creates a broken question that no one can solve. CoDiQ's job is to find the "sweet spot" where the question is maximally hard but still solvable.


The Three Magic Ingredients

To make this factory work, the authors built three key components:

1. The "Difficulty Boosters" (Strategies)

Instead of just saying "make it harder," the AI is given six specific "recipes" to follow. Think of these as tools in a chef's kitchen:

  • Add Constraints: "You must solve this using only 3 steps."
  • Abstract Math: Turn a simple story problem into a complex formula.
  • Reverse Engineering: Ask the AI to create a problem where the answer is known, but the path to get there is hidden.
  • Edge Cases: Force the AI to consider the weirdest, most unlikely scenarios.

These strategies ensure the questions are hard because of logic, not just because they are wordy.

2. The "Quality Control Team" (Verification Pipeline)

This is the most critical part. As the AI generates a harder question, a second AI (the "Verifier") checks two things immediately:

  • Is it getting harder? (Did we actually turn the dial up?)
  • Is it solvable? (Does it have a correct answer?)

If the AI tries to make a question so hard that it becomes nonsense, the Quality Control Team stops the process and throws that question away. This prevents the "Fake Hard" problem.

3. The "Reward Coach" (Reinforcement Learning)

The authors trained a specific AI model (CoDiQ-Generator) using a "Coach."

  • The Coach's Rule: "If you make a question that is hard and solvable, you get a gold star. If you make a broken question, you get a red card."
  • Over time, the AI learns exactly how to walk the tightrope between "very hard" and "broken."

The Result: The CoDiQ-Corpus

Using this system, the team built CoDiQ-Corpus, a dataset of 44,000 high-level math and coding problems.

  • How hard are they? The paper claims these are significantly harder than existing famous benchmarks like AIME (a top math competition) or LiveCodeBench (a top coding contest).
  • Are they real? Human experts checked a sample and found that 82% of the questions were actually solvable and well-written.

Why This Matters (According to the Paper)

The paper proves that if you train other AI models on this specific dataset of "perfectly hard" questions, those models get much better at reasoning.

The Final Analogy:
Imagine you are training a marathon runner.

  • Old Method: You have them run on a flat track, or you throw them into a swamp that is too deep to cross (broken questions).
  • CoDiQ Method: You build a custom obstacle course that gets slightly harder every day, but you have a safety net ensuring they never fall into a pit they can't climb out of.
  • Result: The runner (the AI) becomes a champion much faster because the training is perfectly calibrated to their growing strength.

Limitations Mentioned

The authors are honest about the limits:

  • The system currently only works for English math and coding.
  • There is a "Verifier Paradox": If the AI makes a question that is so hard that even the checking AI can't solve it, the system might mistakenly throw it away, thinking it's broken. This puts a ceiling on how hard the questions can get.

In short, CoDiQ is a new way to automatically generate the "perfect practice problems" for AI, allowing them to learn faster and smarter without needing humans to write every single question.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →