Preprint
Large Language Models

Training LLMs with Pause Tokens

Sachin Goyal, Z. Ji, A. S. Rawat, A. Menon, Sanjiv Kumar, Vaishnavh Nagarajan
October 3, 2023International Conference on Learning Representations397 citations

397

Citations

35

Influential Citations

International Conference on Learning Representations

Venue

2023

Year

Abstract

Language models generate responses by producing a series of tokens in immediate succession: the $(K+1)^{th}$ token is an outcome of manipulating $K$ hidden vectors per layer, one vector per preceding token. What if instead we were to let the model manipulate say, $K+10$ hidden vectors, before it outputs the $(K+1)^{th}$ token? We operationalize this idea by performing training and inference on language models with a (learnable) $\textit{pause}$ token, a sequence of which is appended to the input prefix. We then delay extracting the model's outputs until the last pause token is seen, thereby allowing the model to process extra computation before committing to an answer. We empirically evaluate $\textit{pause-training}$ on decoder-only models of 1B and 130M parameters with causal pretraining on C4, and on downstream tasks covering reasoning, question-answering, general understanding and fact recall. Our main finding is that inference-time delays show gains when the model is both pre-trained and finetuned with delays. For the 1B model, we witness gains on 8 of 9 tasks, most prominently, a gain of $18\%$ EM score on the QA task of SQuAD, $8\%$ on CommonSenseQA and $1\%$ accuracy on the reasoning task of GSM8k. Our work raises a range of conceptual and practical future research questions on making delayed next-token prediction a widely applicable new paradigm.

Analysis

Why This Paper Matters

Large language models generate text token by token, with each new token conditioned on a fixed number of preceding hidden vectors. This immediate succession limits the model's ability to perform additional computation before committing to an answer. The paper 'Training LLMs with Pause Tokens' challenges this convention by introducing learnable pause tokens that are appended to the input prefix, allowing the model to process extra hidden vectors before producing output. This simple yet powerful idea opens a new dimension for improving model performance without increasing parameter count.

The significance lies in its potential to enhance reasoning and question-answering capabilities by allocating more computation at inference time. Unlike methods that require architectural changes or external tools, pause tokens integrate seamlessly into standard training pipelines. The empirical gains, especially on tasks like SQuAD and CommonSenseQA, demonstrate that delayed next-token prediction can be a practical strategy for boosting LLM performance.

Moreover, the paper raises important research questions about the role of computation in language modeling. By showing that gains only materialize when models are both pretrained and finetuned with pause tokens, it highlights the need for consistency in training and inference. This work could inspire further exploration into adaptive computation and token-level deliberation in LLMs.

Technical Contributions

  • Pause Token Mechanism: Introduces a sequence of learnable pause tokens appended to the input prefix, with output extraction delayed until the last pause token is processed.
  • Pause-Training Protocol: Trains decoder-only models (1B and 130M parameters) with causal pretraining on C4, incorporating pause tokens during both pretraining and finetuning.
  • Empirical Validation: Demonstrates that inference-time delays yield gains only when the model is trained with pause tokens, establishing the necessity of joint training.
  • Broad Evaluation: Tests on 9 downstream tasks covering reasoning, QA, general understanding, and fact recall, showing consistent improvements for the 1B model.

Results

For the 1B parameter model, pause-training improves performance on 8 of 9 tasks. The most prominent gains are an 18% absolute EM score improvement on SQuAD, an 8% gain on CommonSenseQA, and a 1% accuracy improvement on GSM8k. These results indicate that pause tokens can significantly enhance performance on tasks requiring reasoning and factual recall. However, the gains are contingent on both pretraining and finetuning with pause tokens; inference-time delays alone do not suffice. The 130M model also shows benefits, though less pronounced, suggesting scalability of the approach.

Significance

This work introduces a novel paradigm for increasing computation at inference time without increasing model size. By demonstrating that learnable pause tokens can improve performance across diverse tasks, it opens avenues for more deliberate and compute-efficient LLMs. The findings suggest that future models could benefit from adaptive computation strategies, where the model learns when and how long to pause. This could lead to more accurate and reliable language models, particularly for complex reasoning and QA tasks. The paper's conceptual contributions may inspire further research on delayed prediction and token-level deliberation, potentially reshaping how LLMs are trained and deployed.