专家反击:在专家层面解读混合专家语言模型
The Expert Strikes Back: Interpreting Mixture-of-Experts Language Models at Expert Level
AI总结:
研究通过k稀疏探测比较MoE专家与密集FFN,发现专家神经元更单语义,提出以专家为分析单位,揭示专家是细粒度任务专家,而非领域专家或token处理者。
摘要:
混合专家(MoE)架构已成为扩展大语言模型(LLMs)的主导选择,每个token仅激活部分参数。尽管MoE主要用于计算效率,但其稀疏性是否使其比密集前馈网络(FFN)更容易解释仍存疑问。通过k稀疏探测比较MoE专家与密集FFN,发现专家神经元始终更单语义,随着路由稀疏性增加,差距扩大。这表明稀疏性迫使神经元和整个专家朝单语义方向发展。基于此发现,我们从神经元层面转向专家层面作为更有效的分析单位。通过自动解读数百个专家,验证了这一方法。此分析解决了关于专业化争论:专家既非广领域专家(如生物学)也非简单token处理者。相反,它们作为细粒度任务专家,专门处理语言操作或语义任务(如闭合LaTeX括号)。我们的发现表明,MoE在专家层面具有内在可解释性,为大规模模型可解释性提供了更清晰路径。代码见:https://github.com/jerryy33/MoE_analysis。
英文摘要:
Mixture-of-Experts (MoE) architectures have become the dominant choice for scaling Large Language Models (LLMs), activating only a subset of parameters per token. While MoE architectures are primarily adopted for computational efficiency, it remains an open question whether their sparsity makes them inherently easier to interpret than dense feed-forward networks (FFNs). We compare MoE experts and dense FFNs using $k$-sparse probing and find that expert neurons are consistently less polysemantic, with the gap widening as routing becomes sparser. This suggests that sparsity pressures both individual neurons and entire experts toward monosemanticity. Leveraging this finding, we zoom out from the neuron to the expert level as a more effective unit of analysis. We validate this approach by automatically interpreting hundreds of experts. This analysis allows us to resolve the debate on specialization: experts are neither broad domain specialists (e.g., biology) nor simple token-level processors. Instead, they function as fine-grained task experts, specializing in linguistic operations or semantic tasks (e.g., closing brackets in $\LaTeX{}$). Our findings suggest that MoEs are inherently interpretable at the expert level, providing a clearer path toward large-scale model interpretability. Code is available at: https://github.com/jerryy33/MoE_analysis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。