arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.12955cs.CL
收藏

神经网络中的非确定性栈

Nondeterministic Stacks in Neural Networks

Graduate School of the University of Notre Dame(圣母大学研究生院)

Brian DuSell

AI总结:

针对神经网络处理句法歧义受限的问题,提出将模拟非确定性下推自动机的可微栈模块融入RNN和transformers,提升了模型对上下文无关语言及交叉序列依赖的学习和泛化能力。

摘要:

人类语言充满了组合句法结构,尽管神经网络在处理语言的计算机系统中取得了突破性进展,但广泛使用的神经网络架构在处理句法的能力上仍存在局限性。为了解决这个问题,先前的工作受句法与栈之间理论联系的启发,提出了将栈数据结构添加到神经网络中。然而,这些方法采用的是确定性栈,旨在一次只跟踪一种解析,而需要非确定性栈来解析的句法歧义在语言中极为常见。在这篇论文中,我们通过提出一种将非确定性栈纳入神经网络的方法来弥补这一差异。我们开发了一种可微数据结构,它通过动态规划算法高效模拟非确定性下推自动机,并表示指数级的计算量。我们将此模块纳入两种主要架构:循环神经网络(RNN)和transformers。我们证明,这不仅将它们的形式识别能力提升至任意上下文无关语言,而且有助于训练,甚至对于确定性上下文无关语言也是如此。在实验上,带有非确定性栈的神经网络比先前的栈增强模型更有效地学习上下文无关语言,包括一种具有理论最大解析难度的语言。我们还表明,用非确定性栈增强的RNN能够表现出令人惊讶的强大能力,例如学习交叉序列依赖这一著名的非上下文无关模式。我们展示了在自然语言建模上的改进,并在句法泛化基准上进行了分析。这项工作向构建以更类似人类的方式学习使用句法的系统迈出了重要一步。

英文摘要:

Human language is full of compositional syntactic structures, and although neural networks have contributed to groundbreaking improvements in computer systems that process language, widely-used neural network architectures still exhibit limitations in their ability to process syntax. To address this issue, prior work has proposed adding stack data structures to neural networks, drawing inspiration from theoretical connections between syntax and stacks. However, these methods employ deterministic stacks that are designed to track one parse at a time, whereas syntactic ambiguity, which requires a nondeterministic stack to parse, is extremely common in language. In this dissertation, we remedy this discrepancy by proposing a method of incorporating nondeterministic stacks into neural networks. We develop a differentiable data structure that efficiently simulates a nondeterministic pushdown automaton, representing an exponential number of computations with a dynamic programming algorithm. We incorporate this module into two predominant architectures: recurrent neural networks (RNNs) and transformers. We show that this raises their formal recognition power to arbitrary context-free languages, and also aids training, even on deterministic context-free languages. Empirically, neural networks with nondeterministic stacks learn context-free languages much more effectively than prior stack-augmented models, including a language with theoretically maximal parsing difficulty. We also show that an RNN augmented with a nondeterministic stack is capable of surprisingly powerful behavior, such as learning cross-serial dependencies, a well-known non-context-free pattern. We demonstrate improvements on natural language modeling and provide analysis on a syntactic generalization benchmark. This work represents an important step toward building systems that learn to use syntax in more human-like fashion.

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

↑