AbsTopK: 重新思考用于双向特征的稀疏自编码器
AbsTopK: Rethinking Sparse Autoencoders For Bidirectional Features
AI总结:
针对现有稀疏自编码器因非负约束无法表征双向语义的局限,本研究基于近端梯度法推导提出AbsTopK SAE,通过保留正负激活实现双向特征学习,在多模型多任务上性能超越传统SAE并对标有监督方法。
摘要:
稀疏自编码器(Sparse Autoencoders, SAEs)已成为大语言模型(Large Language Models, LLMs)可解释性领域的强大技术,旨在将隐藏状态分解为有意义的语义特征。尽管已有多种SAE变体被提出,但目前仍缺乏一个能从原始字典学习公式推导SAE的原则性框架。在本研究中,我们通过展开稀疏编码的近端梯度法,提出了这样一个框架。我们证明,单步更新即可自然推导出常见的SAE变体,包括ReLU、JumpReLU和TopK。通过这一视角,我们揭示了现有SAE的一个根本局限:它们的稀疏诱导正则化项强制要求非负性,导致单个特征无法表示双向概念(例如“男性”与“女性”)。这种结构约束将语义轴割裂为独立的冗余特征,限制了表征的完整性。为解决这一问题,我们提出AbsTopK SAE——一种从$\boldsymbol{\textit{ℓ}}_0$稀疏约束推导而来的新变体,它对最大幅度的激活值施加硬阈值处理。通过同时保留正激活值和负激活值,AbsTopK能够挖掘更丰富的双向概念表征。我们在4个LLM、7项探测与引导任务上开展了综合实验,结果表明AbsTopK提升了重建保真度,增强了可解释性,并且单个特征即可编码对比性概念。值得注意的是,AbsTopK的性能与均值差法(Difference-in-Mean method)相当甚至更优——后者是一种有监督方法,需要为每个概念提供标注数据,且已有研究表明其性能优于SAEs。
英文摘要:
Sparse autoencoders (SAEs) have emerged as powerful techniques for interpretability of large language models (LLMs), aiming to decompose hidden states into meaningful semantic features. While several SAE variants have been proposed, there remains no principled framework to derive SAEs from the original dictionary learning formulation. In this work, we introduce such a framework by unrolling the proximal gradient method for sparse coding. We show that a single-step update naturally recovers common SAE variants, including ReLU, JumpReLU, and TopK. Through this lens, we reveal a fundamental limitation of existing SAEs: their sparsity-inducing regularizers enforce non-negativity, preventing a single feature from representing bidirectional concepts (e.g., male vs. female). This structural constraint fragments semantic axes into separate, redundant features, limiting representational completeness. To address this issue, we propose AbsTopK SAE, a new variant derived from the $\ell_0$ sparsity constraint that applies hard thresholding over the largest-magnitude activations. By preserving both positive and negative activations, AbsTopK uncovers richer, bidirectional conceptual representations. Comprehensive experiments across four LLMs and seven probing and steering tasks show that AbsTopK improves reconstruction fidelity, enhances interpretability, and enables single features to encode contrasting concepts. Remarkably, AbsTopK matches or even surpasses the Difference-in-Mean method, a supervised approach that requires labeled data for each concept and has been shown in prior work to outperform SAEs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。