arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.16014cs.LGcs.AI
收藏

利用门控稀疏自编码器改进字典学习

Improving Dictionary Learning with Gated Sparse Autoencoders

Google DeepMind(谷歌DeepMind)

Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Tom Lieberum, Vikrant Varma, János Kramár, Rohin Shah, Neel Nanda

AI总结:

本文提出门控稀疏自编码器,通过分离方向选择与幅度估计功能并仅对前者施加L1惩罚,解决了SAE的收缩偏差,在高达7B参数语言模型上以一半激活特征实现相当重构保真度。

摘要:

近期研究发现,稀疏自编码器(SAEs)是一种在语言模型(LMs)激活中无监督发现可解释特征的有效技术,其通过寻找LM激活的稀疏线性重构来实现。我们提出了门控稀疏自编码器(Gated SAE),它在与主流方法的训练对比中实现了帕累托改进。在SAEs中,用于鼓励稀疏性的L1惩罚引入了许多不希望的偏差,例如收缩——即特征激活的系统性低估。门控SAE的关键洞见在于将(a)确定使用哪些方向与(b)估计这些方向的大小这两种功能分离开来:这使我们能够仅对前者施加L1惩罚,从而限制不良副作用的影响范围。通过在参数量高达7B的语言模型上训练SAEs,我们发现在典型的超参数范围内,门控SAE解决了收缩问题,具有相似的可解释性,并且只需一半的激活特征数量即可达到相当的重构保真度。

英文摘要:

Recent work has found that sparse autoencoders (SAEs) are an effective technique for unsupervised discovery of interpretable features in language models' (LMs) activations, by finding sparse, linear reconstructions of LM activations. We introduce the Gated Sparse Autoencoder (Gated SAE), which achieves a Pareto improvement over training with prevailing methods. In SAEs, the L1 penalty used to encourage sparsity introduces many undesirable biases, such as shrinkage -- systematic underestimation of feature activations. The key insight of Gated SAEs is to separate the functionality of (a) determining which directions to use and (b) estimating the magnitudes of those directions: this enables us to apply the L1 penalty only to the former, limiting the scope of undesirable side effects. Through training SAEs on LMs of up to 7B parameters we find that, in typical hyper-parameter ranges, Gated SAEs solve shrinkage, are similarly interpretable, and require half as many firing features to achieve comparable reconstruction fidelity.

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

↑