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

TokenFLEX:面向灵活视觉Tokens推理的统一VLM训练

TokenFLEX: Unified VLM Training for Flexible Visual Tokens Inference

Li Auto(理想汽车)

Junshan Hu, Jialiang Mao, Zhikang Liu, Zhongpu Xia, Peng Jia, Xianpeng Lang

AI总结:

提出TokenFLEX框架,通过随机调节token数量的训练范式和轻量级视觉token投影器,实现可变数量视觉tokens的高效推理,在多基准上显著优于固定tokens方法。

摘要:

传统视觉语言模型(VLMs)通常利用固定数量的视觉tokens,而不考虑任务复杂性。这种一刀切的策略引入了显著的低效性:使用过多的tokens会在简单任务中导致不必要的计算开销,而tokens不足则会损害复杂语境下的细粒度视觉理解。为克服这些限制,我们提出TokenFLEX,一个创新且适应性强的视觉语言框架,它将图像编码为可变数量的tokens,以高效地与大型语言模型(LLM)集成。我们的方法由两项关键创新支撑。首先,我们提出一种新颖的训练范式,通过在训练期间随机调节token数量来增强不同视觉tokens数量下的性能。其次,我们设计了一个轻量级视觉token投影器,包含自适应池化层和SwiGLU,允许对视觉tokens进行灵活下采样,并自适应地选择针对特定token数量定制的特征。全面实验表明,TokenFLEX持续优于其固定tokens的对应物,在8个视觉语言基准上平均,分别使用64、144和256个tokens时实现了1.6%、1.0%和0.4%的显著性能提升。这些结果强调了TokenFLEX在保持高性能视觉语言理解的同时,展现出卓越的灵活性。

英文摘要:

Conventional Vision-Language Models(VLMs) typically utilize a fixed number of vision tokens, regardless of task complexity. This one-size-fits-all strategy introduces notable inefficiencies: using excessive tokens leads to unnecessary computational overhead in simpler tasks, whereas insufficient tokens compromise fine-grained visual comprehension in more complex contexts. To overcome these limitations, we present TokenFLEX, an innovative and adaptable vision-language framework that encodes images into a variable number of tokens for efficient integration with a Large Language Model (LLM). Our approach is underpinned by two pivotal innovations. Firstly, we present a novel training paradigm that enhances performance across varying numbers of vision tokens by stochastically modulating token counts during training. Secondly, we design a lightweight vision token projector incorporating an adaptive pooling layer and SwiGLU, allowing for flexible downsampling of vision tokens and adaptive selection of features tailored to specific token counts. Comprehensive experiments reveal that TokenFLEX consistently outperforms its fixed-token counterparts, achieving notable performance gains across various token counts enhancements of 1.6%, 1.0%, and 0.4% with 64, 144, and 256 tokens, respectively averaged over eight vision-language benchmarks. These results underscore TokenFLEX's remarkable flexibility while maintaining high-performance vision-language understanding.

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

↑