Better & Faster Large Language Models via Multi-token Prediction

AI-generated keywords: Large Language Models Multi-token Prediction Sample Efficiency Downstream Capabilities Natural Language Processing

AI-generated Key Points

  • Authors propose a novel approach to training large language models
  • Method involves predicting multiple future tokens simultaneously using n independent output heads on top of a shared model trunk
  • Auxiliary training task leads to improved downstream capabilities for code and natural language models without additional training time overhead
  • Multi-token prediction demonstrated effectiveness on generative benchmarks like coding, outperforming strong baselines by several percentage points
  • 13B parameter models solve more problems on HumanEval and MBPP compared to next-token models
  • Multi-token prediction enhances induction heads and algorithmic reasoning capabilities for small algorithmic tasks
  • Increased speed at inference with up to 3 times faster performance when trained with 4-token prediction
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz, Gabriel Synnaeve

License: CC BY 4.0

Abstract: 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.

Submitted to arXiv on 30 Apr. 2024

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2404.19737v1

The authors of "Better & Faster Large Language Models via Multi-token Prediction," Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz, and Gabriel Synnaeve propose a novel approach to training large language models such as GPT and Llama. Their method involves predicting multiple future tokens simultaneously using n independent output heads on top of a shared model trunk. This auxiliary training task leads to improved downstream capabilities for both code and natural language models without any additional training time overhead. The effectiveness of multi-token prediction is demonstrated on generative benchmarks like coding, where their models consistently outperform strong baselines by several percentage points. Notably, their 13B parameter models solve 12% more problems on HumanEval and 17% more on MBPP compared to comparable next-token models. Additionally, experiments show that multi-token prediction enhances induction heads and algorithmic reasoning capabilities for small algorithmic tasks. Another advantage is the increased speed at inference with up to 3 times faster performance even with large batch sizes when trained with 4-token prediction. Detailed performance metrics are provided for abstractive text summarization tasks and the induction capability of n-token prediction models is showcased in the study.
Created on 01 May. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.