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

KNN-LM 未能改善开放式文本生成

KNN-LM Does Not Improve Open-ended Text Generation

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Adobe Research(奥多比研究院)

Shufan Wang, Yixiao Song, Andrew Drozdov, Aparna Garimella, Varun Manjunatha, Mohit Iyyer

AI总结:

研究发现,尽管 KNN-LM 降低了困惑度,但并未改善开放式文本生成质量,因为长序列解码时少数词元的改善被多数词元的预测变差所抵消,且检索分布熵增加更快导致暴露偏差。

摘要:

在本文中,我们研究了基于插值的检索增强语言模型(LMs)的生成质量。这些方法以 KNN-LM 为典型代表,将 LM 预测的下一个词的分布与针对给定前缀检索到的最相关分布进行插值。尽管 KNN-LM 及相关方法在困惑度上取得了显著降低,但我们发现,无论是在自动评估指标(如 MAUVE)还是人工评估中,它们在开放式生成质量上并未展现出相应的改善。深入探究后我们发现,对于 WikiText-103 测试集中的大多数词元,与基线 Transformer LM 相比,使用检索分布进行插值实际上增加了困惑度;尽管由于少数词元在插值后困惑度大幅下降,整体困惑度较低。然而,在推理时解码长序列时,这一较小子集词元上的显著改善被大多数词元上略微变差的预测所抵消。此外,我们发现随着生成序列变长,检索分布的熵比基础 LM 的熵增加得更快,这表明当使用模型生成的文本作为查询时,检索的可靠性较低(即受到暴露偏差的影响)。我们希望我们的分析能激发未来关于改进检索增强语言模型的解码算法和插值策略的研究。

英文摘要:

In this paper, we study the generation quality of interpolation-based retrieval-augmented language models (LMs). These methods, best exemplified by the KNN-LM, interpolate the LM's predicted distribution of the next word with a distribution formed from the most relevant retrievals for a given prefix. While the KNN-LM and related methods yield impressive decreases in perplexity, we discover that they do not exhibit corresponding improvements in open-ended generation quality, as measured by both automatic evaluation metrics (e.g., MAUVE) and human evaluations. Digging deeper, we find that interpolating with a retrieval distribution actually increases perplexity compared to a baseline Transformer LM for the majority of tokens in the WikiText-103 test set, even though the overall perplexity is lower due to a smaller number of tokens for which perplexity dramatically decreases after interpolation. However, when decoding a long sequence at inference time, significant improvements on this smaller subset of tokens are washed out by slightly worse predictions on most tokens. Furthermore, we discover that the entropy of the retrieval distribution increases faster than that of the base LM as the generated sequence becomes longer, which indicates that retrieval is less reliable when using model-generated text as queries (i.e., is subject to exposure bias). We hope that our analysis spurs future work on improved decoding algorithms and interpolation strategies for retrieval-augmented language models.

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

↑