Reproduce “ViSpec: Accelerating Vision-Language Models with Vision-Aware Speculative Decoding” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jialiang Kang, Han Shu, Wenshuo Li, Yingjie Zhai, Xinghao Chen
ViSpec introduces a vision-aware speculative decoding framework to accelerate vision-language model inference, achieving up to 3.22x speedup and an average 2.58x for LLaVA-v1.6-Vicuna-7B on multimodal tasks compared to standard decoding while maintaining output quality. The Huawei Noah's Ark Lab and Peking University research addresses specific challenges of visual data processing within speculative decoding.
Key insights
- Effective VLM speculative decoding requires vision-aware mechanisms tailored to handle the unique characteristics and redundancy of visual data, rather than direct adaptation from text-only methods.
- Compressing visual embeddings into a few salient tokens significantly improves the efficiency and predictive accuracy of shallow draft models.
- Continuously injecting global visual context into the draft model's hidden states is crucial for maintaining multimodal alignment and mitigating context loss over extended generation.
- Synthetic data generation through targeted prompting of target VLMs can effectively create large-scale, high-quality training data for VLM draft models, overcoming data scarcity.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.