Catch Your Breath: Adaptive Computation for Self-Paced Sequence Production
Alexandre Galashov, Matt Jones, Rosemary Ke, Yuan Cao, Vaishnavh Nagarajan, Michael C. Mozer
TL;DR
The paper introduces Catch Your Breath (CYB), a framework that enables adaptive, token-level computation in transformers by allowing the model to emit a <don't know> token to request additional compute and by inserting <pause> tokens when delays are granted. It formalizes three loss variants—CYB-AP (anytime prediction), CYB-VA (variational stop-time), and CYB-DP (distributional penalty)—to train the model to calibrate when extra compute is beneficial, balancing speed and accuracy. Empirical results show CYB-AP delivering the best data efficiency and perplexity improvements on a C4 fine-tuning setup, with adaptive pause patterns that correlate with token difficulty and context, and with the model learning to self-calibrate its use of <don't know> to improve outputs. The approach advances efficient inference for large language models by coupling adaptive computation with principled stopping-time control, offering practical benefits for faster, more data-efficient generation and insights into token-level processing dynamics. Future work may refine pause conditioning in attention, explore selective pause strategies, and further analyze epistemic uncertainty signaling through <don't know> in complex contexts.
Abstract
We explore a class of supervised training objectives that allow a language model to dynamically and autonomously scale the number of compute steps used for each input token. For any token, the model can request additional compute steps by emitting a <don't know> output. If the model is granted a delay, a specialized <pause> token is inserted at the next input step, providing the model with additional compute resources to generate an output. The model can request multiple pauses. To train the model to use <don't know> outputs judiciously and to calibrate its uncertainty, we frame the selection of each output token as a sequential-decision problem with a time cost. We refer to the class of methods as $\textit{Catch Your Breath}$ losses and we study three methods in this class: CYB-AP frames the model's task as anytime prediction, where an output may be required at any step and accuracy is discounted over time; CYB-VA is a variational approach that aims to maximize prediction accuracy subject to a specified distribution over stopping times; and CYB-DP imposes a penalty based on a computational budget. Through fine-tuning experiments, we identify the best performing loss variant. The CYB model needs only one third as much training data as the baseline (no pause) model needs to achieve the same performance, and half as much data as a model with pauses and a cross-entropy loss. We find that the CYB model requests additional steps when doing so improves accuracy, and the model adapts its processing time to token-level complexity and context. For example, it often pauses after plural nouns like $\textit{patients}$ and $\textit{challenges}$ but never pauses after the first token of contracted words like $\textit{wasn}$ and $\textit{didn}$, and it shows high variability for ambiguous tokens like $\textit{won}$, which could function as either a verb or part of a contraction.
