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

稀疏自编码器的规模扩展与评估

Scaling and evaluating sparse autoencoders

OpenAI

Leo Gao, Tom Dupré la Tour, Henk Tillman, Gabriel Goh, Rajan Troll, Alec Radford, Ilya Sutskever, Jan Leike, Jeffrey Wu

AI总结:

本文提出用k-稀疏自编码器直接控制稀疏性并改进死亡潜变量问题,发现了清晰的扩展规律,并在GPT-4激活上训练了1600万潜变量的大规模自编码器,同时引入多个特征质量评估指标。

摘要:

稀疏自编码器通过从稀疏瓶颈层重构激活,为从语言模型中提取可解释特征提供了一种有前景的无监督方法。由于语言模型学习了许多概念,自编码器需要非常大才能恢复所有相关特征。然而,研究自编码器扩展的性质是困难的,因为需要在重构目标和稀疏目标之间取得平衡,并且存在死亡潜变量的问题。我们提出使用k-稀疏自编码器[Makhzani and Frey, 2013]来直接控制稀疏性,简化调参并改善重构-稀疏前沿。此外,我们发现了即使在尝试的最大规模下也能产生很少死亡潜变量的修改方法。利用这些技术,我们发现了关于自编码器大小和稀疏性的清晰扩展规律。我们还引入了几个新的评估特征质量的指标,这些指标基于假设特征的恢复、激活模式的可解释性以及下游效应的稀疏性。这些指标通常都随着自编码器大小的增加而改善。为了证明我们方法的可扩展性,我们在GPT-4激活上训练了一个具有1600万潜变量的自编码器,使用了400亿个token。我们发布了开源模型的训练代码和自编码器,以及一个可视化工具。

英文摘要:

Sparse autoencoders provide a promising unsupervised approach for extracting interpretable features from a language model by reconstructing activations from a sparse bottleneck layer. Since language models learn many concepts, autoencoders need to be very large to recover all relevant features. However, studying the properties of autoencoder scaling is difficult due to the need to balance reconstruction and sparsity objectives and the presence of dead latents. We propose using k-sparse autoencoders [Makhzani and Frey, 2013] to directly control sparsity, simplifying tuning and improving the reconstruction-sparsity frontier. Additionally, we find modifications that result in few dead latents, even at the largest scales we tried. Using these techniques, we find clean scaling laws with respect to autoencoder size and sparsity. We also introduce several new metrics for evaluating feature quality based on the recovery of hypothesized features, the explainability of activation patterns, and the sparsity of downstream effects. These metrics all generally improve with autoencoder size. To demonstrate the scalability of our approach, we train a 16 million latent autoencoder on GPT-4 activations for 40 billion tokens. We release training code and autoencoders for open-source models, as well as a visualizer.

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

↑