Vernier:单次前向的证据选择器,长对话记忆检索更省 token
Compare Before You Pack: Single-Pass Joint Evidence Selection for Long-Term Conversational Memory
做长对话记忆系统的同学可以看看这篇:Vernier 一次前向就完成证据筛选,LongMemEval-S 上比离线 LLM 构建高 7.7 个百分点,token 还少用一半以上。不用离线记忆管线、不丢原始数据,省下的构建成本相当可观。
论文提出 Vernier,一个在冻结检索之上训练的单次前向证据选择器,用于长期对话记忆场景——智能体需要在上百个会话中找出少数支撑回答的轮次。传统逐字检索按每轮单独打分,难以处理状态更新、多轮关联和跨查询校准,只能靠离线 LLM 记忆构建来整合,动辄消耗数千万 token 且不可逆地丢失日期等细节。
Vernier 在一次前向传播中对全部候选轮次做双向比较,用一个固定阈值在预算内保留紧凑证据集、剪掉冗余和过时内容。零样本评测下,它在最多 1.5M token 的四组基准、五个 reader 上,LongMemEval-S 比离线构建方案高出至少 7.7 个百分点,且完全不消耗 LLM 构建 token;相比全预算 reranking,在 LongMemEval-S/M 上提升 2.5-2.8 个百分点,同时少用 50%-57% 的 token。
对开发者而言,这意味着可以保留无损逐字检索的原始记录,跳过昂贵的离线记忆管线。对依赖长会话记忆的产品(客服、个人助理)来说,省 token 即省钱,且避免了离线构建丢失信息的问题。
Compare Before You Pack: Single-Pass Joint Evidence Selection for Long-Term Conversational Memory
Long-term conversational agents answer queries over hundreds of sessions where few turns support the answer. Verbatim retrieval scores turns individually for topical relevance, missing state updates, multi-turn links, and cross-query calibration, forcing systems to feed noisy, outdated turns inside a fixed top-$k$ window. Most memory systems therefore rely on offline LLM memory construction to resolve conflicts, link sessions, and compact context, burning tens of millions of tokens and irreversibly losing dates or phrasing. To recover these benefits directly over lossless verbatim retrieval, we propose Vernier, a single-pass evidence selector trained over frozen retrieval. Given a query and retrieved candidates, Vernier compares all turns bidirectionally in one forward pass, retains compact evidence sets, and prunes redundant or outdated turns within a budget under one fixed threshold. Evaluated zero-shot across five readers and four benchmarks up to 1.5M tokens, Vernier beats offline builders by $\geq$+7.7 pp on LongMemEval-S with zero LLM builds. It also outperforms full-budget reranking by +2.5-2.8 pp on LongMemEval-S/M using 50%-57% fewer tokens, matching end-to-end latency on LongMemEval-S.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Vernier, LongMemEval, RAG, agents.
Source attribution: curated from arXiv cs.AI (@Beichen Huang, Zongxi Li, Haoran Xie).