Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Zeliang, Pham, Phu, Zhao, Wentian, Wan, Kun, Li, Yu-Jhe, Zhou, Jianing, Miranda, Daniel, Kale, Ajinkya, Xu, Chenliang
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2410.06169
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916500339687424
author Zhang, Zeliang
Pham, Phu
Zhao, Wentian
Wan, Kun
Li, Yu-Jhe
Zhou, Jianing
Miranda, Daniel
Kale, Ajinkya
Xu, Chenliang
author_facet Zhang, Zeliang
Pham, Phu
Zhao, Wentian
Wan, Kun
Li, Yu-Jhe
Zhou, Jianing
Miranda, Daniel
Kale, Ajinkya
Xu, Chenliang
contents By treating visual tokens from visual encoders as text tokens, Multimodal Large Language Models (MLLMs) have achieved remarkable progress across diverse visual understanding tasks, leveraging the robust architectures of Large Language Models (LLMs). However, as token counts grow, the quadratic scaling of computation in LLMs introduces a significant efficiency bottleneck, impeding further scalability. Although recent approaches have explored pruning visual tokens or employing lighter LLM architectures, the computational overhead from an increasing number of visual tokens remains a substantial challenge. In this study, we investigate the redundancy in visual computation at both the parameter and computational pattern levels within LLaVA, a representative MLLM, and introduce a suite of streamlined strategies to enhance efficiency. These include neighbor-aware visual token attention, pruning of inactive visual attention heads, and selective layer dropping for visual computations. By implementing these strategies in LLaVA, we achieve a reduction in computational demands of 88% while maintaining model performance across key benchmarks. Additionally, we validate the existence of visual computational redundancy in other MLLMs, such as Qwen2-VL-7B and InternVL-2.0-4B/8B/26B. These results present a novel pathway for MLLMs to handle dense visual tokens with minimal computational costs. Code and model checkpoints will be released to support further research.
format Preprint
id arxiv_https___arxiv_org_abs_2410_06169
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Treat Visual Tokens as Text? But Your MLLM Only Needs Fewer Efforts to See
Zhang, Zeliang
Pham, Phu
Zhao, Wentian
Wan, Kun
Li, Yu-Jhe
Zhou, Jianing
Miranda, Daniel
Kale, Ajinkya
Xu, Chenliang
Computer Vision and Pattern Recognition
By treating visual tokens from visual encoders as text tokens, Multimodal Large Language Models (MLLMs) have achieved remarkable progress across diverse visual understanding tasks, leveraging the robust architectures of Large Language Models (LLMs). However, as token counts grow, the quadratic scaling of computation in LLMs introduces a significant efficiency bottleneck, impeding further scalability. Although recent approaches have explored pruning visual tokens or employing lighter LLM architectures, the computational overhead from an increasing number of visual tokens remains a substantial challenge. In this study, we investigate the redundancy in visual computation at both the parameter and computational pattern levels within LLaVA, a representative MLLM, and introduce a suite of streamlined strategies to enhance efficiency. These include neighbor-aware visual token attention, pruning of inactive visual attention heads, and selective layer dropping for visual computations. By implementing these strategies in LLaVA, we achieve a reduction in computational demands of 88% while maintaining model performance across key benchmarks. Additionally, we validate the existence of visual computational redundancy in other MLLMs, such as Qwen2-VL-7B and InternVL-2.0-4B/8B/26B. These results present a novel pathway for MLLMs to handle dense visual tokens with minimal computational costs. Code and model checkpoints will be released to support further research.
title Treat Visual Tokens as Text? But Your MLLM Only Needs Fewer Efforts to See
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.06169