Frontier Foundry

Continual learning vs Agent memory

40 sourced facts · updated

Continual learning or agent memory: how should an AI remember?

The sources do not pick one place. Agent memory keeps what was learned as notes outside the model's weights, and it is the cheapest and fastest layer to update. Continual learning also covers changing the weights, which costs more but can build a behavior in. One source says a learning engine should ask for the smallest durable change at the right layer, and another says to start with the harness and fine-tune later. [1][2][3][4]

In the knowledge graph: Corrected notes and a rebuilt profile are learning outside the weights.

The difference between Continual learning and Agent memory

Continual learningAgent memory
Where what was learned livesIn three possible layers: the model weights, the harness (prompts, skills, tools, code) or memory. Deployed models are a frozen checkpoint, which continual learning sets out to change. [5][6]In notes kept between sessions as context to read later: it is not weight changes, in-context learning or compaction. [3]
What it costs to updateThe weights are the costliest layer, often changed through a small LoRA adapter, which limits the parameters that can change and makes learning cheaper and safer. [7][2]Memory is the cheapest and fastest layer, but dreaming needs compute, so checking every memory all the time may be impractical. [8]
How an old lesson gets lostForgetting: one model learned 100 query-answer tasks one after another, and naive sequential fine-tuning kept 1.2% on average. [9][10]Going stale: saved memories were written only during a chat and tended to go stale and become incorrect or irrelevant. A background pass can revise them. [11][12]
How a wrong lesson gets inA fix aimed at the new failure can regress past behavior; one team found that rewarding a new link format, or tuning on correctly formatted traces, degraded the coding agent's overall performance. [13][14]A wrong note is believed in a later session. A game agent wrote down the wrong side of a cave entrance and never reached the next city, until a dreaming pass checked the note against the transcript. [15][16]
How an update is checkedEvery fix is proven to help and to break nothing that worked, with an executable test, a measured before-and-after delta and a regression test. The output is a reviewable version update, a pull request. [17][18]Dreaming tests a note against the original transcript, which is the ground truth. Without that check, errors stay: one assistant's profile kept a trip the user considered but never took, because the conflict was never resolved. [16][19]
How a bad update gets in on purposeModels that keep learning after deployment break the rule that training and testing must not mix, so the safety tests run before release may stop being valid. [20]Through memory writes: Radware's ZombieAgent exploit on ChatGPT stored its bypass logic in the user's long-term memory, so the injected instruction survived past the session. LangChain's Agent Builder asks for human approval before any edit to memory. [21][22]
Whose experience it holdsLearning from one stream is fragile: with data from one user a naive update destroys prior knowledge, while a large batch from many users avoids it. [23][24]Memory is usually kept per user, org or team, not per agent. Managed Deep Agents mounts shared agent memory and per-user memory separately, keyed to the caller's identity. [25]

When to use Continual learning

  • You want a behavior built in, not read each time: distilling from offline production traces with hints raised a coding agent's finish-tool rate from 22% to 60% while the test pass rate held. [26][27]
  • The job is narrow and the volume is high: a small open model fine-tuned as a trace judge beat closed frontier models on narrow tasks at a fraction of the price. [28]
  • Context fills up: a coding agent needs compacting after roughly 20 minutes of use, and one view holds that a growing KV cache does not scale as users add experience. [29][30]

When to use Agent memory

  • What you learned is a fact, not a skill: a fact such as a company having been delisted should be context available to the harness rather than something trained into the model. [31]
  • You need the fix next session: a dreaming pass rewrote a wrong note, and the next run went back into the cave and reached the next city at action 1,935, while the runs with the uncorrected note and with no memory never got past the mountain. [32][15]
  • You want the cheapest, fastest layer, which works on logs and feedback alone. One team reports an agent gathering context in 2 minutes instead of 20 once its experience was kept. [2][33]

Using Continual learning and Agent memory together

The two are layers of one loop. The memory pack describes a running profile rebuilt in the background from conversations and put into every new conversation, so each lap of conversations, dreaming and profile is a learning loop outside the model weights. The continual-learning sources add a router: one failure can have several causes, such as a stale fact in memory, a weak prompt or a weak model, and the fix goes to the layer that explains it. [34][35][1]

Should what an agent learns after deployment live in the weights, or outside them?

The sources disagree. One says to put it in the weights, because today's models were never designed to be continual learners. Another says to keep it outside, because a lab serves one model at scale and per-user memories in weights would be painful. A third says to start with the harness, and fine-tune only when prompt tweaks hit an intelligence ceiling or inference volume justifies distilling. [36][37][4]

Is a dedicated memory system worth building over searching the raw history?

The sources disagree. One finds that many dedicated memory systems underperform naive retrieval over the raw history, because reorganising facts can remove or hide evidence. Another found a typed multi-agent memory with a provenance index the most accurate of the systems compared on four of five benchmarks. A third says a wiki memory pays for itself on repeated cross-source reasoning but not on simple lookups. [38][39][40]

Each one on its own

from their concept pages

What is Continual learning?

Continual learning means a model keeps learning after it is deployed instead of staying frozen at its training date. New experience updates what it knows without a full retraining. The hard part is adding the new without overwriting the old.

Continual learning is a model or agent that keeps improving from its own experience after deployment without forgetting what it already does well. The sources describe a loop: a production failure becomes a replayable test, the fix goes to the right layer (memory, harness or weights), and a regression check guards what worked.

16 → 1
Rollouts of the same task that GRPO needs per update, against the one real-world rollout a variant learns from; described by the Trajectory co-founder Ronak Malde
22% → 60%
Share of runs where a coding agent calls its finish tool, after distilling from offline production traces with hints, while the test pass rate held; reported by the platform research lead Samuel Denton
1.2% → 34.9%
Average final retention after 100 sequential query-answer tasks: naive sequential fine-tuning against the best composed method (three anchors with merged LoRA); reported by the paper's authors Hugging Face

Continual learning, explained in full: how it works as a machine, every part and its sources.

What is Agent memory?

Agent memory lets an agent keep information between sessions. Notes are written to a store outside the model, and the relevant ones are brought back into context when a later task needs them. The agent stops starting from zero each time, and stale or wrong notes become a new way to fail.

Agent memory is what an agent keeps from experience between sessions: notes written in the moment, corrected and linked by a background pass called dreaming, and a small top layer loaded into every new session. The sources agree that what is saved must be judged and checked, since a wrong note is believed again later; they differ on whether a dedicated memory system beats searching raw history.

413 files vs 9 files
Memory files written by two models about 10,000 steps into the same game: one saved everything and earned one badge, the other saved only what the screen did not show and earned four (the lab's own comparison) Anthropic
13% → 48%
Share of graded criteria met on 25 questions about a company's 420M-token document set as agents built a wiki over more and more sessions (2 to 128), answering from the wiki alone (the lab's own test) Anthropic
200 lines or 25 KB
How much of an auto-memory index file one coding agent loads into every session Anthropic

Agent memory, explained in full: how it works as a machine, every part and its sources.

In AI coverage over the last four weeks, Continual learning took 0.32% and Agent memory 0.58%. Continual learning, week by week

The facts behind this page

40 facts from the two knowledge packs
  1. A good learning engine should ask for the smallest durable change at the right layer of the agent, not focus on one layer. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  2. The memory layer is the cheapest and fastest to update and works on logs and feedback alone, but it is usually unverified. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  3. Agent memory is knowledge gained from experience that is kept between sessions as context to read later; it is not weight changes, in-context learning or compaction. Anthropic · 2026-11-06 · Agent memory
  4. Where should what an agent learns after deployment live: in the weights, or outside them? Start with the harness: it is often enough for most teams and gives immediate feedback; fine-tune only when prompt tweaks hit an intelligence ceiling or inference volume justifies distilling, then return to the harness. langchain · 2026-07-07 · Continual learning
  5. An agent can be improved in three layers: the model weights (supervised fine-tuning, RL post-training), the harness (prompts, skills, tools, code) and memory (facts and distilled skills). Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  6. Deployed language models are a frozen checkpoint: the weights do not change after training, which is what continual learning sets out to change. Parth Asawa, AI Engineer · 2026-07-01 · Continual learning
  7. LoRA limits the set of parameters that can change, which makes learning in the weights cheaper and safer; the weight methods usually need benchmarks and explicit evaluators. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  8. Dreaming needs compute, so checking every memory all the time may be impractical; it may be better to aim it at what is likely to change or to tune its cadence by how often memories are used. Anthropic · 2026-11-06 · Agent memory
  9. A hundred tasks, almost nothing kept. A model learned 100 query-answer tasks one after another through supervised fine-tuning, with no earlier examples kept and no task labels at test time. Each update erased the last: naive sequential fine-tuning kept 1.2% on average, and no single mechanism kept strong retention. Hugging Face · 2026-09-16 · Continual learning
  10. 1.2% → 34.9%: Average final retention after 100 sequential query-answer tasks: naive sequential fine-tuning against the best composed method (three anchors with merged LoRA); reported by the paper's authors Hugging Face · 2026-09-16 · Continual learning
  11. Saved memories were written only during a chat and tended to go stale and become incorrect or irrelevant. OpenAI · 2026-06-04 · Agent memory
  12. Dreaming is a background process that learns from many conversations and rewrites the memory state, so context stays fresh without an explicit request to remember. OpenAI · 2026-06-04 · Agent memory
  13. Fixing only the new failure can regress past behaviour; regression-aware learning fixes recent failures subject to no regression on the past environments, inside the optimization rather than after it. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  14. The new link format that cost coding skill. A team had to teach a coding agent a harness-specific hyperlink format that earlier models rarely produced. Adding a reward for the format, or fine-tuning on correctly formatted traces, degraded the coding agent's overall performance. They moved to online hints on the live rollout. Samuel Denton, AI Engineer · 2026-07-01 · Continual learning
  15. Mt Moon is behind me. A game-playing agent wrote down, wrongly, which side of a cave entrance a landmark stood on, then declared the cave finished and updated its notes. It walked off a one-way ledge three times, gave up, and never reached the next city. A dreaming pass that checked the note against the session transcript caught the error and rewrote it, and the next run went back into the cave. Anthropic · 2026-11-06 · Agent memory
  16. Dreaming tests a note against the original transcript, and the transcript gives a ground truth to validate memory against. Anthropic · 2026-11-06 · Agent memory
  17. Verifiable continual learning means every fix is proven to help and to break nothing that already worked, with an executable test, a measured before-and-after delta and a regression test. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  18. The output of the loop is a reviewable version update, a pull request, saying what changed and why it improves the agent without regression. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  19. A profile built from chats kept a trip the user considered but never took, because the conflict was never resolved against the user's real plans. Shlok Khemani, AI Engineer · 2026-07-01 · Agent memory
  20. Models that keep learning after deployment break the rule that training and testing must not mix, so the safety tests run before release may stop being valid. Celia Ford, transformer-news · 2026-01-22 · Continual learning
  21. ZombieAgent kept itself alive in memory. Radware's ZombieAgent exploit on ChatGPT made the attack persistent by directing the assistant to store its bypass logic in the user's long-term memory, so the injected instruction survived past the original session. Dan Goodin, ars-technica · 2026-01-08 · Agent memory
  22. LangChain's Agent Builder requires explicit human approval before any edit to an agent's memory, mainly to shrink the prompt-injection attack surface; users can switch this off ("yolo mode") when they are less worried. langchain · 2026-02-21 · Agent memory
  23. With one stream of data from one user, a naive update destroys prior knowledge, while a large batch from many users avoids it. Sequoia · 2026-08-18 · Continual learning
  24. Learned context (memory) is usually kept per tenant (user, org or team) rather than per agent, and is updated either after the fact in an offline job over recent traces or in the hot path while the agent works. langchain · 2026-04-05 · Continual learning
  25. Managed Deep Agents mounts shared agent memory at /memories/agent/ and per-user memory at /memories/user/, keyed to the caller's authenticated identity; the runtime never copies between the two layers. langchain · 2026-09-24 · Agent memory
  26. 22% → 60%: Share of runs where a coding agent calls its finish tool, after distilling from offline production traces with hints, while the test pass rate held; reported by the platform research lead Samuel Denton, AI Engineer · 2026-07-01 · Continual learning
  27. Fine-tuning on production traces can add a behaviour without hurting the base task: the test pass rate stayed roughly constant while the finish-tool rate rose. Samuel Denton, AI Engineer · 2026-07-01 · Continual learning
  28. Reading millions of traces, many of them millions of tokens long, is too costly for a frontier model, so a small open model was fine-tuned as a trace judge; on narrow tasks it beat closed frontier models at a fraction of the price. langchain · 2026-07-07 · Continual learning
  29. In-context learning handles little data and fills up: a coding agent needs compacting after roughly 20 minutes of use. Sequoia · 2026-07-29 · Continual learning
  30. Where should what an agent learns after deployment live: in the weights, or outside them? Weights, because a growing KV cache does not scale as users add experience; continual learning means going back to the weights. Dwarkesh Patel, dwarkesh · 2026-06-26 · Continual learning
  31. A fact, such as a company having been delisted, should be context available to the harness rather than something trained into the model. Sequoia · 2026-08-13 · Continual learning
  32. With the corrected note the agent went back into the cave and reached the next city at action 1,935; the run with the uncorrected note and the run with no memory never got past the mountain. Anthropic · 2026-11-06 · Agent memory
  33. 20 min → 2 min: Time one team reports for an agent to gather context, before and after its experience was kept Sparsh Jain, AI Engineer · 2026-11-06 · Agent memory
  34. A running profile is rebuilt in the background from conversations and put into every new conversation, so each lap of conversations, dreaming and profile is a learning loop outside the model weights. Shlok Khemani, AI Engineer · 2026-07-01 · Agent memory
  35. One failure can have several causes: a stale fact in memory, a weak prompt, a tool that does not normalise a policy, a missing escalation gate or a weak model; the fix is routed to the layer that explains it. Soheil Feizi, AI Engineer · 2026-06-29 · Continual learning
  36. Where should what an agent learns after deployment live: in the weights, or outside them? Put it in the weights: today's models were never designed to be continual learners, and parametric methods, with new architectures, data and algorithms together, are the exciting route. Parth Asawa, AI Engineer · 2026-07-01 · Continual learning
  37. Where should what an agent learns after deployment live: in the weights, or outside them? Keep it outside the weights: file-system-style, non-parametric memory is more convenient than writing it back into weights, because a lab serves one model at scale and would find per-user memories in weights painful. redpoint · 2026-05-22 · Continual learning
  38. Is a dedicated memory system worth building over searching the raw history? Many dedicated memory systems underperform naive retrieval over the raw history, because the way memory reorganises facts can remove or hide evidence: a memory tax. Hugging Face · 2026-10-28 · Agent memory
  39. Is a dedicated memory system worth building over searching the raw history? A typed multi-agent memory with a provenance index was the most accurate of the systems compared on four of five question-answering benchmarks. Hugging Face · 2026-11-16 · Agent memory
  40. Is a dedicated memory system worth building over searching the raw history? A wiki memory pays for itself on repeated cross-source reasoning but not on simple lookups: on single-passage questions the agent without memory was as accurate (0.84 vs 0.83) and faster (9 vs 12 seconds), and building and maintaining the wiki can outweigh the savings. langchain · 2026-10-28 · Agent memory

Cite this page

the version of 2026-12-02
APA
Han, R. (2026, December 2). Continual learning vs Agent memory: what is the difference?. Frontier Foundry. https://www.ryanhan.ai/compare/continual-learning-vs-agent-memory
BibTeX
@misc{han2026-compare-continual-learning-vs-agent-memory,
  author       = {Han, Ryan},
  title        = {{Continual learning vs Agent memory: what is the difference?}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = dec,
  url          = {https://www.ryanhan.ai/compare/continual-learning-vs-agent-memory}
}

More comparisons

all of them