atlas

Research map / Large language models / Language, safety and interpretability

Tandem Transformers for Inference Efficient LLMs

ICML 2024 · Large language models › Language, safety and interpretability · approach: Parallel and early-exit decoding · 0 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 Tandem Transformers, pairing a small autoregressive model that attends to a large block-mode model's representations, and combines it with speculative decoding (SPEED) for faster inference with PaLM2 models.

Problem

Autoregressive generation in LLMs is sequential and slow, and existing speculative/parallel decoding drafters are either weak small models or fail to exploit the base LLM's representations.

Approach

A small autoregressive model generates blocks of gamma tokens while attending to the large model's (PaLM2-Bison) representations of prior tokens, which the large model processes in block mode; a linear projection aligns dimensions. Used standalone or as the SPEED drafter, with logit distillation and an adaptive block length router.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Give PaLM2-Gecko access to PaLM2-Bison representations in TandemPaLM2-Gecko · Ground-truth next-token predictionaccuracy: 55.06 -> 58.35Helped
Add logit distillation to Tandem-CE training (ablation)Tandem-CE · Ground-truth next-token predictionaccuracy: 58.35 -> 58.61Helped
Use Tandem-Distil instead of PaLM2-Gecko-Distil as the SPEED drafterSPEED with PaLM2-Bison verifier · Reddit, num-samples=1speedup over PaLM2-Bison: 2.169 \times -> 2.471 \times; 1.139 \times relative gainHelped
Use Tandem-Distil instead of PaLM2-Gecko-Distil as the SPEED drafterSPEED with PaLM2-Bison verifier · CNN/DailyMail, num-samples=1speedup over PaLM2-Bison: 2.219 \times -> 2.473 \times; 1.115 \times relative gainHelped
Use Tandem-Distil instead of PaLM2-Gecko-Distil as the SPEED drafterSPEED with PaLM2-Bison verifier · LM1B, num-samples=1speedup over PaLM2-Bison: 2.348 \times -> 2.610 \times; 1.112 \times relative gainHelped
Use adaptive block length (ablation)Tandem-Distil + SPEED · Reddit, num-samples=1speedup over Tandem-Distil + SPEED: 1.045 \timesHelped
Use adaptive block length (ablation)Tandem-Distil + SPEED · CNN/DailyMail, num-samples=1speedup over Tandem-Distil + SPEED: 1.051 \timesHelped
Use adaptive block length (ablation)Tandem-Distil + SPEED · LM1B, num-samples=1speedup over Tandem-Distil + SPEED: 1.093 \timesHelped
Replace PaLM2-Gecko with smaller PaLM2-XXXS as the Tandem secondary model (ablation)Tandem-Distil + SPEED · LM1B, num-samples=1relative speedup over distilled secondary-model SPEED: 1.139 \times -> 1.243 \timesHelped

Surprising findings

Limitations

Experimental setup

Datasets: PaLM2 pretraining dataset

Benchmarks: SuperGLUE TydiQA-GoldP Generative-tasks (SQuADv2, Natural Questions, TriviaQA, WebQuestions, Lambada) MBPP WMT22 CNN/DailyMail Reddit Posts LM1B

Metrics: accuracy F1 exact match cross entropy relative total variation distance end-to-end latency speedup acceptance rate

Baselines: PaLM2-Gecko PaLM2-Gecko-Distil PaLM2-Otter PaLM2-Bison PaLM2-XXXS-Distil SPEED with distilled PaLM2-Gecko

Builds on: speculative decoding logit distillation LoRA Medusa DistilSpec

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