arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06141cs.LGcs.AI
收藏

人工神经网络中涌现的类符号数字变量

Emergent Symbol-like Number Variables in Artificial Neural Networks

Stanford University(斯坦福大学)

Satchel Grant, Noah D. Goodman, James L. McClelland

AI总结:

本文通过分布式对齐搜索等因果与理论方法,以神经子空间和符号算法变量解释 GRU、LSTM 与 Transformer 在数字任务中的表征,揭示循环网络可涌现类符号数字变量,并证明浅层 Transformer 在注意力层不足时须采用反马尔可夫解。

摘要:

神经系统中会涌现出哪些类型的数字表征,而对这一问题的令人满意的回答又应当是怎样的?在这项工作中,我们使用多种方法解释神经网络(NN)在基于序列的数字任务上的解,以理解我们能够在多大程度上通过可解释符号算法(SA)的视角来解读这些解——即由规则和带类型的可变变量所描述的精确程序。我们使用自回归 GRU、LSTM 和 Transformer,在正确 token 依赖于仅潜伏在任务结构中的数字信息的任务上进行训练。我们通过多种因果方法和理论方法表明,当我们将原始 NN 活动以神经子空间而非单个神经元的形式来刻画时,可以通过简化 SA 的视角来解释这些活动。利用分布式对齐搜索(DAS),我们发现,取决于网络架构、维度和任务规格,与 SA 的对齐程度可能非常高,也可能只是近似,或者完全失败。我们扩展了分析工具包以应对失败情形,将 DAS 框架扩展为更广泛的一类对齐函数,从而更灵活地以 SA 中可解释变量的形式捕捉 NN 活动,并且我们提供了线性对齐函数(LAF)与既有的正交对齐函数(OAF)相对照的理论和实证探索。通过对具体案例的分析,我们确认了对神经子空间进行因果干预对于 NN 可解释性的有效性,并且表明循环模型能够在其神经活动中发展出渐进的、类符号的数字变量。我们进一步表明,浅层 Transformer 学到的解与循环网络非常不同,并且我们证明,在注意力层不足的情况下,此类模型必须使用反马尔可夫解——即不依赖于累积式马尔可夫隐状态的解。

英文摘要:

What types of numeric representations emerge in neural systems, and what would a satisfying answer to this question look like? In this work, we interpret Neural Network (NN) solutions to sequence based number tasks using a variety of methods to understand how well we can interpret them through the lens of interpretable Symbolic Algorithms (SAs) -- precise programs describable by rules and typed, mutable variables. We use autoregressive GRUs, LSTMs, and Transformers trained on tasks where the correct tokens depend on numeric information only latent in the task structure. We show through multiple causal and theoretical methods that we can interpret raw NN activity through the lens of simplified SAs when we frame the activity in terms of neural subspaces rather than individual neurons. Using Distributed Alignment Search (DAS), we find that, depending on network architecture, dimensionality, and task specifications, alignments with SA's can be very high, or they can be only approximate, or fail altogether. We extend our analytic toolkit to address the failure cases by expanding the DAS framework to a broader class of alignment functions that more flexibly capture NN activity in terms of interpretable variables from SAs, and we provide theoretic and empirical explorations of Linear Alignment Functions (LAFs) in contrast to the preexisting Orthogonal Alignment Functions (OAFs). Through analyses of specific cases we confirm the usefulness of causal interventions on neural subspaces for NN interpretability, and we show that recurrent models can develop graded, symbol-like number variables in their neural activity. We further show that shallow Transformers learn very different solutions than recurrent networks, and we prove that such models must use anti-Markovian solutions -- solutions that do not rely on cumulative, Markovian hidden states -- in the absence of sufficient attention layers.

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

↑