Skip to main content
QUICK REVIEW

[Paper Review] Speculative Decoding with Big Little Decoder

Sehoon Kim, Karttikeya Mangalam|arXiv (Cornell University)|Feb 15, 2023
Topic ModelingComputer Science8 citations
TL;DR

BiLD couples a small autoregressive decoder with a large non-autoregressive decoder, using fallback and rollback policies to accelerate text generation with minimal quality loss.

ABSTRACT

The recent emergence of Large Language Models based on the Transformer architecture has enabled dramatic advancements in the field of Natural Language Processing. However, these models have long inference latency, which limits their deployment and makes them prohibitively expensive for various real-time applications. The inference latency is further exacerbated by autoregressive generative tasks, as models need to run iteratively to generate tokens sequentially without leveraging token-level parallelization. To address this, we propose Big Little Decoder (BiLD), a framework that can improve inference efficiency and latency for a wide range of text generation applications. The BiLD framework contains two models with different sizes that collaboratively generate text. The small model runs autoregressively to generate text with a low inference cost, and the large model is only invoked occasionally to refine the small model's inaccurate predictions in a non-autoregressive manner. To coordinate the small and large models, BiLD introduces two simple yet effective policies: (1) the fallback policy that determines when to hand control over to the large model; and (2) the rollback policy that determines when the large model needs to correct the small model's inaccurate predictions. To evaluate our framework across different tasks and models, we apply BiLD to various text generation scenarios encompassing machine translation on IWSLT 2017 De-En and WMT 2014 De-En, and summarization on XSUM and CNN/DailyMail. On an NVIDIA T4 GPU, our framework achieves a speedup of up to 2.12x speedup with minimal generation quality degradation. Furthermore, our framework is fully plug-and-play and can be applied without any modifications in the training process or model architecture. Our code is open-sourced

Motivation & Objective

  • Motivate reduction of inference latency for autoregressive text generation with minimal quality loss.
  • Introduce a plug-and-play framework that coordinates two decoders of different sizes without retraining the base models.
  • Propose simple policies (fallback and rollback) to decide when the large model should intervene and when to roll back predictions.
  • Demonstrate applicability across machine translation and summarization benchmarks with open-source implementation.

Proposed method

  • Two-model decoding where a small model generates tokens autoregressively and a large model refines predictions non-autoregressively.
  • Fallback policy: trigger large-model inference when small-model confidence (max p_S) falls below a threshold alpha_FB.
  • Rollback policy: large model can override earlier small-model predictions if its distributions diverge beyond alpha_RB, rolling back subsequent tokens.
  • Prediction alignment technique to align small and large model outputs using calibration data to reduce unnecessary rollbacks.
  • Algorithm 1 details the end-to-end BiLD process and policy checks for each decoding step.

Experimental results

Research questions

  • RQ1Can a small autoregressive model provide most of the generation with occasional large-model refinement to reduce latency?
  • RQ2Do simple fallback and rollback policies yield meaningful speedups with acceptable quality loss across tasks?
  • RQ3Does alignment between independently trained small and large models improve BiLD performance?
  • RQ4Can BiLD be connected with early-exit strategies and remain competitive with specialized training pipelines?
  • RQ5How does BiLD perform on translation and summarization benchmarks compared to full autoregressive decoding?

Key findings

  • BiLD achieves up to 2.12x end-to-end speedup with approximately 1-point BLEU/ROUGE-L degradation on certain tasks.
  • Unaligned BiLD averages 1.50x speedup across benchmarks with no degradation in quality on some tasks; aligned BiLD averages 1.61x with up to 1.85x speedups.
  • Prediction alignment further improves performance, yielding higher speedups and better quality compared to unaligned BiLD.
  • Ablation shows rollback and fallback policies are each critical for maintaining quality and latency advantages.
  • BiLD can be extended to early-exit scenarios, achieving up to 1.74x speedups with minimal BLEU loss on MT benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.