Can agents learn from failure without updating their weights?
Explores whether language models can improve through trial and error by storing reflections in episodic memory rather than fine-tuning. This matters because it suggests a fundamentally different path to agent adaptation.
Reflexion demonstrates a specific version of the external-feedback principle at system scale: when an agent has access to unambiguous binary feedback from the environment (success = 1, failure = 0), it can write verbal reflections summarizing what went wrong and how to avoid it. These reflections persist in episodic memory across episodes. The agent improves not through gradient descent but through memory accumulation.
The binary reward design is deliberate and consequential. A richer reward model would allow the agent to rationalize partial performance — finding reasons why a partial failure was acceptable. The binary signal eliminates this: the environment says success or failure, with no room for self-serving gradations. The model must genuinely diagnose what went wrong to write a useful reflection.
Two hallucination types receive precise operational definitions: consecutive identical actions in an environment that responded identically (stuck loop) and trajectories exceeding 30 actions without reaching a successful state (inefficient planning). Both are detectable signatures that trigger termination and reflection, rather than indefinite continuation.
The method requires two components: a heuristic for when to terminate and trigger reflection, and a binary reward signal from the environment. This is a low-data-requirement architecture: no fine-tuning, no labeled training set, just a success/fail signal and the model's ability to generate natural language diagnoses.
The key distinction from internal self-revision: Reflexion's reflection is grounded in actual environmental outcomes, not the model's assessment of its own outputs. This is why it works where internal self-assessment does not. The environment provides an independent ground truth the model cannot rationalize away.
A second reason Reflexion works — visible only in 2025 hindsight. Reflexion writes reflections to episodic memory and retrieves them in subsequent episodes. It does not periodically recompress its reflections into more abstract lessons. Late-2025 evidence makes this design choice load-bearing: Does agent memory degrade when continuously consolidated? shows that LLM-driven consolidation regresses below the no-memory baseline on controlled benchmarks, and Why do LLM agents ignore condensed experience summaries? shows that agents systematically ignore abstracted memory even when it's the only memory provided. Reflexion sidesteps both failure modes because each reflection stays scoped to its triggering episode rather than being merged into a global summary, and because reflections retain enough textual specificity for the agent to use them as raw episodes rather than as condensed heuristics. The architectural simplicity that initially looked like a limitation — no consolidation step, no abstraction pass — turns out to be the property that makes it work.
AgentFly M-MDP formalization (2508.16153): AgentFly extends episodic memory-based learning into a formal RL framework — the Memory-augmented Markov Decision Process (M-MDP). The agent stores past trajectories (successes and failures) in three specialized memory modules: case memory (vectorized prior trajectories with Q-values for retrieval), subtask memory (active tasks and results), and tool memory (per-subtask tool interaction logs). Credit assignment occurs via memory rewriting (updating case labels and Q-values based on outcomes), and policy improvement occurs via memory reading (retrieving relevant cases shifts the planning distribution). The Q-function over cases provides a principled retrieval policy that improves with experience — moving beyond Reflexion's simpler similarity-based episodic retrieval toward learned case selection. AgentFly achieves top-1 on GAIA validation (87.88% Pass@3) in the deep research setting, demonstrating that memory-based RL can match or exceed fine-tuning-based approaches. See Can agents learn continuously from experience without updating weights?.
SDPO as the gradient-based analog (2601.20802): Reflexion converts environment feedback into stored verbal reflections used at the next rollout — a memory-update mechanism. Self-Distillation Policy Optimization (SDPO) converts environment feedback into gradient-distilled improvements to the policy weights — a parameter-update mechanism. Both reject the scalar reward as load-bearing; both treat rich environment signal as already containing the teaching; both leverage the model's in-context retrospection capability (Reflexion: explicit verbal reflection on what went wrong; SDPO: the policy conditioned on feedback as self-teacher). The pair frames a design choice: when environment feedback is rich enough to retrospect on, do you store it as episodic memory (Reflexion) or distill it into weights (SDPO)? Storage avoids parameter changes but accumulates context cost; distillation avoids context cost but commits the update to weights. See Can environment feedback replace scalar rewards in policy learning?.
Inquiring lines that read this note 140
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
How do training priors constrain what context information can override?- Why do Generation-Then-Comprehension and AI Delegation produce opposite learning outcomes?
- Can explicit numerical signals override learned linguistic defaults in fine-tuned models?
- Why do pretrained model priors reduce the usefulness of retrieved experience?
- Can goal information injected at inference time replace goal-conditioned training?
- What makes some contexts learnable as rules versus requiring model retraining?
- Can in-context learning's advantage erode once interaction histories exceed the context window?
- Which AI interaction patterns preserve learning while which ones degrade skill formation?
- What capabilities can emerge from self-modification that the original agent lacked?
- What happens when agents interact with environments and learn from their own mistakes?
- Can combinational creativity alone drive open-ended learning in agents?
- How can agents learn when silence is better than intervention?
- What role does self-learning play in improving agent reasoning without annotation?
- Can applicability conditions be preserved automatically when agents reflect on trials?
- How do agents automatically generate suitable learning tasks based on current capability?
- Why do current metacognitive training loops fail when agents encounter new domains?
- How do fast and slow timescales enable continual agent adaptation?
- Should we train the evolver or the executor when building self-improving agents?
- Can simulation fidelity limit what agents learn from trained world models?
- How can agents evolve their own skills without human input?
- Can agents learn to use scaffolding structure the way they learn token weights?
- Why do AI agents struggle with novel experiments but excel at routine tasks?
- What stops evolved agent behaviors from generalizing beyond specific tasks?
- Can self-improving agents become truly autonomous without intrinsic metacognition?
- Can language agents be represented as optimizable computational graphs?
- Do dynamic environments enable different kinds of agent-environment coevolution?
- How do agents ground their judgments in evidence instead of pattern matching?
- What distinguishes collective evolution from vertical self-improvement in agent systems?
- How do language agents become optimizable computational graphs automatically?
- How does deterministic feature engineering increase information for computationally bounded agents?
- Is agentic efficiency analogous to convergent evolution in biology?
- How do agents differ in caution versus persistence across low-information scenarios?
- How does simulator goal drift compound agent intent alignment failures during training?
- What makes behavioral cloning produce more persuadable but less aligned agents?
- What training signals would models need to learn reciprocal common-ground construction?
- Why does imitation learning alone plateau without outcome-based refinement?
- Can environmental scaffolding replace internal memory scaling in agent design?
- Can messy multi-agent transcripts become better training data than clean outputs?
- Can episodic memory of UI traces improve open-world agent adaptation?
- How does memory folding enable agents to reconsider strategies mid-task?
- Why do weaker agents need more aggressive context compression than stronger ones?
- How should agents compress episodic interactions into working memory without accumulation?
- Why do agents ignore condensed experience in favor of raw data?
- What causes multi-turn agent failures: weak memory control or missing knowledge?
- How can agents distinguish over-generalized lessons from genuinely useful long-tail knowledge?
- How should embedding model speed constrain agent memory system design?
- Why does storing past judgments in memory make current evaluations worse?
- Can continuum memory systems prevent catastrophic forgetting in neural networks?
- Can episodic memory alone enable learning without parameter updates?
- How do retrieved memories differ from decision-context passages for prediction?
- Why does recency-based recall outperform semantic similarity for episodic memory?
- How can memory shift from a passive datastore to an actively trained component?
- Can neural modules memorize surprising tokens as adaptive long-term memory?
- Can offline recurrent passes replicate sleep-based memory consolidation in AI?
- How does continuous implicit memory formation differ from explicit memory encoding?
- What can agents learn from the brain's complementary learning systems?
- What makes knowledge seeding equivalent to hippocampal replay in the brain?
- How do adaptive memory modules compare to feedback-based working memory for long context?
- Can adaptive memory modules combine long-term filtering with short-term attention benefits?
- How do agents revise their own errors during autonomous architecture discovery?
- Can models learn better from critiquing errors than imitating correct responses?
- How do implicit world models and self-reflection operationalize consequence-based learning?
- Why does self-reflection during training fail to improve model self-correction?
- How do prior errors in context history amplify future mistakes in long tasks?
- How do prior errors in context history amplify future failures over time?
- Can a Reflect mechanism detect and revise failed causal predictions?
- What access constraints allow description-based adaptation but block conventional techniques?
- How does behavioral fine-tuning differ from factual knowledge encoding in models?
- How does pretrained knowledge constrain what adaptation strategies can achieve?
- Can models adapt and combine search strategies beyond their training algorithm?
- Can gradient approximation at equilibrium replace backpropagation through time in practice?
- How does dual-rate learning separate episodic and procedural memory in neural networks?
- Does environment stochasticity force models to generalize better across trajectory variations?
- What non-parametric methods could replace latent factors for inductive learning?
- Can AI models retain knowledge across changing environments without catastrophic forgetting?
- Can zero-weight drift through external memory replace parameter plasticity entirely?
- Can memory-based adaptation and gradient fine-tuning operate on complementary timescales?
- Do long-term memory modules outperform consolidation into fast weights?
- How can a forgetting policy preserve rare knowledge while preventing over-generalization?
- What determines whether accumulated state generalizes spuriously across continual learning domains?
- Why do memory and feedback loops matter more than model size for agent reliability?
- Why does externalized state beat parameter scaling for agent reliability?
- How does structured environment-side state reduce multi-turn agent failure better than transcript replay?
- How does explicit exploratory prompting compare to fine-tuned reinforcement learning for in-context adaptation?
- What limits the capacity of context-based fast adaptation channels?
- Does semantic memory improve AI personalization more than episodic memory?
- Why does semantic memory abstraction outperform raw episodic recall for personalization?
- Can agents revise their beliefs predictably when presented with interventions?
- Why do agents fail to internalize value from informative observations?
- Can agents learn to distinguish helpful from misleading interventions?
- Can environmental rewards directly refine natural language descriptions of actions?
- When should agents stop recursing to optimize success versus cost?
- Why do scalar evaluation scores collapse distinguishable agent behaviors?
- How should trajectory-aware PRMs weight backtracking and planning sentences?
- Can language models function as implicit process reward models through retrospection?
- Why do completion-mode strengths not transfer to agentic settings?
- How do agents learn to report success on actions that actually failed?
- What training objectives could reduce completion bias in autonomous agents?
- How does completion bias in agents differ from other epistemic failure modes?
- How do agents decide when to stop and reflect on failure?
- What hidden signals in agent logs reveal about frontier capability beyond pass-fail outcomes?
- Can stopping rules extracted from past failures improve agent reliability without retraining?
- Why do successful and failed trajectories need different memory processing?
- What distinguishes formation, evolution, and retrieval as separate memory dynamics?
- How do token, parametric, and latent memory forms coexist in single agents?
- How does durable memory quality shape agent performance over time?
- What separates artifact recall from persistent memory commitment in agents?
- When does memory consolidation help agents instead of hurting performance?
- Why is consolidation quality the binding constraint in neural memory systems?
- Why does memory consolidation degrade agent performance below baseline?
- What mechanism transfers explicit memories into parametric model weights?
- Where does skill extraction fail compared to genuine model adaptation?
- How does in-weights adaptation create spurious forgetting in models?
- What makes representation interventions more efficient than weight perturbations for finetuning?
Related concepts in this collection 5
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Does agent memory degrade when continuously consolidated?
Can consolidating agent experiences into summaries actually harm long-term performance? Research on ARC-AGI tasks suggests continuous memory updates may reduce capability below the no-memory baseline.
late-2025 empirical case for why Reflexion's *non-consolidation* of reflections is the load-bearing design choice, not the reflection itself
-
Why do LLM agents ignore condensed experience summaries?
LLM agents faithfully learn from raw experience but systematically disregard condensed summaries of the same experience. This study investigates whether the problem lies in how summaries are made, how models process them, or whether models simply don't need them.
convergent finding: Reflexion's raw-episodic reflections survive the faithfulness asymmetry that ignores abstracted lessons
-
Does revising your own reasoning actually help or hurt?
Self-revision in reasoning models often degrades accuracy, while external critique improves it. Understanding what makes revision helpful or harmful could reshape how we design systems that need to correct themselves.
Reflexion is the working prototype of this principle: environment = external critic, binary reward = unambiguous signal
-
Do models fail worse when their own errors fill the context?
As a model's prior mistakes accumulate in context, does subsequent accuracy degrade predictably? And can scaling or architectural changes prevent this self-contamination effect?
Reflexion works against this: episodic memory provides targeted failure analysis rather than accumulating raw error history that amplifies future errors
-
Does a model improve by arguing with itself?
When models revise their own reasoning in response to self-generated criticism, do they converge on better answers or worse ones? And how does that compare to challenge from other models?
Reflexion is an architectural solution to degeneration-of-thought: by grounding reflection in binary environmental outcomes rather than self-assessment, it avoids the pattern where internal self-revision amplifies confidence in wrong answers
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- CLIN: A Continually Learning Language Agent for Rapid Task Adaptation and Generalization
- AgentFly: Fine-tuning LLM Agents without Fine-tuning LLMs
- Useful Memories Become Faulty When Continuously Updated by LLMs
- Reflexion: Language Agents with Verbal Reinforcement Learning
- Real-Time Procedural Learning From Experience for AI Agents
- Agent Learning via Early Experience
- The AI Hippocampus: How Far are We From Human Memory?
- SkillClaw: Let Skills Evolve Collectively with Agentic Evolver
Original note title
verbal reflection stored as episodic memory lets agents learn from trial and error without parameter updates — the environment is the teacher