LATENT-SPACE · 2026-07 AI & TECH
LATENT-SPACE · EPISODE DECK

The AI Memory Problem

Why Long Context Isn’t Enough

Dan Biderman · Engram Co-founder & CEO

长上下文能容纳更多文本,却无法自动带来稳定的整体推理。Dan Biderman 解释 Engram 如何用 cartridge、参数化记忆与 context management 组合,让企业和个人模型从经验中持续学习,同时保留可审计的文本知识与健康遗忘。

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Biderman, Engram Co-founder & CEO
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

为什么这期值得听

长上下文 ≠ 理解

窗口能装下数据,不代表模型能整体推理;输入越多,context rot 越明显。

记忆不只在文本里

笔记与 RAG 保留可审计事实,参数化记忆承担直觉、关联与技能。

训练时间可以搬家

把反复 prefill 的成本前移,用 cartridge 把知识压成可加载的模型状态。

企业数据会急剧膨胀

AI agent 持续生成代码、文档和演示,知识工作区可能逼近互联网级规模。

个性化必须有所有权

长期目标不是统一模型,而是每个人都控制一组随使用持续更新的权重。

效率就是智能的一部分

更少 token、更少能量完成更难任务,决定 agent 能否走向更长 horizon。

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

一条始终围绕效率的研究路径

01 · 行动

海军特种行动

识别高风险想法、争取资源、把研究与 pitching 变成可执行项目。

02 · 方法

计算神经科学

从小样本与半监督学习出发,用成本—准确率 Pareto 曲线思考问题。

03 · 迁移

LLM 与 agents

从 Mosaic、Stanford 的大知识库 agent 工作,走向持续学习与模型记忆。

“how to do more with less”

— Dan 对自己学术训练的概括
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

Cartridge:从阅读到学习

Dan 描述的流程不是即时检索,而是让模型提前学习一个语料库:

先让模型自问问题、做测验、尝试解决任务。

再用 gradient descent 把知识压进参数化表示。

需要时加载 cartridge,以更少 token 开始推理。

嘉宾给出的目标量级是约 1000× 压缩;这是 Engram 的技术主张,不是本 deck 的独立测量。

From Corpus to CartridgeCompanyCorpusSTUDYSelf-quizProblemsGradientupdatesCARTRIDGEcompactbrain stateLoad → fewer tokens
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

菜谱 + 直觉:两种记忆

文本外部记忆

菜谱、实验日志、wiki、RAG;精确、可读、可回查。

参数化内部记忆

手感、味觉、关联与创新;无需每次从第一行重新阅读。

“current LLMs are like coming into the kitchen first time every time”

作者概括:Engram 要补的不是更多菜谱,而是会被经验改变的厨师。
The Complete ChefCOOKBOOKRecipesNotesDiaryWiki / RAGNERVOUSSYSTEMTasteIntuition+Implement · Adapt · Invent
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

长上下文的核心误解

可放入窗口,是接口能力;

能跨全部信息推理,是认知能力。

“the more context you feed to the model, the more confused it gets”

Dan 把 continual learning 与 memory 看成伪装成长上下文的问题:即使理论上能看到整个公司,模型仍要付出读取成本,并在整体推理中丢失准确度。

Window Size ≠ UnderstandingtokenstokenstokensLONGCONTEXTEverything fitsAttention isdilutedCONTEXTROT↓ accuracyCapacity grows faster than coherence
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

10M token 窗口也没有消除问题

能解决的

  • API 不报错,材料可以被一次性送入
  • 某些明确、局部、可检索的问题有更大覆盖面
  • 少做一部分人工切块与外部 orchestration

仍解决不了的

  • 重读全部历史带来的 token 与 latency 成本
  • 大量弱相关信息造成的注意力稀释
  • 欠明确任务需要的跨文档整体判断

Dan 的判断:context rot 在 10 million context window 量级仍会存在。

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

Compaction:有效,但天然有损

选择

模型自己管理上下文,逐步保留某些 token、驱逐另一些 token。

代价

当前做法倾向于确定性的 in / out;深层 session 里会出现遗忘与混乱。

补层

神经记忆 trace 同样有损,但把保留的信息放到权重表示,而非继续堆文本。

“compaction by definition is lossy”

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

18 个月后的知识工作区

Agents
持续生成代码、文档、演示与中间产物
18 months
Dan 用来描述数据膨胀速度的时间窗口
Trillions?
AI-native 公司内部 proprietary data 的可能规模

“maybe trillions of tokens”

— 明确是嘉宾的前瞻估计,不是已发生的事实
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

文本知识库到了极限,会暴露三个问题

更新复杂度
万亿 token 怎样持续生成准确、不过期的 wiki 与索引?
冷启动成本
不了解公司的 frontier model,每个请求都要重读大量背景。
整体性缺失
有些答案不在任何单份文件中,只存在于跨项目的缺口、状态与关联里。
作者概括:检索擅长找到已经写出的事实,不天然等于学习过整个工作空间。
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

KV cache:80 GB 悖论

Dan 用一个 Llama 模型的系统例子说明 KV cache 的不对称:

~80 GB
读一篇几十 KB 的 Wikipedia 文章时,嘉宾所述的运行中 brain state
~140 GB
同一例子中,整个模型的 FP16 参数量级

短暂读取一篇 Taylor Swift 文章,GPU memory 消耗竟与承载大规模预训练知识的参数同阶。

The KV Cache MismatchWikipediaarticle10s of KBLIVE BRAIN STATE~80 GBKV memoryALL PARAMETERS~140 GB FP16pretrained knowledgeSame orderof magnitude!
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

把 compute 前移到预学习阶段

传统路径:反复 prefill

  1. 每次请求重新读 corpus
  2. 建立巨大的 KV cache
  3. 付出重复 token、memory 与 latency

Engram 路径:预先学习

  1. 在其他时间扩大 training compute
  2. 保存紧凑的参数化 adapter / cartridge
  3. 运行时加载后直接 decode,或只做少量 prefill

这与数据中心把 prefill 和 decode 拆到不同专用硬件的趋势相呼应。

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

律所案例:哪些 M&A 今年还没完成?

输入散在各处

每个 client matter 都有文件、邮件、融资、并购、贷款与交易进度。

→

答案是一种缺失

没有文档会直接标明未完成;系统必须逐案理解哪个 loop 没有闭合。

Frontier model + compaction 可以做
但单次查询可能消耗 thousands of dollars

Dan 提到 Engram 与 Harvey 面对这类超大文件系统和整体性问题

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

真正难的是整体,而不是单条召回

“where the whole is greater than the sum of its parts”

Search
哪份文件包含某个词或事实?

State
跨文件的项目现在处于什么阶段?

Learning
从全部经验形成可迁移的新关联。

Dan 的类比:预训练之所以不是对整个 Web 做 RAG,正因为学习会在权重中形成关联。
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

路线图:先企业,后个人设备

🏢

近期
企业知识密集、AI 使用频繁,是最现实的持续学习场景。

🧩

中期
每个团队与个人拥有可交换、可更新的 parameter-efficient adapters。

💻

长期
个性化模型状态运行在用户自己的设备上。

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

Tamagotchi 式个性化模型

越使用,越适合你

  • 读到更多个人与团队数据
  • 从每次协作形成新的经验
  • 用更少提示理解你的工作方式

权重属于使用者

  • 用户控制这组模型状态
  • 投入数据与反馈的收益回到本人
  • 改进不是等待未来的统一版本,而是发生在当前个人模型

“the more time they spend with the model, the better it gets for them”

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

健康记忆,也要学会遗忘

“a certain amount of forgetting is healthy”

更适合内化
高频、稳定、能改变后续行为的知识,例如长期地址或工作习惯。

更适合外置
短期、精确、需审计的事实,例如今晚的酒店房号。

边界并非固定规则:每个人、每家企业的数据分布都不同,人工 heuristic 很快会变成 whack-a-mole。
Where Should Knowledge Live?NewexperienceNEURAL MEMORYfrequentstableactionableNOTEBOOKpreciseauditableshort-livedFORGETnoiseexpired detail
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

Holy grail:模型自己管理记忆

📓

Notebook

保存可检索、可解释、可审计的信息

🧠

Neural memory

用参数化关联承载熟悉感、技能与长期模式

🧭

Learned policy

依据显著性、重复频率与可行动性选择读取路径

“the holy grail is have the model learn for itself”

Dan 明确说仍需要更多突破;这是一项目标,不是已经完成的能力。
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

用户反馈不是 ground truth

更紧的学习闭环

用户的 thumbs up / down 或自然语言修正,会直接触发面向该用户的训练与练习。

仍需判断可信度

用户也会犯错;随着模型能力提高,它必须学会区分有价值反馈与应忽略的反馈。

“not everything that a user tells you is ground truth”

目标不是去掉用户控制,而是不依赖用户监督每一步。
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

Memory 也要参与 routing

“the solution will involve some form of routing”

熟悉你的长期记忆层先判断:问题在哪里、哪些历史最重要。

简单任务留给更便宜的模型;超出能力时,再调用更强的 frontier model。

难点是模型版本持续变化,router 要同时优化能力、时机与成本。

Memory-Aware RoutingUserTaskPERSONALMEMORYknows whereto lookCHEAPMODELFRONTIERMODELRoute by capability · timing · cost
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

效率不是低配,它定义了能力边界

当前主范式

More with more

更大模型、更多数据、更多 test-time compute,把能力推到今天的位置。

Dan 期待的下一层

More with less

更少 token、更少能量、更短路径,才能把同一预算延伸到更长、更难的任务。

Dan 将变聪明描述为:用更少能量解决越来越难的问题。

“the more you can do with less the more ambitious tasks you can solve”

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

研究团队要先赢得资格

组合

资深 PhD 提供统计、系统与人机协作直觉;新研究者带来速度与新鲜视角。

专注

团队集中在 memory、continual learning,以及把知识写入参数化表示。

约束

创业公司不能只是 research club;产品必须被分发,并让用户愿意付出信任与预算。

“the thing that's missing is products and products need to be distributed”

The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

个性记忆:新基础设施

如果每个人与团队都有独立 adapter,部署形态会完全改变:

Millions of endpoints 分散存储在不同位置。

推理前要从 disk 高效读取到 HBM,并快速 swap。

训练、更新、版本与推理 workload 需要新的调度与隔离方式。

因此 Engram 所需的不只是 memory researcher,也包括 LLM performance 与大型 API / database 工程能力。
Millions of Personal AdaptersUSER AUSER BTEAM C⋮DISKADAPTERSTOREHBMSWAPINFERENCE+ CONTINUALUPDATE
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

访谈留下的开放问题

灾难性破坏
持续更新时,如何不摧毁模型已有能力?

学习选择
什么数据值得进入权重,什么只应短暂保留?

可解释与审计
参数化关联怎样与可追溯的文本证据共同工作?

自主 routing
模型怎样在笔记、个人记忆与 frontier model 之间选择?

个性化所有权
用户如何控制、迁移、删除属于自己的模型状态?

经济性
预训练 cartridge 的成本,何时低于重复读取 corpus?

作者概括:访谈给出方向、例子与赌注,没有宣称这些问题已经被完整解决。
The AI Memory Problem: Why Long Context Isn’t Enough — Dan Bider AI & TECH

核心金句

8 句均逐字回查本期 transcript;标签说明它们在对谈中的语境。

“how to do more with less”

研究取向 · 以成本—准确率曲线理解智能

“compaction by definition is lossy”

上下文管理 · 保留与驱逐必然损失信息

“where the whole is greater than the sum of its parts”

企业知识 · 整体状态不是单条文档召回

“a certain amount of forgetting is healthy”

记忆选择 · 并非所有信息都应被内化

“the holy grail is have the model learn for itself”

自主学习 · 模型自己判断写入 notebook 或 weights

“not everything that a user tells you is ground truth”

反馈机制 · 个性化也需要辨别错误信号

“the solution will involve some form of routing”

系统组合 · memory layer 与多种模型协作

“the more you can do with less the more ambitious tasks you can solve”

能力边界 · 效率决定可承担的 horizon
Dan Biderman

“My weights have been updated.”

— Dan Biderman,在这场边做饭边谈记忆的对话结尾
LATENT SPACE · PODDECK
← PodDeck