arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18858cs.CV
收藏

按需视觉令牌:多模态大语言模型中可扩展高效多图像推理的视觉预算分配

Visual Tokens on Demand: Visual Budgeting for Scalable and Efficient Multi-Image Reasoning in Multimodal LLMs

Amazon(亚马逊公司)

Aimon Rahman, Joymallya Chakraborty, Vidit Bansal, Abhishek Dan

AI总结:

本研究提出轻量即插即用模块mmVB,无需重训基础多模态大语言模型且推理时不访问注意力矩阵,通过跨图像上下文分配视觉令牌预算,实现多图像推理的高效可扩展,在8个基准上保持94.4%准确率,令牌缩减9倍,首令牌速度提升5倍、预填FLOPs减少7倍。

摘要:

多模态大语言模型(MLLM)发展迅速,但多数仍针对单图像输入优化。多图像推理成本高昂,因为每张图像会增加大量视觉令牌,提升编码和注意力需求。现有解决该问题的技术,包括视觉令牌剪枝、令牌合并、视觉令牌压缩、学习重采样、分层压缩、检索增强视觉推理及基于内存的架构,大多为单图像场景设计,其冗余主要是空间和局部的。多图像推理带来额外挑战:冗余可能出现在图像间,任务相关证据可能稀疏或分散,对每张图像进行激进压缩可能会移除比较、计数、时间推理、检索或证据定位所需的细节。此外,现有令牌缩减方法通常要么(i)无需训练但推理效率低,通常依赖访问注意力矩阵获取令牌重要性,而使用FlashAttention等内存高效注意力实现时可能无法访问;要么(ii)依赖训练,需要对基础MLLM进行重新训练或适配新的压缩令牌范式。本研究在不重新训练基础模型且推理时不访问注意力矩阵的情况下,研究可扩展的多图像推理与理解。为此,我们提出mmVB,这是一个轻量即插即用模块,通过跨图像上下文分配查询条件化的每张图像令牌预算,仅增加160万可训练参数,同时将视觉输入令牌减少9倍。该缩减使首令牌生成速度提升5倍,预填FLOPs减少7倍,且在8个多图像推理基准上保持了全分辨率准确率的94.4%。

英文摘要:

Multimodal large language models have advanced rapidly, but most remain optimized for single-image inputs. Multi-image reasoning is costly because each image adds many visual tokens, increasing encoding and attention demands. Existing techniques that address the above issue, including visual token pruning, token merging, visual token compression, learned resampling, hierarchical compression, retrieval-augmented visual reasoning, and memory-based architectures, have largely been designed for single-image scenarios, where redundancy is primarily spatial and local. Multi-image reasoning introduces additional challenges: redundancy may occur across images, task-relevant evidence may be sparse or distributed, and aggressive per-image compression can remove details needed for comparison, counting, temporal reasoning, retrieval, or evidence grounding. Moreover, existing token-reduction methods are often either (i) training-free but inference-inefficient, typically relying on accessing attention matrices to get token-importance that may be impractical to access with memory-efficient attention implementations such as FlashAttention, or (ii) training-dependent, requiring the base MLLM to be retrained or adapted to a new compressed-token paradigm. In this work, we study scalable multi-image reasoning and understanding without retraining the base model and without accessing attention matrices at inference time. To this end, we propose mmVB, a lightweight plug-and-play module that assigns query-conditioned per-image token budgets via cross-image context, adding only 1.6M trainable parameters while reducing visual input tokens by 9x. This reduction yields 5x faster time-to-first-token and 7x fewer prefill FLOPs, while maintaining 94.4% of full-resolution accuracy across eight multi-image reasoning benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑