arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.21545cs.AIcs.CL
收藏

ShardMemo: 用于分片代理LLM内存的遮蔽MoE路由

ShardMemo: Scope-Before-Routing for Agentic Memory Retrieval

Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,地点,国家);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,地点,国家)

Yang Zhao, Chengxiao Dai, Mengying Kou, Yue Xiu, Dusit Niyato

AI总结:

ShardMemo通过遮蔽MoE路由优化分片代理LLM内存,提升F1分数并减少检索工作和延迟

摘要:

代理式大语言模型(LLM)系统依赖外部内存来处理长周期状态和并发多代理执行,但随着内存容量和并行访问的增加,集中式索引和启发式分区成为瓶颈。我们提出了ShardMemo,一种预算化的分层内存服务,包含Tier A的每代理工作状态,Tier B的分片证据,其中每个分片本地有近似最近邻(ANN)索引,以及Tier C,一个版本化的技能库。Tier B强制执行范围在路由前的约束:结构化的资格约束在路由或ANN搜索前遮蔽不合格的分片。我们将分片探测视为在合格分片上的遮蔽混合专家(MoE)路由,通过Top-B_probe或自适应Top-P探测最多B_probe个分片,并使用成本感知的门控来处理配置文件/观察/会话分片家族;路由器从证据到分片的监督中进行训练。在LoCoMo上,ShardMemo在问题类别上比最强的基线(GAM)提高了+5.11到+6.82的F1。在固定预算路由设置(B_probe=3)下,ShardMemo在减少检索工作(VecScan 521->414,-20.5%)和p95延迟(95->76 ms)的同时,比余弦到原型分片路由提高了+6.87 F1。在长上下文HotpotQA上,ShardMemo在56K/224K/448K tokens时分别达到63.41/61.88/57.95 F1。在ToolBench上,Tier C达到0.97 Precision@3和1.94 StepRed(比基于嵌入相似度检索高+10.2%和+7.2%)

英文摘要:

Agentic systems accumulate persistent memory across sessions, tools, and tasks, and a later request must retrieve from it under two distinct constraints: which memories it is permitted to access, and which are relevant under a limited search budget. Existing memory systems handle access scope in two flawed ways: applying scope after retrieval wastes probe budget on inadmissible memories, while treating scope as a learned ranking feature makes a hard constraint depend on router quality. We present SHARD-MEMO, an agentic memory system built on scope-before-routing: metadata predicates first identify the admissible shards, and a learned router then selects a small number of them for shard-local approximate nearest neighbor retrieval. Given the supplied scope predicate and metadata, this separates hard admissibility from learned relevance ranking, so inadmissible shards cannot consume shard-probe budget. We evaluate on LoCoMo, HotpotQA, and ToolBench, covering conversational, long-context, and procedural memory. Under matched supervision and fixed budgets, SHARDMEMO improves over a learned router baseline by roughly +3 F1 on LoCoMo; in end-to-end LoCoMo evaluation it improves over the strongest evaluated memory baseline by up to +6.8 F1, with gains on HotpotQA and ToolBench.

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

↑