arXiv:2502.06474cs.CV2025-02被引 5

提出任务感知的稀疏化方法,让多模态模型训练更高效

UniMoD: Efficient Unified Multimodal Transformers with Mixture-of-Depths

  • 为不同任务设计独立路由,动态选择需处理的文本/图像标记
  • 在Show-o和Emu3上分别降低15%和40%的训练算力消耗
  • 适合追求高效训练的多模态大模型研究者使用

统一多模态变换器在共享参数空间中同时处理生成与理解任务,近年受到广泛关注。尽管已有多种统一变换器被提出,但其训练成本高昂,源于冗余标记与繁重的注意力计算。以往针对大语言模型的研究表明,基于混合深度(Mixture of Depths, MoD)的标记剪枝方法可显著提升计算效率。然而,直接将MoD应用于统一变换器会导致性能下降,因不同任务的标记冗余程度存在差异。本文通过分析注意力权重模式、层重要性及任务交互关系,发现标记冗余主要受任务和层的影响。基于此,我们提出UniMoD,一种任务感知的标记剪枝方法,为每项任务配置独立路由器,决定应保留或剪枝的标记。该方法应用于Show-o和Emu3,在保持甚至提升多个基准测试表现的同时,分别降低了约15%和40%的训练浮点运算量。代码将开源至https://github.com/showlab/UniMoD。

原文摘要 · Abstract (English)

Unified multimodal transformers, which handle both generation and understanding tasks within a shared parameter space, have received increasing attention in recent research. Although various unified transformers have been proposed, training these models is costly due to redundant tokens and heavy attention computation. In the past, studies on large language models have demonstrated that token pruning methods, such as Mixture of Depths (MoD), can significantly improve computational efficiency. MoD employs a router to select the most important ones for processing within a transformer layer. However, directly applying MoD-based token pruning to unified transformers will result in suboptimal performance because different tasks exhibit varying levels of token redundancy. In our work, we analyze the unified transformers by (1) examining attention weight patterns, (2) evaluating the layer importance and token redundancy, and (3) analyzing task interactions. Our findings reveal that token redundancy is primarily influenced by different tasks and layers. Building on these findings, we introduce UniMoD, a task-aware token pruning method that employs a separate router for each task to determine which tokens should be pruned. We apply our method to Show-o and Emu3, reducing training FLOPs by approximately 15% in Show-o and 40% in Emu3, while maintaining or improving performance on several benchmarks. Code will be released at https://github.com/showlab/UniMoD.

多模态高效训练标记剪枝MoD

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。