arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.05421cs.LGstat.ML
收藏

只需添加函数:一个神经-符号语言模型

Just Add Functions: A Neural-Symbolic Language Model

Northwestern University(西北大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

David Demeter, Doug Downey

摘要:

神经网络语言模型(NNLM)由于更复杂的架构和越来越多的训练数据而实现了不断提高的准确性。然而,这些模型的归纳偏差(由语言的分布假设形成)虽然非常适合对大多数运行的文本进行建模,但却导致了当今模型的关键限制。特别是,这些模型通常很难学习某些空间、时间或数量关系,这些关系在文本中很常见,对人类读者来说是第二天性。然而,在许多情况下,这些关系可以用简单的数学或逻辑表达式编码。我们如何用这样的编码来增强今天的神经模型?在本文中,我们提出了一种通用的方法来提高归纳偏差的NNLM将简单的功能到一个神经架构,形成一个分层的神经符号语言模型(NSLM)。这些函数显式编码符号确定性关系,以形成单词的概率分布。我们探讨了这种方法在数字和地理位置上的有效性,并表明NSLMs显着减少了小语料库语言建模的困惑,即使在更大的语料库中,罕见的令牌的性能改善仍然存在。这种方法是简单和一般的,我们将讨论如何将其应用于数字和地理以外的其他词类。

英文摘要:

Neural network language models (NNLMs) have achieved ever-improving accuracy due to more sophisticated architectures and increasing amounts of training data. However, the inductive bias of these models (formed by the distributional hypothesis of language), while ideally suited to modeling most running text, results in key limitations for today's models. In particular, the models often struggle to learn certain spatial, temporal, or quantitative relationships, which are commonplace in text and are second-nature for human readers. Yet, in many cases, these relationships can be encoded with simple mathematical or logical expressions. How can we augment today's neural models with such encodings? In this paper, we propose a general methodology to enhance the inductive bias of NNLMs by incorporating simple functions into a neural architecture to form a hierarchical neural-symbolic language model (NSLM). These functions explicitly encode symbolic deterministic relationships to form probability distributions over words. We explore the effectiveness of this approach on numbers and geographic locations, and show that NSLMs significantly reduce perplexity in small-corpus language modeling, and that the performance improvement persists for rare tokens even on much larger corpora. The approach is simple and general, and we discuss how it can be applied to other word classes beyond numbers and geography.

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

↑