← Latest papers
💬 NLP

XTC: Head-Aware Sampling by Excluding Top Choices

The paper introduces XTC (Exclude Top Choices), a lightweight decoding strategy that selectively removes dominant high-probability tokens to significantly enhance generation diversity and creativity while maintaining fluency and instruction-following accuracy across various large language models.

Original authors: Philipp Emanuel Weidmann, Allen Roush, Judah Goldfeder, Sanjay Basu, Ravid Shwartz-Ziv

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

Original authors: Philipp Emanuel Weidmann, Allen Roush, Judah Goldfeder, Sanjay Basu, Ravid Shwartz-Ziv

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

When a computer program learns to write, it does not think in sentences the way a human does. Instead, it predicts the next word based on the ones that came before, choosing from a long list of possibilities. For a long time, the standard way to make these programs write varied and interesting text was to nudge them toward less common words or to cut off the very unlikely ones. This approach worked well for avoiding nonsense, but it often led to a different problem: the text would become safe, repetitive, and strangely uniform. Even when the computer knew several good ways to continue a story, it would almost always pick the single most obvious, generic option, like a traveler who always chooses the main road even when a scenic path is right next to it. This tendency to stick to the safest choice, even when other strong options exist, has been quietly draining the creativity out of machine-generated writing.

A team of researchers has now introduced a new method called XTC, which stands for Exclude Top Choices, designed to fix this specific habit. Rather than looking at the unlikely words at the bottom of the list or trying to flatten the entire list of choices, this new technique focuses on the top of the list. It waits until the computer is genuinely undecided between two or more very good options. When that happens, the method deliberately removes the most popular choice from the running, forcing the computer to pick from the remaining strong alternatives. It is a simple switch that only flips when the computer is truly torn between good paths, ensuring the output stays diverse without becoming nonsensical.

The researchers tested this idea on several different large language models, ranging from smaller ones with 12 billion parameters to massive ones with 70 billion. They asked the models to write creative stories, brainstorm ideas, and engage in dialogue, comparing the new method against the standard ways of generating text. The results were clear and consistent. When using XTC, the generated text became significantly more diverse, with a measurable increase in the variety of words and phrases used. At the same time, the text became much less repetitive, with the models repeating the same three-word phrases far less often. In one set of tests, the variety of the writing improved by between 11 and 15 percent, while the repetition of common phrases dropped by nearly half.

Crucially, the researchers found that this increase in variety did not come at the cost of quality or clarity. When human volunteers and other advanced computer programs judged the writing, they preferred the XTC-generated text for its creativity and interest, rating it higher than the standard versions. The writing remained fluent and easy to read, with no noticeable drop in overall quality. The method also proved to be very precise in its application; it did not interfere with tasks that required strict accuracy, such as following specific instructions or writing code, unless the settings were pushed too far. In fact, when the researchers compared XTC to the traditional method of simply making the computer more random, XTC achieved the same level of variety while preserving the ability to follow instructions much better.

The study also showed that this new approach works well alongside existing tools. It can be combined with other methods that control randomness or repetition, and the benefits add up rather than cancel each other out. When paired with a standard temperature setting, the combination produced even greater improvements, reducing repetition by over 70 percent in some cases while boosting variety by nearly 40 percent. The researchers confirmed that this effect holds true across different types of models and different levels of computer memory compression, suggesting that the method is robust and widely applicable.

What makes this finding significant is that it addresses a blind spot in how these systems have been tuned for years. Previous methods assumed that the problem with repetitive writing came from the very unlikely, strange words at the bottom of the list. This new work shows that the real issue often lies at the top, where the computer is so confident in its safest choice that it ignores other perfectly good alternatives. By gently nudging the system away from that single dominant option only when it is genuinely uncertain, the method unlocks a more natural and human-like range of expression. The technique has already been adopted by several popular open-source tools used by developers, indicating that it offers a practical way to make artificial intelligence writing feel less like a machine and more like a creative partner.

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 →