← Latest papers
💬 NLP

RelayGen: Intra-Generation Model Switching for Efficient Reasoning

RelayGen is a training-free, segment-level runtime framework that dynamically switches between large and small models during inference based on generation uncertainty, significantly reducing latency while preserving the accuracy of large reasoning models.

Original authors: Jiwon Song, Yoongon Kim, Jae-Joon Kim

Published 2026-02-09
📖 4 min read☕ Coffee break read

Original authors: Jiwon Song, Yoongon Kim, Jae-Joon Kim

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 Problem: The "Over-Engineered" Chef

Imagine you have a world-class chef (a Large Reasoning Model) who is amazing at solving complex, tricky problems like creating a 10-course gourmet meal from scratch. This chef is incredibly smart, but they are also slow and expensive to hire.

The problem is that when this chef cooks a long meal, not every single step requires their genius.

  • The Hard Part: Figuring out the complex flavor combinations and cooking techniques (the "reasoning").
  • The Easy Part: Writing the final recipe card, plating the food neatly, or saying "Here is your meal" (the "answer").

Currently, we hire this expensive, slow chef to do everything, from the complex cooking to the simple plating. This is a waste of time and money.

The Old Solutions (and why they failed)

Before this paper, people tried two main ways to save time:

  1. The "One Chef Per Order" approach: You pick a small, fast chef for the whole order or the big chef for the whole order. This doesn't work because the small chef can't handle the hard cooking, and the big chef wastes time on the easy plating.
  2. The "Micro-Manager" approach: You hire a supervisor who watches the chef's hand every single second to decide if they should switch to a small chef for the next spoonful of sauce. This is too complicated, requires training a new supervisor, and slows everything down because of all the switching back and forth.

The New Solution: RelayGen (The Relay Race)

RelayGen is like a relay race. Instead of one person running the whole marathon, or a supervisor shouting instructions every step, the team passes the baton at specific, natural moments.

Here is how it works:

1. The "Handoff" Signals

The researchers noticed that when a smart AI is thinking, it leaves "clues" in its text. Sometimes it says things like "Wait, let me check that," or "Therefore, the answer is..."

  • High Difficulty: When the AI is deep in thought, it hesitates. It's unsure.
  • Low Difficulty: When the AI is wrapping up or summarizing, it becomes very confident. It speaks clearly and quickly.

RelayGen looks for these confidence clues (like the word "Therefore" or "So"). When the AI says something that signals, "I've figured it out, now I'm just writing it down," RelayGen knows it's safe to switch.

2. The Switch

  • The Big Model (The Expert): Handles the hard, confusing parts of the reasoning.
  • The Small Model (The Assistant): As soon as the Big Model hits a "confidence clue," it hands the baton to the Small Model. The Small Model takes over the rest of the sentence or the final answer.

Because the Small Model is much faster and cheaper, it can finish the easy parts instantly.

3. No New Training Required

The best part? You don't need to teach the AI anything new. You don't need a new supervisor. You just use the existing "clues" the AI naturally produces to decide when to switch. It's like having a pre-agreed rule: "Whenever I say 'Therefore,' you take over."

The Results: Fast and Accurate

The paper tested this on hard math and science problems.

  • Speed: By letting the small, fast assistant do the easy work, the system became up to 2.2 times faster.
  • Accuracy: Because the Big Model still did all the hard thinking, the answers were almost just as good as if the Big Model had done everything alone (losing less than 2% accuracy).
  • Compatibility: This method works perfectly with other speed-up tricks (like "Speculative Decoding") because it switches at the sentence level, not the word level. It doesn't get in the way.

Summary Analogy

Think of writing a long essay.

  • The Old Way: You hire a Nobel Prize-winning professor to write the whole thing, including the title and the final signature. It takes forever.
  • The RelayGen Way: The professor writes the complex arguments and the conclusion. The moment they finish the main logic, they hand the pen to a fast typist who just formats the text and signs the name. The result is a perfect essay, but it's finished in half the time.

In short: RelayGen is a smart, free way to let big AI models do the hard thinking and small AI models do the easy finishing, making everything faster without losing quality.

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 →