Continual learning vs Agent memory
40 sourced facts · updatedContinual 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 learning | Agent memory | |
|---|---|---|
| Where what was learned lives | In 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 update | The 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 lost | Forgetting: 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 in | A 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 checked | Every 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 purpose | 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. [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 holds | Learning 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]