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

RegaVAE:一种用于语言建模的检索增强高斯混合变分自编码器

RegaVAE: A Retrieval-Augmented Gaussian Mixture Variational Auto-Encoder for Language Modeling

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)

Jingcheng Deng, Liang Pang, Huawei Shen, Xueqi Cheng

AI总结:

提出RegaVAE,一种基于变分自编码器的检索增强语言模型,通过将文本编码至潜在空间以同时捕获源与目标文本的当前及未来信息,并采用高斯混合分布优化检索生成范式,显著提升了生成质量并减少幻觉。

摘要:

检索增强语言模型在解决语言模型(LMs)中的过时信息和幻觉问题方面展现出前景。然而,当前研究面临两个主要问题:1)确定检索什么信息,以及2)在生成过程中有效结合检索到的信息。我们认为,鉴于LMs对未来token建模的本质,有价值的检索信息不仅应与当前源文本相关,还应考虑未来目标文本。此外,我们提出,利用从紧凑潜在空间导出的潜在变量进行聚合,比利用受限于上下文长度且易受噪声影响的显式原始文本更高效。因此,我们引入了RegaVAE,一种基于变分自编码器(VAE)构建的检索增强语言模型。它将文本语料库编码到潜在空间中,捕获来自源文本和目标文本的当前和未来信息。此外,我们利用VAE初始化潜在空间,并通过将高斯先验分布扩展为高斯混合分布,采用检索生成范式的概率形式。理论分析为RegaVAE提供了一个可优化的上界。在各种数据集上的实验结果表明,文本生成质量和幻觉消除方面有显著改善。

英文摘要:

Retrieval-augmented language models show promise in addressing issues like outdated information and hallucinations in language models (LMs). However, current research faces two main problems: 1) determining what information to retrieve, and 2) effectively combining retrieved information during generation. We argue that valuable retrieved information should not only be related to the current source text but also consider the future target text, given the nature of LMs that model future tokens. Moreover, we propose that aggregation using latent variables derived from a compact latent space is more efficient than utilizing explicit raw text, which is limited by context length and susceptible to noise. Therefore, we introduce RegaVAE, a retrieval-augmented language model built upon the variational auto-encoder (VAE). It encodes the text corpus into a latent space, capturing current and future information from both source and target text. Additionally, we leverage the VAE to initialize the latent space and adopt the probabilistic form of the retrieval generation paradigm by expanding the Gaussian prior distribution into a Gaussian mixture distribution. Theoretical analysis provides an optimizable upper bound for RegaVAE. Experimental results on various datasets demonstrate significant improvements in text generation quality and hallucination removal.

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

↑