TL;DR
FlowEvo is a training-free framework that allows Large Language Model (LLM) agents to "self-evolve" by compiling their successful workflows into a persistent library of executable skills. By co-evolving these skills and workflows at inference time, agents can solve complex tasks with significantly higher accuracy and lower token costs than traditional memory-based or workflow-optimization methods.
What Problem Does This Paper Address?
Modern LLM agents are remarkably flexible, often constructing complex workflows (decomposing tasks, using tools, writing code) on the fly. However, this flexibility comes with a "memory leak": once a task is finished, the successful procedure is usually discarded.
Existing solutions generally fall into two camps, both with flaws:
- Text-based Memory: Agents store past plans or traces as text. While helpful for context, these aren't "executable." The model still has to re-derive the logic every time, leading to high token costs and inconsistent results.
- Offline Skill Libraries: These provide reusable code routines, but they are typically hand-crafted or assembled offline, meaning the agent doesn't actually "learn" and grow from its own unique experiences during a run.
The authors of FlowEvo ask: How can an agent persistently accumulate reusable, executable capabilities from its own successful executions without needing expensive re-training?
Methods
FlowEvo introduces a workflow–skill–workflow loop. The system consists of four tightly coupled components: a workflow planner, an executor with verification, a trace-to-skill compiler, and a skill registry.
The process works in three main stages:
- Workflow-to-Skill Compilation: When an agent successfully solves a task (verified by environment feedback or unit tests), FlowEvo extracts the core logic of that workflow. It compiles this into a "skill record"—a structured artifact containing a callable code body, a defined interface, and metadata for future routing.
- Tiered Skill Reuse: When a new task arrives, the agent doesn't just start from scratch. It retrieves relevant skills and chooses a route:
- Direct Execution: If a skill is a perfect match, it's called as a subroutine. This bypasses expensive exploratory steps.
- Skill-Conditioned Generation: If a skill is relevant but not a perfect fit, it's used as a "scaffold" or structured context to guide the generation of a new, custom workflow.
- Contrastive-Utility Lifecycle: Not all "learned" skills are good. FlowEvo tracks the downstream utility of every skill. If a skill consistently leads to failures (negative transfer), the system automatically suppresses it.
Datasets
The researchers evaluated FlowEvo across five diverse benchmarks to test its versatility:
- ALFWorld: A text-based interactive environment for household tasks (e.g., "put a heated apple in the fridge").
- HumanEval & MBPP: Standard benchmarks for Python code generation.
- GSM8K & MATH-500: Benchmarks for multi-step mathematical reasoning.
Key Insights and Ideas
- Executable > Textual: The core "aha" moment is that executable skills provide a much stronger "accuracy-efficiency frontier" than text memories. Because skills are code-like, they can be verified and audited, whereas text memories are just suggestions the model might ignore or hallucinate.
- A Capability Layer for Smaller Models: One of the most striking findings is that FlowEvo acts as an inference-time capability layer. It provides the "structure" that smaller models often lack. As shown in the scale ladder experiments, the performance boost from FlowEvo is actually larger on smaller, less capable models.
- Training-Free Evolution: FlowEvo achieves "self-evolution" entirely through its memory and skill bank updates. The underlying LLM parameters remain fixed, making this a highly efficient way to improve agent performance over time without the massive compute costs of fine-tuning.
Key Results
FlowEvo achieved the highest accuracy among eight competitive baselines across all five benchmarks.
- ALFWorld Dominance: On ALFWorld, FlowEvo reached 85.6% accuracy, a massive 26.4-point lead over the strongest baseline. Crucially, it did this while using only one-third of the tokens, thanks to direct skill reuse.
- Broad Robustness: The framework was tested across 10 different base models (from 7B to 671B parameters). FlowEvo outperformed the popular ExpeL baseline in 49 out of 50 model-dataset comparisons.
Limitations and Future Work
The authors acknowledge several areas for growth:
- Dependency on Verifiers: FlowEvo currently requires a clear success signal (like a unit test or environment feedback) to compile a skill. Applying this to "signal-free" tasks like creative writing remains a challenge.
- Bank Maintenance: As an agent lives longer, its skill bank could become cluttered. Future work is needed to explore how to merge, revise, or retire skills to prevent "retrieval interference."
- Bootstrapping: The agent still needs enough baseline capability to solve a task at least once to start the loop. For extremely difficult reasoning tasks where the base model has a 0% success rate, FlowEvo has nothing to learn from.
Summary updated