FastVLM: Efficient Vision Encoding for Vision Language Models

Pavan Kumar Anasosalu Vasu, Fartash Faghri, Chun-Liang Li, Cem Koc, Nate True, Albert Antony, Gokula Santhanam, James Gabriel, Peter Grasch, Oncel Tuzel, Hadi Pouransari

Abstract

Vision Language Models (VLMs) like LLaVA encode images into tokens aligned to the word embedding space of the LLM decoder. Scaling input image resolution is essential for improving performance, especially in text-rich image understanding tasks. However, popular visual encoders such as CLIP-pretrained ViTs become inefficient at high resolutions due to the large number of tokens and high encoding latency caused by stacked self-attention layers. In this work, we introduce FastVLM, which achieves an optimized trade-off between resolution, latency, and accuracy by incorporating FastViTHD—a new hybrid vision encoder that outputs fewer tokens and significantly reduces encoding time while processing high-resolution images. In the LLaVA-1.5 setup, we achieve 3.2x improvement in overall time-to-first-token (TTFT) while maintaining similar performance on VLM benchmarks. Compared to LLaVa-OneVision at 1152 x 1152, FastVLM achieves comparable performance with 85x faster TTFT and a 3.4x smaller vision encoder.

Introduction

To understand "text-rich" images like menus, charts, or documents, VLMs require high-resolution input. However, most current models rely on Vision Transformers (ViTs) as their primary vision encoders. Standard ViTs are isotropic, meaning they maintain a constant number of tokens throughout the network. Consequently, doubling the image resolution quadruples the token count, leading to two major bottlenecks:

  1. Encoding Latency: The vision encoder's processing time increases significantly.
  2. LLM Prefilling Latency: The Large Language Model (LLM) is overwhelmed by thousands of visual tokens, causing a long delay before response generation begins, known as Time-to-First-Token (TTFT).

While existing solutions use tiling or complex token pruning, these often add architectural complexity without finding an optimal speed-accuracy balance.

Methods: The FastViTHD Architecture

FastVLM introduces FastViTHD, a novel hybrid vision encoder designed for efficiency at high resolutions. Unlike standard ViTs, FastViTHD utilizes a hierarchical 5-stage architecture.

The FastVLM architecture featuring the FastViTHD vision encoder with multi-scale feature fusion.

The first three stages employ RepMixer blocks (efficient convolutions) to process high-resolution pixels, while only the final two stages use Self-Attention layers. This hybrid approach allows for native token reduction, generating 4× fewer tokens than previous hybrid models and 16× fewer than standard ViT-L/14 at the same resolution. To preserve fine-grained details, FastVLM uses Multi-Scale Feature Fusion, pooling features from different encoder stages before passing them to the LLM via a connector.

Results and Efficiency Analysis

The performance of FastVLM was evaluated across various benchmarks including TextVQA, DocVQA, and MMMU. A key finding is that the user experience is primarily defined by TTFT, which is the sum of vision encoding time and LLM prefilling time.

Pareto-optimal curves showing the trade-off between VLM performance and Time-To-First-Token (TTFT) for different backbones.

As shown in the Pareto analysis, FastVLM achieves a superior trade-off between speed and accuracy. In the LLaVA-1.5 setup, it provides a 3.2× speedup in TTFT. When compared to state-of-the-art models like LLaVA-OneVision at 1152×1152 resolution, FastVLM is 85× faster to the first token while utilizing a vision encoder that is 3.4× smaller. Furthermore, FastVLM (7B) outperforms Cambrian-1 while being 7.9× faster. These results demonstrate that hierarchical models are fundamentally better suited for high-resolution VLMs than isotropic ones.

Conclusion

FastVLM addresses the high-resolution bottleneck in VLMs by optimizing both vision encoding and token counts. By replacing standard ViTs with the efficient FastViTHD encoder, it enables responsive, high-performance multimodal AI that can even run on edge devices like a standard laptop. Future work will explore extending this efficient encoding to video data and investigating dynamic resolution strategies for resolutions exceeding 1536px.

Summary updated

BibTeX
@inproceedings{vasu2025fastvlm,
  author = {Pavan Kumar Anasosalu Vasu and Fartash Faghri and Chun-Liang Li and Cem Koc and Nate True and Albert Antony and Gokula Santhanam and James Gabriel and Peter Grasch and Oncel Tuzel and Hadi Pouransari},
  title = {{FastVLM: Efficient Vision Encoding for Vision Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=KvqNRpT90X},
}
Figure