FLEX: Continuous Agent Evolution via Forward Learning from Experience
Zhicheng Cai, Xinyuan Guo, Yu Pei, Jiangtao Feng, Jinsong Su, Jiangjie Chen, Ya-Qin Zhang, Wei-Ying Ma, Mingxuan Wang, Hao Zhou
TL;DR
Static pretrained LLM agents struggle to grow with experience. FLEX introduces a gradient-free Forward Learning from Experience framework that builds a persistent, hierarchical experience library through extensive forward exploration and semantic distillation, guiding future reasoning without parameter updates. The approach yields significant improvements across mathematics, chemistry, and biology, and reveals a scalable law of experiential growth plus cross-agent inheritance of knowledge. By decoupling learning from weights, FLEX enables continual evolution, transferable strategies, and a path toward collective, transparent AI wisdom.
Abstract
Autonomous agents driven by Large Language Models (LLMs) have revolutionized reasoning and problem-solving but remain static after training, unable to grow with experience as intelligent beings do during deployment. We introduce Forward Learning with EXperience (FLEX), a gradient-free learning paradigm that enables LLM agents to continuously evolve through accumulated experience. Specifically, FLEX cultivates scalable and inheritable evolution by constructing a structured experience library through continual reflection on successes and failures during interaction with the environment. FLEX delivers substantial improvements on mathematical reasoning, chemical retrosynthesis, and protein fitness prediction (up to 23% on AIME25, 10% on USPTO50k, and 14% on ProteinGym). We further identify a clear scaling law of experiential growth and the phenomenon of experience inheritance across agents, marking a step toward scalable and inheritable continuous agent evolution. Project Page: https://flex-gensi-thuair.github.io.
