Monet: Mixture of Monosemantic Experts for Transformers
本文提出了一种名为MONET的混合单一语义专家架构,通过将稀疏字典学习直接集成到端到端混合专家预训练中,有效地实现了大型语言模型的可解释性和知识操控。
更新于 2024-12-06。作者:Jungwoo Park、Young Jin Ahn、Kee-Eung Kim、Jaewoo Kang。
中文摘要
理解大型语言模型(LLMs)的内部计算对于使它们与人类价值观相一致以及防止产生有害内容等不良行为至关重要。然而,由于多义性——单个神经元对多个、不相关的概念做出反应——机制可解释性受到了阻碍。尽管稀疏自编码器(SAEs)试图通过稀疏字典学习来解耦这些特征,但由于依赖于事后重建损失,它们已经牺牲了LLM的性能。为了解决这个问题,我们引入了用于Transformers的单一语义专家混合(Monet)架构,该架构将稀疏字典学习直接集成到端到端的混合专家预训练中。我们新颖的专家分解方法使得每层的专家数量可扩展到262,144个,而总参数量与专家数量的平方根成比例。我们的分析表明,专家之间的知识相互独立,并展示了单个专家内封装的参数化知识。此外,Monet允许在领域、语言和毒性缓解方面进行知识操作,而不会降低整体性能。我们追求透明的LLMs,突出了通过扩展专家数量来增强机制可解释性的潜力,并直接调整模型行为。源代码和预训练检查点可在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.
解读
一句话总结
本文提出了一种名为MONET的混合单一语义专家架构,通过将稀疏字典学习直接集成到端到端混合专家预训练中,有效地实现了大型语言模型的可解释性和知识操控。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:大型语言模型(LLMs)的内部计算理解对于与人类价值观保持一致以及防止有害行为(如生成有害内容)至关重要。然而,由于多义性,机制可解释性受到阻碍,即单个神经元对多个无关概念做出反应。 • 现有方案不足:稀疏自动编码器(SAEs)通过稀疏字典学习试图解开这些特征,但它们由于依赖后处理重建损失而牺牲了LLM的性能。 • 研究目标:提出MONET架构,该架构将稀疏字典学习直接集成到端到端混合专家预训练中,以实现LLMs的机制可解释性。
问题2:论文的核心创新点是什么?
• 技术创新:引入了一种新的专家分解方法,使得专家数量可以扩展到每层262,144个,而总参数量则与专家数量的平方根成比例。 • 方法改进:通过将稀疏字典学习直接集成到混合专家预训练中,避免了后处理重建损失的问题。 • 优势:与现有方法相比,MONET在保持性能的同时,实现了对知识领域、语言和毒性缓解的操控。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在多个语言建模基准上对MONET进行了评估,结果表明其性能与总参数量相匹配的密集LLMs相当。 • 性能提升:MONET在保持性能的同时,实现了对知识领域、语言和毒性缓解的操控。 • 对比结果:与SAEs相比,MONET避免了后处理重建损失的问题,同时保持了模型的整体性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:MONET可以用于提高LLMs的可解释性和可控性,例如在知识领域、语言和毒性缓解方面的操控。 • 实施建议:MONET可以集成到现有的LLMs中,以提高其可解释性和可控性。 • 局限与展望:MONET的专家选择和自动解释技术还有待进一步研究。未来可以探索MONET在幻觉和终身学习方面的应用。
来源
机器可读索引:llms.txt