Memory Storyboard: Leveraging Temporal Segmentation for Streaming Self-Supervised Learning from Egocentric Videos

Yanlai Yang, Mengye RenarXiv 2025 · DOI

Introduction

Traditional self-supervised learning (SSL) typically relies on curated, static datasets like ImageNet, where data is shuffled and presented over multiple epochs. This paradigm differs significantly from natural human learning, which occurs through a continuous, uncurated stream of visual information. Directly applying standard SSL to such streams faces two primary challenges: catastrophic forgetting, where the model loses previously acquired knowledge while adapting to new data, and temporal correlation, where the high similarity between consecutive frames violates the independent and identically distributed (IID) assumption of common optimization algorithms.

The Memory Storyboard framework addresses these issues by mimicking human "event segmentation," allowing for efficient visual representation learning from long-form, real-world egocentric video in a single pass.

Methodology

The core innovation of this approach is the Memory Storyboard framework, which segments visual streams into structured events to facilitate learning.

The Memory Storyboard framework overview, illustrating the transition from raw video stream to a segmented storyboard for self-supervised learning.

Two-Tier Memory Hierarchy

The system utilizes a dual-memory structure to manage data flow:

  1. Short-Term Memory ($M_{short}$): A small FIFO buffer that captures the most recent frames. This buffer is the site of temporal segmentation, where frames are grouped into semantically consistent "storyboard" segments.
  2. Long-Term Memory ($M_{long}$): A larger buffer maintained via reservoir sampling. It stores a representative summary of the entire video history to support experience replay and prevent forgetting.

Temporal Segmentation and Label Merging

Frames in $M_{short}$ are grouped into segments by maximizing within-class similarity, effectively creating pseudo-labels. To handle recurring environments or activities, the system performs label merging: new segments are compared against existing entries in $M_{long}$. If a new segment is sufficiently similar to a past one, it inherits the previous label, ensuring consistency across time.

Detailed view of the two-tier memory architecture, showing the interaction between short-term segmentation, long-term reservoir sampling, and label merging.

Learning Objective

Training employs a dual contrastive loss. In addition to standard SSL losses (e.g., SimCLR), the framework introduces a Temporal Contrastive Loss ($L_{TCL}$). This loss treats the discovered temporal segments as distinct classes, forcing the model to learn representations that differentiate between various "events" in the storyboard.

Experimental Setup

The framework was evaluated on two naturalistic egocentric video datasets:

  • SAYCam: 221 hours of head-mounted camera footage from a child (ages 6-32 months).
  • KrishnaCam: 70 hours of footage from a graduate student recorded over nine months. These datasets provide the messy, highly correlated, and uncurated visual data characteristic of real-world experience.

Results and Discussion

Memory Storyboard consistently outperformed state-of-the-art unsupervised continual learning methods, such as Osiris and TC, across multiple downstream tasks.

  • Classification and Detection: On SAYCam, the method achieved significantly higher accuracy on mini-ImageNet and iNaturalist readouts. Furthermore, when fine-tuned on the OAK (Objects Around Krishna) dataset, it demonstrated superior transfer learning for object detection.
  • Bridging the IID Gap: The approach significantly narrowed the performance gap between streaming learning and the idealized (but unrealistic) IID setting where the model has access to the entire shuffled dataset.
  • Qualitative Performance: Qualitative analysis confirms that the temporal segmentation module successfully identifies semantically meaningful boundaries, such as transitions between distinct activities like reading, typing, or playing.

Limitations

Current limitations include the use of a greedy segmentation approach and the reliance on fixed hyperparameters for segment length. Future work may explore more sophisticated, adaptive segmentation strategies and methods to further reduce memory buffer requirements.

Conclusion

By leveraging the temporal structure of video as a supervisory signal, Memory Storyboard provides a robust framework for streaming SSL. The separation of abstraction (short-term) and retention (long-term) allows the model to learn effective representations from continuous, non-stationary data, moving closer to the efficiency of biological visual learning.

Summary updated

BibTeX
@misc{yang2025memory,
  author = {Yanlai Yang and Mengye Ren},
  title = {{Memory Storyboard: Leveraging Temporal Segmentation for Streaming Self-Supervised Learning from Egocentric Videos}},
  year = {2025},
  eprint = {2501.12254},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.12254},
}
Figure