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

Agentic Episodic Control

Xidong Yang, Wenhao Li, Junjie Sheng, Chuyun Shen, Yun Hua, Xiangfeng Wang · OpenReview

TL;DR

This paper introduces Agentic Episodic Control (AEC), a novel framework that combines Reinforcement Learning (RL) with Large Language Models (LLMs) to significantly improve data efficiency and generalization in AI agents. AEC leverages LLMs for richer state representations and strategic memory retrieval, enabling agents to learn faster and adapt better to new tasks and environments.

What Problem Does This Paper Address?

Reinforcement Learning (RL) has achieved impressive feats, but its real-world applicability is hampered by two major challenges: poor data efficiency (requiring vast amounts of experience to learn) and weak generalization (struggling with novel situations). While prior work has explored using external memory modules to store past experiences, these methods often suffer from a "representation bottleneck" (shallow encoders creating limited embeddings) and a "retrieval dilemma" (indiscriminately accessing memory, even when unhelpful). Humans, on the other hand, learn efficiently and generalize well by using sophisticated memory systems that abstract information and strategically recall relevant experiences. This paper aims to bridge this gap by incorporating LLM-driven cognitive mechanisms into RL agents.

Methods

AEC introduces a novel architecture with three key components:

  • LLM-based Semantic Augmenter: This module uses an LLM to transform raw, textual observations into richer, language-grounded "semantic abstractions." This goes beyond simple feature extraction by incorporating commonsense knowledge and inferring latent task-relevant information, creating more meaningful representations for memory.
  • World-Graph Working Memory: This component builds a structured, dynamic graph representing the agent's understanding of the environment's entities and their relationships. This helps in long-horizon reasoning and understanding environmental dynamics.
  • Critical-State Recognizer: This LLM-powered module dynamically decides when to access the episodic memory. Instead of always retrieving past experiences, it selectively triggers recall only when it's likely to significantly impact future decisions, thus addressing the retrieval dilemma.

These components work together to transform memory usage from passive similarity matching to strategic, decision-aware recall.

Datasets

The experiments were conducted on the BabyAI-Text benchmark. This benchmark provides a text-based environment for grounded language understanding, semantic decision-making, and generalization in RL. The evaluation used five specific BabyAI-Text environments: GoToLocal, PickupDist, PickupLocal, UnlockLocal, and FindObj, which probe different capabilities like spatial grounding, object disambiguation, multi-step reasoning, and exploration. The evaluation also included settings for testing generalization to unseen instructions and object types.

Key Insights and Ideas

  • LLMs as Cognitive Oracles: The paper frames LLMs as powerful "oracles" that can provide the missing cognitive functions (semantic abstraction and strategic retrieval) that traditional RL agents lack.
  • Beyond Passive Memory: The core idea is to move from simply storing and retrieving past experiences to intelligently deciding when and what to recall, making memory a more active and strategic component.
  • Semantic Abstraction is Key: By using LLMs to create richer, language-aligned state representations, AEC overcomes the limitations of shallow encoders, leading to better memory indexing and retrieval.
  • Selective Recall is Crucial: Indiscriminate memory access can be detrimental. The critical-state recognizer's ability to filter when to use memory significantly boosts performance, especially in complex tasks.
  • Cross-Task and Cross-Environment Transfer: AEC demonstrates impressive generalization, suggesting that its LLM-enhanced memory can effectively transfer knowledge to new tasks and even different environments.

Key Results

  • Data Efficiency: AEC achieved 2-6x higher data efficiency compared to baselines across various BabyAI-Text tasks. For instance, it reached 80% success on GoToLocal in 25K frames, while a strong baseline (GLAM) took 50K frames.
  • Task Solving: AEC was the only method to solve complex tasks like UnlockLocal with over 90% success.
  • Generalization: AEC showed strong performance even when encountering unseen objects (New Object setting), maintaining high success rates where other methods degraded significantly.
  • Memory Retrieval Accuracy: LLM-based representations achieved over 95% KNN retrieval accuracy at k=1, significantly outperforming traditional RL encoder-based representations in aligning embedding similarity with decision relevance.
  • Ablation Studies: Removing either the LLM-based semantic augmenter or the World-Graph working memory consistently degraded performance, highlighting their complementary roles.

Limitations and Future Work

  • Inference Latency: AEC incurs higher inference latency due to LLM queries and structured memory updates. Future work will focus on mitigating these costs through techniques like knowledge distillation or caching.
  • LLM Backbone Robustness: While AEC performs well with different LLM backbones, larger models (like Qwen2.5-32B-Instruct) generally yield better results, suggesting further benefits from richer LLM knowledge.
  • Compositional Generalization: The paper suggests future work on compositional generalization, exploring how AEC's memory can be reused across environments to build more adaptable agents.

Summary updated

BibTeX
@misc{yang2025agentic,
  author = {Xidong Yang and Wenhao Li and Junjie Sheng and Chuyun Shen and Yun Hua and Xiangfeng Wang},
  title = {{Agentic Episodic Control}},
  year = {2025},
  eprint = {2506.01442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01442},
}
Figure