arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.09744cs.CLcs.AIcs.IRcs.LG
收藏

DSI++:用新文档更新 Transformer 记忆

DSI++: Updating Transformer Memory with New Documents

Carnegie Mellon University(卡内基梅隆大学);Google Research(谷歌研究院);Google Brain(谷歌大脑);Google DeepMind(谷歌DeepMind);Google(谷歌)

Sanket Vaibhav Mehta, Jai Gupta, Yi Tay, Mostafa Dehghani, Vinh Q. Tran, Jinfeng Rao, Marc Najork, Emma Strubell, Donald Metzler

AI总结:

本文提出 DSI++持续文档索引挑战,通过平坦极小值优化与生成式伪查询记忆缓解旧文档遗忘,在 NQ 和 MS MARCO 上显著提升 Hits@10 并降低更新成本。

摘要:

Differentiable Search Indices(DSI,可微搜索索引)将文档语料库编码到模型参数中,并使用同一模型直接回答用户查询。尽管 DSI 模型性能强劲,但在语料库随时间变化的场景中部署它们在计算上代价高昂,因为重新为语料库建立索引需要重新训练模型。在本工作中,我们提出 DSI++,这是一项面向 DSI 的持续学习挑战:在增量索引新文档的同时,仍能回答与此前和新索引文档都相关的查询。跨越不同模型规模和文档标识符表示,我们表明对新文档进行持续索引会导致对此前已索引文档的严重遗忘。我们还假设并验证了模型在训练期间会经历遗忘事件,从而导致学习不稳定。为缓解这些问题,我们研究了两种方法。第一种侧重于修改训练动态。更平坦的极小值会隐式缓解遗忘,因此我们针对更平坦的损失盆地进行优化,并表明模型能够稳定地记住更多文档(提升 12%)。接下来,我们引入一种生成式记忆,为文档采样伪查询,并在持续索引期间补充这些查询,以防止检索任务发生遗忘。在基于 Natural Questions(NQ)和 MS MARCO 的新型持续索引基准上进行的大量实验表明,我们提出的解决方案显著缓解了遗忘。具体而言,在 NQ 上,它相比具有竞争力的基线将平均 Hits@10 提升了 21.1%;并且与重新训练 DSI 模型以按顺序增量索引五个语料库相比,所需的模型更新次数少 6 倍。

英文摘要:

Differentiable Search Indices (DSIs) encode a corpus of documents in model parameters and use the same model to answer user queries directly. Despite the strong performance of DSI models, deploying them in situations where the corpus changes over time is computationally expensive because reindexing the corpus requires re-training the model. In this work, we introduce DSI++, a continual learning challenge for DSI to incrementally index new documents while being able to answer queries related to both previously and newly indexed documents. Across different model scales and document identifier representations, we show that continual indexing of new documents leads to considerable forgetting of previously indexed documents. We also hypothesize and verify that the model experiences forgetting events during training, leading to unstable learning. To mitigate these issues, we investigate two approaches. The first focuses on modifying the training dynamics. Flatter minima implicitly alleviate forgetting, so we optimize for flatter loss basins and show that the model stably memorizes more documents ($+12\%$). Next, we introduce a generative memory to sample pseudo-queries for documents and supplement them during continual indexing to prevent forgetting for the retrieval task. Extensive experiments on novel continual indexing benchmarks based on Natural Questions (NQ) and MS MARCO demonstrate that our proposed solution mitigates forgetting significantly. Concretely, it improves the average Hits@10 by $+21.1\%$ over competitive baselines for NQ and requires $6$ times fewer model updates compared to re-training the DSI model for incrementally indexing five corpora in a sequence.

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

↑