FastVLM: Self-Speculative Decoding for Fast Vision-Language Model Inference
Preprint
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.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- A Survey on Model Compression for Large Language ModelsTransactions of the Association for Computational Linguistics, 2024
- Draft& Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding2024
- LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding2024
- EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning2023
- Auto-Pytorch: Multi-Fidelity MetaLearning for Efficient and Robust AutoDLIEEE Transactions on Pattern Analysis and Machine Intelligence, 2021
- BinaryBERT: Pushing the Limit of BERT Quantization2021
- LightSeq: A High Performance Inference Library for Transformers2021
- TernaryBERT: Distillation-aware Ultra-low Bit BERT2020
- TinyBERT: Distilling BERT for Natural Language Understanding2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019