AI
Continual Learning: Can AI Models Keep Learning?
Continual learning lets an AI model learn new tasks without forgetting old ones. See catastrophic forgetting, the main fixes and a worked example.
Continual learning is the ability of an AI model to keep learning from new data or new tasks over time without losing what it already knows. People do this naturally: learning to play tennis doesn't make you forget how to ride a bike. Neural networks generally don't. Train one on a new task and it tends to overwrite the weights that held the old skill, a failure called catastrophic forgetting. Most AI systems today avoid the problem by not learning continually at all: they are trained once, frozen and updated by retraining or by feeding them fresh information at question time.
This guide explains what is continual learning, what is catastrophic forgetting and why it happens, how continual learning compares with online and incremental learning, the main families of fixes (with a worked penalty calculation), loss of plasticity, how it applies to continual learning in LLM systems and what to use in practice when you need a model to know new things.
What Is Continual Learning?
What is continual learning? It's a training setup in which a model learns from a sequence of tasks or a stream of data, where earlier data is no longer fully available, and is expected to perform well on everything it has learned so far. The goal is the same flexibility people have: add knowledge and skills over a model's lifetime without starting over each time.
It is also called lifelong learning or incremental learning, and the research field studies several questions at once:
- Retaining old knowledge while learning new (avoiding forgetting).
- Adapting quickly to new tasks (staying plastic).
- Transferring useful knowledge between tasks (new learning helps old, or old helps new).
- Staying efficient in memory and compute, so you don't have to keep or replay all past data.
Why it matters: the world changes. A model trained last year doesn't know this year's events, products or regulations, and retraining a large model from scratch is slow and expensive. If models could learn continually, they could stay current, personalise and improve from experience.
Continual Learning vs Online Learning and Related Terms
The vocabulary is confusing, and the terms overlap. A practical comparison:
| Term | What it means | Key difference from continual learning |
|---|---|---|
| Continual learning | Learn a sequence of tasks or a stream, keep old skills | The central concern is not forgetting |
| Continuous learning | Often used loosely for "keeps updating" | Usually an informal synonym |
| Online learning | Update the model one example (or a small batch) at a time as data arrives | A way of updating; says nothing about old tasks being retained |
| Incremental learning | Add new classes or data to an existing model | Often a subset of continual learning |
| Transfer learning | Reuse a model trained on one task as the start for another | Cares about the new task, not preserving the old |
| Fine-tuning | Further train a pretrained model on specific data | A single adaptation step; forgetting is a side effect |
| Multitask learning | Train on all tasks together | Assumes all data is available at once |
Continual learning vs online learning comes down to the goal: online learning is about how updates happen (streaming, one at a time), while continual learning is about retaining knowledge across changing tasks. A system can be one without the other.
What Is Catastrophic Forgetting?
What is catastrophic forgetting? It's the tendency of a neural network to abruptly and drastically lose previously learned information when it is trained on new information. It was described in connectionist networks in the late 1980s and remains a problem in modern deep learning.
It happens because a network stores knowledge in its weights, and the same weights are shared by all tasks. When you train on task B, gradient descent adjusts the weights to do well on B, with no pressure to keep them good for task A, so the old skill is overwritten. Researchers describe a stability-plasticity dilemma: the network must be plastic enough to learn new things but stable enough to keep old ones.
Two findings are worth knowing:
- It isn't just a capacity limit. In studies where the same network is trained on two tasks mixed together (interleaved), it can learn both. The forgetting comes from the sequential order, not from running out of room.
- Replay isn't free. Mixing in old data prevents forgetting but can create its own problems, and storing old data may not be possible for privacy or size reasons.
A Simple Picture of Forgetting
Imagine a network trained on three tasks in sequence, with accuracy measured on each task after each stage (illustrative numbers):
| After training on... | Task A | Task B | Task C |
|---|---|---|---|
| Task A | 95% | n/a | n/a |
| Task B | 80% | 92% | n/a |
| Task C | 70% | 85% | 94% |
The model is always best at the task it learned last, and older tasks slide. Researchers summarise this with backward transfer, the average change in accuracy on old tasks after learning new ones. Here, after learning task C, task A is down 25 points (95 to 70) and task B is down 7 points (92 to 85). The backward transfer is (−25 + −7) / 2 = −16 points. A perfect continual learner would score 0 or above (learning new tasks helps old ones). Average final accuracy is (70 + 85 + 94) / 3 = 83%. Both numbers matter: one measures how much you kept, the other how well you perform overall.
How Continual Learning Methods Work
Methods fall into a few families, and most real systems combine them.
| Family | Idea | Example | Trade-off |
|---|---|---|---|
| Regularization | Penalise changes to weights that mattered for old tasks | Elastic weight consolidation (EWC) | Needs to estimate importance; weaker over many tasks |
| Replay (rehearsal) | Keep a small sample of old data (or generate it) and mix it into new training | Experience replay | Needs storage or a generator; privacy limits |
| Architecture growth or isolation | Give each task its own parameters or add modules | Adding adapters per task | The model grows; routing needed |
| Parameter-efficient tuning | Update only a small set of weights, so the rest stays put | LoRA adapters | Learns less, but forgets less |
| External memory and retrieval | Keep new knowledge outside the weights and look it up | Retrieval-augmented generation | The model itself doesn't change |
Elastic Weight Consolidation: A Worked Penalty
Elastic weight consolidation, from DeepMind's 2017 paper "Overcoming catastrophic forgetting in neural networks", protects old tasks by slowing learning on the weights that matter most to them. After learning task A, it estimates each weight's importance F (the Fisher information) and, while learning task B, adds a penalty to the loss:
loss = loss_B + (lambda / 2) * sum over weights of F_i * (w_i - w_A_i)^2where w_A_i is the value of weight i after task A. Take a toy case with two weights, both equal to 1.0 after task A, with importance F = 10 for the first and F = 0.1 for the second, and lambda = 2. Suppose learning task B pushes both weights to 1.5:
| Weight | Importance F | Change | Squared change | F × squared change |
|---|---|---|---|---|
| Weight 1 | 10 | 0.5 | 0.25 | 2.5 |
| Weight 2 | 0.1 | 0.5 | 0.25 | 0.025 |
The penalty is (2 / 2) × (2.5 + 0.025) = 2.525. Almost all of it comes from the important weight. Training on task B is therefore strongly discouraged from moving weight 1, which old task A depends on, and free to move weight 2, which doesn't matter much. The authors tested the idea on sequential handwritten-digit classification and on learning several Atari games one after another. It works best for a few tasks; as the number grows, the constraints pile up.
Experience Replay
Replay stores a small buffer of past examples and mixes them into each new batch, so the model keeps practising old tasks. If the buffer holds 1,000 examples from earlier tasks and each batch is 25% replay, the model keeps seeing old data constantly, at a fraction of the cost of retraining on everything. The limits are storage, privacy (you may not be allowed to keep the data) and bias toward whatever happened to be stored.
Loss of Plasticity: The Other Side of the Problem
Forgetting isn't the only way continual learning fails. A network trained for a long time on a changing stream can lose the ability to learn at all, a problem called loss of plasticity. In a study by Dohare and colleagues, standard deep learning methods applied to a long sequence of ImageNet binary classification tasks degraded steadily: accuracy fell from 89% on early tasks to 77% by the 2,000th task, roughly the level of a linear network, though a form of regularization eased the problem. The authors proposed continual backpropagation, which re-initialises a small fraction of rarely used units after each example, and reported that it appeared to maintain plasticity indefinitely.
The takeaway is that a good continual learner needs both stability (don't forget) and plasticity (keep learning), and over very long timescales plasticity can fade just as memory does.
Continual Learning in LLM Systems
For large language models, continual learning is an active research topic. A 2024 survey by Shi and colleagues describes the main issue: LLMs tailored to specific needs often lose performance on earlier domains, which is catastrophic forgetting at scale. The survey frames continuity in two ways, vertical (moving from general to specific capability, like adapting a general model to law or medicine) and horizontal (adapting across time and domains, like keeping up with new information). It organises LLM learning into three stages: continual pretraining, domain-adaptive pretraining and continual fine-tuning.
Research on parameter-efficient methods adds a useful nuance. The paper "LoRA Learns Less and Forgets Less" compared low-rank adapters with full fine-tuning on programming and maths tasks and found that LoRA substantially underperforms full fine-tuning on the new domain but better maintains the base model's performance on tasks outside it, and mitigates forgetting more than common regularizers such as weight decay and dropout. In other words, there is a trade-off: how much you learn versus how much you keep. Our guide to how to fine-tune an LLM covers these methods in practice.
How AI Products "Keep Learning" Without Continual Learning
Most assistants you use are not continually learning from your conversations. Their weights are frozen between releases. They stay useful through other mechanisms:
| Mechanism | How it adds new knowledge | Does the model change? |
|---|---|---|
| Periodic retraining or fine-tuning | New versions are trained and released | Yes, in a new version |
| Retrieval (RAG) | Fresh documents are fetched and put in the prompt | No |
| Web or tool access | The model searches or calls tools at question time | No |
| In-context learning | You give examples in the prompt | No, only for that conversation |
| Memory features | Notes and preferences are stored and added to later prompts | No: it's stored text, not learning |
Memory is easily mistaken for continual learning: a stored note about your preferences is retrieved into the context, which feels like the model learned it, but the weights haven't changed. Our guide to AI agent memory explains the difference, and fine-tuning vs RAG helps you choose between changing the model and feeding it information.
What to Do in Practice
If your problem is "my model needs to know new things", continual learning research is rarely the first tool. A practical order:
| You need... | Try first | Why |
|---|---|---|
| New facts or documents, updated often | Retrieval (RAG) | Update the index, not the model; no forgetting |
| A new style or behaviour | Fine-tuning with a mix of old and new data | Replay the old behaviour while teaching the new |
| A model specialised for a domain, with general skills kept | LoRA or other adapters | Forgets less; swap adapters per domain |
| Frequent small updates to a small model | Online or incremental updates with replay and evaluation | Needs monitoring for drift and forgetting |
| Strict safety on old behaviour | Re-run a fixed test suite after every update | Detect regressions before shipping |
Whatever method you choose, evaluate on old tasks as well as new ones after every update. Forgetting is silent: the new benchmark improves while a skill nobody tested quietly disappears.
Common Misconceptions
- "ChatGPT-style assistants learn from every chat." Generally their weights don't change from individual conversations; any personalisation usually comes from stored memory and context.
- "Forgetting means the network is full." Interleaved training shows the same network can hold both tasks; the problem is the sequential order.
- "More data fixes forgetting." More data on the new task makes it worse; it needs old data, constraints or isolation.
- "Fine-tuning is continual learning." A single fine-tune is one step; continual learning means many, with retention measured.
- "Retrieval is cheating." It is often the most reliable way to keep knowledge current, but it doesn't make the model itself learn.
- "The problem is solved." Current methods reduce forgetting but don't remove it, especially over many tasks.
FAQ
What is continual learning in AI?
Continual learning is training a model on a sequence of tasks or a stream of data so it learns new things without forgetting old ones. It's also called lifelong or incremental learning, and it aims to let models stay up to date without retraining from scratch.
What is catastrophic forgetting?
Catastrophic forgetting is when a neural network trained on a new task abruptly loses performance on tasks it learned earlier, because training overwrites the shared weights that stored the old knowledge.
What is the difference between continual learning and online learning?
Online learning updates a model as data arrives, often one example at a time. Continual learning is about retaining knowledge across a changing sequence of tasks. A model can be updated online and still forget, or learn in batches and still retain.
Can large language models learn continually?
Not easily. Updating an LLM on new data risks forgetting earlier skills, so most are frozen and updated through new versions, fine-tuning with mixed data, adapters or retrieval at question time. Research on continual learning in LLM training is active but unsolved.
How do you prevent catastrophic forgetting?
Common approaches are regularization such as elastic weight consolidation, replaying old data, giving tasks separate parameters, updating only small adapters and keeping new knowledge outside the model with retrieval. Test old tasks after every update to detect forgetting.