知识访问胜过模型规模:基于对话记忆的持久AI代理路由
Knowledge Access Beats Model Size: Memory Augmented Routing for Persistent AI Agents
AI总结:
本文提出利用对话记忆提升AI代理效率,通过轻量模型结合检索信息,使小模型在用户特定查询中表现优于大模型,证明知识访问比模型规模更重要。
摘要:
生产AI代理经常接收用户特定的重复查询,其中多达47%与先前交互语义相似,但每次查询仍需相同计算成本。我们主张通过对话记忆利用冗余,将重复转化为效率优势。我们提出一种记忆增强的推理框架,其中轻量8B参数模型通过检索对话上下文通过低成本推理路径回答所有查询。无需额外训练或标注数据,该方法达到30.5%的F1,恢复235B全上下文模型69%的性能,同时将有效成本降低96%。值得注意的是,无记忆的235B模型(13.7% F1)甚至不如独立的8B模型(15.4% F1),表明对于用户特定查询,相关知识的访问胜过模型规模。我们进一步分析路由和置信度的作用。在实际置信度阈值下,路由单独已将96%的查询导向小模型,但因自信幻觉导致准确率低(13.0% F1)。记忆不显著改变路由决策;相反,它通过将响应基于检索的用户特定信息来提高正确性。随着对话记忆的积累,重复主题的覆盖范围增加,进一步缩小性能差距。我们在152个LoCoMo问题(Qwen3-8B/235B)和500个LongMemEval问题上进行评估。结合混合检索(BM25 + cosine相似度)可使性能再提高7.7 F1,证明检索质量直接提升端到端系统性能。总体而言,我们的结果表明,记忆而非模型规模是持久AI代理准确性和效率的主要驱动因素。
英文摘要:
Production AI agents frequently receive user-specific queries that are highly repetitive, with up to 47\% being semantically similar to prior interactions, yet each query is typically processed with the same computational cost. We argue that this redundancy can be exploited through conversational memory, transforming repetition from a cost burden into an efficiency advantage. We propose a memory-augmented inference framework in which a lightweight 8B-parameter model leverages retrieved conversational context to answer all queries via a low-cost inference path. Without any additional training or labeled data, this approach achieves 30.5\% F1, recovering 69\% of the performance of a full-context 235B model while reducing effective cost by 96\%. Notably, a 235B model without memory (13.7\% F1) underperforms even the standalone 8B model (15.4\% F1), indicating that for user-specific queries, access to relevant knowledge outweighs model scale. We further analyze the role of routing and confidence. At practical confidence thresholds, routing alone already directs 96\% of queries to the small model, but yields poor accuracy (13.0\% F1) due to confident hallucinations. Memory does not substantially alter routing decisions; instead, it improves correctness by grounding responses in retrieved user-specific information. As conversational memory accumulates over time, coverage of recurring topics increases, further narrowing the performance gap. We evaluate on 152 LoCoMo questions (Qwen3-8B/235B) and 500 LongMemEval questions. Incorporating hybrid retrieval (BM25 + cosine similarity) improves performance by an additional +7.7 F1, demonstrating that retrieval quality directly enhances end-to-end system performance. Overall, our results highlight that memory, rather than model size, is the primary driver of accuracy and efficiency in persistent AI agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。