为什么需要 Dreaming
作为人类来讲,一位程序员不会在第二天忘记前一天写的代码,一位作家不会在第二天忘记前一天写的小说。可是 LLM 本身并没有记忆,在一次次的 Transformers 推理中,它们无法像人类一样记住前一天甚至前一小时发生的事情,这就导致了
LLM 的记忆只能是外挂的。
如何更好地外挂记忆,成为了 LLM 能力提升之后,大家都在努力解决的一个问题。OpenAI、Anthropic、Hermes、DeepMind、Meta 等公司都在尝试不同的“做梦”范式(Dreaming),让 LLM 在离线状态下整理记忆,形成更有用的长期记忆。
Dreaming 的起源
其实图灵奖得主 Hinton 在 1995 年就提出来 Wake-Sleep 算法,提出了清醒期(Wake Phase)和睡眠期(Sleep Phase)的概念, 而 Dreaming 则是由 David Ha, Jürgen Schmidhuber 在 2018 年提出的概念, Word Moudels 则是他们利用 RNN 构建出的一个“幻觉白日梦”。
MemGPT (后来的 Letta) 则是 2023 年提出的一个“记忆增强型” LLM,也可以看作是现代 Agent 中首先引入 “记忆” 概念的。
而到了 2026 年,随着 Claude Code、Codex、尤其是 OpenClaw 的火爆,人们对于长期记忆的要求越来越高,越来越希望可以让 Agent 来像人类一样记住自己曾经做过什么。
OpenAI Dreaming V3 ———— ChatGPT Memory
在 ChatGPT 中常被直接称为 “Memory” 的 Dreaming,是 OpenAI 在 2025 年 4 月上线的,通过整理和用户的对话,来实现一个记忆机制。
在 Dreaming: Better memory for a more helpful ChatGPT 中,OpenAI 介绍了了 Dreaming V3,并说明他们是这么评测记忆系统的:
- Carry forward useful context: 你只需告诉 ChatGPT 一次,它就会在后续对话中记住该信息。
- Follow perference and constraints: 如果你描述了自己的偏好和约束,ChatGPT 会在后续对话中遵循这些偏好和约束。
- Stay current over time: 记忆应该和时间保持一致,ChatGPT 会记住你在不同时间点提供的信息,并在后续对话中使用这些信息。
在 OpenAI 的记忆力评估中,Dreaming V3 可以显著表现出更加优秀的理解能力以及对提示词更贴合的行为。
Anthropic Dreaming ———— Claude Code
Anthropic 的 Dreaming 则是让 Claude 来回顾自己在过去的对话中做过什么,并将这些信息整理成长期记忆。
Claude 工作的时候会向自己的 Memory 中记录下来数据,但是在多轮对话以及长任务之后,Memory 会有重复、矛盾、过时的信息积累。
为了解决这个问题,Anthropic 也采用了 Dreaming 的方式,让 Claude 读取现有的 Memory,然后生成一个新的、更加有组织性的 Memory,来替换掉原来的 Memory。
Anthropic Docs - Dreams (Managed Agents) 中提到,Dreaming 是异步的,它需要
-
a pre-existing memory store: the store Claude verifies, deduplicates, and reorganizes, and 已存在的 Memory 存储,Claude 已经验证、去重和整理过的 Memory 以及
-
1 to 100 sessions: past transcripts Claude mines for patterns and insights to fold into the output. 已存在的 1 到 100 个会话,Claude 会从这些会话中挖掘和提炼,并将它们融合进输出。
这样, Claude 就可以开始 Dreaming 了。
Hermes、 DeepMind、Meta 的 Dreaming
Hermes Agent 作为一个开源 Agent 框架,它的 Dreaming 机制主要是通过插件来实现的,和 OpenAI、Anthropic 不同,Hermes 可以让用户来自己 review、validate、apply 或 discard 这些 Dreaming 的结果。
DeepMind Genie 3 作为一个世界模型(World Model),它的 Dreaming 机制主要是通过模拟环境来进行的。Genie 3 主要做的工作是 real-time interactivity,即实时交互。
而为了可以实现 real-time,Genie 3 必须能够回忆起之前的环境和操作,否则就会出现用户所不期待的操作。用世界模拟来做梦 是 DeepMind 的一个重要创新点。
参考链接
OpenAI 官方与核心解读
- OpenAI - Dreaming: Better memory for a more helpful ChatGPT (2026-06-04) https://openai.com/index/chatgpt-memory-dreaming/
- Digital Trends - ChatGPT is getting better at memorizing your life (2026-06-05) https://www.digitaltrends.com/computing/chatgpt-is-getting-better-at-memorizing-your-life-so-your-chats-dont-sound-strange/
- The Economic Times - ChatGPT gets smarter memory as OpenAI launches Dreaming architecture (2026-06-10) https://economictimes.indiatimes.com/ai/ai-insights/chatgpt-gets-smarter-memory-as-openai-launches-dreaming-architecture/articleshow/131628350.cms
- Digit.in - OpenAI Dreaming explained: How ChatGPT updates your memory in the background (2026-06-05) https://www.digit.in/features/general/openai-dreaming-explained-how-chatgpt-updates-your-memory-in-the-background.html
- AIToolBriefing - ChatGPT Memory Just Got a Major Overhaul (2026-06-05) https://aitoolbriefing.com/industry/chatgpt-memory-dreaming-v3-overhaul-2026/ — 含 9.4%→75.1% 详细 eval 拆解
- BuildThisNow - How ChatGPT’s ‘Dreaming’ Memory Works (and What to Turn Off) (2026-06-13) https://www.buildthisnow.com/blog/guide/mechanics/chatgpt-dreaming-memory — 含“模型本身无记忆,记忆是外挂层”的通俗解释
- Nerova.ai - ChatGPT Memory Update: OpenAI’s Dreaming Rollout (2026-06-04) https://nerova.ai/news/openai-chatgpt-memory-dreaming-june-4-2026 — 含 Enterprise 尚未支持提示
Anthropic
- Anthropic Docs - Dreams (Managed Agents) https://platform.claude.com/docs/en/managed-agents/dreams — 官方 API 定义,必引
- dreaming.press - What Anthropic’s ‘Dreaming’ Does to Agent Memory — and Why a Bad Dream Doesn’t Wash Out (2026-07-02) https://dreaming.press/posts/claude-dreaming-agent-memory-consolidation.html — Harvey 6x、compounding、poisoning 批判
- Vantaige - Claude Code Dreaming: Memory Consolidation Setup (2026-05-19) https://vantaige.io/blog/claude-code-dreaming-memory-consolidation-setup-2026
- FelloAI - What Is Claude Dreaming? (2026-05-15) https://felloai.com/what-is-claude-dreaming/
- Chanl Blog - Agents that learn while they sleep: async memory consolidation (2026-06-15) https://www.channel.tel/blog/agent-async-memory-consolidation-dreaming — 可复用的自建巩固代码范式
Hermes / Nous Research
- hermes-dreaming v0.3.0(PyPI) https://pypi.org/project/hermes-dreaming/0.3.0/ — Hermes 小记忆模型的后台巩固插件,三阶段 Light/Deep/REM,至多 few ops,可能零写入
- asimons81/hermes-dreaming(GitHub 插件本体) https://github.com/asimons81/hermes-dreaming — 含 staged workflow
create/diff/validate/apply/discard/status,显式 —source 与 artifact bundle - XdieselX/hermes-dreaming-skeleton (2026-05-25) https://github.com/XdieselX/hermes-dreaming-skeleton — 2,200/1,375 字符预算与三阶段说明
- NousResearch/hermes-agent(Hermes Agent 官方) https://github.com/NousResearch/Hermes-agent — 自改进闭环、skills、FTS5、Honcho、cron、subagents
- Hermes Agent 官网 https://hermes-agent.nousresearch.com/ + Docs https://hermes-agent.nousresearch.com/docs/
- DreamsAI - Hermes Agent Goals, Background Tasks & Kanban Guide (2026-05-10) https://dreamsaicanbuy.com/blog/hermes-agent-dreaming-mode — 澄清无 /dreaming 命令,实质为 Curator/goal/background/kanban
- DeepWiki - Memory Provider & Dreaming Scheduler | oh-my-hermes (2026-07-28) https://deepwiki.com/rlaope/oh-my-hermes/5.2-memory-provider-and-dreaming-scheduler — 确定性调度器:5 turn / 300 chars headroom / on_pre_compress / session end,Consolidation Brief
- Bittide - Introducing Hermes Dreaming: Reviewable Self-Improvement (x.com/tonysimons_) https://bittide.aicompass.dev/article/fb19c2ca-e4c4-4b73-8029-916f4d798a97 — staged artifact、proposals.json、offline DREAM: marker
DeepMind / Meta / 广义 Dreaming
- DeepMind - Genie 3: A new frontier for world models (2025-08-05) https://deepmind.google/blog/genie-3-a-new-frontier-for-world-models/
- DeepMind - Genie 3 product page https://deepmind.google/models/genie/
- AIDevSignals - SIMA 2 / Meta DreamGym 同期简报 (2025-11-17) https://www.aidevsignals.com/p/deepmind-introduces-sima-2-dreamgym-from-meta-ai — DreamGym 合成轨迹对齐 PPO/GRPO 的关键数据