🎯Core Definition
Reflexion is an advanced agentic architecture that reinforces task performance through verbal self-reflection rather than traditional reinforcement learning weight updates; upon task execution failure evaluated by an objective judge (e.g., failed unit tests), the Self-Reflection module analyzes the entire trajectory, authoring a natural language critique detailing the failure root cause and strategic corrections; this reflection memory is appended to working memory, guiding the agent in subsequent trials to actively avoid past mistakes.
💡Use Cases
Autonomous code generation and test-driven self-repair (HumanEval, SWE-bench), multi-step scientific deduction, and strategic decision simulations.
⚡Key Problems Solved
Standard ReAct agents trapped in a bad state loop repeatedly repeat identical missteps across retries; Reflexion externalizes past mistakes into explicit textual memory buffers, enabling trial-over-trial error recovery and behavioral self-correction.