Introduction
Autoregressive (AR) models have emerged as a dominant paradigm for high-quality text-to-image generation. However, their sequential decoding nature—generating images token-by-token—imposes a significant "speed limit." Creating a single high-resolution image often requires thousands of model forward passes, resulting in high inference latency that hinders real-time applications.
While parallel decoding techniques like Jacobi iterations have been proposed to predict multiple tokens simultaneously, they often suffer from instability. The refinement process in standard Jacobi decoding is unconstrained, leading to erratic convergence. Conversely, Diffusion models utilize a stable, mathematically guided denoising trajectory to transform noise into coherent images efficiently. This paper introduces Speculative Jacobi-Denoising Decoding (SJD2), a framework that leverages the stability of diffusion-style denoising to guide and accelerate the parallel decoding of AR models.
Methodology
The SJD2 framework consists of a specialized fine-tuning strategy and a hybrid decoding algorithm designed to bridge the gap between AR and diffusion processes.
1. Next-Clean-Token Prediction
Standard AR models are typically trained on clean data. SJD2 fine-tunes these models to handle "noisy" token embeddings. The model is tasked with predicting the "clean" (noise-free) version of the next token given a sequence of noisy inputs. To ensure compatibility with the transformer's expected input scales, the authors implement a "Normalize-then-Denoise" approach, standardizing embedding scales before adding noise.
2. Speculative Jacobi-Denoising Algorithm
During inference, the model maintains a "Jacobi window" of tokens. Instead of the random refinement seen in traditional Jacobi methods, unaccepted tokens within this window are updated following a Denoising Trajectory (specifically utilizing the Karras scheduler).
The process involves:
- Verification & Acceptance: A probabilistic criterion determines how many tokens in the current window meet the quality threshold.
- Window Sliding: Accepted tokens are fixed, the window slides forward, and new noisy tokens are appended for the next iteration.
Experimental Evaluation
The researchers evaluated SJD2 using several benchmarks:
- MSCOCO (2014 & 2017): For quantitative metrics such as FID (Fréchet Inception Distance) and CLIP scores.
- GenEval: To assess fine-grained visual quality, including color accuracy, spatial positioning, and object counting.
- Internal High-Res Dataset: Approximately 80,000 high-resolution images were used for noise-augmented fine-tuning.
Key Results
SJD2 demonstrates a profound reduction in the computational cost of image generation without sacrificing visual fidelity.
- Massive Step Reduction: On the Lumina-mGPT model, SJD2 reduced the required forward passes from 2,357 to 592 (a 4x reduction). For Emu3, steps dropped from 8,193 to 1,461 (a 5.6x reduction).
- Wall-Clock Speedup: Despite the mathematical overhead of the denoising process, the framework achieved a practical speedup of over 2x on hardware like NVIDIA A100 and RTX 4090 GPUs.
- Quality Preservation: Quantitative benchmarks (FID/CLIP) and qualitative human evaluations confirm that SJD2-generated images are virtually indistinguishable from those produced by the sequential baseline.
Discussion and Limitations
The core insight of SJD2 is that the denoising trajectory provides a "map" for Jacobi iterations, preventing the instability that typically slows down parallel AR decoding. By utilizing the transformer's inherent ability to process token windows in parallel, SJD2 achieves "zero-cost parallelism" on modern hardware.
However, some limitations remain:
- Memory Overhead: The denoising process requires storing additional variables, adding approximately 3GB of GPU memory overhead.
- KV Cache Sensitivity: The efficiency of the model's Key-Value (KV) cache significantly influences how effectively step reduction translates into actual time savings.
Future work may involve stabilizing latency across diverse KV cache architectures and extending the denoising-guided approach to other modalities, such as video or audio generation.
Summary updated