解释混合专家大语言模型(MoE LLMs)中专家在个性化任务中的作用
Explaining the Roles of Experts in Mixture-of-Experts LLMs for Personalization
AI总结:
本研究针对MoE LLMs的个性化问题,提出训练交叉编码器识别编码个性化特征的专家,实验表明该模型性能相当且多义性更低,因果干预验证了专家路由路径的有效性。
摘要:
大语言模型(LLMs)的个性化对以用户为中心的应用愈发重要,但现有方法主要针对稠密LLMs进行适配,这类模型的多义神经元(每个神经元编码多个不相关概念)会阻碍对个性化背后组件的定位,进而影响对个性化的理解与控制。本文提出对混合专家(Mixture-of-Experts, MoE)LLMs进行个性化,该模型会将每个token稀疏路由至少数专门的专家,从而降低多义性并实现上述定位。我们在大规模个性化数据集上适配了三个开放权重的MoE LLMs,并在个性化与非个性化模型的配对激活上训练交叉编码器(crosscoders)以学习可解释的个性化隐层,从中识别出编码不同个性化特征的专家。个性化MoE LLMs在仅激活部分参数的情况下,性能与稠密LLMs相当;在激活参数数量相近时,其多义性低于稠密LLMs;在同一模型家族内,其个性化隐层与非个性化模型的共享程度更低。因果干预实验表明,这些隐层足以恢复个性化模型的行为,且增强其关联专家的激活可使非个性化模型向个性化模型靠拢,揭示了不同个性化特征对应的 distinct 路由路径。
英文摘要:
Personalization of Large Language Models (LLMs) is increasingly important for user-centric applications, yet prior methods mainly adapt dense LLMs, whose polysemantic neurons, each encoding multiple unrelated concepts, hinder localizing the components behind personalization, and thus understanding and controlling it. We propose to personalize Mixture-of-Experts (MoE) LLMs, which sparsely route each token to a few specialized experts, reducing polysemanticity and enabling such localization. We adapt three open-weight MoE LLMs on a large-scale personalization dataset and train crosscoders on paired activations of the personalized and non-personalized models to learn interpretable personalized latents, from which we identify the experts encoding distinct personalization features. The personalized MoE LLMs perform competitively with dense LLMs while activating only a fraction of their parameters, exhibit lower polysemanticity than dense LLMs with similar active parameters, and, within the same model family, yield personalized latents that are less shared with the non-personalized model. Causal interventions show that these latents suffice to recover the personalized model's behavior and that boosting their associated experts moves the non-personalized model toward it, revealing distinct routing paths for different personalization features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。