ExperienceIndex: Artifact-Grounded Memory

NLP RAG Agent Agent Memory
2026年10月07日
知识密集型任务要求通过推理一个共享的资料库(例如法院判例或科学文献)来回答大量问题。人类在与这些资料库交互过程中,会自然积累关于各类资料的经验性知识,从而能够快速识别出每一项新任务所涉及的全部相关资料。然而,现有的AI智能体缺乏合适的数据记忆机制,无法构建或复用这种以资料为根基的经验,因而导致答案质量下降、在线计算成本上升。当前的记忆方案虽能从过往任务求解过程的执行轨迹中提取并复用信息,但其关注重点主要集中于用户偏好、事实性属性或抽象推理模式,而非长期、稳定、面向具体资料的知识。 我们提出ExperienceIndex——一种面向AI智能体的新型经验层,它基于过往的推理轨迹,系统性地捕获并复用有关资料的经验知识。ExperienceIndex存储两类相互补充的经验形式:(i)单资料经验,即对某一资料在过往各项任务中所起作用的归纳性总结;(ii)资料对经验,即在以往推理过程中发现的资料之间结构性关系的编码表示。作为轻量级中间件集成至现有系统,ExperienceIndex通过一种经验检索机制,引导智能体更精准地定位新任务所需的全部相关资料,从而同步提升答案质量与运行效率。在涵盖多种资料库及采用不同搜索框架的各类智能体解决方案上,ExperienceIndex均展现出稳定且显著的性能提升:答案质量最高提升达11.0分,线上计算成本(以美元计)最多降低50.5%。此外,我们还验证了两项重要优势:(i)跨任务泛化能力——在文本到SQL任务中积累的经验,可有效迁移至同一资料库上的事实型问答(factoid QA)任务;(ii)师生式学习能力——由更强模型所生成的经验,可赋能较弱模型达到与其相近的性能水平。
Knowledge-intensive tasks require answering many questions by reasoning about a shared corpus of artifacts (e.g., court cases, or scientific literature). As humans interact with these corpora, they naturally accumulate experiential knowledge about artifacts, enabling them to quickly identify the complete set of relevant artifacts for each new task. However, existing AI agents lack appropriate memory solutions to build or reuse such artifact-grounded experience, leading to lower answer quality and higher online cost. Existing memory solutions extract and reuse information from prior task-solving traces, but they primarily focus on user preferences, factual attributes, or abstract reasoning patterns rather than persistent artifact-specific knowledge. We introduce ExperienceIndex, a novel experience layer for AI agents that captures and reuses knowledge about artifacts based on prior reasoning traces. ExperienceIndex stores two complementary forms of experience: (i) single-artifact experiences that summarize an artifact's contribution to prior tasks and (ii) artifact-pair experiences that encode structural relationships discovered during past reasoning. Integrated as lightweight middleware, ExperienceIndex uses an experience retrieval mechanism to guide agents toward the complete set of relevant artifacts for new tasks, improving both answer quality and efficiency. Across diverse corpora and agentic solutions with different search frameworks, ExperienceIndex delivers consistent gains, raising answer quality by up to 11.0 points and reducing online dollar cost by up to 50.5%. We further demonstrate two benefits: (i) cross-task generalization, where experiences accumulated from text-to-SQL tasks transfer to factoid QA tasks over the same artifact corpus, and (ii) teacher-student learning, where experiences from a stronger model enable a weaker model to reach comparable performance.
许愿