HoME:快手多任务学习的多门专家分层体系
HoME: Hierarchy of Multi-Gate Experts for Multi-Task Learning at Kuaishou
AI总结:
针对工业界多任务学习中MoE框架存在的专家坍缩、退化、欠拟合三类问题,快手提出HoME方法,构建简单高效均衡的多任务学习MoE系统。
摘要:
本文介绍了快手短视频服务中遇到的实际问题与经验总结。在工业界,广泛使用的多任务框架是专家混合(Mixture-of-Experts,MoE)范式,该范式通常为每个任务设置部分共享专家和专属专家,再通过门控网络衡量相关专家的贡献。尽管MoE取得了显著提升,但我们在迭代过程中仍发现三种严重影响模型性能的异常现象:(1)专家坍缩:我们发现专家的输出分布差异显著,部分专家在ReLU激活下零激活占比超过90%,导致门控网络难以分配公平权重以平衡各专家。(2)专家退化:理想情况下,共享专家旨在同时为所有任务提供预测信息,但我们发现部分共享专家仅被单个任务占用,说明共享专家丧失了原有功能,退化为了专属专家。(3)专家欠拟合:在我们的业务中,有数十个行为任务需要预测,但我们发现部分数据稀疏的预测任务倾向于忽略自身的专属专家,而给共享专家分配较大权重。原因可能是共享专家能从密集任务中获得更多梯度更新与知识,而专属专家因行为数据稀疏容易陷入欠拟合。基于这些观察,我们提出了HoME,以构建简单、高效且均衡的多任务学习MoE系统。
英文摘要:
In this paper, we present the practical problems and the lessons learned at short-video services from Kuaishou. In industry, a widely-used multi-task framework is the Mixture-of-Experts (MoE) paradigm, which always introduces some shared and specific experts for each task and then uses gate networks to measure related experts' contributions. Although the MoE achieves remarkable improvements, we still observe three anomalies that seriously affect model performances in our iteration: (1) Expert Collapse: We found that experts' output distributions are significantly different, and some experts have over 90% zero activations with ReLU, making it hard for gate networks to assign fair weights to balance experts. (2) Expert Degradation: Ideally, the shared-expert aims to provide predictive information for all tasks simultaneously. Nevertheless, we find that some shared-experts are occupied by only one task, which indicates that shared-experts lost their ability but degenerated into some specific-experts. (3) Expert Underfitting: In our services, we have dozens of behavior tasks that need to be predicted, but we find that some data-sparse prediction tasks tend to ignore their specific-experts and assign large weights to shared-experts. The reason might be that the shared-experts can perceive more gradient updates and knowledge from dense tasks, while specific-experts easily fall into underfitting due to their sparse behaviors. Motivated by those observations, we propose HoME to achieve a simple, efficient and balanced MoE system for multi-task learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。