arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.00004cs.IRcs.AIcs.CL
收藏

Retro-li:支持噪声相似性搜索和域偏移泛化的小规模检索增强生成

Retro-li: Small-Scale Retrieval Augmented Generation Supporting Noisy Similarity Searches and Domain Shift Generalization

IBM Research – Zurich(IBM研究院苏黎世分部);ETH Zürich(苏黎世联邦理工学院)

Gentiana Rashiti, Geethan Karunaratne, Mrinmaya Sachan, Abu Sebastian, Abbas Rahimi

AI总结:

本文提出Retro-li,一种小规模检索增强生成模型,通过语义相似性搜索和首次对非参数记忆的正则化,在噪声搜索和域偏移下提升性能,并支持模拟内存硬件实现。

摘要:

诸如Retro之类的检索增强生成(RAG)系统已被证明可以通过从包含数万亿条目的非参数记忆数据库中检索来改善语言建模能力,并减少毒性和幻觉。我们引入了Retro-li,表明检索也可以在小规模数据库中发挥作用,但在较小因而更稀疏的非参数记忆中搜索时,需要更准确和更好的邻居。这可以通过使用适当的语义相似性搜索来满足。我们进一步首次提出对非参数记忆添加正则化:当推理期间邻居搜索操作存在噪声时,它显著降低了困惑度,并且在发生域偏移时提高了泛化能力。我们还表明,Retro-li的非参数记忆有可能在模拟内存计算硬件上实现,展现出O(1)的搜索时间,同时在检索邻居时引入噪声,性能损失极小(<1%)。我们的代码可在以下网址获取:https://github.com/IBM/Retrieval-Enhanced-Transformer-Little。

英文摘要:

The retrieval augmented generation (RAG) system such as Retro has been shown to improve language modeling capabilities and reduce toxicity and hallucinations by retrieving from a database of non-parametric memory containing trillions of entries. We introduce Retro-li that shows retrieval can also help using a small-scale database, but it demands more accurate and better neighbors when searching in a smaller hence sparser non-parametric memory. This can be met by using a proper semantic similarity search. We further propose adding a regularization to the non-parametric memory for the first time: it significantly reduces perplexity when the neighbor search operations are noisy during inference, and it improves generalization when a domain shift occurs. We also show that Retro-li's non-parametric memory can potentially be implemented on analog in-memory computing hardware, exhibiting O(1) search time while causing noise in retrieving neighbors, with minimal (<1%) performance loss. Our code is available at: https://github.com/IBM/Retrieval-Enhanced-Transformer-Little.

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

↑