NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning from One Continuous Video Stream

João Carreira, Michael King, Viorica Patraucean, Dilara Gokay, Catalin Ionescu, Yi Yang, Daniel Zoran, Joseph Heyward, Carl Doersch, Yusuf Aytar, Dima Damen, Andrew Zisserman · DOI

Abstract

We introduce a framework for online learning from a single continuous video stream—the way people and animals learn, without mini-batches, data augmentation or shuffling. This poses great challenges given the high correlation between consecutive video frames and there is very little prior work on it. Our framework allows us to do a first deep dive into the topic and includes a collection of streams and tasks composed from two existing video datasets, plus methodology for performance evaluation that considers both adaptation and generalization. We employ pixel-to-pixel modelling as a practical and flexible way to switch between pre-training and single-stream evaluation as well as between arbitrary tasks, without ever requiring changes to models and always using the same pixel loss. Equipped with this framework we obtained large single-stream learning gains from pre-training with a novel family of future prediction tasks, found that momentum hurts, and that the pace of weight updates matters. The combination of these insights leads to matching the performance of IID learning with batch size 1, when using the same architecture and without costly replay buffers.

Introduction: Moving Beyond IID Data

Most modern computer vision models are trained using Independent and Identically Distributed (IID) data. This paradigm involves shuffling thousands of random video clips and feeding them to models in mini-batches to break temporal correlations and stabilize optimization. However, real-world agents—such as robots, infants, or digital assistants—experience a single, continuous stream of information. In this "non-IID" setting, consecutive frames are highly correlated, which can lead to catastrophic forgetting or unstable optimization paths.

Comparison of standard IID sampling versus a continuous stream, and the evaluation framework for in-stream adaptation and out-of-stream generalization.

This research investigates whether models can learn effectively from a single "lifetime" of video, mimicking biological learning processes where data is presented sequentially rather than randomly.

Methodology: Pixel-to-Pixel Modeling

To handle diverse tasks within a single stream, the authors propose a flexible pixel-to-pixel modeling framework. Every task—including next-frame prediction, depth estimation, and semantic segmentation—is mapped to an RGB image output. This allows the use of a unified architecture (tested with UNet and ViT-L backbones) and a consistent L2 loss across all objectives.

Datasets and Evaluation

The study utilizes two primary datasets converted into continuous streams:

  • Ego4D-stream: Over 3,000 hours of egocentric video representing natural daily activities.
  • ScanNet-stream: Approximately 20 hours of indoor navigation video with dense ground truth for segmentation and depth.

Evaluation distinguishes between in-stream adaptation (how well the model specializes to the current environment) and out-of-stream generalization (how well it performs on novel, unseen environments).

Key Insights: Why Standard Optimizers Fail

A critical finding of this work is that standard deep learning "best practices" can be detrimental in a continuous stream. Specifically, momentum—a staple of optimizers like Adam and SGD—hinders performance.

Left: Histogram of cosine similarity between consecutive gradients for IID vs. continuous streams. Right: Segmentation accuracy over training steps.

In IID training, momentum helps smooth out noisy gradients. However, in a continuous stream, gradients are already highly similar because consecutive frames are nearly identical (as shown in the histogram above, where continuous stream gradients have a cosine similarity near 1.0). Momentum causes these correlated gradients to accumulate, leading the model to "accelerate" too aggressively in one direction, which degrades overall performance.

The Importance of Update Pace and Pre-training

The researchers also found that:

  • Update Pace: Updating weights less frequently (e.g., every 16 frames) improves generalization by preventing the model from overfitting to the immediate past.
  • Guided Future Prediction: Pre-training on video using a novel "Guided Future Prediction" task—where the model predicts future frames with some "leaked" patches—significantly outperforms standard ImageNet pre-training. Learning temporal "physics" is more valuable for stream learning than static object recognition.

Results and Conclusion

The proposed "Baby Learning" (BL) setup—utilizing RMSprop (no momentum), infrequent updates, and video pre-training—successfully matched the performance of IID learning with a batch size of 1 on ScanNet segmentation tasks. Furthermore, the BL approach showed significant gains in in-stream adaptation, allowing the model to specialize to specific lighting and layouts in real-time.

While the current models lack long-term memory modules and training with a batch size of 1 remains computationally inefficient on current hardware, this work provides a foundational framework for embodied AI that can learn and adapt "in the wild" as naturally as biological agents.

Summary updated

BibTeX
@misc{carreira2023learning,
  author = {João Carreira and Michael King and Viorica Patraucean and Dilara Gokay and Catalin Ionescu and Yi Yang and Daniel Zoran and Joseph Heyward and Carl Doersch and Yusuf Aytar and Dima Damen and Andrew Zisserman},
  title = {{Learning from One Continuous Video Stream}},
  year = {2023},
  eprint = {2312.00598},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00598},
}
Figure