arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.20526cs.LGcs.CL
收藏

Llama Scope:使用稀疏自编码器从 Llama-3.1-8B 中提取数百万特征

Llama Scope: Extracting Millions of Features from Llama-3.1-8B with Sparse Autoencoders

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Zhengfu He, Wentao Shu, Xuyang Ge, Lingjie Chen, Junxuan Wang, Yunhua Zhou, Frances Liu, Qipeng Guo, Xuanjing Huang, Zuxuan Wu, Yu-Gang Jiang, Xipeng Qiu

AI总结:

本文提出Llama Scope,在Llama-3.1-8B-Base各层及子层训练256个32K/128K特征的SAE,评估Top-K改进、长上下文与微调泛化及特征分裂,并开源检查点与工具链。

摘要:

稀疏自编码器(Sparse Autoencoders,SAE)已成为从语言模型中提取稀疏表示的强大无监督方法,但可扩展训练仍是一项重大挑战。我们介绍了一套包含256个SAE的模型组,在 Llama-3.1-8B-Base 模型的每一层和子层上训练,分别具有32K和128K个特征。我们从多个维度评估了对一种最先进SAE变体 Top-K SAE 的修改。特别是,我们评估了在基座模型上训练的SAE对更长上下文和微调模型的泛化能力。此外,我们分析了所学SAE潜在变量的几何结构,确认“特征分裂”能够发现新特征。Llama Scope SAE检查点已公开发布于 https://huggingface.co/fnlp/Llama-Scope,同时我们的可扩展训练、解释和可视化工具位于 https://github.com/OpenMOSS/Language-Model-SAEs。这些贡献旨在推动开源稀疏自编码器生态系统,并通过减少冗余SAE训练需求来支持机制可解释性研究。

英文摘要:

Sparse Autoencoders (SAEs) have emerged as a powerful unsupervised method for extracting sparse representations from language models, yet scalable training remains a significant challenge. We introduce a suite of 256 SAEs, trained on each layer and sublayer of the Llama-3.1-8B-Base model, with 32K and 128K features. Modifications to a state-of-the-art SAE variant, Top-K SAEs, are evaluated across multiple dimensions. In particular, we assess the generalizability of SAEs trained on base models to longer contexts and fine-tuned models. Additionally, we analyze the geometry of learned SAE latents, confirming that \emph{feature splitting} enables the discovery of new features. The Llama Scope SAE checkpoints are publicly available at~\url{https://huggingface.co/fnlp/Llama-Scope}, alongside our scalable training, interpretation, and visualization tools at \url{https://github.com/OpenMOSS/Language-Model-SAEs}. These contributions aim to advance the open-source Sparse Autoencoder ecosystem and support mechanistic interpretability research by reducing the need for redundant SAE training.

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

↑