Reflexion: Language Agents with Verbal Reinforcement Learning
Reflexion lets an agent improve between attempts without retraining. After each try, the agent writes a short reflection on the feedback it got, stores it in memory, and reads it before the next try. It improved results over a baseline agent on decision-making, coding and reasoning tasks, including 91% pass@1 on HumanEval against 80% for GPT-4 at the time.
Noah Shinn, Federico Cassano, Edward Berman, et al.

