AI agents

Self-learning AI agents: what actually learns, and what can go wrong

The learning is usually stored text, which means it can be read, tested, rolled back and poisoned.

Open Dimension AI7 min read

What are self learning AI agents?

Self-learning AI agents are software agents that change their own future behaviour using feedback from past tasks. In practice, that usually means storing lessons, examples or instructions in memory, not retraining a model. The useful version keeps every change reviewable, tested and reversible, because an agent that learns can also learn the wrong thing.

The short version

  • A self-learning AI agent changes its future behaviour using feedback from past tasks, without a developer editing it in between.
  • Self-learning agents usually learn by storing lessons, examples or instructions in memory, so the underlying model stays the same.
  • A mistake written to an agent's memory persists, and it returns on every later task that retrieves it.
  • Microsoft's review of AI-related URLs in email traffic over 60 days found 50 distinct attempts to manipulate AI memory.
  • A self-learning agent is only worth building when the task repeats often, the feedback is reliable and every change can be rolled back.

What is a self-learning AI agent?

A self-learning AI agent is an agent whose future behaviour changes because of what happened on past tasks, with no developer editing it in between. An ordinary agent starts each task from the same instructions and tools. A self-learning agent carries something forward: a correction, a worked example, a revised instruction, sometimes new code.

The term is loose, and it gets applied to very different things. A chatbot that remembers your name and a research system that rewrites its own source code can both be called self-learning. So the useful question is not whether an agent learns. It is what exactly changes, where that change is stored and who can see it.

How do self-learning AI agents learn?

Self-learning AI agents usually learn by writing to memory, not by retraining a model. After a task, the agent or a separate process records what worked or failed. That record is retrieved on later tasks and added to the model's context. The model stays the same. What it reads has changed.

This matters for cost and control. Retraining needs training data, compute and a fresh round of evaluation. Writing a line of text to a store needs almost nothing, which is why it is the common design. It also keeps the learning readable. You can open the store, see what the agent has recorded and delete a bad entry. A change buried in model weights gives you no such option.

The loop has four steps, and each can fail on its own. The agent acts. It gets a signal about how that went. It turns the signal into a lesson. It applies the lesson next time. The weak step is usually the second. A test suite gives a clear signal. A customer who stops replying gives an ambiguous one, because they may be satisfied, annoyed or simply busy.

What can change when an agent learns?

What changesExampleMain riskHow to undo it
Stored factsA customer's preferred delivery dayStale facts applied with confidenceDelete or expire the entry
Worked examplesA resolved ticket reused as a templateOne odd case gets copied as the patternRemove it from the example set
InstructionsA revised rule in the system promptA fix in one place breaks behaviour elsewhereRestore the previous version
Agent code or toolsA helper script the agent wroteNew failure modes and wider reachRevert to the last approved version
Model weightsFine-tuning on reviewed transcriptsSlow, costly and hard to inspectRedeploy the earlier model

What does the research say about self-learning agents?

The research shows agents can use their own feedback on benchmarks. It does not show how they behave inside a business. Two papers mark out the range: one stores written reflections, the other lets agents change their own code.

Reflexion, from 2023, has an agent write down what went wrong after a failed attempt and read that note on the next try. The authors ran their own benchmark experiment on HumanEval and compared the approach with GPT-4 at 80%. This is a lab result on a 2023 model, posted as an arXiv paper, and the page names no journal or conference. It does not measure business deployment. The design is the part to take away: feedback turned into text the agent can reuse.

The Darwin Gödel Machine, first posted to arXiv in May 2025 and last revised in March 2026, goes further. Its agents modify their own code and are tested on the SWE-bench and Polyglot coding benchmarks. The authors ran those experiments with sandboxing and human oversight, and that detail matters most to a buyer. The people building an agent that rewrites itself did not let it run unsupervised. It is a research system, not a commercial product.

Coding benchmarks also have a property most business work lacks: a clear pass or fail. A test suite tells an agent exactly whether it succeeded. Support tickets, sales emails and contract reviews rarely give a signal that clean, so a result from one does not carry over to the other.

What can go wrong when an agent learns from experience?

An agent can learn the wrong lesson and then apply it with confidence. A self-learning system has the failure modes of any agent, plus one more: its mistakes persist. An error in a single task ends with that task. An error written to memory comes back on every later task that retrieves it.

Bad lessons are the ordinary case. One unusual complaint becomes a general rule. A workaround for a bug stays in memory long after the bug is fixed. A run of small, reasonable instruction changes leaves the agent behaving differently from anything anyone approved. This is drift, and it tends to go unnoticed because no single change looks wrong.

Deliberate poisoning is the sharper case. If an agent can store what it reads, untrusted content becomes a route to its later behaviour. Microsoft reviewed AI-related URLs observed in email traffic over 60 days and found 50 distinct attempts to manipulate AI memory. Those were attempts, not confirmed successes, and Microsoft says effectiveness varied by assistant and over time. The motive is the part to note: people already have a commercial reason to write into an assistant's memory.

There is a quieter data problem too. A lesson learned from one customer's case can surface in another customer's conversation if memory is shared across users. Memory is also a new place for personal data to sit, so it needs the same retention and deletion rules as your other records. 'It learns from everything' is an awkward answer to a data protection question.

How do you run a self-learning agent safely?

Run a self-learning agent safely by separating proposing a change from applying it. Let the agent suggest lessons freely, and put a gate between the suggestion and live behaviour. For low-risk memory that gate can be automatic. For instructions, tools and code it should be a test run plus a human review.

The evaluation set does the work the agent's own judgement cannot. An agent that reports it has improved is marking its own homework. A fixed set of real past cases with known good outcomes tells you whether a change helped, and whether it quietly broke something else. Without one, you cannot tell learning from drift.

What controls does a self-learning agent need?

  • Version every change, so any lesson can be traced to the task that produced it and removed.
  • Run a fixed evaluation set before a change goes live, and compare the result with the previous version.
  • Label where each memory came from, and review anything from an untrusted source before it can affect behaviour.
  • Scope memory by customer or tenant, so one account's lessons cannot reach another.
  • Expire entries by default, so stale lessons age out instead of piling up.
  • Keep permissions and guardrails outside the agent's reach, so it cannot change its own limits.

When is a self-learning agent not worth building?

A self-learning agent is not worth building when the task is low volume, the feedback is unclear or a wrong lesson would be expensive. In those cases a fixed agent, updated by a person on a regular cycle, gives you much of the benefit with far less risk.

Check three things before choosing the architecture. Learning needs repetition, and a task that runs a few times a month will not produce enough signal to learn anything reliable. It needs an honest signal, such as a human correction or a measurable outcome. It also needs someone to own the review, because the gates above are recurring work, not a setup task.

For many teams the better first step is the boring one. Log every run, review the failures each week and change the instructions by hand. That is learning too, with a person in the loop. It also builds the evaluation set and feedback data you would need if you later automate part of it. Where a single wrong output carries legal or clinical consequences, keep a person in control of what changes.

What should you ask before buying a self-learning agent?

Ask what changes, where it is stored and how to undo it. If a vendor cannot answer those three questions in plain terms, 'self-learning' is only a marketing word for that product.

Then ask for evidence that fits your work. A benchmark figure says little about your tickets or documents. Ask to see what the agent stored during a trial. Ask how a bad memory is removed, whether your data trains anything shared with other customers, and what happens to stored memory when you leave. These are ordinary procurement questions, and a straight answer to them is worth more than an accuracy claim.

Questions people ask

Do self-learning AI agents retrain the underlying model?

Usually not. They normally store lessons, examples or instructions in a memory layer and read them back on later tasks, so the model itself stays the same. Changing model weights is possible, through fine-tuning on reviewed data, but it is slower and costs more to evaluate. If a product claims to learn, ask which of these it does, because the risks and the rollback steps are different.

Can a self-learning agent get worse over time?

Yes. A bad lesson stays in memory and affects every later task that retrieves it, and small instruction changes can add up to behaviour nobody approved. The agent will not reliably notice this itself. The defence is a fixed evaluation set run before any change goes live, plus version history, so a drop in quality can be traced to a specific change and reversed.

Can attackers change what a self-learning agent does?

Yes, if untrusted content can reach its memory. Anything the agent reads and stores can influence later tasks, including tasks unrelated to the original content. Microsoft has reported attempts to manipulate AI memory through URLs, with effectiveness varying by assistant and over time. Label where each entry came from, and review anything from outside your organisation before it can affect behaviour.

Is it safe to let an agent learn from customer data?

It can be, if memory is treated as a store of personal data and not a cache. Scope it by customer so one account's details cannot reach another, set retention and deletion rules, and record where each entry came from. Personal data written into memory still has to be found and removed on request. If nobody can do that, the agent should not be storing it.

How do you test an agent that keeps changing?

Test each change, not just the first release. Keep a fixed set of real past cases with known good outcomes, run it before any lesson or instruction change goes live, and compare the results with the previous version. Add new failures to the set as they appear. An agent that can change without passing that check is not being tested in any meaningful sense.

Do we need a self-learning agent, or is a normal agent enough?

For a first deployment, a normal agent is usually enough. Run it, log everything, review failures on a regular cycle and update its instructions by hand. That gives you improvement with a person controlling each change. Automate parts of that loop only once the task repeats often, the feedback is trustworthy and you have an evaluation set that would catch a bad change.

Related on this site

Sources

  1. Reflexion: Language Agents with Verbal Reinforcement Learning, Authors' own benchmark experiment on HumanEval, compared with GPT-4 at 80%. This is a 2023 lab result on a 2023 model, posted as an arXiv paper; the page names no journal or conference, and it does not measure business deployment. · Shinn, Cassano, Berman, Gopinath, Narasimhan and Yao (Reflexion paper authors), data from 2023
  2. Darwin Gödel Machine: Open-Ended Evolution of Self-Improving Agents, Authors' own experiments on the SWE-bench and Polyglot coding benchmarks, run with sandboxing and human oversight. First posted to arXiv in May 2025 and last revised March 2026; this is a research system, not a commercial product. · Zhang, Hu, Lu, Lange and Clune (Darwin Gödel Machine paper authors), data from 2025
  3. Manipulating AI memory for profit: The rise of AI Recommendation Poisoning, Microsoft review of AI-related URLs observed in email traffic over 60 days, which found 50 distinct attempts. The post is dated February 10, 2026 and gives no calendar dates for the window, so the year range is inferred. Microsoft says effectiveness varied by assistant and over time. · Microsoft (Microsoft Security Blog), data from 2025–2026

Want someone to look at your workflow?

Thirty minutes, and we will tell you whether there is anything here worth building. Roughly half of these end with us saying not yet.

Book a 30 minute call