ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
343
Citations
41
Influential Citations
International Conference on Machine Learning
Venue
2024
Year
Large language models such as GPT and Llama are trained with a next-token prediction loss. In this work, we suggest that training language models to predict multiple future tokens at once results in higher sample efficiency. More specifically, at each position in the training corpus, we ask the model to predict the following n tokens using n independent output heads, operating on top of a shared model trunk. Considering multi-token prediction as an auxiliary training task, we measure improved downstream capabilities with no overhead in training time for both code and natural language models. The method is increasingly useful for larger model sizes, and keeps its appeal when training for multiple epochs. Gains are especially pronounced on generative benchmarks like coding, where our models consistently outperform strong baselines by several percentage points. Our 13B parameter models solves 12 % more problems on HumanEval and 17 % more on MBPP than comparable next-token models. Experiments on small algorithmic tasks demonstrate that multi-token prediction is favorable for the development of induction heads and algorithmic reasoning capabilities. As an additional benefit, models trained with 4-token prediction are up to 3 times faster at inference, even with large batch sizes.
This paper challenges the long-standing paradigm of next-token prediction in large language models by demonstrating that predicting multiple future tokens simultaneously yields substantial gains in sample efficiency, downstream performance, and inference speed. The method is remarkably simple—adding independent output heads for n future tokens on a shared trunk—yet delivers consistent improvements across model sizes and domains. For AI practitioners, this means better models without additional training time or architectural complexity, making it a highly practical contribution.
The significance is amplified by the results on coding benchmarks: 12% more problems solved on HumanEval and 17% on MBPP for 13B models. These are not marginal gains but substantial leaps that could translate to real-world productivity improvements in code generation tools. Moreover, the inference speedup of up to 3x with 4-token prediction addresses a critical bottleneck in deploying LLMs at scale.
This work opens a new direction for training objectives in LLMs, showing that multi-token prediction is a drop-in replacement for next-token prediction that improves both quality and efficiency. For the AI field, it suggests that current training paradigms may be suboptimal and that simple modifications can yield substantial gains. The method is particularly impactful for code generation, where even small percentage improvements translate to significant practical benefits. Future work may explore adaptive n values, integration with other auxiliary losses, or application to multimodal models.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba