TL;DR
XTC (Exclude Top Choices) is a novel, lightweight decoding operator that enhances creativity and reduces repetition in large language models by occasionally bypassing the most dominant, generic tokens when multiple plausible alternatives exist. By targeting the "head" of the probability distribution rather than truncating its tail, XTC significantly improves text diversity while preserving strict instruction-following capabilities far better than traditional temperature scaling.
What Problem Does This Paper Address?
Standard autoregressive language model decoding strategies—such as Top-$p$, Top-$k$, Min-$p$, and temperature scaling—operate under a shared assumption: undesirable text generation or lack of diversity stems from the low-probability tail or global entropy of the distribution.
However, open-ended generation frequently suffers from a different failure mode known as head-ambiguity. In this regime, the model identifies several individually plausible continuations but concentrates too much probability mass on the single safest, most conventional choice. Traditional tail-truncation methods fail to fix this because the viable alternatives are already sitting in the head of the distribution. Meanwhile, global flattening methods like increasing the temperature introduce chaotic, implausible tokens at steps where the model is already highly confident. This results in repetitive, homogenized text across generation episodes.
Methods
The authors introduce XTC (Exclude Top Choices), a head-aware decoding operator designed to intervene specifically during moments of head-ambiguity.
The algorithm operates as follows:
- Identify Plausible Tokens: Given a next-token distribution $p_t$, XTC collects all tokens whose probability meets or exceeds an absolute plausibility floor $\tau$. This forms the eligible set $E_t$.
- Check for Ambiguity: If fewer than two tokens clear the threshold ($|E_t| < 2$), the distribution passes through completely unchanged.
- Stochastic Intervention: If two or more tokens are eligible, XTC triggers with an intervention probability $\rho$.
- Exclude the Dominant Choices: It identifies the "underdog" token—the token in the eligible set with the lowest probability—and removes all other dominant choices in $E_t$.
- Renormalize: The remaining token probabilities are rescaled to sum to one.
XTC is mathematically grounded as a KL-minimizing projection onto a restricted support, meaning it alters the distribution as little as possible while still forcing a detour from the most generic path. It is also highly compositional, fitting easily into existing sampler stacks after temperature or repetition penalties have been applied.
Datasets
The authors evaluated XTC across several task-specific prompt suites:
- Creative Evaluation Suite: 24 prompts spanning 12 distinct genres (e.g., brainstorming, dialogue, poetry, storytelling) derived from the public Creative Writing Bench v3 (EQ-Bench).
- Code Exactness Suite: Executable Python problems with associated unit tests to evaluate performance on strict, exactness-sensitive tasks.
- Quality Retention Suite: Tasks focusing on JSON extraction and constrained rewriting.
- Instruction Following: The standard IFEval benchmark, used to measure how well the model adheres to strict prompt constraints under diversity-promoting decoding.
Key Insights and Ideas
- Orthogonal Distribution Control: Traditional samplers act as tail controls, whereas XTC acts as a head control. Combining a tail control (like Min-$p$) with XTC (a head control) targets entirely different regions of the distribution, yielding additive benefits.
- Sparsity in Time: XTC is naturally "inert" during deterministic generation steps (e.g., completing a syntax structure or generating a highly predictable factual token) because only one token will clear the absolute threshold $\tau$. This explains why it preserves instruction-following capabilities so effectively.
- The "Keep Least" Strategy: Through design ablations, the authors discovered that explicitly keeping the weakest eligible token (the underdog) maximizes the displacement from generic text patterns far better than dropping just the top token or picking a random eligible alternative.
Key Results
The authors ran 60 experiments across four model families (Gemma 3 12B/27B, DeepSeek R1 14B, and Llama 3.3 70B):
- Diversity vs. Repetition: XTC significantly pushed the Pareto frontier, yielding Distinct-2 lexical diversity gains of 11–15% and repeat trigram reductions of 27–47% across all models. When stacked with temperature scaling, Distinct-2 gains reached up to 38% while reducing repeat trigrams by 71%.
- Human and LLM Preference: A blinded Amazon Mechanical Turk study with 150 Master raters showed a 62.3% preference for XTC on creativity without sacrificing fluency. This was cross-validated by a Claude 4.7 Opus and GPT-4o judge panel.
- Fidelity Preservation: On IFEval (using Llama 3.3 70B), XTC Medium recovered substantial diversity while staying within 1.7 percentage points of the baseline strict accuracy. In contrast, a temperature setting calibrated to match XTC's diversity gains caused IFEval accuracy to collapse by 8.8 percentage points.
Limitations and Future Work
- Exactness Degradation: XTC is not a universal drop-in sampler. On strict tasks like code generation or mathematical reasoning, performance degrades significantly if the intervention rate is set too high ($\rho > 0.15$ for code; $\rho > 0.20$ for structured extraction).
- Parameter Sensitivity: The absolute threshold $\tau$ is sensitive to model scale, tokenizer vocabulary size, and upstream samplers, meaning optimal hyperparameters must be tuned per model family.
- Formatting Vulnerabilities: If structural tokens (like newlines or structural delimiters) accidentally enter the eligible set, XTC can destabilize structured outputs. Real-world implementations require protecting specific formatting and termination tokens.
- Scope of Evaluation: The evaluation focused entirely on quantized, open-weight English models. Future work includes testing on Mixture-of-Experts (MoE) architectures, state-space models, and non-English languages.
Summary updated