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

持续学习中混合专家模型的理论

Theory on Mixture-of-Experts in Continual Learning

Singapore University of Technology and Design(新加坡科技设计大学);The Ohio State University(俄亥俄州立大学);University of Houston(休斯顿大学)

Hongbo Li, Sen Lin, Lingjie Duan, Yingbin Liang, Ness B. Shroff

AI总结:

本文从过参数化线性回归角度首次建立持续学习中 MoE 的理论,证明专家专门化、路由选择与负载均衡的收益,并分析遗忘、泛化及门控冻结的必要性。

摘要:

持续学习(CL)因其能够适应随时间到来的新任务而受到广泛关注。随着模型适应新任务,旧任务的灾难性遗忘被认为是 CL 中的一个主要问题。近期研究表明,Mixture-of-Experts(MoE,混合专家)模型能够通过使用门控网络进行稀疏化,并将不同任务分配给多个专家,从而有效缓解 CL 中的灾难性遗忘。然而,目前仍缺乏关于 MoE 及其对 CL 中学习性能影响的理论分析。本文首次给出理论结果,通过过参数化线性回归任务的视角刻画 MoE 在 CL 中的影响。我们证明了 MoE 相对于单一专家的优势:MoE 模型能够使其专家多样化,以专门处理不同任务,同时其路由器学习为每个任务选择合适的专家,并在所有专家之间平衡负载。我们的研究进一步揭示了一个有趣的事实:CL 中的 MoE 需要在经过足够训练轮数后终止门控网络的更新,以实现系统收敛;而在现有不考虑任务持续到来的 MoE 研究中,并不需要这样做。此外,我们给出了期望遗忘和总体泛化误差的显式表达式,以刻画 MoE 对 CL 中学习性能的益处。有趣的是,增加更多专家需要更多轮数才能收敛,而且可能不会提升学习性能。最后,我们在合成数据集和真实数据集上进行实验,将这些洞见从线性模型扩展到深度神经网络(DNN),这也为 CL 中 MoE 的实际算法设计提供了启示。

英文摘要:

Continual learning (CL) has garnered significant attention because of its ability to adapt to new tasks that arrive over time. Catastrophic forgetting (of old tasks) has been identified as a major issue in CL, as the model adapts to new tasks. The Mixture-of-Experts (MoE) model has recently been shown to effectively mitigate catastrophic forgetting in CL, by employing a gating network to sparsify and distribute diverse tasks among multiple experts. However, there is a lack of theoretical analysis of MoE and its impact on the learning performance in CL. This paper provides the first theoretical results to characterize the impact of MoE in CL via the lens of overparameterized linear regression tasks. We establish the benefit of MoE over a single expert by proving that the MoE model can diversify its experts to specialize in different tasks, while its router learns to select the right expert for each task and balance the loads across all experts. Our study further suggests an intriguing fact that the MoE in CL needs to terminate the update of the gating network after sufficient training rounds to attain system convergence, which is not needed in the existing MoE studies that do not consider the continual task arrival. Furthermore, we provide explicit expressions for the expected forgetting and overall generalization error to characterize the benefit of MoE in the learning performance in CL. Interestingly, adding more experts requires additional rounds before convergence, which may not enhance the learning performance. Finally, we conduct experiments on both synthetic and real datasets to extend these insights from linear models to deep neural networks (DNNs), which also shed light on the practical algorithm design for MoE in CL.

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

↑