arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.17547cs.LGcs.AI
收藏

基于套娃稀疏自编码器的多级特征学习

Learning Multi-Level Features with Matryoshka Sparse Autoencoders

Bart Bussmann, Noa Nabeshima, Adam Karvonen, Neel Nanda

AI总结:

针对稀疏自编码器字典大小选择的矛盾问题,提出嵌套多字典训练的套娃稀疏自编码器,实现层级化可解释特征学习,在相关任务上表现更优。

摘要:

稀疏自编码器(Sparse Autoencoders, SAEs)已成为通过提取神经网络激活中表征的概念来解释神经网络的强大工具。然而,选择SAE字典的大小(即学习到的概念数量)会产生矛盾:当字典大小增加以捕获更多相关概念时,稀疏性会促使特征被拆分或被更具体的特征吸收,导致高级特征缺失或扭曲。我们提出了套娃稀疏自编码器(Matryoshka SAEs),这是一种新型变体,通过同时训练多个尺寸递增的嵌套字典来解决这些问题,强制较小的字典在不使用较大字典的情况下独立重建输入。这使特征形成层级组织——较小的字典学习通用概念,而较大的字典学习更具体的概念,且不存在吸收高级特征的动机。我们在Gemma-2-2B和TinyStories上训练了Matryoshka SAEs,发现其在稀疏探测和定向概念擦除任务上表现更优,概念表征更解耦,特征吸收现象减少。虽然在重建性能上存在微小权衡,但我们认为Matryoshka SAEs是实际任务的更优替代方案,因为它们能够训练任意大的SAE,同时保留不同抽象层级的可解释特征。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑