TL;DR
REFLEX is a new evolutionary framework that makes LLM-guided policy discovery faster and more transparent by "decoupling" the process: a vision-enabled Critic first diagnoses visual behavior into a structured report, then a code-optimized Actor writes the fix. By adding a persistent Skill Memory, the system can transfer "control philosophies" (like energy-pumping) across different runs and even different tasks, solving complex control problems in as few as 10 LLM calls.
What Problem Does This Paper Address?
In the quest for safe and interpretable AI, researchers often prefer programmatic policies—controllers written in human-readable code—over "black-box" neural networks. Recently, Large Language Models (LLMs) have been used as "evolutionary operators" to write and refine this code.
However, existing frameworks suffer from diagnosis-repair entanglement. They typically use a single, monolithic LLM call to look at a video of a failure, figure out what went wrong, and rewrite the code all at once. This creates an opaque feedback loop: if the new code fails, you don't know if the model misread the visual evidence or if it understood the problem but just wrote bad code. Furthermore, these systems usually "forget" everything between runs, starting every new evolution from scratch.
Methods
The authors introduce REFLEX (Reflective Evolution from LLM Experience), which breaks the monolithic loop into a Multi-turn Diagnostic Chain (MDC):
- Behavioral Evidence (BE): Instead of just looking at a reward score, the system renders a task-specific image (like a phase portrait or a trajectory plot) that visually exposes failure modes.
- The Critic (Vision-LLM): This module only looks at the visual evidence and the current code. It outputs a structured JSON diagnosis containing the failure mode, visual evidence, root cause, and a suggested fix. Crucially, it writes no code.
- The Actor (Code-LLM): This module receives the JSON diagnosis and the parent code. It also queries a Skill Memory—a library of successful code snippets from previous runs—to synthesize a "child" policy.
- Self-Evolving Skill Memory: Successful code snippets are extracted and stored with natural language "triggers." A UCB1 bandit algorithm (a classic reinforcement learning technique) manages which evolutionary strategies (mutation, crossover, or skill retrieval) are working best to prioritize them.
Datasets
The framework was evaluated on two distinct types of challenges:
- Classic Control Benchmarks: Lunar Lander, Acrobot, and Pendulum (from the Gymnasium library). These test the ability to handle discrete and continuous physical control.
- Engineering Design: Concentric Circular Antenna Array (CCAA) synthesis. This is a 36-dimensional, highly non-convex optimization problem used to design real-world antenna layouts.
Key Insights and Ideas
- Auditability is Efficiency: By forcing the model to write a JSON diagnosis before code, the process becomes "inspectable." Humans can see exactly where the logic broke down. This structural decoupling actually accelerates discovery because the Actor receives much more targeted instructions.
- Visuals Beat Scalars: A single reward number (e.g., -100) is a "sparse" signal. A visual phase portrait showing a pendulum failing to reach the upright position is a "dense" signal that the Critic can use to suggest specific physical fixes (like "increase torque when the angle is far from vertical").
- Cross-Task Knowledge Transfer: One of the most striking findings is that "skills" are often task-agnostic. A "swing-up" heuristic learned for a simple Pendulum can be retrieved and adapted by the Actor to solve the more complex Acrobot task, even though the state and action spaces are completely different.
Key Results
- Extreme Sample Efficiency: REFLEX solved the Pendulum and Acrobot tasks in under 10 LLM calls. For comparison, traditional black-box optimizers often require hundreds of evaluations.
- State-of-the-Art Performance: On Lunar Lander, it achieved a Normalized Weighted Score of 1.092, outperforming or matching both Deep Reinforcement Learning (PPO/DQN) and previous LLM-based evolutionary methods.
- Engineering Success: In the antenna design task, REFLEX matched the offline numerical optimum in just 7 evaluations, whereas traditional Genetic Algorithms (GA) and Particle Swarm Optimization (PSO) required over 160 evaluations to reach similar performance.
- The "Warm Start" Advantage: Using a pre-populated Skill Memory reduced the "calls-to-convergence" by 2.3x on Lunar Lander, proving that the system successfully retains and reuses programmatic knowledge.
Limitations and Future Work
While REFLEX is highly efficient, the authors note several areas for growth:
- LLM Dependency: The system’s performance is tethered to the quality of the underlying models (e.g., Qwen-VL-Max).
- Stochasticity and Cost: LLM API calls are still stochastic and can be expensive compared to local compute, though the high sample efficiency helps mitigate this.
- Scaling: The current study focused on relatively low-dimensional control and design. Future work will need to test if this "Critic-Actor" decoupling holds up in higher-dimensional policy spaces or tasks requiring very long-horizon reasoning.
Summary updated