← Latest papers
💬 NLP

Progress Ratio Embeddings: An Impatience Signal for Robust Length Control in Neural Text Generation

This paper introduces Progress Ratio Embeddings (PRE), a continuous trigonometric signal that overcomes the instability of discrete countdown methods to achieve robust, generalizable length control in neural text generation without compromising accuracy.

Original authors: Ivanhoé Botcazou, Tassadit Amghar, Sylvain Lamprier, Frédéric Saubion

Published 2026-05-06
📖 3 min read☕ Coffee break read

Original authors: Ivanhoé Botcazou, Tassadit Amghar, Sylvain Lamprier, Frédéric Saubion

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 hiring a storyteller (an AI) to tell you a story based on a long, complicated book chapter. You want the story to be exactly 300 words long.

The Problem: The "Countdown" Clock
Previously, researchers tried to solve this by giving the AI a "countdown clock." They would tell the AI, "You have 300 words left, then 299, then 298..." all the way down to zero.

The paper calls this Reverse Positional Embeddings (RPE). It works okay if the AI is asked to write a story that is close to the lengths it practiced on during training (like 200 or 300 words). But if you suddenly ask for a 1,000-word story, the AI gets confused. It's like a runner who practiced only on a 5-mile track; if you tell them to run 20 miles, they don't know how to pace themselves because they've never seen that distance before. The "countdown" becomes a rigid, broken signal, and the AI either stops too early or keeps going way too long.

The Solution: The "Impatience" Signal
The authors of this paper propose a new method called Progress Ratio Embeddings (PRE).

Instead of a rigid countdown, they give the AI a continuous "impatience meter."

  • How it works: Imagine the AI is a listener waiting for a song to end.
    • At the very beginning (0% done), the listener is calm and patient.
    • As the song progresses (50% done), the listener starts tapping their foot a little faster.
    • As the song nears the end (90% done), the listener is tapping their foot very rapidly, almost vibrating with "impatience" to hear the final note.

In the AI's world, this "impatience" isn't a number like "299 words left." It is a smooth, continuous wave that gets faster and more intense as the story gets closer to the finish line. The AI learns to recognize this "feeling" of how much of the journey is complete, rather than counting specific steps.

Why This is Better
Because this "impatience" signal is smooth and continuous, the AI can handle any length, even ones it has never seen before.

  • If you ask for a short summary, the "impatience" ramps up quickly.
  • If you ask for a long essay, the "impatience" ramps up slowly and steadily.

The paper tested this on news summarization (turning long articles into short summaries) and question generation. They found that:

  1. Precision: The AI could hit the exact word count you asked for much more accurately than the old "countdown" method.
  2. Quality: The summaries and questions were just as good (or better) in terms of grammar and meaning.
  3. Flexibility: When asked to write something very long (out of the "normal" range), the new method didn't break, whereas the old method failed miserably.

In a Nutshell
The old way was like giving the AI a broken ruler that only worked for specific lengths. The new way (PRE) is like giving the AI a sense of "how far along the path we are," allowing it to stop exactly where you want it to, no matter how long or short the path is.

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 →