通过稀疏权重让Transformer模型的神经电路更可解释。
Weight-sparse transformers have interpretable circuits
- 约束大部分权重为零,使每个神经元仅保留少数连接。
- 稀疏模型能提取出对应自然概念的可读电路,连接简单清晰。
- 模型规模扩大可提升可解释性与能力的平衡,但超百万非零参数难维持可解释性。
寻找语言模型中人类可理解的机制电路是机械可解释性领域的重要目标。我们通过将多数权重设为零来训练模型,使每个神经元仅保留少量连接,从而提高电路可理解性。为恢复若干人工设计任务背后的精细电路,我们对模型进行剪枝以隔离负责该任务的部分。这些电路通常包含对应自然概念的神经元和残差通道,彼此间有少量直接可解释的连接。我们研究了这类模型的扩展特性,发现权重重构越稀疏,可解释性越强但能力越弱;而扩大模型规模可改善能力与可解释性的平衡。然而,将稀疏模型扩展到超过数百万个非零参数仍难以保持可解释性。除了从头训练稀疏模型外,我们还初步验证该方法可用于解释现有稠密模型。本工作生成的电路达到了前所未有的可理解水平,并通过严格方式进行了验证。
原文摘要 · Abstract (English)
Finding human-understandable circuits in language models is a central goal of the field of mechanistic interpretability. We train models to have more understandable circuits by constraining most of their weights to be zeros, so that each neuron only has a few connections. To recover fine-grained circuits underlying each of several hand-crafted tasks, we prune the models to isolate the part responsible for the task. These circuits often contain neurons and residual channels that correspond to natural concepts, with a small number of straightforwardly interpretable connections between them. We study how these models scale and find that making weights sparser trades off capability for interpretability, and scaling model size improves the capability-interpretability frontier. However, scaling sparse models beyond tens of millions of nonzero parameters while preserving interpretability remains a challenge. In addition to training weight-sparse models de novo, we show preliminary results suggesting our method can also be adapted to explain existing dense models. Our work produces circuits that achieve an unprecedented level of human understandability and validates them with considerable rigor.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。