Blog

Memory vs fine-tuning: why agents shouldn't learn in their weights

Fine-tuning is slow to update and cannot be inspected, scoped or deleted per user. External memory can. How the two differ, and when fine-tuning is still the right call.

Jonathan Bree

Fine-tuning is the wrong tool for teaching an agent about individual users or about facts that change. It is slow, it is expensive to repeat, and once a fact is in the weights it cannot be inspected, corrected or removed for one person. An external memory that the agent reads at request time does the same job with none of those problems. Fine-tuning still has a clear role, but that role is shaping how a model behaves, not storing what it knows about the world it works in.

The confusion is understandable. Fine-tuning sounds like learning, and learning sounds like memory. If you want an agent to know that a customer prefers invoices in euros, or that your company’s refund window changed to 45 days, training it on that information feels like the most direct route. In practice it is the hardest route to maintain.

What fine-tuning does well

Fine-tuning adjusts a model’s weights using examples, so the model produces different outputs for similar inputs. It is good at teaching form: a house tone of voice, a strict output schema, a domain’s vocabulary, a classification task with stable labels. Techniques such as LoRA make it cheaper by training a small set of adapter weights, and instruction tuning is how base models learn to follow instructions in the first place.

All of these change how the model responds. They are much weaker at teaching it specific facts it can later recall precisely, and they offer no way to keep those facts per person.

Why weights are a poor place for facts

Knowledge that lives in weights is diffuse. A training run nudges millions of parameters, and there is no single place where “Acme’s refund window is 45 days” is stored. That has four consequences for anyone building an agent.

It cannot be inspected. You cannot list what the model learned about a customer, and you cannot show an auditor where a particular answer came from. When the agent says something wrong, there is no record to check.

It cannot be edited precisely. If the refund window changes again, you cannot update one fact. You retrain, and hope the new examples outweigh the old ones. Models also tend to keep producing earlier patterns alongside new ones, and training on new material can degrade unrelated abilities, a problem known as catastrophic forgetting.

It cannot be scoped. A model fine-tuned on all your customers’ data knows about all of them at once. There is no reliable way to stop knowledge learned from one tenant influencing answers for another, which is a serious problem for any multi-tenant product.

It cannot be deleted per user. When someone exercises the right to be forgotten, removing their influence from a trained model means retraining without their data. For a product with thousands of users, that is not a workable answer, and your legal team is unlikely to accept “we will remove it at the next training run”.

The cost is in the loop, not the run

A single fine-tuning run can be inexpensive. The expense comes from keeping it current. Personal and business facts change constantly: people move, change roles, change their minds, and companies change prices and policies. Every change that matters means new training data, a new run, evaluation to confirm nothing else broke, and a deployment.

Most teams cannot run that loop daily, so the fine-tuned model is always somewhat out of date. It behaves like a second knowledge cutoff layered on top of the base model’s. And when you switch to a newer base model, which many teams now do every few months, the fine-tuning has to be redone on the new model. We made the commercial version of this argument in personal AI and memory: the model is the part you will replace, so it is the wrong place to keep the knowledge that makes your product valuable.

What external memory changes

An external memory keeps knowledge outside the model, as discrete records the agent retrieves before it answers. The model reads them through in-context learning, the same mechanism that lets it use any information you place in the prompt.

This flips each of the problems above. Every memory is a record you can list and read. A changed fact is updated in place, and a good memory system resolves the conflict with the old version automatically rather than keeping both, which is what contradiction resolution means. Memories can be scoped to a user, a project or a tenant, so the agent only sees what belongs to the current context. And deleting a user’s memories is a single operation.

Updates also take effect immediately. If a customer tells a support agent on Tuesday that they have moved to the enterprise plan, the agent can use that on Wednesday. A fine-tuned model would learn it at the next training cycle, if the example made it into the dataset at all. The difference between RAG and fine-tuning rests on the same principle for documents; agent memory applies it to what the agent learns about people and situations over time.

Question

Fine-tuning

External memory

How fast does a new fact take effect?

Next training run and deployment

On the next request

Can you see what was learned?

No

Yes, as individual records

Can you change one fact?

Retrain and re-evaluate

Update or replace the record

Can knowledge be kept per user?

Not reliably

Yes, by scoping

Can one user’s data be deleted?

Retrain without it

Delete their records

What happens when you change models?

Redo the fine-tuning

Nothing, memory is model-independent

What is it best at?

Tone, format, task skill

Facts, preferences, events, history

When fine-tuning is still the right call

There are good reasons to fine-tune, and an external memory does not replace them.

Fine-tune when you need consistent behaviour that is hard to describe in a prompt: a specific writing style, adherence to a strict format, or reliable structured output for a schema the base model struggles with. Fine-tune when a smaller, cheaper model needs to match a larger one on a narrow, stable task such as classification or extraction, and you have enough good examples. Fine-tune when latency matters so much that you cannot afford a long system prompt full of instructions, and those instructions rarely change.

The common thread is stability. If the thing you want the model to learn will still be true in six months and applies to every user equally, weights are a reasonable place for it. If it is specific to one person, one customer or one moment, it belongs in memory. Many production systems use both: a modestly fine-tuned model for tone and format, with an external memory and retrieval layer for everything factual. The trade-off between embeddings and fine-tuning follows the same lines.

A worked example

A team builds a coding assistant for a company with 40 repositories. Their first plan is to fine-tune a model on the codebase and on past code review comments, so the assistant follows house conventions.

The plan meets three problems within a month. Conventions change: the team adopts a new error-handling pattern, and the fine-tuned model keeps suggesting the old one. Some knowledge is per team: the payments team requires a second reviewer and the growth team does not, and the model blends the two. And a contractor’s repository has to be removed after their engagement ends, which would mean retraining.

They switch to a different split. A light fine-tune teaches the model the company’s code review tone and comment format, which rarely changes. Conventions, per-team rules and decisions from past reviews go into an external memory, scoped per team, and are retrieved before each suggestion. When the error-handling pattern changes, one memory is updated. When the contractor leaves, their scope is deleted. We explore this pattern further in project memory for coding assistants.

A quick test for any piece of knowledge

Before deciding where something should live, ask three questions about it. Will it still be true in six months? Does it apply equally to every user and every tenant? Would you be comfortable never being able to show where an answer based on it came from? If the answer to all three is yes, it is a candidate for the weights. If any answer is no, it belongs in memory.

Most of what makes an agent useful fails that test. Preferences, account details, decisions, open issues and recent events are personal, they change, and they need to be traceable. These are also the facts most likely to cause hallucination when the agent lacks them, and most likely to cause memory drift when an old version lingers. Personalization built on them only works if they can be corrected the moment they change, which is why teams comparing the best agent memory platforms tend to focus on update and deletion behaviour as much as on retrieval quality. For multi-tenant SaaS products, scoping is the deciding factor on its own.

Where Exabase fits

Exabase provides the external memory layer; the model and the agent logic remain yours. Exabase Memory runs on the M-1 engine, which extracts facts, preferences and events from conversations or text, links related memories, resolves contradictions as facts change and consolidates knowledge over time. You can also write exact memories directly with verbatim mode, as covered in creating memories, and mark a memory as immutable so the self-organising process never changes it.

Each memory can be read, updated or deleted individually through the API, using the update memory endpoint or the delete memory endpoint. Memories are scoped with Bases, one per user, team or tenant, as described in the memory scoping guide, and isolation is enforced at the infrastructure level. Because Exabase is model-agnostic, none of this has to be redone when you change models. The full picture is on the agent memory solution page.

FAQs

What is the difference between memory and fine-tuning?

Fine-tuning changes a model’s weights to alter how it behaves. Memory stores facts outside the model as records the agent retrieves at request time, so they can be read, updated, scoped and deleted individually.

Can fine-tuning teach a model about individual users?

Not in a practical way. Knowledge in weights cannot be kept separate per user or removed for one person, and keeping it current means repeated retraining.

Is fine-tuning cheaper than memory?

A single run can be, but the ongoing cost of retraining, evaluating and redeploying whenever facts change usually is not. Memory updates cost one API call.

When should I fine-tune an agent’s model?

When you need stable behaviour that applies to everyone, such as tone, output format or a narrow task skill, and you have good examples. Keep changing and per-user facts in memory.

Does fine-tuning cause the model to forget things?

It can. Training on new material can weaken abilities the model had before, a problem known as catastrophic forgetting, which makes frequent fine-tuning risky.

Can I combine fine-tuning and memory?

Yes, and many production systems do. A lightly fine-tuned model handles tone and format, while memory and retrieval supply the facts. See what agent memory is for the memory side.

How does external memory handle the right to be forgotten?

Each user’s memories can be listed and deleted. With Exabase, deleting a user’s Base removes their memories, files and search index together.

Do I need to redo memory when I switch models?

No. External memory is independent of the model, so the same memories work with whichever model you call next.

Related pages: Agent memory solution, RAG, Long-term memory, Procedural memory, The context window is not memory, Forgetting is a feature, Customer support agents, Exabase vs Letta, Exabase vs Mem0, Anatomy of a memory

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.