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

解决大型视觉-语言模型混合专家中的 Token 梯度冲突

Solving Token Gradient Conflict in Mixture-of-Experts for Large Vision-Language Model

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Kuaishou Technology(快手科技);School of Software Technology, Zhejiang University(浙江大学软件学院)

Longrong Yang, Dong Shen, Chaoxiang Cai, Fan Yang, Tingting Gao, Di Zhang, Xi Li

AI总结:

针对 LVLM 的 MoE 中专家内 token 梯度方向冲突导致干扰的问题,本文提出 STGC,通过 token 级梯度识别冲突 token 并用正则化损失改变其路由,可作为通用插件提升性能。

摘要:

混合专家(Mixture-of-Experts,MoE)在大型视觉-语言模型(LVLM)研究中受到越来越多关注。它使用稀疏模型替代密集模型,在推理期间激活更少参数的同时达到相当的性能,从而显著降低推理成本。LVLM 中现有的 MoE 方法鼓励不同专家专门处理不同 token,并且通常采用路由器来预测每个 token 的路由。然而,路由器并未针对一个专家内部不同 token 所产生的不同参数优化方向进行优化。这可能导致同一专家内的 token 之间出现严重干扰。为解决这一问题,本文提出使用 token 级梯度分析来解决 Token 梯度冲突(STGC)。具体而言,我们首先利用 token 级梯度识别专家中的冲突 token。随后,我们加入一项专门设计的正则化损失,鼓励冲突 token 从当前专家路由到其他专家,以减少同一专家内 token 之间的干扰。我们的方法可作为多种 LVLM 方法的插件,大量实验结果证明了其有效性。代码将在 https://github.com/longrongyang/STGC 公开发布。

英文摘要:

The Mixture-of-Experts (MoE) has gained increasing attention in studying Large Vision-Language Models (LVLMs). It uses a sparse model to replace the dense model, achieving comparable performance while activating fewer parameters during inference, thus significantly reducing the inference cost. Existing MoE methods in LVLM encourage different experts to specialize in different tokens, and they usually employ a router to predict the routing of each token. However, the router is not optimized concerning distinct parameter optimization directions generated from tokens within an expert. This may lead to severe interference between tokens within an expert. To address this problem, we propose to use the token-level gradient analysis to Solving Token Gradient Conflict (STGC) in this paper. Specifically, we first use token-level gradients to identify conflicting tokens in experts. After that, we add a regularization loss tailored to encourage conflicting tokens routing from their current experts to other experts, for reducing interference between tokens within an expert. Our method can serve as a plug-in for diverse LVLM methods, and extensive experimental results demonstrate its effectiveness. The code will be publicly available at https://github.com/longrongyang/STGC.

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

↑