← Latest papers
💬 NLP

Just on Time: Token-Level Early Stopping for Diffusion Language Models

This paper introduces a training-free, token-level early stopping method for diffusion language models that dynamically identifies and finalizes stable tokens based on lightweight prediction signals, significantly reducing computational costs while maintaining generation quality across diverse tasks.

Original authors: Zakhar Kohut, Severyn Shykula, Mykola Vysotskyi, Serhii Dmytryshyn, Dmytro Khamula, Michal Zakrzewski, Damian Rynczak, Jacek Małecki, Taras Rumezhak, Volodymyr Karpiv

Published 2026-08-04
📖 4 min read☕ Coffee break read

Original authors: Zakhar Kohut, Severyn Shykula, Mykola Vysotskyi, Serhii Dmytryshyn, Dmytro Khamula, Michal Zakrzewski, Damian Rynczak, Jacek Małecki, Taras Rumezhak, Volodymyr Karpiv

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

Imagine you are trying to solve a giant jigsaw puzzle, but instead of looking at the picture on the box, you start with a box full of blank, gray squares. To solve it, you have to guess what color each square should be, then look at the whole picture, realize some guesses were wrong, and repaint them. You repeat this "guess-and-fix" cycle hundreds of times until the picture finally looks right. This is how a new kind of AI, called a Diffusion Language Model, writes text. Unlike older AI that writes one word at a time like a typist, these models start with a blank page and refine the whole sentence at once, like a painter slowly adding details to a canvas.

The problem is that this painting process is incredibly slow. Even though the AI often figures out the easy parts of the sentence (like "The" or "cat") after just a few brushstrokes, it keeps painting over them anyway, just to be safe. It's like a chef who tastes a soup, realizes it's perfect, but then keeps stirring and tasting it for another hour before serving it. This wastes a massive amount of computer power and time. The question scientists are asking is: How can we tell the AI, "Hey, you've got this part right, stop working on it and move on to the hard stuff"?

This is where a new method called JoT (Just on Time) comes in. Think of JoT as a smart supervisor standing over the AI painter. Instead of telling the whole team to stop painting at the same time, JoT watches each individual word on the canvas. As soon as the AI is super confident that a specific word is correct—say, it's 99% sure the word is "cat"—JoT shouts, "Freeze that word! Don't touch it anymore!" and moves the AI's attention to the next blurry, uncertain word.

The researchers behind JoT found that this "token-level early stopping" works wonders. They tested it on two powerful AI models, Dream-7B and LLaDA-8B, across four different challenges: solving math problems, answering trivia, finishing sentences, and writing code. The results were striking. On a math reasoning test called GSM8K, JoT made the AI 5.5 times faster while only dropping the score by a tiny bit (about 2.3 points). On a coding challenge called HumanEval, the speedup was even more dramatic, reaching nearly 20 times faster (19.6×), with the AI still getting almost all the answers right.

The paper argues against a "one-size-fits-all" approach where the AI stops all words at the same time. Instead, JoT uses a clever trick: it lowers the confidence bar for words that are next to words the AI has already finished. If the AI has already nailed the beginning of a sentence, it can trust the next word a little sooner. This allows the AI to focus its energy only on the parts of the sentence that are truly confusing, skipping the redundant work on the easy parts.

While the method is incredibly fast, the authors are careful to note that it's not magic. They measured that the AI still makes a few mistakes, mostly when it gets stuck on a tricky math step and locks in the wrong number too early. However, these errors are rare, and the trade-off is heavily in favor of speed. The paper suggests that by letting each word "exit" the process at its own perfect moment, we can make these powerful, slow AI models much more practical for everyday use without needing to retrain them or change their core design. It's a simple, training-free fix that lets the AI work smarter, not harder.

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 →