SpotEM: Efficient Video Search for Episodic Memory

Santhosh Kumar Ramakrishnan, Ziad Al-Halah, Kristen Grauman

Searching through hours of wearable camera footage to find a specific moment—like where you left your keys—is a "needle-in-a-haystack" problem. Current AI models for this task, known as Episodic Memory (EM), are computationally gluttonous: they exhaustively process every single second of video with heavy-duty neural networks.

In their paper "SpotEM: Efficient Video Search for Episodic Memory," researchers from UT Austin, the University of Utah, and Meta AI introduce a way to make these searches up to 10x more efficient without sacrificing much accuracy.

TL;DR

SpotEM is a framework that allows Episodic Memory models to "preview" long videos using cheap features and selectively process only the most relevant clips. By computing heavy spatio-temporal features for only 10-25% of the video, it maintains up to 97% of the original model's accuracy, enabling feasible search over hours of egocentric footage.

What Problem Does This Paper Address?

Imagine you’re wearing AR glasses all day. If you ask, "Where did I leave my ham?", the system has to scan through perhaps 8 hours of video. Standard EM methods divide this video into fixed-length clips and run expensive feature extractors (like TimeSformer or VideoMAE) on every single one.

The authors point out a staggering statistic: over 99.9% of an EM model's computational cost comes from this dense feature extraction. This makes real-time search on battery-constrained wearable devices or mobile robots impossible. The core challenge is identifying which tiny fraction of the video actually contains the answer to a natural language query without having to "read" the whole video deeply first.

Figure 1. Standard EM methods (see left) divide videos into fixed- length clips and perform costly processing of every clip. The pro- cessed clips are provided to the EM model for query-conditioned search. We propose SpotEM, a clip-selection approach that spots clips relevant to the query cheaply, and selectively processes these clips to serve as inputs to the EM model (see right).

Methods

SpotEM introduces a "preview-and-select" architecture called MemorySpotter. Instead of diving straight into heavy computation, it follows a three-step strategy:

  1. RIO Semantic Indexing: The model first "previews" the entire video using extremely low-cost features extracted from just one frame per clip. Unlike standard ImageNet features that only look at objects, these RIO features capture Rooms (context), Interactions (what the user is doing), and Objects.
  2. Recursive Clip Selection: A cross-modal transformer (the MemorySpotter) looks at the query and the cheap RIO features to identify promising regions. Crucially, it does this recursively. It picks a few clips, extracts their heavy features, and then uses that new information to better pick the next set of clips.
  3. Distillation Losses: Training a selector and a search model together is notoriously unstable—if the selector picks bad clips early on, the search model never learns, creating a negative feedback loop. The authors use distillation, where a "student" SpotEM model learns to mimic the internal representations and predictions of an "expert" model that has seen the full, uncompressed video.
The MemorySpotter Architecture

Datasets

The primary benchmark is Ego4D EM Natural Language Queries (NLQ), which contains over 200 hours of egocentric video with thousands of natural language queries. To test how well the method generalizes, the authors also evaluated it on TACoS, a dataset of long third-person (exocentric) kitchen videos.

Key Insights and Ideas

  • Context is King: The "RIO" features are a major win. Knowing you are in the kitchen (Room) and that you are "putting something down" (Interaction) is a much stronger signal for a "where is the ham?" query than just seeing a generic list of objects.
  • Recursion Beats One-Shot: The paper shows that selecting clips in multiple steps (the authors settled on $N=4$) is significantly better than trying to guess all the relevant clips in one go. Each step allows the model to "zoom in" on promising areas.
  • Breaking the Feedback Loop: The use of feature and prediction distillation was essential. Without it, the joint optimization of the selector and the EM model often failed to converge to a high-performing state.

Key Results

SpotEM was tested across three state-of-the-art EM models (InternVideo, ReLER, and EgoVLP). The results were consistent across the board:

  • Massive Speedup: It achieved 4x to 10x efficiency gains in terms of TFLOPs.
  • High Fidelity: Even when processing only 25% of the clips, SpotEM preserved 95%+ of the original model's accuracy.
  • Superiority over Baselines: It significantly outperformed simpler strategies like uniform sampling (picking every 4th clip) or random sampling.
Accuracy vs. Computational Cost

Limitations and Future Work

While SpotEM is a huge step forward, it has its limits:

  • Base Model Dependency: SpotEM is an augmentation; it can't make a search more accurate than the underlying EM model it's using. If the base model is bad at finding keys, SpotEM will be too.
  • Domain Specificity: The RIO features, while powerful, are trained on egocentric data. When tested on the exocentric TACoS dataset, they were less effective, suggesting a need for domain-specific semantic indices.
  • Extreme Scale: While 20 minutes is "long" for current CV models, real life is much longer. The authors suggest that future work could involve hierarchical triage to handle videos spanning days or weeks.

Summary updated

BibTeX
@inproceedings{ramakrishnan2023spotem,
  author = {Santhosh Kumar Ramakrishnan and Ziad Al-Halah and Kristen Grauman},
  title = {{SpotEM: Efficient Video Search for Episodic Memory}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=SpRJbJ6lDP},
}
Figure