arXiv:2503.17547cs.LGcs.AI2025-03ICML被引 135

通过嵌套字典结构,让自编码器同时学习多层级概念,避免高层特征被淹没。

Learning Multi-Level Features with Matryoshka Sparse Autoencoders

  • 构建多层嵌套字典,小字典独立重建输入,强制学习通用概念
  • 在Gemma-2-2B上实现更解耦的概念表示,减少特征吸收现象
  • 适合需要可解释性与层次化理解的神经网络分析任务

稀疏自编码器(SAEs)已成为解析神经网络激活中所表示概念的强大工具。然而,选择字典大小存在矛盾:随着字典增大以捕捉更多相关概念,稀疏性又促使特征分裂或被更具体的特征吸收,导致高层特征缺失或扭曲。本文提出马特罗什卡稀疏自编码器(Matryoshka SAEs),通过同时训练一系列嵌套的、规模递增的字典,强制较小字典在不使用较大字典的前提下独立重建输入。这种机制实现了特征的分层组织——小字典学习通用概念,大字典学习具体概念,且无吸收高层特征的倾向。我们在Gemma-2-2B和TinyStories数据集上训练该模型,结果表明其在稀疏探测和目标概念擦除任务中表现更优,概念表示更解耦,特征吸收显著减少。尽管重建性能略有下降,但我们认为马特罗什卡SAEs是实际应用中的更优选择,可在训练任意大规模SAE的同时保持多层次可解释性。

原文摘要 · Abstract (English)

Sparse autoencoders (SAEs) have emerged as a powerful tool for interpreting neural networks by extracting the concepts represented in their activations. However, choosing the size of the SAE dictionary (i.e. number of learned concepts) creates a tension: as dictionary size increases to capture more relevant concepts, sparsity incentivizes features to be split or absorbed into more specific features, leaving high-level features missing or warped. We introduce Matryoshka SAEs, a novel variant that addresses these issues by simultaneously training multiple nested dictionaries of increasing size, forcing the smaller dictionaries to independently reconstruct the inputs without using the larger dictionaries. This organizes features hierarchically - the smaller dictionaries learn general concepts, while the larger dictionaries learn more specific concepts, without incentive to absorb the high-level features. We train Matryoshka SAEs on Gemma-2-2B and TinyStories and find superior performance on sparse probing and targeted concept erasure tasks, more disentangled concept representations, and reduced feature absorption. While there is a minor tradeoff with reconstruction performance, we believe Matryoshka SAEs are a superior alternative for practical tasks, as they enable training arbitrarily large SAEs while retaining interpretable features at different levels of abstraction.

稀疏自编码器可解释性层次特征神经网络分析

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