arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12375cs.LGcs.AI
收藏

GW-MoE:基于全局工作空间理论解决MoE路由器的不确定性问题

GW-MoE: Resolving Uncertainty in MoE Router with Global Workspace Theory

Zhejiang University(浙江大学);Tsinghua University(清华大学);INF Technology(INF科技);Hong Kong University of Science and Technology(香港科技大学)

Haoze Wu, Zihan Qiu, Zili Wang, Hang Zhao, Jie Fu

AI总结:

针对MoE模型中token路由不确定性导致选择错误的问题,提出基于全局工作空间理论的微调方法GW-MoE,微调时广播不确定token至所有专家,无额外推理开销,在多任务多模型规模下均有效提升性能。

摘要:

专家混合(Mixture-of-Experts, MoE)已被证明是一种高效的模型扩展方法。通过动态稀疏选择激活的专家,MoE能有效降低计算成本。尽管取得了成功,我们观察到MoE模型中的许多token存在不确定的路由结果:这些token选择每个专家的得分几乎相等,且我们证明这种不确定性会导致错误选择。受全局工作空间理论(Global Workspace Theory, GWT)启发,我们提出一种新的微调方法GW-MoE来解决该问题。其核心思想是在微调期间将不确定的token广播给所有专家,使这些token在推理时能从任意专家获取所需知识,降低对专家选择的敏感度。GW-MoE不会引入额外推理开销。我们验证了GW可缓解不确定性问题,并在不同任务(文本分类、问答、摘要生成、代码生成、数学问题求解)和模型规模(6.5亿和80亿参数)上均取得一致提升。

英文摘要:

Mixture-of-Experts (MoE) has been demonstrated as an efficient method to scale up models. By dynamically and sparsely selecting activated experts, MoE can effectively reduce computational costs. Despite the success, we observe that many tokens in the MoE models have uncertain routing results. These tokens have nearly equal scores for choosing each expert, and we demonstrate that this uncertainty can lead to incorrect selections. Inspired by the Global Workspace Theory (GWT), we propose a new fine-tuning method, GW-MoE, to address this issue. The core idea is to broadcast the uncertain tokens across experts during fine-tuning. Therefore, these tokens can acquire the necessary knowledge from any expert during inference and become less sensitive to the choice. GW-MoE does not introduce additional inference overhead. We validate that GW can mitigate the uncertain problem and consistently improve in different tasks (text classification, question answering, summarization, code generation, and mathematical problem solving) and model sizes (650M and 8B parameters).

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

↑