arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13997stat.MLcs.LG
收藏

在混合专家模型中Sigmoid门控比Softmax门控具有更高的样本效率

Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Huy Nguyen, Nhat Ho, Alessandro Rinaldo

AI总结:

针对Softmax门控易致专家竞争和表征坍缩的问题,本文从理论上证明Sigmoid门控在混合专家的专家估计任务中样本效率更高,推导了过设定回归框架下的收敛速度,验证其用更少样本可达相同估计误差。

摘要:

Softmax门控函数可以说是混合专家建模中最常用的选择。尽管在实践中被广泛使用,但Softmax门控可能会导致专家之间产生不必要的竞争,由于其固有结构,可能会引发不良的表征坍缩现象。对此,Sigmoid门控函数最近被作为替代方案提出,并且经验证明其能实现更优性能。然而,目前的文献中缺乏对Sigmoid门控函数的严谨研究。在本文中,我们从理论上验证了在专家估计的统计任务中,Sigmoid门控实际上比Softmax门控具有更高的样本效率。为实现这一目标,我们考虑了一个回归框架,其中未知回归函数被建模为混合专家模型,并研究了在拟合专家数量大于真实数量的过设定情形下最小二乘估计量的收敛速度。我们表明会自然出现两种门控机制,并且在每种机制下,我们都为专家函数制定了可识别性条件,并推导了相应的收敛速度。在这两种情况下,我们发现由带有ReLU和GELU等常用激活函数的前馈网络构成的专家,在Sigmoid门控下比在Softmax门控下具有更快的收敛速度。此外,在专家选择相同的情况下,我们证明Sigmoid门控函数比Softmax门控函数需要更小的样本量就能达到相同的专家估计误差,因此具有更高的样本效率。

英文摘要:

The softmax gating function is arguably the most popular choice in mixture of experts modeling. Despite its widespread use in practice, the softmax gating may lead to unnecessary competition among experts, potentially causing the undesirable phenomenon of representation collapse due to its inherent structure. In response, the sigmoid gating function has been recently proposed as an alternative and has been demonstrated empirically to achieve superior performance. However, a rigorous examination of the sigmoid gating function is lacking in current literature. In this paper, we verify theoretically that the sigmoid gating, in fact, enjoys a higher sample efficiency than the softmax gating for the statistical task of expert estimation. Towards that goal, we consider a regression framework in which the unknown regression function is modeled as a mixture of experts, and study the rates of convergence of the least squares estimator under the over-specified case in which the number of fitted experts is larger than the true value. We show that two gating regimes naturally arise and, in each of them, we formulate an identifiability condition for the expert functions and derive the corresponding convergence rates. In both cases, we find that experts formulated as feed-forward networks with commonly used activation such as ReLU and GELU enjoy faster convergence rates under the sigmoid gating than those under softmax gating. Furthermore, given the same choice of experts, we demonstrate that the sigmoid gating function requires a smaller sample size than its softmax counterpart to attain the same error of expert estimation and, therefore, is more sample efficient.

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

↑