TL;DR
Large Vision-Language Models (LVLMs) are slow to infer. This paper introduces TABED, a novel method that dynamically combines multiple "draft" predictions from smaller models to accelerate LVLM inference without retraining. TABED achieves a robust 1.74x speedup on average across diverse scenarios, outperforming single-drafting methods.
What Problem Does This Paper Address?
Modern AI models, especially Large Vision-Language Models (LVLMs) that process both text and images, are becoming increasingly powerful but also computationally expensive, leading to slow inference times. Speculative Decoding (SD) is a technique that speeds up inference by having a smaller "draft" model predict tokens ahead of time, which are then verified by the main, larger model. However, applying SD to LVLMs is challenging because their performance can vary wildly depending on the input (e.g., image-heavy vs. text-heavy prompts, single vs. multi-turn conversations). Existing SD methods struggle to consistently accelerate LVLMs across these diverse scenarios, often requiring specific tuning or additional training. The authors aim to develop a robust, training-free, and adaptable SD method for LVLMs that works well across a wide range of inputs.
Methods
The core of the paper is Test-time Adaptive Batched Ensemble Drafting (TABED). Here's how it works:
- Batched Inference for Drafts: Instead of relying on a single draft model, TABED uses multiple draft models simultaneously via batched inference. This allows it to generate several potential "draft" sequences for the next tokens.
- Dynamic Ensemble Weighting: The key innovation is how TABED combines these multiple drafts. It uses "test-time adaptation" to dynamically assign weights to each draft model's predictions. These weights are adjusted during inference based on how well each draft model's past predictions (from a "window" of recent tokens) align with the ground truth provided by the main LVLM.
- Leveraging Ground Truth: In the SD setting, the main LVLM verifies the draft tokens, providing both hard labels (accepted tokens) and soft labels (probabilities). TABED uses this information to learn which draft models are performing better for the current input and adjusts their influence accordingly.
- Training-Free and Plug-and-Play: TABED is designed to be training-free. It works with existing draft models and can be easily integrated with advanced verification or alternative drafting methods, making it highly extensible.
Datasets
The authors benchmarked their method on 11 datasets, including:
- Benchmark Datasets: LLaVA-Bench (In-the-Wild), DocVQA, POPE, MMVet, IEdit, MagicBrush, Spot The Difference.
- Out-of-Distribution (OOD) Datasets: Pororo-SV, VIST.
These datasets cover a variety of tasks, including visual question answering, image description, editing, and reasoning, across single-turn and multi-turn interactions.
Key Insights and Ideas
- Scenario-Specific Performance: A major finding is that no single drafting method (multimodal or text-only) consistently outperforms others across all LVLM input scenarios. This variability makes choosing a fixed drafting strategy difficult.
- Ensembling is Key, but Needs Adaptation: While ensembling multiple drafts is beneficial, simply averaging them isn't enough. TABED's success comes from its adaptive weighting, which learns to favor better-performing drafts in real-time.
- Ground Truth is Gold: The ability to leverage the main model's verification (ground truth) during inference is crucial for TABED's adaptive weighting. This is a unique advantage of SD for test-time adaptation.
- Robustness to OOD: TABED shows particular strength in OOD scenarios, where it effectively down-weights underperforming drafts, leading to more consistent performance.
Key Results
- Robust Speedup: TABED achieves an average robust walltime speedup of 1.74x over standard autoregressive decoding.
- Improvement over Single Methods: It provides a 5% improvement compared to existing single drafting methods, with much more stable performance across diverse scenarios.
- No Additional Training: The method is entirely training-free, making it easy to adopt.
- Negligible Overhead: Ensembling costs are kept negligible due to parameter sharing.
- Enhanced Performance with Extensions: Integrating TABED with advanced verification (token-tree) and new drafting methods further boosted performance.
Limitations and Future Work
- Draft Model Capacity: The current work focuses on small draft models. Future work could explore using larger, more capable draft models.
- Broader LVLM Families: Evaluating TABED on a wider range of LVLM architectures beyond LLaVA would be valuable.
- Theoretical Modeling: Developing a more theoretically grounded approach to modeling the relationship between past context and dynamic ensemble weights could further enhance the method.
- Other Modalities: Extending TABED to other multimodal tasks (e.g., those involving audio) is a promising direction.
- Diffusion Models: The authors suggest exploring TABED for diffusion-based LLMs, which have different decoding properties.
Summary updated