混合专家模型中扰动余弦路由器的统计优势
Statistical Advantages of Perturbing Cosine Router in Mixture of Experts
AI总结:
针对混合专家模型中余弦路由器缺乏理论分析的问题,本文证明其收敛速率过慢,并提出通过添加噪声的扰动余弦路由器,将专家和模型参数的估计速率显著提升至多项式速率,经实验验证有效。
摘要:
混合专家模型(MoE)中的余弦路由器近期已成为传统线性路由器的一个极具吸引力的替代方案。事实上,余弦路由器在图像和语言任务中展现出优良的性能,并表现出更好的缓解表示坍缩问题的能力,该问题通常会导致参数冗余和有限的表示潜力。尽管取得了经验上的成功,但针对 MoE 中余弦路由器的全面分析一直较为缺乏。考虑到余弦路由 MoE 的最小二乘估计,我们证明了由于余弦路由器中模型参数通过某些偏微分方程产生的内在交互作用,无论专家的结构如何,专家和模型参数的估计速率可能慢至 $\mathcal{O}(1/\log^τ(n))$,其中 $τ> 0$ 是某个常数,$n$ 为样本量。令人惊讶的是,这些悲观的非多项式收敛速率可以通过实践中广泛使用的稳定余弦路由器的技术来规避——即简单地向余弦路由器中的 $\ell^2$-范数添加噪声,我们将其称为扰动余弦路由器。在专家函数的强可识别设置下,我们证明了扰动余弦路由 MoE 下的专家和模型参数的估计速率均显著提升至多项式速率。最后,我们在合成和真实数据设置下进行了广泛的模拟研究,以经验性地验证我们的理论结果。
英文摘要:
The cosine router in Mixture of Experts (MoE) has recently emerged as an attractive alternative to the conventional linear router. Indeed, the cosine router demonstrates favorable performance in image and language tasks and exhibits better ability to mitigate the representation collapse issue, which often leads to parameter redundancy and limited representation potentials. Despite its empirical success, a comprehensive analysis of the cosine router in MoE has been lacking. Considering the least square estimation of the cosine routing MoE, we demonstrate that due to the intrinsic interaction of the model parameters in the cosine router via some partial differential equations, regardless of the structures of the experts, the estimation rates of experts and model parameters can be as slow as $\mathcal{O}(1/\log^τ(n))$ where $τ> 0$ is some constant and $n$ is the sample size. Surprisingly, these pessimistic non-polynomial convergence rates can be circumvented by the widely used technique in practice to stabilize the cosine router -- simply adding noises to the $\ell^2$-norms in the cosine router, which we refer to as \textit{perturbed cosine router}. Under the strongly identifiable settings of the expert functions, we prove that the estimation rates for both the experts and model parameters under the perturbed cosine routing MoE are significantly improved to polynomial rates. Finally, we conduct extensive simulation studies in both synthetic and real data settings to empirically validate our theoretical results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。