arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.00657cs.LG

使用稀疏自编码器解耦稠密嵌入

Disentangling Dense Embeddings with Sparse Autoencoders

The Australian National University(澳大利亚国立大学);Stanford University(斯坦福大学);Columbia University(哥伦比亚大学);Space Telescope Science Institute(空间望远镜科学研究所);Johns Hopkins University(约翰斯·霍普金斯大学)

Charles O'Neill, Christine Ye, Kartheik Iyer, John F. Wu

AI总结:

本文将SAEs应用于大型语言模型的稠密文本嵌入,基于42万余篇论文摘要训练并分析可解释稀疏特征,提出特征族识别方法,实现对语义搜索的精确控制并开源相关资源。

摘要:

稀疏自编码器(Sparse autoencoders,SAEs)已在从复杂神经网络中提取可解释特征方面展现出前景。我们提出了SAEs在大型语言模型稠密文本嵌入上的最早应用之一,证明了其在解耦语义概念方面的有效性。通过在来自计算机科学和天文学的超过420,000篇科学论文摘要的嵌入上训练SAEs,我们表明所得稀疏表示在保持语义保真度的同时提供了可解释性。我们分析了这些学习到的特征,探究了它们在不同模型容量下的行为,并引入了一种识别“特征族”的新方法,这些特征族在不同抽象层级表示相关概念。为证明我们方法的实际效用,我们展示了这些可解释特征如何用于精确引导语义搜索,从而实现对查询语义的细粒度控制。本工作弥合了稠密嵌入的语义丰富性与稀疏表示的可解释性之间的差距。我们开源了嵌入、训练好的稀疏自编码器和已解释的特征,以及一个用于探索它们的网络应用。

英文摘要:

Sparse autoencoders (SAEs) have shown promise in extracting interpretable features from complex neural networks. We present one of the first applications of SAEs to dense text embeddings from large language models, demonstrating their effectiveness in disentangling semantic concepts. By training SAEs on embeddings of over 420,000 scientific paper abstracts from computer science and astronomy, we show that the resulting sparse representations maintain semantic fidelity while offering interpretability. We analyse these learned features, exploring their behaviour across different model capacities and introducing a novel method for identifying ``feature families'' that represent related concepts at varying levels of abstraction. To demonstrate the practical utility of our approach, we show how these interpretable features can be used to precisely steer semantic search, allowing for fine-grained control over query semantics. This work bridges the gap between the semantic richness of dense embeddings and the interpretability of sparse representations. We open source our embeddings, trained sparse autoencoders, and interpreted features, as well as a web app for exploring them.

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

↑