atlas

Research map / Large language models / Reasoning and chain of thought

Better & Faster Large Language Models via Multi-token Prediction

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 9 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes training LLMs to predict n future tokens at once with n independent heads on a shared trunk, showing gains on code and generative benchmarks, faster self-speculative decoding, and induction/algorithmic benefits at scale.

Problem

Next-token prediction is sample-inefficient and suffers from teacher-forcing mismatch, latching onto local patterns and missing consequential decisions in generation; the paper asks whether multi-token prediction can improve sample efficiency and generative capability at no cost.

Approach

Use n independent transformer-layer output heads on a shared trunk to predict the next n tokens at each position, with a memory-efficient sequential forward/backward over heads, and reuse the extra heads for self-speculative decoding.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
predict 4 future tokens instead of 17B code model trained on 200B tokens · MBPPpass@1: 30.0 -> 33.8 (+3.8%)Helped
predict 4 future tokens instead of 17B code model trained on 200B tokens · HumanEvalpass@1: 22.8 -> 24.0 (+1.2%)Helped
predict 6 future tokens instead of 1 (ablation)7B code model trained on 200B tokens · APPS/Intropass@1: 2.8 -> 3.5 (+0.7%)Helped
increase the prediction window from 1 to 4 future tokens (ablation)7B code model trained on 200B tokens · MBPP and HumanEvalpass@1: 30.0 -> 33.8; 22.8 -> 24.0Mixed
use 4 prediction heads for self-speculative decoding7B 4-token prediction model · Code decodingrelative speedup: 3.05Helped
use 8 prediction heads for self-speculative decoding7B 8-byte prediction model · Code decodingrelative speedup: 6.39Helped
replace transformer prediction heads with linear heads (ablation)4-token prediction model · MBPPpass@1: 33.8 -> 33.6No clear effect
use anticausal rather than parallel transformer heads (ablation)4-token prediction model · MBPPpass@1: 33.8 -> 30.8Hurt
use causal rather than parallel transformer heads (ablation)4-token prediction model · MBPPpass@1: 33.8 -> 31.9Hurt
finetune Llama 2 with 4-token prediction (ablation)Llama 2 · MBPPpass@1: 39.6 -> 38.3No clear effect
train with 2-token rather than next-token prediction (ablation)7B natural-language model trained on 200B tokens · standard NLP benchmarksaverage accuracyNo clear effect
train with 4-token rather than next-token prediction (ablation)7B natural-language model trained on 200B tokens · standard NLP benchmarksaverage accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: code training corpus (200B tokens, 1T tokens) natural language corpus (200B, 500B tokens) CodeContests CNN/Dailymail Multi-News OrangeSum pn-summary SAMSum ThaiSum WikiSummary XSum GSM8K

Benchmarks: MBPP HumanEval APPS/Intro CodeContests ARC Challenge COPA Hellaswag Natural Questions PIQA SIQA TriviaQA eight summarization benchmarks (ROUGE)

Metrics: pass@1 pass@10 pass@100 ROUGE-L F1 accuracy relative speedup tokens per forward

Baselines: next-token prediction baseline linear heads causal and anticausal head variants Llama 2

Builds on: blockwise parallel decoding speculative decoding Medusa

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy