Abstract
Visual Autoregressive (AR) models have emerged as powerful alternatives to diffusion models for high-quality image synthesis. However, their sequential token-generation process leads to significant inference latency. Speculative decoding, a common acceleration technique in Large Language Models (LLMs), often fails to provide similar gains for images due to the high spatial variance in prediction difficulty. We propose ADT-Tree (Adjacency-Adaptive Dynamical Draft Trees), a plug-and-play algorithm that dynamically resizes draft trees based on local image complexity. By utilizing spatial coherence for initialization and bisectional adaptation for refinement, ADT-Tree achieves a 3.13× speedup on MS-COCO benchmarks with zero loss in image quality.
Introduction
Recent advancements in autoregressive modeling, such as Emu3 and Anole, have demonstrated superior image quality compared to traditional diffusion models. Despite these gains, AR models are computationally expensive at inference time. Generating a standard 576×576 image requires approximately 2,000 sequential steps, as each token must be predicted based on all previous tokens.
In the domain of LLMs, speculative decoding mitigates this bottleneck by using a smaller "draft" model to predict a sequence of tokens, which a larger "target" model then verifies in parallel. However, applying this directly to images is problematic. Unlike text, where prediction difficulty is relatively uniform, images exhibit extreme spatial variance. Predicting a uniform background is trivial, while predicting complex textures or specific features is highly difficult. Static draft trees used in existing methods are often inefficient—either too shallow for simple regions or too deep for complex ones.
Methodology: Adjacency-Adaptive Dynamical Draft Trees
The proposed ADT-Tree algorithm addresses these inefficiencies by reshaping the draft tree on the fly through two primary mechanisms:
1. Adjacent Initialization
Images exhibit strong spatial correlation. If a model successfully predicts a pixel, it is likely to succeed on its neighbors. ADT-Tree leverages this by initializing the draft tree's depth ($d$) and width ($k$) based on the parameters used for the preceding tokens (either to the left or above). This "Horizontal Repeat" strategy ensures that the drafting process starts with a configuration suited to the local image context.
2. Bisectional Dynamic Adaptation
During the drafting process, the system monitors the acceptance rate ($\alpha$)—defined as the number of tokens the target model accepts from the draft. The tree structure is then adjusted:
- High Acceptance (Positive Status): In "easy" regions, the algorithm increases tree depth and decreases width. This allows the draft model to look further ahead, maximizing the number of tokens generated per step.
- Low Acceptance (Negative Status): In "hard" or complex regions, the algorithm reduces depth and increases width ($k$). This broadens the search at a shallower level, preventing the system from wasting computation on long, likely-to-be-rejected paths.
Evaluation and Key Insights
The researchers evaluated ADT-Tree across several benchmarks, including MS-COCO 2017, PartiPrompts, and LAION-COCO.
The Visual Ambiguity Gap
A key finding of this work is the "Visual Ambiguity Gap." While draft models for text (e.g., Vicuna-7B) achieve approximately 70% accuracy, image-specific draft models like Anole-7B struggle to reach 30%. This disparity highlights that guessing the next image token is fundamentally more difficult than predicting the next word in a sentence.
Performance Results
- Speedup: ADT-Tree achieved a 3.13× speedup on MS-COCO and a 3.05× speedup on PartiPrompts when integrated with LANTERN (a relaxed sampling method).
- Efficiency: The primary driver of these gains is the reduction in Mean Draft Tree Depth. By avoiding deep trees in complex regions, ADT-Tree significantly reduces wasted drafting time.
- Fidelity: Since the target model verifies every token, the final image quality (measured by FID and IS) remains identical to the original autoregressive inference.
Conclusion and Future Work
ADT-Tree provides a robust, plug-and-play solution for accelerating visual AR models by adapting to the inherent spatial complexity of images. While highly effective, the method currently relies on statistical feedback from the acceptance rate. Future research may explore "feature-blind" adaptation, using proactive visual analysis (e.g., edge detection in latent space) to adjust the draft tree before verification, potentially unlocking even greater inference speeds.
Summary updated