What is the Reflexion mechanism and how does it avoid fine-tuning?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Reflexion replaces gradient updates with verbal self-critiques: after a failed trial the agent writes what went wrong, stores it in memory, and prepends it to the next attempt.
Imagine a student who keeps failing the same kind of exam question. They never get smarter on the spot, but after each try they scribble a sticky note: 'I forgot to check the units last time.' Before the next attempt they read all their sticky notes, so they avoid repeating those mistakes. The student's brain has not changed at all. Their notes have. Reflexion works like this for an agent. The model itself is frozen, so its weights never move. After a failed attempt it writes a short note in plain language explaining the slip-up. That note is saved, then pasted into the prompt for the next attempt. The agent improves trial after trial purely because it now reads its own past lessons, not because it was retrained.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
State that weights stay frozen, name the actor, evaluator, and self-reflection roles, explain how critiques land in episodic memory and get prepended to the next trial, then close with the limits: bounded context memory, dependence on evaluator quality, and fast saturation across trials.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Saying Reflexion fine-tunes the model on its mistakes. It never touches weights. The self-critique lives in the prompt as in-context feedback, not in a gradient step.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.