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

开放词汇在线语言建模的无界缓存模型

Unbounded cache model for online language modeling with open vocabulary

Facebook AI Research(Facebook 人工智能研究院)

Edouard Grave, Moustapha Cisse, Armand Joulin

摘要:

最近,连续缓存模型被提出作为递归神经网络语言模型的扩展,以使其预测适应数据分布的局部变化。这些模型仅捕获多达数千个令牌的本地上下文。在本文中,我们提出了一个扩展的连续缓存模型,它可以扩展到更大的上下文。特别是,我们使用了一个大规模的非参数记忆组件,它存储了过去看到的所有隐藏的激活。我们利用最近的进展,近似最近邻搜索和量化算法存储数以百万计的表示,同时有效地搜索它们。我们进行了大量的实验表明,我们的方法显着提高了新的分布上的预训练语言模型的困惑,并可以有效地扩展到更大的上下文比以前提出的本地缓存模型。

英文摘要:

Recently, continuous cache models were proposed as extensions to recurrent neural network language models, to adapt their predictions to local changes in the data distribution. These models only capture the local context, of up to a few thousands tokens. In this paper, we propose an extension of continuous cache models, which can scale to larger contexts. In particular, we use a large scale non-parametric memory component that stores all the hidden activations seen in the past. We leverage recent advances in approximate nearest neighbor search and quantization algorithms to store millions of representations while searching them efficiently. We conduct extensive experiments showing that our approach significantly improves the perplexity of pre-trained language models on new distributions, and can scale efficiently to much larger contexts than previously proposed local cache models.

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

↑