通过频率调制恢复视觉语义,让大模型在减少视觉令牌时仍保持高精度。
Frequency-Modulated Visual Restoration for Matryoshka Large Multimodal Models
- 用平均池化和最大池化分离视觉特征的高低频成分。
- 在降低89%计算量的同时,保持接近100%的原始准确率。
- 适合需要弹性推理资源的多模态大模型应用。
大型多模态模型(LMMs)因大量视觉令牌难以适应不同计算预算。此前方法在进入LLM前或过程中减少视觉令牌,但导致视觉语义丢失。为此,我们提出FMVR——一种即插即用且极简的频率调制视觉恢复策略,提升在视觉令牌压缩下的推理能力。具体地,FMVR通过平均池化与最大池化将少量视觉令牌的表示解耦为低频与高频成分,再以轻量可学习参数调制。平均池化所得高频作为显著性滤波器,增强关键视觉语义;最大池化所得低频作为反显著性滤波器,强化微弱视觉语义。该机制实现对少数视觉令牌主导语义的保留及稀释语义的恢复。此外,我们将FMVR嵌入马特罗什卡表示学习,学习粗粒度到细粒度的视觉令牌集,从而在推理时弹性调整视觉令牌数量,同时保持相近性能。跨10个图像基准与4个视频基准的实验表明,FMVR-LLaVA将LLaVA-1.5-7B的FLOPs降低89%,而准确率几乎维持原水平。代码将开源。
原文摘要 · Abstract (English)
Large Multimodal Models (LMMs) struggle to adapt varying computational budgets due to numerous visual tokens. Previous methods attempted to reduce the number of visual tokens before or within LLMs. However, these strategies inevitably result in the loss of visual semantic. To address these issues, we introduce FMVR, a plug-and-play and extremely simple Frequency-Modulated Visual Restoration strategy to boost the reasoning ability of LMMs under visual token reduction. Specifically, FMVR disentangles the visual representation of fewer visual tokens into low- and high-frequency components through AvgPool and MaxPool. The derived frequencies are subsequently modulated using lightweight learnable parameters. The high-frequency from AvgPool acts as a saliency filter to enhance saliency visual semantics, while the low-frequency from MaxPool acts as an anti-saliency filter to strengthen weak visual semantics. It enables the preservation of visual semantics dominated by few visual tokens and the restoration of diluted visual semantics. Additionally, we inject FMVR into Matryoshka Representation Learning to learn coarse-to-fine visual token sets, thus enabling to elastically adjust the number of visual tokens during inference while maintaining comparable performance. Experiments across 10 image-based and 4 video-based bench marks demonstrate that FMVR-LLaVA reduce the FLOPs of LLaVA-1.5-7B by 89%, while maintaining almost 100% of the original accuracy. The code will be open.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。