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

循环神经网络使用非线性表示学习存储和生成序列

Recurrent Neural Networks Learn to Store and Generate Sequences using Non-Linear Representations

Stanford University(斯坦福大学)

Róbert Csordás, Christopher Potts, Christopher D. Manning, Atticus Geiger

AI总结:

本文通过实验证明,门控循环神经网络在重复输入序列任务中采用基于数量级的非线性表示,而非线性方向编码,从而反驳了强线性表示假说,并指出可解释性研究不应受此假说限制。

摘要:

线性表示假说(LRH)认为,神经网络学会将概念编码为激活空间中的方向,而强版本的LRH则声称模型只学习此类编码。在本文中,我们针对这一强LRH提出了一个反例:当被训练来重复输入令牌序列时,门控循环神经网络(RNN)学会用每个位置令牌的特定数量级(而非方向)来表示该令牌。这些表示具有分层特征,无法在截然不同的线性子空间中定位。为了证明这一点,我们通过学习每个序列位置对应的缩放因子来训练干预,以预测和操纵令牌。这些干预表明,最小的RNN只找到这种基于量级的解决方案,而较大的RNN则具有线性表示。这些发现有力地表明,可解释性研究不应受LRH的限制。

英文摘要:

The Linear Representation Hypothesis (LRH) states that neural networks learn to encode concepts as directions in activation space, and a strong version of the LRH states that models learn only such encodings. In this paper, we present a counterexample to this strong LRH: when trained to repeat an input token sequence, gated recurrent neural networks (RNNs) learn to represent the token at each position with a particular order of magnitude, rather than a direction. These representations have layered features that are impossible to locate in distinct linear subspaces. To show this, we train interventions to predict and manipulate tokens by learning the scaling factor corresponding to each sequence position. These interventions indicate that the smallest RNNs find only this magnitude-based solution, while larger RNNs have linear representations. These findings strongly indicate that interpretability research should not be confined by the LRH.

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

↑