arXiv:2508.04903cs.CLcs.AI2025-08被引 17

动态按角色选记忆,省token还提效率

RCR-Router: Efficient Role-Aware Context Routing for Multi-Agent LLM Systems with Structured Memory

  • 按角色和任务阶段动态选相关记忆,不全搬
  • 节省最多30% token,答案质量不降反升
  • 适合要省算力的多智能体协作场景

多智能体大语言模型在复杂推理与协作决策中展现潜力,但现有协调机制多采用静态或全上下文路由,导致令牌消耗过大、内存冗余暴露且适应性差。我们提出RCR-Router,一种模块化、角色感知的上下文路由框架,首次实现基于角色与任务阶段动态选择语义相关记忆子集,并严格控制令牌预算。轻量级评分策略指导记忆选择,智能体输出迭代融入共享记忆库,促进上下文逐步优化。为更全面评估模型行为,我们引入答案质量评分(Answer Quality Score),超越传统问答准确率。在三个多跳问答基准(HotPotQA、MuSiQue、2WikiMultihop)上的实验表明,RCR-Router将令牌使用量减少最多30%,同时维持或提升答案质量。结果凸显结构化记忆路由与输出感知评估对可扩展多智能体系统的重要性。

原文摘要 · Abstract (English)

Multi-agent large language model (LLM) systems have shown strong potential in complex reasoning and collaborative decision-making tasks. However, most existing coordination schemes rely on static or full-context routing strategies, which lead to excessive token consumption, redundant memory exposure, and limited adaptability across interaction rounds. We introduce RCR-Router, a modular and role-aware context routing framework designed to enable efficient, adaptive collaboration in multi-agent LLMs. To our knowledge, this is the first routing approach that dynamically selects semantically relevant memory subsets for each agent based on its role and task stage, while adhering to a strict token budget. A lightweight scoring policy guides memory selection, and agent outputs are iteratively integrated into a shared memory store to facilitate progressive context refinement. To better evaluate model behavior, we further propose an Answer Quality Score metric that captures LLM-generated explanations beyond standard QA accuracy. Experiments on three multi-hop QA benchmarks -- HotPotQA, MuSiQue, and 2WikiMultihop -- demonstrate that RCR-Router reduces token usage (up to 30%) while improving or maintaining answer quality. These results highlight the importance of structured memory routing and output-aware evaluation in advancing scalable multi-agent LLM systems.

多智能体上下文路由高效计算结构化记忆

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。