面向智能体记忆的时效性感知向量检索方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP311

基金项目:

国家自然科学基金项目(62425202,62336003,62572412);北京市自然科学基金项目(Z230001);中央高校基本科研业务费项目(JKF-2026007844235)


Recency-aware High-dimensional Vector Retrieval Method for Agent Memory
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    随着大语言模型智能体的快速发展,为支持跨会话、长周期的复杂交互任务,智能体普遍依赖记忆系统持续将历史交互记录以带时间戳向量的形式写入长期记忆库,并通过向量检索为当前决策召回相关记忆.然而,记忆条目对当前决策的参考价值并非仅由语义相似度决定,而是随智能体所处上下文的演化持续衰减,检索结果若与当前时间语境不匹配,即便语义相关也可能误导智能体对用户意图的理解.现有时间感知向量检索方法主要依赖时间窗口或时间戳有效性的硬性谓词划分,与记忆时效性连续衰减的特性不符,易将已过时的相似记忆排在检索结果前列,或误剔除窗口外仍具参考价值的记忆.针对上述问题,本文提出时效性感知近似k近邻检索问题,将语义相似度与连续衰减的时效性得分融合为统一混合得分.在此基础上,本文首先以图索引为基础设计基于固定时间间隔的分桶检索框架,并进一步提出基于时效性的动态分桶检索框架.以时效性范围阈值组织分桶,利用衰减函数的长尾特性合并趋同的相邻分桶,理论证明分桶数量存在与运行时长无关的常数上界,同时引入跨桶边结构加速跨桶检索与合并,并设计无需额外调参的跨桶联合查询策略.实验结果表明,在多个真实智能体记忆数据集及合成数据集上,相较基线方法,本文所提框架查询吞吐率提升3.1倍-34.2倍,插入吞吐率提升1.1倍-4.0倍,验证了所提方法在智能体记忆场景下时效性感知向量检索的有效性.

    Abstract:

    With the rapid development of large language model (LLM) agents, memory systems are widely adopted to support cross-session, long-horizon interactions: historical interaction records are continuously written into a long-term memory store as timestamped vectors, and relevant memories are retrieved via vector search to support the agent's current decision-making. However, the reference value of a memory entry is not determined solely by semantic similarity; it decays continuously as the agent's context evolves. Retrieved results that are mismatched with the current temporal context may mislead the agent's understanding of user intent even when they are semantically relevant. Existing time-aware vector retrieval methods rely mainly on hard predicate partitioning based on fixed time windows or timestamp validity, which is inconsistent with the continuous decay of memory recency. Such methods tend to rank outdated yet similar memories at the top of the result list, or to mistakenly discard still-valuable memories that fall outside the window. To address this problem, this paper formulates the recency-aware approximate k-nearest-neighbor search problem, which fuses semantic similarity and a continuously decaying recency score into a unified hybrid score. Building on this formulation, this paper first designs a fixed-interval time-bucketing retrieval framework based on graph indexes, and then proposes a recency-aware dynamic bucketing retrieval framework. The proposed framework organizes buckets by a recency-range threshold instead of fixed time intervals, and merges converging adjacent buckets by exploiting the long-tail property of decay functions. It is theoretically proved that the number of buckets is bounded by a constant independent of the running time. A cross-bucket edge structure is further introduced to accelerate cross-bucket retrieval and bucket merging, together with a cross-bucket joint query strategy that requires no additional parameter tuning. Experimental results on multiple real-world agent memory datasets and synthetic datasets show that, compared with the baselines, the proposed framework improves query throughput by 3.1×-34.2× and insertion throughput by 1.1×-4.0×, which validates the effectiveness of the proposed method for recency-aware vector retrieval in agent memory scenarios.

    参考文献
    相似文献
    引证文献
引用本文

刘宇恒,李书缘,王宇翔,周子慕,童咏昕.面向智能体记忆的时效性感知向量检索方法.软件学报,2027,38(3):

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2026-07-13
  • 最后修改日期:2026-10-19
  • 录用日期:
  • 在线发布日期: 2026-11-11
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号