36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
---
|
||
title: "Memory Consolidation(写后提炼)"
|
||
created: 2026-06-24
|
||
updated: 2026-06-24
|
||
type: concept
|
||
tags: ["agent-memory", "information-lifecycle", "data-engineering"]
|
||
sources:
|
||
- "[[atlas-agent-memory-architecture-2026]]"
|
||
---
|
||
|
||
# Memory Consolidation
|
||
|
||
Memory Consolidation 是 Agent 记忆系统的后台提炼过程:将原始 episodic 事件转化为稳定 semantic 事实和 procedural 操作流程。
|
||
|
||
## Atlas 实现
|
||
|
||
- 触发:每回合结束后
|
||
- 输入:最近 30 条 episodic 事件 + 已有 semantic facts (~50) + procedurals (~20)
|
||
- 输出:new_facts、new_procedures、procedural_updates(一次 LLM 调用)
|
||
- 可追溯:每个 new_fact 携带 supporting_episode_ids
|
||
|
||
## 为什么必要
|
||
|
||
没有 consolidation,记忆系统就是一个越来越大的日志文件。BM25 和 reranker 在面对海量噪声文档时召回质量急剧下降——events-to-facts 比例差异越大,检索降级越严重。
|
||
|
||
## Production 优化
|
||
|
||
每回合 consolidation 翻倍 LLM 成本。建议改为:
|
||
- 后台日批:积累一天的 episodic,夜间统一跑
|
||
- 动态触发:最近 24h 新增 episodic 事件超过 N 条时自动触发
|
||
|
||
## 参考
|
||
- [[atlas-agent-memory-architecture-2026]]
|
||
- [[agent-memory-taxonomy]]
|
||
- [[soft-supersession]]
|