arXiv:2505.21364cs.LGcs.AI2025-05NeurIPS被引 6

用混合解码器实现高精度可解释的神经网络分解

Towards Interpretability Without Sacrifice: Faithful Dense Layer Decomposition with Mixture of Decoders

  • 提出混合解码器架构,通过层级稀疏性替代传统神经元稀疏性
  • 在30亿参数模型上实现稀疏率超70%仍保持低交叉熵损失
  • 适合需要可解释性又不牺牲性能的研究者与工程师

多层感知机(MLP)是大语言模型的核心组件,但其密集表示导致难以理解、编辑和控制。现有方法通过神经元级稀疏性学习可解释近似,却显著增加下一个词的交叉熵损失,影响模型准确性。本文主张转向层级稀疏性,在此范式下提出混合解码器(MxDs)。MxDs推广了MLP与门控线性单元,将预训练的密集层扩展为数万个专用子层。通过灵活的张量分解,每个稀疏激活的子层均具备满秩权重的线性变换能力,即使在强稀疏条件下也保持原始解码器的表达能力。实验表明,MxDs在高达30亿参数的语言模型中,显著优于当前最优方法(如Transcoders),在稀疏性-准确性权衡上表现更优。对稀疏探测和特征操控的评估显示,MxDs学习到与自然语言高度匹配的专属性特征,为设计既可解释又忠实的分解提供了新路径。代码已公开于:https://github.com/james-oldfield/MxD/

原文摘要 · Abstract (English)

Multilayer perceptrons (MLPs) are an integral part of large language models, yet their dense representations render them difficult to understand, edit, and steer. Recent methods learn interpretable approximations via neuron-level sparsity, yet fail to faithfully reconstruct the original mapping--significantly increasing model's next-token cross-entropy loss. In this paper, we advocate for moving to layer-level sparsity to overcome the accuracy trade-off in sparse layer approximation. Under this paradigm, we introduce Mixture of Decoders (MxDs). MxDs generalize MLPs and Gated Linear Units, expanding pre-trained dense layers into tens of thousands of specialized sublayers. Through a flexible form of tensor factorization, each sparsely activating MxD sublayer implements a linear transformation with full-rank weights--preserving the original decoders' expressive capacity even under heavy sparsity. Experimentally, we show that MxDs significantly outperform state-of-the-art methods (e.g., Transcoders) on the sparsity-accuracy frontier in language models with up to 3B parameters. Further evaluations on sparse probing and feature steering demonstrate that MxDs learn similarly specialized features of natural language--opening up a promising new avenue for designing interpretable yet faithful decompositions. Our code is included at: https://github.com/james-oldfield/MxD/.

可解释性稀疏分解语言模型张量分解

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。