有效的最近邻语言模型
Efficient Nearest Neighbor Language Models
摘要:
非参数神经语言模型(NLM)利用外部学习器学习文本的预测分布,这允许它们通过显式记忆训练数据点来学习。虽然有效,但这些模型通常需要在测试时从大型数据库中检索,从而显著增加了推理开销,从而限制了非参数NLM在实际应用中的部署。在本文中,我们采用最近提出的$k$ -最近邻语言模型(Khandelwal等人,2020年)为例,探索沿多个维度提升其效率的方法。在标准WikiText-103基准测试和域自适应数据集上的实验表明,我们的方法能够在推理速度上实现高达6倍的速度提升,同时保持相当的性能。我们提出的实证分析可能为未来的研究提供指导方针,寻求开发或部署更有效的非参数NLM。
英文摘要:
Non-parametric neural language models (NLMs) learn predictive distributions of text utilizing an external datastore, which allows them to learn through explicitly memorizing the training datapoints. While effective, these models often require retrieval from a large datastore at test time, significantly increasing the inference overhead and thus limiting the deployment of non-parametric NLMs in practical applications. In this paper, we take the recently proposed $k$-nearest neighbors language model (Khandelwal et al., 2020) as an example, exploring methods to improve its efficiency along various dimensions. Experiments on the standard WikiText-103 benchmark and domain-adaptation datasets show that our methods are able to achieve up to a 6x speed-up in inference speed while retaining comparable performance. The empirical analysis we present may provide guidelines for future research seeking to develop or deploy more efficient non-parametric NLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。