arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.00356cs.CLcs.AI
收藏

MemRouter: 基于记忆嵌入的路由机制用于长期对话代理

MemRouter: Memory-as-Embedding Routing for Long-Term Conversational Agents

University of Central Florida(佛罗里达大学中央分校);University of Rochester(罗切斯特大学);University of Illinois at Chicago(伊利诺伊大学香槟分校);Case Western Reserve University(凯斯西储大学)

Tianyu Hu, Weikai Lin, Weizhi Zhang, Jing Ma, Song Wang

AI总结:

MemRouter通过嵌入路由策略优化长期对话代理的记忆存储,相比传统方法提升了存储效率并降低了延迟,验证了小型监督路由器在记忆准入中的有效性。

摘要:

长期对话代理必须决定哪些对话回合存储在外部记忆中,但最近的系统在每个回合都依赖自回归LLM生成来做出决策。我们提出了MemRouter,一种写入侧的记忆路由机制,将记忆准入与下游回答骨干解耦,并用基于嵌入的路由策略取代每回合的记忆管理解码。MemRouter将每个回合与最近的上下文一起编码,通过冻结的LLM骨干投影得到嵌入,然后使用轻量级分类头预测该回合是否应存储,同时仅训练1200万参数。在LoCoMo上受控的匹配测试中,MemRouter在所有问题类别中均优于基于LLM的记忆管理器(整体F1 52.0 vs 45.6,非重叠95%置信区间),同时将记忆管理p50延迟从970ms降至58ms。描述性因子平均进一步显示,学习的准入提高了平均F1 10.3(超过随机存储),类别特定提示增加了5.2(超过通用提示),检索贡献了0.7。这些结果表明,写入侧的记忆准入可通过小型监督路由器学习,而回答生成仍保持为长期对话QA中的独立下游组件。

英文摘要:

Long-term conversational agents must decide which turns to store in external memory, yet recent systems rely on autoregressive LLM generation at every turn to make that decision. We present MemRouter, a write-side memory router that decouples memory admission from the downstream answer backbone and replaces per-turn memory-management decoding with an embedding-based routing policy. MemRouter encodes each turn together with recent context, projects the resulting embeddings through a frozen LLM backbone, and predicts whether the turn should be stored using lightweight classification heads while training only 12M parameters. Under a controlled matched-harness comparison on LoCoMo, where the retrieval pipeline, answer prompts, and QA backbone (Qwen2.5-7B) are held identical, MemRouter outperforms an LLM-based memory manager on every question category (overall F1 52.0 vs 45.6, non-overlapping 95% CIs) while reducing memory-management p50 latency from 970ms to 58ms. Descriptive factorial averaging further shows that learned admission improves mean F1 by +10.3 over random storage, category-specific prompting adds +5.2 over a generic prompt, and retrieval contributes +0.7. These results suggest that write-side memory admission can be learned by a small supervised router, while answer generation remains a separate downstream component in long-horizon conversational QA.

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

↑