FastVLM: Self-Speculative Decoding for Fast Vision-Language Model Inference
Divya Jyoti Bajpai, Manjesh Kumar Hanawal
TL;DR
FastVLM introduces a self-speculative decoding framework for vision–language models that uses a lightweight draft model augmented by an imitation network to mimic deeper representations, enabling verification by a full model. By decoupling draft and final-layer objectives and reusing a shared KV-cache, the approach maintains full-model accuracy while achieving substantial inference speedups of approximately $1.55$–$1.85\times$. The imitation network learns to recover deep-layer information via Cosine Similarity and knowledge distillation losses, with dynamic drafting parameters $d(t)$ and an empirical reward to select the draft depth $n$, validated across multiple VL tasks and decoders. This work offers a scalable path to faster VL inference on resource-constrained devices, with practical impact for real-time multimodal applications.
Abstract
Vision-language Models (VLMs) have made significant strides in visual understanding and query response generation, but often face challenges of high computational cost and inference latency due to autoregressive decoding. In this work, we introduce an imitation-learning-based Self-Speculative Decoding (SSD) framework, named FastVLM, to address these limitations. Our approach employs a lightweight draft model for token generation in an autoregressive manner, while a full model verifies these tokens non-autoregressively. Accepted tokens proceed seamlessly, while rejected tokens are corrected by the full model and used to guide the draft model's refinement. Through an imitation network, FastVLM enhances the draft model by integrating deeper level insights from the full model's architecture. Also, it maintains the performance integrity of the full model while training the draft model, achieving a balance between efficiency and accuracy. Our method speeds up the inference process by 1.55-1.85x as compared to the final layer with minimal loss in performance.
