mlsanityData to 7 Oct 2026

MetaReflection: Learning Instructions for Language Agents using Past Reflections

arXiv 2405.13009 ↗First posted 13 May 2024cs.CL cs.AIcited by 19

On the map: LLM agents and tool use → Reinforcement learning for LLM agents

Abstract (arXiv)

The popularity of Large Language Models (LLMs) have unleashed a new age ofLanguage Agents for solving a diverse range of tasks. While contemporary frontier LLMs are capable enough to power reasonably good Language agents, the closed-API model makes it hard to improve in cases they perform sub-optimally. To address this, recent works have explored ways to improve their performance using techniques like self-reflection and prompt optimization. Unfortunately, techniques like self-reflection can be used only in an online setup, while contemporary prompt optimization techniques are designed and tested to work on simple tasks. To this end, we introduce MetaReflection, a novel offline reinforcement learning technique that enhances the performance of Language Agents by augmenting a semantic memory based on experiential learnings from past trials. We demonstrate the efficacy of MetaReflection by evaluating across multiple domains, including complex logical reasoning, biomedical semantic similarity, open world question answering, and vulnerability threat detection, in Infrastructure-as-Code, spanning different agent designs. MetaReflection boosts Language agents' performance by 4% to 16.82% over the raw GPT-4 baseline and performs on par with existing state-of-the-art prompt optimization techniques while requiring fewer LLM calls.

Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 45 references that are in the map. First posted on arXiv 13 May 2024.

Builds on

24 of 45 references.

References · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  7. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  8. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  9. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  10. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  11. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  12. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
12 more
  1. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  2. 2023Language Models can Solve Computer Taskscited by 371
  3. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  4. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
  5. 2023Take a Step Back: Evoking Reasoning via Abstraction in Large Language Modelscited by 157
  6. 2023Large Language Models can Learn Rulescited by 66
  7. 2023Self-Polish: Enhance Reasoning in Large Language Models via Problem Refinementcited by 43
  8. 2023Auto-Instruct: Automatic Instruction Generation and Ranking for Black-Box Language Modelscited by 21
  9. 2023Semantic HELM: A Human-Readable Memory for Reinforcement Learningcited by 17
  10. 2023Building Your Own Product Copilot: Challenges, Opportunities, and Needscited by 17
  11. 2020The act of remembering: a study in partially observable reinforcement learningcited by 11
  12. 2023TSTR: Target Similarity Tuning Meets the Real Worldcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 9.

19 papers.

Sort:

By area:

  1. 2025A Survey on the Optimization of Large Language Model-based Agentscited by 45
  2. 2025Look Before You Leap: A GUI-Critic-R1 Model for Pre-Operative Error Diagnosis in GUI Automationcited by 27
  3. 2025Training LLM-Based Agents with Synthetic Self-Reflected Trajectories and Partial Maskingcited by 16
  4. 2025SAMULE: Self-Learning Agents Enhanced by Multi-level Reflectioncited by 15
  5. 2024Honesty to Subterfuge: In-Context Reinforcement Learning Can Make Honest Models Reward Hackcited by 8
  6. 2025TableTalk: Scaffolding Spreadsheet Development with a Language Agentcited by 5
  7. 2024STACKFEED: Structured Textual Actor-Critic Knowledge Base Editing with FeedBackcited by 4
  8. 2025Improving Language Agents through BREW: Bootstrapping expeRientially-learned Environmental knoWledgecited by 3
  9. 2026From Experience to Skill: Multi-Agent Generative Engine Optimization via Reusable Strategy Learningcited by 3
  10. 2026Anticipate and Learn: Unleashing Idle-Time Compute in Proactive Agentscited by 3
  11. 2026FinEvolveBench: A Benchmark for Self-Evolving Agents on Low-Repetition Tasks with Implicit Rewardscited by 3
  12. 2025Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimizationcited by 2
7 more
  1. 2026Meta-TTL: Meta-Learning Self-Improvement Policies for Language Agentscited by 2
  2. 2026STRIDE: A Self-Reflective Agent Framework for Reliable Automatic Equation Discoverycited by 2
  3. 2026From Cognitive Architectures to Language Agents: A Mechanism-Level Review of Lineage, Convergence, and Migration Gapscited by 1
  4. 2024Context-Masked Meta-Prompting for Privacy-Preserving LLM Adaptation in Financecited by 0
  5. 2026Beyond Fault Localization: A Trajectory-Level Study of LLM Agents for Microservice Root Cause Analysiscited by 0
  6. 2026Self-Evolving Multimedia Verification through Memory Consolidation of Contestation Experiencescited by 0
  7. 2026Do Self-Evolving Skills Generalize to Held-Out Tasks?cited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026MAGE: Meta-Reinforcement Learning for Language Agents toward Strategic Exploration and Exploitation
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learning
  3. 2025Meta-Policy Reflexion: Reusable Reflective Memory and Rule Admissibility for Resource-Efficient LLM Agent
  4. 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization
  5. 2026LoongReflect: Boosting Long-Horizon Reflection in Search Agents via Global Perspective Distillation
  6. 2025Meta-RL Induces Exploration in Language Agents
  7. 2025Improving Retrospective Language Agents via Joint Policy Gradient Optimization
  8. 2026MetaEvo: A Meta-Optimization Framework for Experience-Driven Agent Evolution