Learning from Streaming Video with Orthogonal Gradients
Tengda Han, Dilara Gokay, Joseph Heyward, Chuhan Zhang, Daniel Zoran, Viorica Pătrăucean, João Carreira, Dima Damen, Andrew Zisserman
TL;DR
This paper tackles learning from streaming video, where consecutive batches exhibit high gradient correlation and violate IID assumptions. It introduces orthogonal gradients, computed as the component of the current gradient orthogonal to a smoothed history $c_t$ via $u_t = g_t - \text{proj}_{c_{t-1}}(g_t)$ with $c_t = \beta c_{t-1} + (1-\beta) g_t$, enabling an Orthogonal-AdamW optimizer that preserves informative updates while decorrelating temporally correlated gradients. Across three tasks—DoRA on a single long video, VideoMAE on multi-video datasets, and future frame prediction on streams—the orthogonal optimizer consistently improves performance over standard AdamW, including scenarios with sequential data. The results demonstrate improved representation learning and test-time adaptation capabilities, suggesting practical benefits for streaming-video applications and resource-constrained settings where random access to data is limited. However, the gains are domain-dependent, as ImageNet solo classification shows limited or negative benefits, underscoring the need to align optimization strategies with data distribution characteristics.
Abstract
We address the challenge of representation learning from a continuous stream of video as input, in a self-supervised manner. This differs from the standard approaches to video learning where videos are chopped and shuffled during training in order to create a non-redundant batch that satisfies the independently and identically distributed (IID) sample assumption expected by conventional training paradigms. When videos are only available as a continuous stream of input, the IID assumption is evidently broken, leading to poor performance. We demonstrate the drop in performance when moving from shuffled to sequential learning on three tasks: the one-video representation learning method DoRA, standard VideoMAE on multi-video datasets, and the task of future video prediction. To address this drop, we propose a geometric modification to standard optimizers, to decorrelate batches by utilising orthogonal gradients during training. The proposed modification can be applied to any optimizer -- we demonstrate it with Stochastic Gradient Descent (SGD) and AdamW. Our proposed orthogonal optimizer allows models trained from streaming videos to alleviate the drop in representation learning performance, as evaluated on downstream tasks. On three scenarios (DoRA, VideoMAE, future prediction), we show our orthogonal optimizer outperforms the strong AdamW in all three scenarios.
