Episodic Memory Verbalization Using Hierarchical Representations of Life-Long Robot Experience

Leonard Bärmann, Chad DeChant, Joana Plewnia, Fabian Peller-Konrad, Daniel Bauer, Tamim Asfour, Alex Waibel

TL;DR

The paper introduces H-EMV (Hierarchical Episodic Memory Verbalization), a system that organizes a robot's lifelong multimodal experiences into a structured, tree-like memory hierarchy. By leveraging a Large Language Model (LLM) as an interactive agent to dynamically search and expand this tree, the system can answer user queries about past events spanning months of data while reducing computational token costs by up to two orders of magnitude.

What Problem Does This Paper Address?

Imagine asking a household robot, "Where did you last see my red cup?" or "What did you do yesterday afternoon?" To answer, the robot needs Episodic Memory Verbalization (EMV)—the ability to summarize and answer questions about its past actions, observations, and interactions.

While modern LLMs boast massive context windows (up to millions of tokens), they suffer from two major flaws when processing lifelong data streams:

  1. Quadratic Scaling: The computational cost of transformers scales quadratically with context length, making brute-force processing of days or months of video and sensor logs prohibitively expensive.
  2. "Lost in the Middle": LLMs notoriously struggle to retrieve specific information when buried inside massive, flat context windows.

Previous EMV frameworks were limited to short, minutes-long episodes or relied on rigid, hand-crafted rules. This paper tackles the challenge of scaling EMV to truly lifelong robot experiences without exploding token budgets.

Methods

The authors propose H-EMV, a framework consisting of two main phases: memory construction and interactive memory access.

1. Episodic Memory Construction

As the robot experiences the world, H-EMV continuously builds a hierarchical history tree that abstracts raw data into natural language concepts across several levels:

The hierarchical structure of the episodic memory tree, from raw sensor data to high-level text summaries.
  • L0 – Raw Experiences: Leaf nodes storing raw sensor data (RGB-D images, audio, proprioception, current actions/goals).
  • L1 – Scene Graphs: Objects and their spatial relations (e.g., cup on top of table).
  • L2 – Events: Grouped and summarized segments based on changes in the scene graph or actions.
  • L3 – Goals: High-level groupings based on the robot's active task goals.
  • L4+ – Higher-Level Summaries: An LLM recursively groups and summarizes lower-level nodes over longer time horizons (days, weeks) to create a single root node.

2. Episodic Memory Access

Instead of feeding the entire history into an LLM, H-EMV treats the LLM as an interactive agent equipped with a Python-console-like API.

An example of the LLM agent interactively expanding and searching the history tree to answer a specific user query.

When a user asks a question, all nodes start in a collapsed state. The LLM agent uses semantic search and time-based filtering to selectively expand() relevant branches and collapse() irrelevant ones. If it reaches a leaf node and needs visual confirmation, it can invoke a Vision-Language Model (VLM) tool before finally calling the answer() function.

Datasets

The framework was evaluated across three distinct domains:

  • TEACh: A simulated dataset of household robot episodes. The authors combined episodes to generate long histories spanning up to 100 episodes (nearly two simulated months).
  • Ego4D: Real-world egocentric videos from human wearers, using long recordings (up to 6.5 hours) to test human activity summarization.
  • ARMAR-7: Real-world recordings from the authors' humanoid robot, totaling 3.3 hours of household tasks collected over two months.

Key Insights and Ideas

  • The Power of Tree Contraction: By keeping the tree collapsed by default, the LLM agent only "pays" token costs for the specific paths it explores. This decouples history length from prompt size.
  • Time-Sensitivity Matters: Unlike standard video-QA methods that use relative timestamps (e.g., "at second 42"), H-EMV integrates real-world calendar dates and times, which is essential for actual human-robot interaction.
  • LLMs as Search Engines: Repurposing an LLM to generate its own search queries and navigate a data structure proves far more efficient than relying on flat retrieval-augmented generation (RAG) methods like ReMEmbR, which often struggle with high-level temporal summaries.

Key Results

  • Massive Token Savings: In the full multimodal TEACh experiments, H-EMV outperformed a flat one-pass baseline on long histories while using a token budget two orders of magnitude smaller.
Performance vs. token cost. H-EMV maintains high accuracy at a fraction of the token cost compared to flat baselines.
  • Real-Robot Success: On the real humanoid robot ARMAR-7, H-EMV achieved comparable or better accuracy than the flat baseline while slashing token costs to 1/21 of the baseline's budget.
  • Ablation Impact: Removing the hierarchical summaries (the H-EMV L3 variant) caused token costs to spike and performance to drop on long histories because the agent was forced to expand too many low-level nodes.

Limitations and Future Work

  • Error Propagation: Because H-EMV is a modular pipeline, errors in upstream components (like a misclassified object in YOLO-World or a bad action segment) propagate up the tree, corrupting the higher-level summaries.
  • No Search Guarantees: As an agentic system, the LLM can occasionally get stuck in repetitive loops or explore the wrong branch, leading to retrieval failures.
  • Future Directions: The authors plan to integrate richer modalities (like joint-angle proprioception rendered in simulation) and introduce personalization to tailor the verbalizations to specific users.

Summary updated

BibTeX
@inproceedings{barmann2025episodic,
  author = {Leonard Bärmann and Chad DeChant and Joana Plewnia and Fabian Peller-Konrad and Daniel Bauer and Tamim Asfour and Alex Waibel},
  title = {{Episodic Memory Verbalization Using Hierarchical Representations of Life-Long Robot Experience}},
  booktitle = {Humanoids},
  year = {2025},
  doi = {10.1109/humanoids65713.2025.11203101},
}
Figure