arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.11767cs.LG
收藏

通过形式语言分析稀疏自编码器的(不)能力

Analyzing (In)Abilities of SAEs via Formal Languages

IIIT Hyderabad(印度信息技术与管理大学海得拉巴分校);MILA(蒙特利尔学习算法研究所);Harvard University(哈佛大学)

Abhinav Menon, Manish Shrivastava, David Krueger, Ekdeep Singh Lubana

AI总结:

本文通过在形式语言测试平台上训练稀疏自编码器,系统分析其在文本领域的可解释性与因果性局限,并提出从底层激励因果特征学习的新方法。

摘要:

自编码器已被用于在图像和文本领域中寻找神经网络表征背后可解释且解耦的特征。虽然此类方法在视觉领域的有效性与缺陷已得到充分研究,但在文本领域仍缺乏相应的定性和定量结果。我们旨在通过在形式语言的合成测试平台上训练稀疏自编码器(SAEs)来填补这一空白。具体而言,我们在多种超参数设置下,对在形式语言(Dyck-2、Expr 和英语 PCFG)上训练的模型的隐藏表征训练 SAEs,发现可解释的潜在特征常常出现在我们的 SAEs 所学到的特征中。然而,与视觉领域类似,我们发现性能对训练流程中的归纳偏置高度敏感。此外,我们表明与输入的某些特征相关的潜在特征并不总是对模型的计算产生因果影响。因此,我们认为因果性必须成为 SAE 训练的核心目标:应从底层开始激励因果特征的学习。受此启发,我们提出并在形式语言设置中开展初步研究,探索一种促进学习因果相关特征的方法。

英文摘要:

Autoencoders have been used for finding interpretable and disentangled features underlying neural network representations in both image and text domains. While the efficacy and pitfalls of such methods are well-studied in vision, there is a lack of corresponding results, both qualitative and quantitative, for the text domain. We aim to address this gap by training sparse autoencoders (SAEs) on a synthetic testbed of formal languages. Specifically, we train SAEs on the hidden representations of models trained on formal languages (Dyck-2, Expr, and English PCFG) under a wide variety of hyperparameter settings, finding interpretable latents often emerge in the features learned by our SAEs. However, similar to vision, we find performance turns out to be highly sensitive to inductive biases of the training pipeline. Moreover, we show latents correlating to certain features of the input do not always induce a causal impact on model's computation. We thus argue that causality has to become a central target in SAE training: learning of causal features should be incentivized from the ground-up. Motivated by this, we propose and perform preliminary investigations for an approach that promotes learning of causally relevant features in our formal language setting.

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

↑