← Latest papers
💬 NLP

Top-b: Entropic Regulation of Relative Probability Bands in Autoregressive Language Processes

This paper introduces Top-b, a novel decoding strategy that dynamically adjusts the candidate sampling bandwidth based on instantaneous Shannon entropy to optimize the trade-off between creative generation and logical reasoning, thereby reducing inter-decoding variance while maintaining competitive accuracy on reasoning benchmarks.

Original authors: Deepon Halder, Raj Dabre

Published 2026-03-17
📖 4 min read☕ Coffee break read

Original authors: Deepon Halder, Raj Dabre

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 playing a game of "Finish the Sentence" with a very smart, but slightly scattered, friend (the AI).

Every time your friend needs to pick the next word, they have a giant list of possibilities. Sometimes, they are 100% sure what to say (like solving 2 + 2 = ?). Other times, they are daydreaming and have a million equally good ideas for how to start a story.

The problem with current AI tools is that they use a rigid rulebook to decide which words to pick. They say, "Okay, we will always look at the top 50 words," or "We will always pick from the top 90% of likely words."

This is like using a fixed-size net to catch fish:

  • In a calm pond (Logic/Math): The fish are swimming in a tight circle. A huge net is wasteful; it catches a lot of junk (distractors) and might even let the one perfect fish slip through the holes because the net is too loose.
  • In a stormy ocean (Creative Writing): The fish are everywhere. A small net is useless; it only catches a few fish and misses the amazing ones swimming just outside the tiny circle.

The Solution: Top-b (The "Smart Net")

This paper introduces a new method called Top-b. Instead of a fixed net, Top-b uses a smart, stretchy net that changes its size based on how confused the AI is at that exact moment.

Here is how it works, using a simple analogy:

1. The "Confusion Meter" (Entropy)

The AI constantly checks its own "Confusion Meter" (called Entropy).

  • Low Confusion: The AI knows exactly what to say (e.g., "The capital of France is..."). The meter is low.
  • High Confusion: The AI is unsure and has many options (e.g., "Once upon a time..."). The meter is high.

2. The Stretchy Bandwidth

Top-b connects the size of its "net" directly to this meter.

  • When the AI is Confident (Low Entropy): The net shrinks. It becomes very tight, focusing only on the absolute best, most obvious words. It ignores the weird, low-probability words that might cause the AI to hallucinate or make a math error.
    • Analogy: Think of a surgeon performing a delicate operation. They don't want a wide net of tools; they want a laser-focused, tiny net to ensure precision.
  • When the AI is Creative (High Entropy): The net expands. It stretches out to include a wider variety of interesting words, allowing for creativity and surprise.
    • Analogy: Think of a jazz musician improvising. They need a wide net of notes to explore new melodies.

Why is this better?

The paper tested this on two types of tasks:

  1. Hard Math & Logic (GPQA/GSM8K): Here, the AI needs to be a robot. Old methods (like Top-p) sometimes let "distractor" words in, causing the AI to take a wrong turn in its reasoning. Top-b acts like a strict editor, cutting out the noise and forcing the AI to stick to the logical path. The result? Fewer mistakes and more consistent answers.
  2. Creative Writing: Here, the AI needs to be an artist. Top-b automatically loosens the rules when the AI is "feeling creative," so it doesn't accidentally cut off good ideas just because the rules were too strict.

The Bottom Line

Current AI decoding is like driving a car with a cruise control set to a fixed speed, regardless of whether you are on a straight highway or a winding mountain road. You crash on the curves or drive too slow on the highway.

Top-b is like adaptive cruise control. It automatically slows down and tightens its grip when the road gets tricky (logic/math) and speeds up and relaxes when the road is open (creativity).

The result is an AI that makes fewer silly mistakes when solving problems but still stays fun and creative when telling stories, all without you needing to tweak any settings.

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 →