arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.23583cs.CL
收藏

MARS:面向会话级大语言模型助手的内存感知路由

MARS: Memory-Aware Routing for Session-Level LLM Assistants

Minghan Wang, Jinhang Zuo, Zhongxiang Dai, Zhiyong Wang, Fang Kong

AI总结:

本文提出MARS内存感知路由框架,将会话状态作为共享控制接口,在RealMem与MultiChallenge上验证其以低内存成本实现接近全上下文模型的问答性能,达成有利的质量-内存权衡。

摘要:

长期运行的大语言模型助手需在交互过程中反复决定暴露哪些先验上下文、由哪个模型进行回答。现有内存系统与模型路由器通常分开做这些决策,而内存构建会改变输入的证据、干扰项与难度。本文提出MARS,一种内存感知路由框架,将会话状态作为内存构建与模型选择间的共享控制接口。查询与主题管理器(QTM)估算紧凑的决策相关状态,指导固定的状态条件内存策略与在线路由器,使每一轮在质量-内存成本权衡下获得合适的内存视图与模型。我们在RealMem与MultiChallenge数据集上评估MARS,各含16种系统配置,涵盖长历史内存驱动交互与带结构化上下文干扰的有界会话。在RealMem上,MARS保留了全上下文GPT-4o 98.2%的问答能力,仅用其14.5%的生成API成本(含MARS的生成与控制器调用),且在对比系统中取得最强的内存召回与检索分数。在MultiChallenge上,MARS整体略逊于最强静态系统,但在机制聚焦子集上以更低成本接近其性能。这些结果共同表明,MARS在长历史、内存依赖交互中实现了有利的质量-内存成本权衡。

英文摘要:

Long-term LLM assistants must repeatedly decide what prior context to expose and which model should answer as an interaction evolves. Existing memory systems and model routers usually make these decisions separately, although memory construction changes the evidence, distractors, and difficulty of the resulting input. We introduce MARS, a memory-aware routing framework that uses session state as a shared control interface between memory construction and model selection. A Query and Topic Manager (QTM) estimates compact decision-relevant state that guides a fixed state-conditioned memory policy and an online router, enabling each turn to receive an appropriate memory view and a suitable model under a quality-memory-cost trade-off. We evaluate MARS on RealMem and MultiChallenge with 16 system configurations each, covering long-history memory-driven interaction and bounded sessions with structured context interference. On RealMem, MARS preserves 98.2% of full-context GPT-4o's QA while using only 14.5% of its generation API cost, including both generation and controller calls for MARS, and achieves the strongest measured memory-recall and retrieval scores among compared systems. On MultiChallenge, MARS trails the strongest static system overall but approaches its performance at lower recorded cost on a mechanism-focused subset. Together, these results support a favorable quality-memory-cost trade-off for long-history, memory-dependent interaction.

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

↑