← Latest papers
🤖 machine learning

Learned Relay Representations for Forward-Thinking Discrete Diffusion Models

This paper introduces Learned Relay Representations (Relay), a method that enables Masked Diffusion Models to propagate latent information across denoising steps via a differentiable per-token channel, thereby improving performance on planning and coding tasks while significantly reducing inference latency.

Original authors: Benjamin Rozonoyer, Jacopo Minniti, Dhruvesh Patel, Neil Band, Avishek Joey Bose, Tim G. J. Rudner, Andrew McCallum

Published 2026-05-25
📖 4 min read☕ Coffee break read

Original authors: Benjamin Rozonoyer, Jacopo Minniti, Dhruvesh Patel, Neil Band, Avishek Joey Bose, Tim G. J. Rudner, Andrew McCallum

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 Problem: The "Hard Reset" Amnesia

Imagine you are trying to solve a complex puzzle, like a Sudoku or writing a piece of code. You are using a very smart assistant (an AI model) to help you.

Currently, this assistant works like a person with amnesia who forgets everything the moment they finish a single sentence.

  1. The assistant looks at a blank page full of question marks.
  2. It thinks hard, does some complex mental math, and decides to fill in one or a few letters.
  3. The Hard Reset: As soon as it writes those letters down, it immediately throws away all the complex thoughts, calculations, and "feeling" it had about the rest of the page.
  4. For the next step, it starts over from scratch, looking only at the letters it just wrote, completely forgetting the rich internal work it just did.

This is called the "Hard Reset" problem. The paper argues that this is inefficient. It's like a chef tasting a soup, writing down "needs salt," and then immediately forgetting the taste of the broth before adding the salt. They have to re-taste the whole soup from scratch every time they add an ingredient.

The Solution: The "Relay" Baton

The authors propose a new method called Relay.

Imagine a relay race. Instead of the runner stopping, forgetting the race, and starting over, they pass a baton to the next runner. This baton carries the momentum, the strategy, and the fatigue of the previous runner so the next one can pick up exactly where they left off.

In the AI world, the "baton" is a continuous stream of information (a hidden state) that the model carries forward.

  • Before Relay: The model computes, writes a token, and deletes the computation.
  • With Relay: The model computes, writes a token, and passes a "note" to itself for the next step. This note says, "Hey, I was thinking about this specific pattern, and I'm 80% sure about this next part."

How It Works: Learning to Pass the Baton

The paper introduces a few key tricks to make this work:

  1. The "Forward-Thinking" Training:
    Usually, AI models are trained to just get the current answer right. The authors trained the model to be "forward-thinking." They taught the model: "Don't just write the right letter today; write a note (the relay) that will help you write the right letter tomorrow."

  2. Truncated Backpropagation (BPTT):
    This is a fancy math term for "looking ahead to learn." Imagine you are practicing a dance routine. Instead of just practicing one move, you practice a sequence of three moves. If you stumble on the third move, you realize, "Oh, I messed up the first move because I didn't prepare for the third."
    The paper uses a method called truncated BPTT to let the model look a few steps ahead during training. It learns to pass information forward specifically to make future steps easier.

  3. The "Soft" Channel:
    The information passed forward isn't just a word or a letter; it's a "soft" number (a continuous value). Think of it like a dimmer switch rather than an on/off light. It allows the model to carry subtle hints and probabilities that haven't been turned into a final decision yet.

The Results: Faster and Smarter

The authors tested this on two things:

  • Sudoku Puzzles: They treated Sudoku like a planning task. The "Relay" model solved puzzles with fewer attempts (fewer "forward passes") and made fewer mistakes than the standard model. It was better at keeping the "big picture" in mind while filling in the grid.
  • Coding (Writing Software): They took a state-of-the-art coding AI (Fast-dLLM v2) and added the Relay system.
    • Better Accuracy: It wrote better code.
    • Faster Speed: It needed to run its "thinking engine" 32% fewer times to get the same result.

Why This Matters

The paper claims that by stopping the "Hard Reset" and letting the model carry its own "thoughts" forward like a relay baton, we can make AI models:

  1. Smarter: They can reason better over long sequences (like complex code or logic puzzles).
  2. Faster: They don't have to re-compute everything from scratch every time, saving time and energy.

In short, the paper teaches AI models to stop forgetting their own work and start building on it, step by step, just like a human does when solving a hard problem.

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 →