An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Models

Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin +2 more
2/14/2026

No official code found. Best implementation: pkunlp-icler/FastV (593 stars, last commit 2025-01-04). 1 more below.

Abstract

In this study, we identify the inefficient attention phenomena in Large Vision-Language Models (LVLMs), notably within prominent models like LLaVA-1.5, QwenVL-Chat and Video-LLaVA. We find out that the attention computation over visual tokens is of extreme inefficiency in the deep layers of popular LVLMs, suggesting a need for a sparser approach compared to textual data handling. To this end, we introduce FastV, a versatile plug-and-play method designed to optimize computational efficiency by learning adaptive attention patterns in early layers and pruning visual tokens in subsequent ones. Our evaluations demonstrate FastV's ability to dramatically reduce computational costs (e.g., a 45 reduction in FLOPs for LLaVA-1.5-13B) without sacrificing performance in a wide range of image and video understanding tasks. The computational efficiency and performance trade-off of FastV are highly customizable and pareto-efficient. It can compress the FLOPs of a 13B-parameter model to achieve a lower budget than that of a 7B-parameter model, while still maintaining superior performance. We believe FastV has practical values for deployment of LVLMs in edge devices and commercial models. Code is released at https://github.com/pkunlp-icler/FastV.

View on arXivView PDF

Code Implementations(2)

pkunlp-icler/FastVCommunity100%

[ECCV 2024 Oral] Code for paper: An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Models

59332C, C++Mar 11, 20241 years ago
PyTorch

Reproduction of FastV (arXiv:2403.06764) on LLaVA-1.5-7B with INT4 quantization. 22% speedup via visual token pruning on 8GB VRAM.

30PythonMar 6, 20267 months ago
deep-learninginference-accelerationllmpytorchvision-language-model

Similar Papers

Cite this paper

@article{chen2026image,
  title  = {An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Models},
  author = {Liang Chen and Haozhe Zhao and Tianyu Liu and Shuai Bai and Junyang Lin and Chang Zhou and Baobao Chang},
  year   = {2026},
  eprint = {2403.06764},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.06764},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.06764.svg)](https://codeofpaper.com/paper/2403.06764)

Discussion