TL;DR
SJD-PAC accelerates autoregressive text-to-image generation by up to 3.8× without requiring any extra model training or sacrificing image quality. It achieves this by introducing proactive drafting to prevent cascading token rejections and adaptive continuation to keep verifying tokens even after a mismatch occurs.
What Problem Does This Paper Address?
Autoregressive (AR) text-to-image (T2I) models generate stunning, state-of-the-art images, but they are notoriously slow. Because they treat image generation as a sequence-to-sequence problem, they must predict thousands of visual tokens one by one.
Speculative Decoding (SD) typically solves this in language models by using a small "draft" model to guess tokens ahead of time, which a larger "target" model then verifies in parallel. However, standard SD fails in the visual domain because image generation is inherently high-entropy—many tokens are equally plausible, causing draft models to guess poorly.
Speculative Jacobi Decoding (SJD) is a training-free, mathematically lossless alternative that lets the target model generate its own drafts via fixed-point iteration. Yet, vanilla SJD only yields a modest ~2× speedup. The authors pinpointed the bottleneck: in nearly 50% of forward passes, SJD accepts only a single token. A single rejection causes a context mismatch that ruins all subsequent predictions in that step, triggering a cascade of rejections.
Methods
SJD-PAC (Proactive Drafting and Adaptive Continuation) eliminates this bottleneck through two training-free mechanisms:
- Proactive Drafting (PD): When a token is rejected, standard SJD generates a single replacement chain that is misaligned with its new context. PD fixes this by building a shallow, wide $K$-ary tree (e.g., depth 3, 4 branches) right at the rejection point, followed by a single chain extension. This provides a diverse set of local candidate paths for the next iteration, drastically reducing the chance of immediate rejections.
- Adaptive Continuation (AC): Standard SJD completely stops verification at the first rejected token. AC eliminates this hard stop. When a token fails verification, AC resamples it but continues verifying the rest of the sequence using cached, stale distributions.
The conceptual difference in how these methods handle rejections is illustrated below:
Datasets
The authors evaluated SJD-PAC on two standard text-to-image benchmarks:
- MS-COCO 2017 validation set: Used to measure both generation quality (FID, CLIP-Score) and decoding speed.
- PartiPrompts dataset: Used to evaluate text-to-image alignment and speedup across diverse prompts.
Experiments were conducted using two top-tier autoregressive models: Lumina-mGPT (7B) and Emu3 (8B).
Key Insights and Ideas
- The Single-Token Bottleneck: As shown in Figure 1, the distribution of accepted tokens in vanilla SJD is highly skewed. Half of the steps contribute absolutely nothing to acceleration because the very first draft token fails verification.
- Image Locality vs. Text Sensitivity: A major "aha moment" comes from analyzing how context perturbations affect token distributions. In text, a change early in a sentence alters the meaning of words far down the line. In images, however, the authors discovered that the Total Variation (TV) distance drops sharply as you move away from a changed token (Figure 4). Image tokens possess strong spatial locality, meaning stale distributions remain highly accurate for validating tokens further down the sequence. AC directly exploits this property.
Key Results
SJD-PAC establishes a new state-of-the-art for lossless T2I acceleration:
- Lumina-mGPT: Achieved a 4.51× step compression and a 3.80× wall-clock speedup on MS-COCO, outperforming vanilla SJD (2.05×) and EAGLE-2 (2.10×).
- Emu3: Delivered a 3.25× latency speedup on MS-COCO.
- Lossless Quality: Unlike lossy acceleration methods (like GSD) which introduce noticeable visual artifacts to achieve speed, SJD-PAC maintains identical image quality to the baseline models (FID of 30.69 vs 30.79 baseline on Lumina-mGPT).
Limitations and Future Work
While SJD-PAC is entirely model-agnostic, its performance gains rely on an empirical balance between the Proactive Drafting hyperparameters (tree depth $D$ and branching factor $K$) and the Jacobi window length ($L$). If the tree is too large, it eats into the computational budget and shortens the drafting chain.
For future work, the authors suggest pairing SJD-PAC's stable, multi-draft verification loop with advanced, relaxed acceptance heuristics (such as those used in lossy methods) to push generation speeds even further without sacrificing fine-grained image details.
Summary updated