[论文解读] DSelect-k: Differentiable Selection in the Mixture of Experts with Applications to Multi-Task Learning
DSelect-k 引入了一种连续可微、稀疏门控,用于专家混合(Mixture-of-Experts),最多选择 k 个专家;可用一阶方法训练,在多任务学习中相较 Top-k 及其他门控方法表现出改进,包括在大规模推荐系统中的应用。
The Mixture-of-Experts (MoE) architecture is showing promising results in improving parameter sharing in multi-task learning (MTL) and in scaling high-capacity neural networks. State-of-the-art MoE models use a trainable sparse gate to select a subset of the experts for each input example. While conceptually appealing, existing sparse gates, such as Top-k, are not smooth. The lack of smoothness can lead to convergence and statistical performance issues when training with gradient-based methods. In this paper, we develop DSelect-k: a continuously differentiable and sparse gate for MoE, based on a novel binary encoding formulation. The gate can be trained using first-order methods, such as stochastic gradient descent, and offers explicit control over the number of experts to select. We demonstrate the effectiveness of DSelect-k on both synthetic and real MTL datasets with up to $128$ tasks. Our experiments indicate that DSelect-k can achieve statistically significant improvements in prediction and expert selection over popular MoE gates. Notably, on a real-world, large-scale recommender system, DSelect-k achieves over $22\\%$ improvement in predictive performance compared to Top-k. We provide an open-source implementation of DSelect-k.
研究动机与目标
- 为在多任务学习中改进可扩展模型而推动并实现稀疏、可微分的 Mixture-of-Experts 门控。
- 开发一个在保持可微分的同时显式强制基数约束的门控。
- 提供一种新的二进制编码重构,带有平滑松弛以实现基于 SGD 的优化。
- 在合成数据集和真实多任务数据集(包括大规模推荐数据)上展示相对于现有门控(Top-k、Gumbel-softmax)的经验收益。
- 发布开源实现以便可重复性和部署。
提出的方法
- 将 MoE 形式化为一个门 g,为每个输入选择子集专家。
- 引入 DSelect-k:一种二进制编码、k 稀疏的门控,通过 k 个单一专家选择器的凸组合并带有 softmax 权重实现。
- 使用二进制编码 r(z) 将二进制码映射到 one-hot 选择,将受限问题转化为无约束问题。
- 以平滑步函数 S 对二进制变量进行放松,以实现端到端的 SGD 优化,并加入熵正则化以促进二值化。
- 提供静态门控和逐样本门控变体;使用线性映射使门控参数在逐样本设置中依赖输入。
- 在多任务学习(MTL)框架下,与 Top-k 和 Gumbel-softmax 门控进行静态与逐样本形式的对比。
实验结果
研究问题
- RQ1在多任务学习中,具有可微分性和稀疏性控制的门控(DSelect-k)是否优于 Top-k 及其他可微分门控?
- RQ2在保持在极限下的精确稀疏性的同时,是否可以用一阶方法高效训练一个二进制编码、基数约束的门控机制?
- RQ3静态门控与逐样本门控在实际与合成数据的 MTL 上的有效性差异如何?
- RQ4在大规模多任务设置(如推荐系统)中,DSelect-k 对模型参数共享与预测准确性的影响是什么?
主要发现
- 在 MovieLens 上,DSelect-k(静态或逐样本门控)在不同任务权重(α 值)下均优于 Top-k 和 Gumbel-softmax。
- 在 MovieLens 上,DSelect-k 在三个 α 设置中的其中两个对比中比 Top-k 和 Gumbel-softmax 具有更低的测试损失且平均选择的专家数量更少。
- 逐样本 DSelect-k 在测试损失上具有竞争力或优于基线,并且使用的专家数量更少,表明逐样本专门化有效。
- 在一个大规模真实推荐系统中,DSelect-k 相对于 Top-k 在预测性能上提升超过 22%。
- 在合成和真实的 MTL 数据集(补充实验中可扩展到多达 128 任务)上,DSelect-k 在预测和专家选择方面具有统计显著的改进。
- 开源实现可在作者的 GitHub 仓库获取。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。