arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.05161cs.CLcs.CCcs.LG
收藏

作为概率有限状态自动机的循环神经语言模型

Recurrent Neural Language Models as Probabilistic Finite-state Automata

Anej Svete, Ryan Cotterell

AI总结:

该研究从概率分布表征角度探究循环神经网络语言模型的能力,证明其等价于概率有限状态自动机子类,且表征确定性有限状态语言模型需Ω(N|Σ|)个神经元,为理解其能力局限提供基础。

摘要:

用已被充分研究的形式化体系来研究语言模型(LM),能让我们精准刻画其能力与局限性。此前的研究已从识别无权形式语言的能力角度,探究了循环神经网络(RNN)语言模型的表征能力。然而,语言模型描述的并非无权形式语言——相反,它们定义了字符串上的概率分布。在本研究中,我们探究了RNN语言模型能够表征哪些类别的此类概率分布,这让我们能更直接地阐述其性能。我们证明,简单RNN等价于概率有限状态自动机的一个子类,因此仅能建模有限状态模型可表达的概率分布的一个严格子集。此外,我们研究了用RNN表征有限状态语言模型的空间复杂度。结果表明,要表征一个在字母表Σ上拥有N个状态的任意确定性有限状态语言模型,RNN需要Ω(N|Σ|)个神经元。这些结果是刻画RNN语言模型可表征的分布类别的第一步,有助于我们理解其能力与局限。

英文摘要:

Studying language models (LMs) in terms of well-understood formalisms allows us to precisely characterize their abilities and limitations. Previous work has investigated the representational capacity of recurrent neural network (RNN) LMs in terms of their capacity to recognize unweighted formal languages. However, LMs do not describe unweighted formal languages -- rather, they define \emph{probability distributions} over strings. In this work, we study what classes of such probability distributions RNN LMs can represent, which allows us to make more direct statements about their capabilities. We show that simple RNNs are equivalent to a subclass of probabilistic finite-state automata, and can thus model a strict subset of probability distributions expressible by finite-state models. Furthermore, we study the space complexity of representing finite-state LMs with RNNs. We show that, to represent an arbitrary deterministic finite-state LM with $N$ states over an alphabet $\alphabet$, an RNN requires $Ω\left(N |Σ|\right)$ neurons. These results present a first step towards characterizing the classes of distributions RNN LMs can represent and thus help us understand their capabilities and limitations.

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

↑