STREAMER: Streaming Representation Learning and Event Segmentation in a Hierarchical Manner

Ramy Mounir, Sujal Vijayaraghavan, Sudeep Sarkar

In the world of computer vision, most models are like students cramming for an exam: they look at the same data over and over in "batches" until they memorize patterns. But human perception doesn't work that way. We experience life as a continuous, one-way stream of information, and we naturally organize that stream into a hierarchy—from the flick of a wrist to the act of "making coffee."

At NeurIPS 2023, researchers introduced STREAMER (Streaming Representation Learning and Event Segmentation in a Hierarchical Manner), a self-supervised model that mimics this biological process. It learns to segment and represent video events in real-time, using a single pass over the data without ever needing human-provided labels.

TL;DR

STREAMER is a biologically-inspired, self-evolving architecture that segments streaming video into a hierarchy of events by detecting spikes in prediction error. By processing data in a single pass and using cross-layer communication, it learns semantically rich representations that outperform state-of-the-art unsupervised methods in both event segmentation and video retrieval.

Hierarchical event segmentation output by STREAMER compared to ground truth

What Problem Does This Paper Address?

Most existing event segmentation models suffer from three major limitations:

  1. The "Batch" Requirement: They usually require multiple passes over a dataset (offline learning), which isn't feasible for real-time robotics or continuous monitoring.
  2. Label Dependency: They often rely on expensive, manually annotated "ground truth" boundaries.
  3. Flat Structures: They struggle to distinguish between a feature hierarchy (like pixels $\rightarrow$ edges $\rightarrow$ shapes) and an event hierarchy (like chopping $\rightarrow$ cooking $\rightarrow$ preparing a meal).

The authors tackle the challenge of "streaming representation learning"—how can a model semantically group inputs into chunks at various levels of abstraction while seeing each frame only once?

Methods

STREAMER’s architecture is built on the foundation of Event Segmentation Theory (EST), which suggests that humans perceive event boundaries when their internal "prediction" of what happens next fails.

  • Predictive Learning: Each layer in the model tries to predict the next state. When the prediction error spikes (a "transient peak"), the model assumes an event has ended and a new one has begun.
  • Hierarchical Evolution: The model is "structurally self-evolving." It starts with one layer; once that layer has processed enough data, a new, higher-level layer is added. The encoded "bottleneck" representation of an event in Layer $L$ becomes the input for Layer $L+1$.
  • Cross-Layer Communication: Unlike standard feed-forward nets, STREAMER uses a communication module.
  • Top-down inference: Higher layers provide long-range context to help lower layers make better short-term predictions.
  • Bottom-up optimization: Higher layers are "grounded" by being forced to predict the inputs of the layers below them.
STREAMER architecture showing top-down and bottom-up cross-layer communication
  • Biologically Plausible Constraints: The model follows four strict rules: it must be continuous/online, make high-order predictions, be self-supervised, and use local learning rules rather than a global loss function.

Datasets

The researchers evaluated STREAMER on two massive egocentric (first-person) video datasets:

  • EPIC-KITCHENS 100: 100 hours of kitchen activities with 20,000 unique narrations. This served as the primary benchmark for temporal segmentation.
  • Ego4D: A colossal collection of 3,670 hours of daily-life activity, used to demonstrate the model's ability to scale.

Key Insights and Ideas

  • Error as a Signal: Instead of seeing prediction error as a failure, STREAMER uses it as the primary mechanism for organization. A spike in error isn't just a "miss"; it's a signal that the "scene" has changed.
  • Redundancy Pooling: The hierarchy acts as a filter. Fine-grained details (like the exact movement of a knife) are redundant for a high-level model trying to understand the concept of "slicing." STREAMER summarizes these into a single representation for the next level up.
  • Contextualized Inference: The authors found that using a Transformer-based predictor to share context across layers was significantly more effective than simple averaging. This allows the model to dynamically determine how much "past" it needs to look at to predict the "future."

Key Results

Despite being trained from scratch with a simple 4-layer CNN (while competitors often use heavy, pre-trained backbones like ResNet or MTRN), STREAMER set new benchmarks:

  • Superior Segmentation: On EPIC-KITCHENS, STREAMER achieved a Mean over Frames (MoF) of 0.759, significantly higher than the previous state-of-the-art unsupervised method, ABD (0.610).
  • Semantic Retrieval: To test if the model actually "understood" the events, the authors used the learned representations to retrieve similar video snippets. When compared against a ranking generated by GPT-3.5, STREAMER’s representations were more semantically aligned than those of supervised models.
  • Robustness: Ablation studies showed the model is robust to different temporal encoders (GRU vs. LSTM vs. Transformer), though Transformers performed best for cross-layer communication.

Limitations and Future Work

While powerful, STREAMER has its hurdles:

  • Data Hunger: Modeling complex, high-level causal structures requires vast amounts of video data.
  • Computational Scaling: As more layers are added to the hierarchy to capture more abstract concepts, training time increases.
  • Modality: Currently, the model only looks at video. The authors suggest that incorporating audio or text (multi-modal learning) is a promising next step to further ground the representations.

STREAMER represents a significant step toward AI that perceives the world more like we do: not as a series of static images, but as a meaningful, hierarchical story unfolding in real-time.

Summary updated

BibTeX
@inproceedings{mounir2023streamer,
  author = {Ramy Mounir and Sujal Vijayaraghavan and Sudeep Sarkar},
  title = {{STREAMER: Streaming Representation Learning and Event Segmentation in a Hierarchical Manner}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=EfTMRQn00d},
}
Figure