作者: Javier Movellan, Manjot Bilkhu, Young-mok Jung, Sirajul Salekin, Henry Tran, Zhao HuangarXiv 2611.31656

BRAG: Bayesian Retrieval Augmented Generation(BRAG:贝叶斯检索增强生成)于 2026-11-23 提交到 arXiv,作者 Javier Movellan, Manjot Bilkhu, Young-mok Jung, Sirajul Salekin, Henry Tran, Zhao Huang。去 arXiv 读原文,或下载 PDF。

主要发现

最重要的一点。 将每个记忆块的效用建模为随时间漂移的潜在变量并结合自适应查询键,使 BRAG 在新信息取代旧信息时取得 0.80 至 0.86 的 Recall@5,而缺乏时间动态的静态反馈基线停留在 0.67 至 0.71。

摘要

Retrieval-augmented generation (RAG) ranks memory chunks by semantic similarity to the query. Many methods improve on this by learning from feedback on what was retrieved, but each is a separate heuristic, with no account of when it is the right choice. We introduce BRAG, a generative model of retrieval with use. Each chunk generates the queries it answers from a mixture of von Mises-Fisher components anchored at its original embedding, and each chunk has a latent utility that drifts over time. The model gives the optimal inference, a closed-form filter that stores a few keys and two scalars per chunk and updates them online from the labels of a curator, and it frames retrieval as a control problem. It also shows when existing methods are optimal. Query averaging, Rocchio-style feedback and frequency reranking are special cases with fixed parameters, NUDGE is the case of one key per chunk with no dynamics, and LADER the limit of one key per past query. On two public long-term memory benchmarks, BRAG matches these methods on queries asked before, as expected, because when nothing changes over time the assumptions behind these special cases hold. On harder problems, where a new chunk makes an old one obsolete, BRAG outscores them. They all stay at plain-search level (Recall@5 0.67-0.71), while BRAG retrieves the new chunk 0.80-0.86 of the time. We also ran BRAG on three of NUDGE’s seven text benchmarks, and it matches or beats NUDGE on all three. On nine months of a personal agent’s memory (20,640 chunks), BRAG raises Recall@5 on held-out queries from 0.75 to 0.98 and Recall@1 from 0.44 to 0.97, with little change on chunks never queried.

译文:检索增强生成(RAG)按记忆块与查询的语义相似度进行排序。许多方法通过从检索结果的反馈中学习来改进排序,但每种方法都是独立的启发式规则,没有说明何时才是正确选择。我们提出了 BRAG,一种带使用反馈的检索生成模型。每个记忆块从锚定在其原始嵌入向量上的冯·米塞斯-费舍尔混合分布中生成它所回答的查询,且每个记忆块具有随时间漂移的潜在效用。该模型给出了最优推断方法,即一种闭式滤波器,它为每个记忆块存储少量键和两个标量,并根据策展者的标签在线更新,同时将检索构建为一个控制问题。该模型还指出了现有方法何时最优。查询平均、Rocchio 式反馈和频率重排序是固定参数下的特例,NUDGE 是每个记忆块只有一个键且无动态变化的特例,而 LADER 是每个历史查询对应一个键的极限情况。在两个公开的长期记忆基准测试上,BRAG 在先前已被问过的查询上与这些方法表现相当,这符合预期,因为当一切不随时间变化时,这些特例背后的假设成立。在更困难的问题上,即新记忆块使旧记忆块过时,BRAG 的得分超过了它们。这些方法都停留在普通搜索水平(Recall@5 为 0.67-0.71),而 BRAG 检索到新记忆块的比率达到 0.80-0.86。我们还在 NUDGE 的七个文本基准测试中的三个上运行了 BRAG,它在全部三个上都持平或击败了 NUDGE。在一个个人智能体九个月的记忆库(20,640 个记忆块)上,BRAG 将留出查询的 Recall@5 从 0.75 提高到 0.98,将 Recall@1 从 0.44 提高到 0.97,同时对从未被查询过的记忆块几乎没有影响。

关键术语

论文原文

作者说明了为什么仅靠语义相似度不足以支撑长期检索,以及使用频率如何随时间改变记忆块的价值。

But similarity is not what matters to the consumer of the retrieved content. What matters is whether a chunk holds the information the query asks for, and that changes with use. Some chunks are asked about again and again, and others go stale when newer chunks replace them.

译文:但对检索内容的使用者而言,重要的并不是相似度。真正重要的是记忆块是否包含查询所询问的信息,而这一点会随着使用而改变。有些记忆块会被反复问到,另一些则会在更新的记忆块出现并取代它们时变得过时。

这段话概括了现有的基于反馈的检索算法如何作为受限特例纳入 BRAG 的数学框架中。

Query averaging, Rocchio-style feedback and frequency reranking are special cases with fixed parameters, NUDGE is the case of one key per chunk with no dynamics, and LADER the limit of one key per past query.

译文:查询平均、Rocchio 式反馈和频率重排序是固定参数下的特例,NUDGE 是每个记忆块只有一个键且没有动态变化的情况,而 LADER 则是每个历史查询对应一个键的极限情况。

作者报告了当新增记忆块使旧记忆块过时时,BRAG 与静态方法之间的表现差距。

On harder problems, where a new chunk makes an old one obsolete, BRAG outscores them. They all stay at plain-search level (Recall@5 0.67-0.71), while BRAG retrieves the new chunk 0.80-0.86 of the time.

译文:在更困难的问题上,即新记忆块使旧记忆块过时,BRAG 的得分超过了它们。这些方法都停留在普通搜索水平(Recall@5 为 0.67-0.71),而 BRAG 检索到新记忆块的比率达到 0.80-0.86。

这段话指明了 BRAG 和 NUDGE 等反馈驱动型检索方法能够超越静态索引的边界条件。

BRAG is useful only if there are usage patterns to learn. A chunk used only once in the lifetime of the database gives the model nothing to learn from.

译文:只有当存在可供学习的使用模式时,BRAG 才有用。在数据库生命周期内仅被使用一次的记忆块无法为模型提供任何可学习的信息。

作者自己说的含义

可以怎么做

  1. 在评估新记录会取代旧记录的语料库检索系统时,为每个记忆块同时追踪随时间衰减的效用信念对与自适应查询键。 依据:在两个新记忆块使旧记忆块过时的公开长期记忆基准测试中,BRAG 取得了 0.80 至 0.86 的 Recall@5,而无动态机制的方法停留在 0.67 至 0.71。
  2. 从用户行为或离线策展大语言模型收集关于检索结果的二元反馈标签,以更新记忆块效用信念和键向量,避免在查询排序阶段调用大语言模型。 依据:利用策展者标签对个人智能体九个月的 20,640 个记忆块进行更新后,BRAG 将留出查询的 Recall@1 从 0.44 提高到 0.97,Recall@5 从 0.75 提高到 0.98。
  3. 在根据稀疏查询反馈更新键向量时,将初始语义嵌入向量的副本作为先验锚点纳入 M 步计算。 依据:在 M 步中将基础嵌入副本作为先验使 20,640 个个人智能体记忆块中从未被查询的块几乎保持不变,同时将留出查询的 Recall@5 提升至 0.98。
  4. 在生产数据库中部署基于反馈的检索更新前,先核查目标查询是否会重复命中先前已回答过问题的记忆块。 依据:在个人记忆实验中,44 天内被问及四次的记忆块获益显著,而整个生命周期仅使用一次的记忆块无法为模型提供可学习的使用模式。

注意。 BRAG 仅在查询随时间重复命中相同记忆块时才能产生效果,对仅使用一次的记忆块或没有查询复用的数据集没有增益;同时论文仅评估了 NUDGE 七个文本基准测试中的三个、两个公开长期记忆基准、TripClick 搜索日志以及单个九个月的个人智能体记忆库。此外,论文提出的在相似邻近记忆块间传播证据的三种扩展方法以及基于强化学习的控制策略尚未实现或评估。

一句话

作者将检索增强生成构建为一个贝叶斯状态估计与控制问题,其中每个记忆块的潜在效用随时间衰减,其查询分布则通过冯·米塞斯-费舍尔混合模型自适应更新。在两个公开长期记忆基准、三个 NUDGE 文本基准、TripClick 日志以及包含 20,640 个记忆块的个人智能体记忆库上的评估显示,BRAG 在静态查询上与现有反馈启发式方法持平,并在新记忆块使旧记忆块过时时将 Recall@5 从 0.67-0.71 提升至 0.80-0.86。该方法的改进依赖于随时间重复出现的查询模式,并需要能够指明检索块是否包含所需信息的策展者标签。

去 arXiv 读论文 →

这篇解读根据论文原文写成。引用的段落是原话,数字都是作者自己报告的。方法和完整结果请读论文。