TL;DR
This paper introduces LANTERN++, a new method to speed up image generation from visual auto-regressive models. By combining static tree drafting with a novel multiplicative relaxation technique, LANTERN++ overcomes limitations of previous methods, achieving up to 2.56x faster inference while maintaining high image quality.
What Problem Does This Paper Address?
Generating high-quality images with auto-regressive (AR) models, especially visual ones, is computationally expensive. While speculative decoding techniques have successfully accelerated text generation, they struggle with visual AR models. This is primarily due to "token selection ambiguity," where the model isn't confident about the next token (multiple tokens have similar low probabilities). This ambiguity makes it hard for a "drafter" model to propose good candidate tokens, leading to frequent rejections and limited speedups. Previous attempts like LANTERN improved things by allowing "relaxed" acceptance of draft tokens, but the ambiguity still resulted in shallow "draft trees" and thus limited acceleration.
Methods
LANTERN++ tackles the limitations of previous methods by introducing two key innovations:
- Static Tree Drafting: Instead of dynamically adapting the draft tree structure based on the drafter's confidence (which is low in visual models), LANTERN++ uses a fixed, predefined tree structure. This ensures that deep draft sequences can be generated even when the drafter is uncertain.
- Multiplicative Relaxation: The paper refines the "relaxed acceptance" condition. Instead of adding a fixed boost to probabilities (additive relaxation), LANTERN++ uses a multiplicative bound. This means the acceptance probability is scaled proportionally to the original target model's likelihood. This approach is more stable and consistent, preventing over-amplification of low probabilities and ensuring a more balanced acceleration across different tokens.
Datasets
The experiments were conducted on the MS-COCO 2017 validation set. For training the drafter models, the authors used images from the LAION-COCO dataset and generated images using the target models themselves, based on MS-COCO 2017 captions.
Key Insights and Ideas
- Token Ambiguity is the Bottleneck: The core problem for speculative decoding in visual AR models isn't just the model's speed, but its inherent uncertainty in predicting the next token, which previous methods couldn't fully overcome.
- Static Structure is More Robust: For visual AR models, a fixed, "static" tree structure for drafting is more reliable than a dynamic one, as it doesn't rely on the drafter's often low confidence.
- Proportionality Matters in Relaxation: A multiplicative approach to relaxing acceptance probabilities is superior to an additive one. It scales better with varying token probabilities, leading to more consistent acceleration and better image quality.
- Trade-offs Exist, But Are Manageable: While relaxed acceptance can slightly increase metrics like FID (indicating minor degradation in image quality), LANTERN++ shows this degradation is minimal and controllable by adjusting the relaxation parameter.
Key Results
- Significant Speedup: LANTERN++ achieves up to 2.56x speedup over standard AR decoding and 3.63x step compression.
- Maintained Image Quality: Despite the acceleration, the image quality remains high, with only a slight, controllable increase in FID and competitive CLIP scores.
- Outperforms Previous Methods: LANTERN++ consistently outperforms EAGLE-1 (a prior state-of-the-art method) across various visual AR models (Lumina-mGPT, Anole, LlamaGen-XL).
- Extended Tree Benefits: Using an extended static tree structure (more nodes) further improves acceleration and reduces latency, demonstrating the effectiveness of deeper draft trees.
Limitations and Future Work
- Tuning the Multiplicative Bound: The paper notes that tuning the multiplicative bound ($\lambda$) is crucial for balancing acceleration and image quality.
- Adaptive Acceptance: The authors suggest future work could explore adaptive acceptance mechanisms that dynamically adjust relaxation based on token uncertainty.
- Hybrid Drafting: Combining static and dynamic tree structures could be a promising avenue for further efficiency improvements.
Summary updated