FEP-Agent: Active-Inference-Guided LLM Agent Self-Evolution with Semantic Memory
Minghao Chen ⋅ Xinyi Hu ⋅ Zhou Yu ⋅ Yufei Yin
Abstract
Enabling language model agents to autonomously adapt to new environments remains a fundamental challenge. While recent memory-augmented approaches have achieved promising results, they are largely heuristic in design and treat task execution and knowledge construction as decoupled processes. Inspired by how biological systems rapidly adapt through principled acting and learning, we propose $\textbf{FEP-Agent}$, a framework that guides LLM agent self-evolution with the $\textit{Free Energy Principle (FEP)}$. Our system instantiates the two components of Active Inference into: a Worker agent that approximately minimizes $\textit{Expected Free Energy (EFE)}$ during online interaction, balancing goal-directed exploitation with curiosity-driven exploration to probe uncertain environmental dynamics; and a Builder agent whose post-execution updates are guided by $\textit{Variational Free Energy (VFE)}$, updating a knowledge base while controlling complexity through counterfactual validation. To support scalable knowledge in open-ended environments, we introduce a structured semantic memory that employs associative linking and overlapping communities for efficient retrieval. The excellent results across multiple LLM-agent benchmarks show that FEP-Agent supports effective self-evolution.
Successful Page Load