SYNTHESIS NOTE
Topics›Reasoning by Reflection›this note

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.

Synthesis note · 2026-02-22 · sourced from Reasoning by Reflection

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 190

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.

Does generative AI replace coordination with individual productivity? Does AI assistance enhance or undermine professional skill development? Can AI agents learn to improve performance from experience? What mechanisms cause models to behave deceptively despite alignment training? Can language models develop genuine communicative grounding with humans? How should agent memory systems balance granularity, management, and reuse? How can agents learn and retain useful knowledge across diverse environments? Do language models learn underlying linguistic structure or merely surface patterns? What fundamental limitations prevent embeddings from solving task-relevant retrieval? Why does consolidated memory sometimes hurt continual learning more than no memory? What are the trade-offs between memory capacity and continuous task learning? How bounded is recursive self-improvement in current AI systems? How can parameter sparsity improve interpretability while maintaining model capability? Should reward models emphasize process understanding or only final outcomes? When do multi-agent systems outperform single agents? How does model scale affect fine-tuning and downstream task performance? What training data structures and signals produce robust learning across distributions? How can we distinguish genuine model self-knowledge from behavioral performance? How do different post-training structures affect learning outcomes? Can AI systems autonomously pursue unstated objectives or circumvent design constraints? Does reinforcement learning create new reasoning capabilities or refine existing ones? Does reasoning fine-tuning trade off other critical model abilities? Does prompting inject new knowledge into models or activate existing knowledge? How can persona-based systems overcome their inherent limitations in modeling diversity? Why does self-revision increase model confidence despite degraded accuracy? How does silent agreement emerge and undermine deliberation in multi-agent systems? How can language models effectively manage long-context memory without quality degradation? What determines when personalization helps versus harms model behavior? How should conversational agents balance proactive goal-pursuit with user autonomy? How does transparency of agent reasoning affect effective oversight? How do diffusion language models compare to autoregressive architectures? How does scaling test-time compute compare to increasing model size? What determines whether visible reasoning traces improve task performance? How do different reward signals affect model reasoning and calibration differently? What conversation mechanics enable genuine human-AI communicative participation? Why do human-AI teams underperform compared to their individual components? Why do autonomous agents fail and how well can they detect failures? What reasoning limitations and biases do language models systematically exhibit? How do pretraining data composition and task diversity shape reasoning? Does architectural recurrence enable computational capabilities that fixed-depth models cannot achieve? What prevents or enables error accumulation in self-training systems? How do transformer circuits and attention mechanisms enable or limit reasoning? What causes foundation models to develop task heuristics instead of understanding? Does evolutionary optimization at test time improve model performance effectively? How should context management strategies balance efficiency with agent reliability? When and why does aggregating multiple reasoning samples improve performance? How does model awareness of deployment context affect strategic behavior? Should agent evaluation measure execution quality beyond task success? Why do language models systematically fail at causal reasoning? Can harness optimization rival model scaling in effectiveness? When should retrieval be triggered to augment language model reasoning? How can model evaluations remain robust against gaming and evaluator drift? How do standardized artifacts improve coordination in multi-agent systems? How does offloading cognition to AI assistance affect learning retention? When does governance become the bottleneck for agentic AI? Do AI explanations represent actual model reasoning or constructed post-hoc narratives?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
20 direct connections · 197 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

verbal reflection stored as episodic memory lets agents learn from trial and error without parameter updates — the environment is the teacher