Reproduce “On multi-token prediction for efficient LLM inference” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Somesh Mehra, Javier Alonso Garcia, Lukas Mauch

Large language models pre-trained for next-token prediction inherently possess multi-token prediction capabilities, which can be extracted via numerical marginalization and improve with model scale due to probability sparsification. Adapting dedicated MTP heads to these models is challenging due to early architectural specialization for NTP, though joint finetuning, especially with a novel Weighted Hidden States (WHS) approach, improves MTP performance, achieving the best results among tested strategies.

Key insights

  • LLMs pre-trained for next-token prediction inherently possess multi-token prediction capabilities via numerical marginalization, which improves with increasing model size due to a 'sparsification' of next-token probabilities.
  • Hidden layers of pre-trained LLMs, especially larger ones, exhibit strong specialization for NTP very early in their architecture, making it challenging to effectively adapt new MTP heads to a frozen backbone.
  • Jointly finetuning the LLM backbone along with the MTP heads, particularly with the Weighted Hidden States (WHS) approach, is crucial for mitigating NTP specialization and significantly improving MTP performance.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.