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

iLLaVA: 图像的价值少于三分之一的输入标记在大型多模态模型中

iLLaVA: An Image is Worth Fewer Than 1/3 Input Tokens in Large Multimodal Models

School of Computer Science and Technology, Tianjin University(天津大学计算机科学与技术学院);School of Computer Science and Technology, Tiangong University(天津工大学计算机科学与技术学院);Key Research Center for Surface Monitoring and Analysis of Relics, State Administration of Cultural Heritage(文物表面监测与分析关键研究中心,国家文物局)

Lianyu Hu, Liqing Gao, Fanhua Shang, Liang Wan, Wei Feng

AI总结:

iLLaVA通过联合优化图像编码器和LLM,减少冗余标记并提升吞吐量,实现更高效的多模态模型性能。

摘要:

最近的方法在加速大型视觉-语言模型(LVLMs)方面取得了显著进展,通过利用视觉输入中的内在冗余性。然而,大多数现有方法却只集中在减少图像标记之前或在大型语言模型(LLM)阶段以降低计算成本。这忽略了其他主要瓶颈,特别是图像编码器本身,它本身需要大量的计算。因此,这些方法无法真正实现端到端的加速。重要的是,图像编码器是向LLM贡献输入标记的主要来源。因此,在编码器阶段减少视觉冗余不仅加快了编码器本身,还显著减轻了后续LLM的工作负担。受此启发,我们研究如何联合优化图像编码器和LLM以及其他LVLM组件以实现全面的加速。为了减轻因标记减少而造成的性能下降风险,我们提出了一种新的标记合并策略,该策略可以重用原本被丢弃的标记中的有用信息。我们的方法iLLaVA在图像和视频理解任务中均实现了持续的改进,达到了高达两倍的吞吐量提升和四倍的预填充时间减少。值得注意的是,iLLaVA使更大的模型(例如InternVL-2.5 26B)在准确性和效率上均超过了较小的对应模型(例如InternVL-2.5 8B)。与最先进的标记修剪和合并技术的广泛比较证明了我们方法的明显优越性。最后,我们提供了iLLaVA合并步骤的详细可视化,为不同LVLM组件如何贡献于高效计算提供了更深入的见解。

英文摘要:

Recent methods have made notable progress in accelerating Large Vision-Language Models (LVLMs) by exploiting the inherent redundancy in visual inputs. Most existing approaches, however, focus narrowly on reducing image tokens before or within the Large Language Model (LLM) stage to lower computational cost. This overlooks other major bottlenecks, particularly the image encoder, which itself requires substantial computation. As a result, these methods fall short of achieving true end-to-end acceleration. Importantly, the image encoder is the primary contributor of input tokens to the LLM. Thus, reducing visual redundancy at the encoder stage not only speeds up the encoder itself but also significantly lightens the workload for the subsequent LLM. Motivated by this, we investigate how to jointly optimize the image encoder and the LLM along with other LVLM components for comprehensive acceleration. To mitigate the risk of performance degradation from token reduction, we propose a novel token merging strategy that recycles useful information from otherwise discarded tokens. Our approach, iLLaVA, delivers consistent improvements across both image and video understanding tasks, achieving up to a 2 times throughput boost and a 4 times reduction in prefilling time. Notably, iLLaVA enables a larger model (e.g., InternVL-2.5 26B) to surpass a smaller counterpart (e.g., InternVL-2.5 8B) in both accuracy and efficiency. Extensive comparisons with state-of-the-art token pruning and merging techniques demonstrate the clear superiority of our method. Finally, we provide detailed visualizations for the merging steps of iLLaVA , offering deeper insights into how different LVLM components contribute to efficient computation.

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

↑