Monet:面向 Transformer 的单语义专家混合体
Monet: Mixture of Monosemantic Experts for Transformers
AI总结:
本文提出 Monet 架构,将稀疏字典学习融入端到端 MoE 预训练,以单语义专家提升 LLM 机制可解释性,并支持在不损害通用性能的情况下操纵知识与缓解毒性。
摘要:
理解大型语言模型(LLM)的内部计算,对于使其与人类价值观对齐并防止有毒内容生成等不良行为至关重要。然而,机制可解释性受到多语义性的阻碍——即单个神经元会对多个互不相关的概念作出响应。尽管 Sparse Autoencoders(SAE,稀疏自编码器)已尝试通过稀疏字典学习来解耦这些特征,但由于依赖事后重建损失,它们会损害 LLM 的性能。为解决这一问题,我们提出了 Mixture of Monosemantic Experts for Transformers(Monet,面向 Transformer 的单语义专家混合体)架构,将稀疏字典学习直接纳入端到端的 Mixture-of-Experts(专家混合)预训练中。我们新颖的专家分解方法能够将每层专家数量扩展至 262,144 个,同时总参数量仅按专家数量的平方根成比例扩展。分析表明,各专家之间的知识具有互斥性,并展示了单个专家内部封装的参数化知识。此外,Monet 支持跨领域、语言的知识操纵以及毒性缓解,且不会降低通用性能。我们对透明 LLM 的探索凸显了扩展专家数量的潜力:可增强机制可解释性,并直接切除内部知识,从而从根本上调整模型行为。源代码和预训练检查点可在 https://github.com/dmis-lab/Monet 获取。
英文摘要:
Understanding the internal computations of large language models (LLMs) is crucial for aligning them with human values and preventing undesirable behaviors like toxic content generation. However, mechanistic interpretability is hindered by polysemanticity -- where individual neurons respond to multiple, unrelated concepts. While Sparse Autoencoders (SAEs) have attempted to disentangle these features through sparse dictionary learning, they have compromised LLM performance due to reliance on post-hoc reconstruction loss. To address this issue, we introduce Mixture of Monosemantic Experts for Transformers (Monet) architecture, which incorporates sparse dictionary learning directly into end-to-end Mixture-of-Experts pretraining. Our novel expert decomposition method enables scaling the expert count to 262,144 per layer while total parameters scale proportionally to the square root of the number of experts. Our analyses demonstrate mutual exclusivity of knowledge across experts and showcase the parametric knowledge encapsulated within individual experts. Moreover, Monet allows knowledge manipulation over domains, languages, and toxicity mitigation without degrading general performance. Our pursuit of transparent LLMs highlights the potential of scaling expert counts to enhance mechanistic interpretability and directly resect the internal knowledge to fundamentally adjust model behavior. The source code and pretrained checkpoints are available at https://github.com/dmis-lab/Monet.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。