NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Memory-Driven Self-Improvement for Decision Making with Large Language Models

Xue Yan, Zijing Ou, Mengyue Yang, Yan Song, Haifeng Zhang, Yingzhen Li, Jun Wang · OpenReview

Abstract

Large language models (LLMs) have emerged as effective action policies for sequential decision-making (SDM) tasks due to their extensive prior knowledge. However, this broad yet general knowledge is often insufficient for specific decision-making tasks with limited task-related data, making it challenging to efficiently adapt LLMs to specific SDM tasks. To address this challenge, we propose a memory-driven self-improvement framework that combines LLM general prior knowledge with a compact memory of domain-specific experiences. Memory retains past interactions and associated Q-values, thereby capturing decision-relevant knowledge that facilitates accurate value estimation and informs the LLM prior refinement. The refined LLM prior, in turn, generates higher-reward trajectories that further enrich memory, forming a natural self-improvement framework where memory and LLM prior mutually reinforce each other. Experiments show that our memory-driven approach significantly outperforms both traditional RL and LLM-based baselines, e.g., improving performance by over 40% on in-distribution tasks and over 75% when generalized to unseen tasks in ALFWorld.

Introduction

While Large Language Models (LLMs) are impressive zero-shot reasoners, they often struggle in specialized, complex environments such as robotics or autonomous driving. Their general knowledge, while broad, lacks the specific "know-how" required for tasks with scarce data and sparse rewards. Existing approaches like prompt engineering, fine-tuning, or reinforcement learning (RL) with fixed priors face significant hurdles, including dependence on human-crafted prompts, high data requirements, or limitations imposed by the LLM's initial knowledge. This creates a "chicken-and-egg" problem: high-quality data is needed for fine-tuning, but a high-quality policy is required to generate that data.

Proposed Framework

To break this cycle, we introduce a Memory-Driven Self-Improvement framework. This system operates through two mutually reinforcing roles that bridge the gap between general LLM priors and domain-specific expertise.

Overview of the memory-driven self-improvement framework, illustrating the two roles and the self-improvement loop.

Role 1: Memory-Driven Value (Q) Estimation (Mem-Q)

The system maintains a "memory table" storing past interactions (states and actions) and their associated estimated returns (Q-values). For any new state, the agent uses an embedding model to retrieve similar past experiences and performs non-parametric Q-value estimation. This allows the agent to immediately "remember" and leverage successful rare events without requiring extensive gradient updates.

Role 2: LLM Prior Refinement (Mem-EM)

Using an Expectation-Maximization (EM) formulation, the framework periodically refines the LLM prior. In the E-step, high-quality actions are identified from memory. In the M-step, Low-Rank Adaptation (LoRA) updates the LLM’s weights to align its natural inclination with these successful actions. This creates a closed-loop system where the refined LLM generates better trajectories, which in turn enrich the memory table.

Experimental Evaluation

The framework was evaluated on two primary textual decision-making benchmarks:

  • Overcooked: A text-based coordination game requiring agents to complete recipes (e.g., Tomato Salad) through complex sequences of actions.
  • ALFWorld: A household simulator where agents must navigate rooms and interact with objects to complete specific tasks, testing the model's ability to generalize to unseen environments.

Results and Discussion

Our experiments demonstrate that the memory-driven approach significantly enhances both sample efficiency and final performance compared to traditional RL and static LLM baselines.

Reward curves across Overcooked and ALFWorld benchmarks comparing the proposed Mem-EM and Mem-Q methods against DQN and LLM baselines.

Key Insights

  • Generalization Power: The most significant result was a 75% improvement on unseen tasks in ALFWorld. This indicates that refining the LLM prior helps the model learn underlying domain logic rather than just memorizing specific paths.
  • Sample Efficiency: The Mem-Q approach converged much faster than traditional Deep Q-Networks (DQN). By using LLM-based embeddings, the agent starts with a much richer understanding of state similarity.
  • Search Space Reduction: The LLM acts as an effective filter, suggesting a small set of sensible action candidates, while the memory-driven Q-estimator selects the optimal choice among them.
  • Memory Robustness: Ablation studies revealed that even small memory sizes (e.g., 100 entries) using simple replacement strategies like Least-Recently-Used (LRU) can outperform standard RL methods.

Conclusion and Future Work

This framework successfully combines the broad reasoning of LLMs with the precise, experience-based learning of memory tables. While currently focused on discrete, text-based action spaces, future work will explore extending this approach to free-form or infinite action spaces and incorporating Vision-Language Models (VLMs) to handle multi-modal environments. Despite the computational overhead of periodic fine-tuning, the gains in sample efficiency and generalization represent a significant step forward for LLM-based agents in sequential decision-making.

Summary updated

BibTeX
@misc{yan2025memory,
  author = {Xue Yan and Zijing Ou and Mengyue Yang and Yan Song and Haifeng Zhang and Yingzhen Li and Jun Wang},
  title = {{Memory-Driven Self-Improvement for Decision Making with Large Language Models}},
  year = {2025},
  eprint = {2509.26340},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.26340},
}
Figure