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

近邻语言模型的适配方法

Adaptation Approaches for Nearest Neighbor Language Models

Singapore University of Technology and Design(新加坡科技设计大学);AWS AI Labs(AWS人工智能实验室)

Rishabh Bhardwaj, George Polovets, Monica Sunkara

AI总结:

针对半参数化$k$NN-LMs领域适配研究不足的问题,提出三种适配策略并组合验证,在七个领域上相比两类基线分别实现17.1%、16%的困惑度提升。

摘要:

半参数化近邻语言模型($k$NN-LMs,k近邻语言模型)通过在外部记忆数据存储上进行大规模邻域检索,相比纯参数化语言模型取得了显著的性能提升。然而,针对此类模型在新领域的适配研究仍较为匮乏。本研究旨在填补这一空白,提出了以下三种$k$NN-LMs适配方法:1)适配底层语言模型(采用Adapters适配器模块);2)在新增的适配数据存储上扩展邻域检索;3)使用可学习的Rescorer重打分模块调整检索到的邻域的权重(分数)。我们通过消融实验以及在七个适配领域上开展的大量评估,分别研究了每种适配策略的效果,以及组合使用后的性能提升。我们的组合适配方法在性能上始终优于纯参数化适配基线,以及基于适配数据构建数据存储的零样本$k$NN-LM基线。跨领域平均来看,相比上述两类基线,我们的方法分别实现了17.1%和16%的困惑度下降。

英文摘要:

Semi-parametric Nearest Neighbor Language Models ($k$NN-LMs) have produced impressive gains over purely parametric LMs, by leveraging large-scale neighborhood retrieval over external memory datastores. However, there has been little investigation into adapting such models for new domains. This work attempts to fill that gap and suggests the following approaches for adapting $k$NN-LMs -- 1) adapting the underlying LM (using Adapters), 2) expanding neighborhood retrieval over an additional adaptation datastore, and 3) adapting the weights (scores) of retrieved neighbors using a learned Rescorer module. We study each adaptation strategy separately, as well as the combined performance improvement through ablation experiments and an extensive set of evaluations run over seven adaptation domains. Our combined adaptation approach consistently outperforms purely parametric adaptation and zero-shot ($k$NN-LM) baselines that construct datastores from the adaptation data. On average, we see perplexity improvements of 17.1% and 16% for these respective baselines, across domains.

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

↑