Skip to content
AI.info

Research

Annealed Relaxation of Speculative Decoding for Faster Autoregressive Image Generation

Overview Research area: Efficient inference for autoregressive (AR) image generation, specifically speculative decoding (SD) and its relaxed variants. Technical level: Advanced. The paper is built on

arXiv
2601.09212
Published
2026-01-14
Authors
Xingyao Li, Fengzhuo Zhang, Cunxiao Du, Hui Ji

AI summary

Overview

  • Research area: Efficient inference for autoregressive (AR) image generation, specifically speculative decoding (SD) and its relaxed variants.
  • Technical level: Advanced. The paper is built on coupling theory, total variation bounds, and perturbation analysis, though the core idea can be understood without the proofs.
  • Scope: A theoretical analysis of relaxed speculative decoding that yields an optimal resampling distribution and an annealed acceptance schedule, packaged as a method called Cool-SD and validated on LlamaGen-XL and Lumina-mGPT.

What This Paper Is About

Autoregressive image models generate images one token at a time, so inference is slow, and standard speculative decoding helps less than it does for text because many image tokens are near-tied in probability. Prior fixes such as LANTERN and LANTERN++ relax the acceptance test to accept more drafted tokens, but they are heuristic and come with no mathematical account of how far their output drifts from the target model. This paper supplies that account and uses it to design a relaxation that is both faster and higher quality than those heuristics.

Key Contributions

  1. A general Relaxed SD framework that replaces the rigid exact-match acceptance test of vanilla SD with arbitrary acceptance functions, together with derivations of the expected accepted token length and an almost-tight upper bound on the total variation (TV) distance to the target distribution.
  2. Token-wise optimal resampling distributions {G_i*} obtained by minimizing that TV upper bound given any acceptance criteria, plus a proof that when the acceptance probability is not tightened below the vanilla criterion, G_i* coincides with the vanilla resampling distribution G_i^van.
  3. An annealing property: under a perturbation analysis with the expected accepted length held fixed, shifting relaxation toward earlier positions and tightening it at later positions lowers the distributional bias bound. This motivates an exponentially decaying acceptance schedule ω_i = δ · exp(−ν·i − μ).
  4. Cool-SD, which combines the derived resampling distributions with the decaying schedule, plus experiments showing it improves the speed–quality trade-off over Eagle-1 and LANTERN++, and that applying G_i* alone to LANTERN++ improves that method as well.

Main Findings

  • Speed–quality trade-off on Lumina-mGPT: With δ=1.1, Cool-SD reaches an accepted length of 3.11 (±0.07), latency 63.24 s (±1.83), and speed-up 2.69× (CLIP 0.3325, FID 30.30, IR 0.6699), compared with Eagle-1 at accepted length 2.76 (±0.07), latency 71.66 s (±1.80), 2.37× (CLIP 0.3330, FID 29.05, IR 0.6883) and LANTERN++ (λ=2, k=10) at accepted length 2.99 (±0.07), latency 68.64 s (±1.86), 2.48× (CLIP 0.3328, FID 30.31, IR 0.6697). The unrasterized target model itself runs at 170.14 s (±1.32) per image (CLIP 0.3330, FID 28.99, IR 0.6855).
  • Speed–quality trade-off on LlamaGen-XL: With δ=1.1, accepted length 2.73 (±0.16), latency 4.46 s (±0.34), 2.27× (CLIP 0.3167, FID 21.02, IR −0.0997); with δ=2, accepted length 3.34 (±0.20), latency 3.72 s (±0.27), 2.72× (CLIP 0.3154, FID 21.20, IR −0.1353). Eagle-1 gives accepted length 2.42 (±0.15), latency 4.99 s (±0.34), 2.03× and LANTERN++ (λ=2, k=10) gives 2.67 (±0.18), 4.70 s (±0.38), 2.15×.
  • Tunable quality loss: Smaller δ keeps quality near the lossless baseline with faster inference; larger δ buys more speed with modest quality loss. On LlamaGen, raising accepted length from 2.42 to 2.73 produced negligible FID and CLIP change, and even at 3.34 image quality remained nearly unchanged.
  • Annealing beats uniform relaxation: Comparing Cool-SD against UniformRSD (a constant ω_i = δ) in the trade-off curves shows the decaying schedule yields a better generation-quality versus inference-speed trade-off.
  • Superiority across hyperparameter settings: When δ for Cool-SD and λ, k for LANTERN++ are both varied, Cool-SD still outperforms LANTERN++.
  • The optimal resampling distribution transfers: Applying G_i* to LANTERN++ improves its performance regardless of the setting of k, and while LANTERN++'s bias grows with larger k under its own resampling strategy, the paper's distribution mitigates this.
  • Qualitative behavior: Increasing δ from 1.1 to 3.0 raises inference speed while visual quality remains comparable to vanilla SD as speed increases from 2.37× to 3.10×; beyond roughly 3.70× some image degradation appears but remains manageable.
  • Reported latency mechanism: Cool-SD avoids the nearest-token probability retrieval and summation that LANTERN++ requires, which the authors cite as an additional source of latency improvement.
  • Not reported: The truncated content does not include the proofs of Theorems 1–2 or Propositions 1–2, the detailed hyperparameter search, or the SJD comparison results, which are said to be in Appendices C, D, E, and F.

Methodology in Plain English

Vanilla speculative decoding pairs a large target model with a small draft model. The draft model proposes a run of tokens, the target model scores them all in one pass, and tokens are accepted only when they match the target's prediction closely; rejected tokens are corrected by resampling so the output is exactly the target distribution. That exact-match rule is what breaks down for image tokens, where several candidates have nearly the same probability.

The authors first generalize the rule: any drafted token can be accepted with a controllable probability, not just when it matches. Relaxing the rule prolongs accepted prefixes but shifts the output away from the target distribution. To quantify that shift, they measure efficiency as the expected number of accepted tokens and fidelity loss as the TV distance between the output distribution and the target distribution, conceptually padding each generated sequence to a fixed length with target-model samples so the comparison is fair.

Minimizing the resulting TV upper bound produces a closed-form optimal resampling distribution for each position. A perturbation argument then shows that when the total expected accepted length is held fixed, bias is lower if relaxation is generous early and tight late, so the authors make the relaxation parameter decay exponentially along the draft length, normalized so the total relaxation budget is preserved. The result is Cool-SD. Experiments use a single NVIDIA A100-SXM4-40GB GPU, draft models trained following an Eagle/LANTERN++-style pipeline, and evaluation on 5,000 randomly selected captions from the MS-COCO 2017 validation set, using CLIP score, FID, and ImageReward alongside accepted length and latency.

Why This Matters

  • For research: It replaces the empirically driven relaxation heuristics of LANTERN and LANTERN++ with a derivation that connects acceptance criteria to a bound on distributional divergence, and it shows that the theoretically optimal resampling distribution can be dropped into an existing method to improve it.
  • Real-world applications:
    • Interactive image generation and design tools where users wait on each generation step.
    • On-device or edge deployment of AR image models, where the latency reduction from 170.14 s to 63.24 s per image on the 7B Lumina-mGPT target matters.
    • Batch content pipelines (advertising, e-commerce imagery) that benefit directly from higher accepted-token lengths per forward pass.
    • Multi-modal generation systems built on shared tokenizers, where a single acceleration scheme applies across modalities.
  • Industry relevance: The method is a drop-in modification to existing speculative decoding loops and, unlike LANTERN++, requires no nearest-token probability retrieval or summation, making it simpler to implement in production serving stacks.

Future Directions

  • Extending the annealing analysis beyond L=2: The proposition is stated for two positions with the note that larger L follows by comparing neighboring positions; a full-length treatment is a natural next step.
  • Characterizing the exact quality floor: Because any relaxation introduces bias that resampling cannot fully correct, the practical question of how to choose δ for a target fidelity budget remains an empirical matter in this paper.
  • Broader evaluation: The reported evaluation covers LlamaGen-XL, Lumina-mGPT, and 5,000 MS-COCO 2017 validation captions; generalization to other AR image models, tokenizers, and prompt distributions is untested here.
  • Interaction with tree-based drafting: The paper adopts a static tree structure following Eagle-1; how the derived resampling distribution and decaying schedule interact with other drafting structures is left open.

Target Audience

Researchers and engineers working on efficient inference for autoregressive generative models, particularly those already familiar with speculative decoding and its tree-based variants. Readers focused on diffusion or flow-matching models will find the framing relevant but the analysis specialized. The theoretical sections suit readers comfortable with coupling arguments and TV distance bounds, while the experimental tables and trade-off curves are usable by practitioners seeking concrete latency and quality numbers.

Authors’ abstract

Despite significant progress in autoregressive image generation, inference remains slow due to the sequential nature of AR models and the ambiguity of image tokens, even when using speculative decoding. Recent works attempt to address this with relaxed speculative decoding but lack theoretical grounding. In this paper, we establish the theoretical basis of relaxed SD and propose COOL-SD, an annealed relaxation of speculative decoding built on two key insights. The first analyzes the total variation (TV) distance between the target model and relaxed speculative decoding and yields an optimal resampling distribution that minimizes an upper bound of the distance. The second uses perturbation analysis to reveal an annealing behaviour in relaxed speculative decoding, motivating our annealed design. Together, these insights enable COOL-SD to generate images faster with comparable quality, or achieve better quality at similar latency. Experiments validate the effectiveness of COOL-SD, showing consistent improvements over prior methods in speed-quality trade-offs.

Read the original paper