PEVLM: Parallel Encoding for Vision-Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kang, Letian, Luo, Shixian, Li, Yiqiang, Yin, Yuxin, Zhou, Shenxuan, Yu, Xiaoyang, Yang, Jin, Wu, Yong
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913963576393728
author Kang, Letian
Luo, Shixian
Li, Yiqiang
Yin, Yuxin
Zhou, Shenxuan
Yu, Xiaoyang
Yang, Jin
Wu, Yong
author_facet Kang, Letian
Luo, Shixian
Li, Yiqiang
Yin, Yuxin
Zhou, Shenxuan
Yu, Xiaoyang
Yang, Jin
Wu, Yong
contents Vision-Language Models (VLMs) have demonstrated strong capabilities in multimodal understanding and generation tasks. However, their application to long video understanding remains hindered by the quadratic complexity of standard attention mechanisms. In this work, we introduce \textbf{PEVLM}, a fine-tuning-free parallel encoding method designed to enhance the prefilling efficiency of VLMs in long video scenarios. PEVLM partitions the input video into context blocks with a shared sink block, while preserving sequential position embeddings to align the attention weight distribution with that of Full-Attention. This design reduces attention complexity from $O((T \times N)^2)$ to $O(T \times N)$ where $T$ is the number of frames and $N$ the number of tokens per frame, without sacrificing accuracy. Extensive experiments across multiple state-of-the-art models and benchmarks demonstrate that PEVLM consistently outperforms existing parallel encoding approaches, achieving up to \textbf{7.47x} speedup in attention computation and reducing end-to-end latency by \textbf{40\%}. Remarkably, PEVLM not only maintains high accuracy, but in some settings even surpasses Full-Attention performance. Under strict latency constraints, it achieves substantial gains, improving accuracy from \textbf{23.26\%} to \textbf{61.03\%}. These results underscore the effectiveness of PEVLM for low-latency, long-context video understanding, making it a promising solution for real-world applications.
format Preprint
id arxiv_https___arxiv_org_abs_2506_19651
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PEVLM: Parallel Encoding for Vision-Language Models
Kang, Letian
Luo, Shixian
Li, Yiqiang
Yin, Yuxin
Zhou, Shenxuan
Yu, Xiaoyang
Yang, Jin
Wu, Yong
Computer Vision and Pattern Recognition
Machine Learning
Performance
Vision-Language Models (VLMs) have demonstrated strong capabilities in multimodal understanding and generation tasks. However, their application to long video understanding remains hindered by the quadratic complexity of standard attention mechanisms. In this work, we introduce \textbf{PEVLM}, a fine-tuning-free parallel encoding method designed to enhance the prefilling efficiency of VLMs in long video scenarios. PEVLM partitions the input video into context blocks with a shared sink block, while preserving sequential position embeddings to align the attention weight distribution with that of Full-Attention. This design reduces attention complexity from $O((T \times N)^2)$ to $O(T \times N)$ where $T$ is the number of frames and $N$ the number of tokens per frame, without sacrificing accuracy. Extensive experiments across multiple state-of-the-art models and benchmarks demonstrate that PEVLM consistently outperforms existing parallel encoding approaches, achieving up to \textbf{7.47x} speedup in attention computation and reducing end-to-end latency by \textbf{40\%}. Remarkably, PEVLM not only maintains high accuracy, but in some settings even surpasses Full-Attention performance. Under strict latency constraints, it achieves substantial gains, improving accuracy from \textbf{23.26\%} to \textbf{61.03\%}. These results underscore the effectiveness of PEVLM for low-latency, long-context video understanding, making it a promising solution for real-world applications.
title PEVLM: Parallel Encoding for Vision-Language Models
topic Computer Vision and Pattern Recognition
Machine Learning
Performance
url https://arxiv.org/abs/2506.19651