# FEP-Agent: Grounding LLM Agent Self-Evolution in Active Inference with Semantic Memory

*Minghao Chen, Xinyi Hu, Zhou Yu, Yufei Yin*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151723) · [Open on the map](../papers.html#p151723)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Self-Evolving Agent Memory](../pgroup/673.md) · Type: new method · Keywords: LLM agent self-evolution, Active Inference, semantic memory, Expected Free Energy, Variational Free Energy

Areas: [Memory](../areas/memory.md) › Agent Memory Systems › Memory Skills; [AI Agents](../areas/agents.md) › Agent Capabilities › Autonomous Agent Memory

## Summary
FEP-Agent introduces a principled LLM agent framework that uses Active Inference components (Worker and Builder) and a structured semantic memory to enable self-evolving adaptation in new environments.

## Explained to a 5-year-old
A computer program that can learn by itself is made to help robots work in new places. It uses two parts: one part decides what to do while exploring, and another part remembers what it learned. The program balances trying new things and using what it already knows, like how animals learn. It also builds a memory that links ideas together so it can find information quickly. This helps the robot adapt quickly and work better on its own.

## Explained to a 5-year-old, longer
A computer program that can think and talk is called a language model. Sometimes we want these programs to help robots or assistants do things in new places. The paper makes a new way for these programs to learn on their own, like how babies learn. It splits the learning into two parts: one part decides what to do while exploring, and another part stores what it learned. The first part tries to balance doing what it knows (to finish tasks) and trying new things (to discover more). The second part updates its memory after each action, making sure the new information is useful and not too messy. To help it remember many things, the system uses a special memory that links related ideas together. This memory also groups ideas into overlapping communities, which makes it easy to find information quickly. By using ideas from biology called the Free Energy Principle, the system can act and learn in a principled way. The result is a program that can adapt to new environments without needing a lot of extra help. It can explore uncertain situations safely while still working toward its goals. This approach aims to make language model agents more self-sufficient and flexible.

## For a technical reader
FEP-Agent is a framework that grounds LLM agent self-evolution in Active Inference, using two agents: a Worker that balances exploitation and exploration, and a Builder that updates a knowledge base. The Worker minimizes Expected Free Energy during interaction, while the Builder minimizes Variational Free Energy after execution, employing counterfactual validation to control complexity. A structured semantic memory with associative linking and overlapping communities supports scalable knowledge retrieval in open-ended environments. Evaluated on multiple LLM-agent benchmarks, the system demonstrates improved adaptability and principled self-evolution compared to heuristic memory-augmented approaches. This design offers a principled alternative to ad-hoc memory mechanisms, enabling agents to act and learn in a unified, biologically inspired manner.

## Problem
Language model agents struggle to autonomously adapt to new environments, and existing memory-augmented approaches treat task execution and knowledge construction as separate, heuristic processes.

## Method
The approach instantiates Active Inference with a Worker that minimizes Expected Free Energy during interaction to balance exploitation and exploration, and a Builder that minimizes Variational Free Energy after execution to update a knowledge base with counterfactual validation, supported by a structured semantic memory using associative linking and overlapping communities.

## Results
The approach shows excellent performance across multiple LLM-agent benchmarks, demonstrating principled self-evolving capabilities.

## Contributions
It provides a principled framework grounding LLM agent self-evolution in Active Inference, integrates Worker and Builder agents with semantic memory, and introduces scalable knowledge structures for open-ended environments.

## Research questions this paper is counted under

- [How can LLM agents effectively store, retrieve, and reuse past experiences while preserving fidelity, provenance, and adaptability over long interaction histories?](../q/14.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151723)
