Episodic Memory Question Answering

Samyak Datta, Sameer Dharur, Vincent Cartillier, Ruta Desai, Mukul Khanna, Dhruv Batra, Devi ParikhCVPR 2022

TL;DR

This paper introduces Episodic Memory Question Answering (EMQA), a new task where an AI agent passively observes a tour of an environment and must later answer questions about the location of objects seen. The authors propose a model that builds a persistent, top-down semantic memory of the scene, outperforming standard baselines and demonstrating robustness to real-world sensor noise.

What Problem Does This Paper Address?

Imagine wearing augmented reality (AR) glasses while walking through your home. Later, you ask, "Where did I last see my keys?" For an AI assistant to answer, it needs to have "watched" your tour, organized that visual information into a searchable memory, and understood both the spatial and temporal context of your question.

Existing research in Embodied Question Answering (EQA) typically involves agents that actively navigate a scene to find an answer starting from a "clean slate" for every question. However, real-world AR assistants are passive observers—they don't choose where you walk. Furthermore, they need a persistent memory that lasts across multiple questions and the ability to provide precise localization (pointing to a spot on a map) rather than just a text label like "kitchen."

Methods

The authors propose a modular framework to tackle EMQA:

  1. Scene Memory Representation: Instead of storing a massive buffer of video frames, the model constructs an allocentric, top-down semantic feature map. It projects egocentric (first-person) visual features from a RedNet backbone onto a 2D floorplan using camera pose and depth data.
  2. Spatiotemporal Memory: To handle questions about when something was seen (e.g., "first" vs. "last"), they extend the memory by stacking binary "observation masks" for different segments of the tour. This allows the model to know not just what is at a location, but at what point in time it was observed.
  3. Question Answering (LingUNet): They use a LingUNet architecture—an encoder-decoder network with language-conditioned skip connections. It takes the question embedding (from an LSTM) and the episodic memory map to produce a "heatmap" of predicted answer locations.

Datasets

The researchers introduced the EMQA Dataset, built using the Habitat simulator and Matterport3D (MP3D) scans of 90 indoor environments.

  • Tours: Multi-room trajectories optimized for coverage, averaging 2,500 steps.
  • Questions: Templated questions covering 12 object categories (e.g., chair, cushion, sink).
  • Categories: They distinguish between spatial questions ("Where did you see the X?") and spatio-temporal questions ("Where did you first/last see the X?").
  • Training/Eval: They used "short" 20-step segments for efficient training and evaluated on "full" multi-room tours to test generalization.

Key Insights and Ideas

  • Top-Down is Top-Tier: Storing memory as a geometrically consistent 2D map is far more effective for localization than using 1D feature buffers (like GRUs or LSTMs). It preserves the spatial relationships between objects that are lost in compressed vectors.
  • Temporal Stacking: Simply adding a temporal dimension to the spatial map (the "when" component) provided a 24% relative improvement in answering spatio-temporal questions.
  • Sim2Real Resilience: The model isn't just a "lab success." By explicitly baking geometric projections into the architecture, it handles camera jitter and noisy pose data much better than "black-box" neural baselines that try to learn these transformations from scratch.

Key Results

  • Superior Performance: The proposed model outperformed the strongest baseline (SMNetDecoder) by 8.2% in IoU (Intersection over Union) and 42% in recall.
  • Beating Language Bias: It outperformed language-only baselines by ~150%, proving the model actually uses visual memory rather than just guessing based on common object locations (e.g., "sinks are usually in corners").
  • Robustness: When tested with noisy pose data (simulating real-world robot drift), the model's performance dropped significantly less (29%) compared to the best baseline (36%).
  • Zero-Shot Transfer: The model showed promising qualitative results when applied directly to real-world RGB-D video from the TUM SLAM benchmark without any fine-tuning.

Limitations and Future Work

The primary limitation is the static map assumption. The current model assumes objects like furniture stay put. If you move your keys after the agent sees them, the memory becomes stale.

The authors suggest that future work should involve dynamic memory updates, where the agent re-samples or updates specific parts of the map at different frequencies to account for a changing environment. Additionally, moving beyond templated questions to natural language queries remains an open challenge for the field.

Summary updated

BibTeX
@inproceedings{datta2022episodic,
  author = {Samyak Datta and Sameer Dharur and Vincent Cartillier and Ruta Desai and Mukul Khanna and Dhruv Batra and Devi Parikh},
  title = {{Episodic Memory Question Answering}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=U8aLjm30nZS},
}
Figure