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

产生差异的特征:利用梯度改进字典学习

Features that Make a Difference: Leveraging Gradients for Improved Dictionary Learning

Brigham Young University(杨百翰大学)

Jeffrey Olmo, Jared Wilson, Max Forsey, Bryce Hepner, Thomas Vin Howe, David Wingate

AI总结:

针对传统稀疏自编码器仅考虑激活值而忽略下游影响的问题,提出g-SAEs,通过在TopK激活函数中引入输入激活的梯度来改进架构,使重构更忠实于原始网络性能,并能更有效地引导模型。

摘要:

稀疏自编码器(SAEs)是一种很有前景的方法,通过学习网络内部激活的稀疏且过完备分解来提取神经网络表示。然而,传统SAE训练仅考虑激活值,而不考虑这些激活对下游计算的影响。这限制了学习特征的信息,并使自编码器倾向于忽略那些激活值小但对模型输出影响强烈的特征。为解决此问题,我们引入了梯度SAE(g-SAEs),它通过增强TopK激活函数,使其在选择$k$个元素时依赖于输入激活的梯度,从而修改了$k$-稀疏自编码器架构。对于给定的稀疏度水平,g-SAEs生成的重构在通过网络传播时更忠实于原始网络性能。此外,我们发现有证据表明,g-SAEs学习的潜在变量在任意上下文中平均更有效地引导模型。通过考虑激活的下游影响,我们的方法利用了神经网络特征的双重性质,即回顾性地作为表示,以及前瞻性地作为动作。虽然以前的方法在解决特征发现问题主要关注前一方面,但g-SAEs代表了在后一方面也加以考虑的一步。

英文摘要:

Sparse Autoencoders (SAEs) are a promising approach for extracting neural network representations by learning a sparse and overcomplete decomposition of the network's internal activations. However, SAEs are traditionally trained considering only activation values and not the effect those activations have on downstream computations. This limits the information available to learn features, and biases the autoencoder towards neglecting features which are represented with small activation values but strongly influence model outputs. To address this, we introduce Gradient SAEs (g-SAEs), which modify the $k$-sparse autoencoder architecture by augmenting the TopK activation function to rely on the gradients of the input activation when selecting the $k$ elements. For a given sparsity level, g-SAEs produce reconstructions that are more faithful to original network performance when propagated through the network. Additionally, we find evidence that g-SAEs learn latents that are on average more effective at steering models in arbitrary contexts. By considering the downstream effects of activations, our approach leverages the dual nature of neural network features as both $\textit{representations}$, retrospectively, and $\textit{actions}$, prospectively. While previous methods have approached the problem of feature discovery primarily focused on the former aspect, g-SAEs represent a step towards accounting for the latter as well.

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

↑