Abstract
Unsupervised learning from video remains a significant challenge in computer vision, primarily due to the limitations of traditional objective functions like Mean Squared Error (MSE), which often lead to blurry, "ghostly" predictions. This paper proposes a novel framework that treats video as a sequence of discrete symbols, analogous to language. By quantizing image patches into a finite vocabulary of visual words, we can apply powerful Recurrent Neural Network (RNN) architectures to video generation. We introduce a Recurrent Convolutional Neural Network (rCNN) that incorporates spatial context to significantly improve prediction performance. Our results on natural video datasets, including UCF-101, demonstrate that this "language modeling" approach captures non-trivial motion dynamics and provides a strong baseline for future generative video models.
Introduction
The ability to learn from raw, unlabeled data—unsupervised learning—is a fundamental goal in artificial intelligence. In the context of video, the primary hurdle is defining an appropriate objective function. Most existing models minimize the squared Euclidean distance (MSE) between predicted and ground-truth frames. However, MSE is ill-suited for the inherent uncertainty of future states; a model uncertain about an object's trajectory will output a blurry average of all possible positions to minimize error.
Furthermore, the high dimensionality of raw video data makes modeling complex spatial and temporal correlations computationally prohibitive. To address these issues, we propose a discretization strategy that transforms the continuous pixel space into a discrete symbolic space, allowing the model to learn clear "motion primitives" without falling into the blurriness trap.
Methodology
Video Discretization and Quantization
The core of our approach is the discretization of video frames. We divide each frame into non-overlapping $8 \times 8$ pixel patches. Using k-means clustering on a large corpus of patches, we generate a dictionary of 10,000 "visual words" (centroids). Each patch in a video is then represented by its index in this dictionary. This process effectively converts a video into a sequence of integers, making it amenable to standard Natural Language Processing (NLP) techniques.
Model Architectures: rNN and rCNN
We first evaluate a standard Recurrent Neural Network (rNN) as a baseline. In this setup, the model predicts the next visual word for a specific patch location based on its own history. However, a standard rNN treats patches independently, ignoring the crucial spatial context of neighboring regions.
To overcome this, we introduce the Recurrent Convolutional Neural Network (rCNN). The rCNN takes a $9 \times 9$ grid of quantized patches as input. By employing convolutional layers, the model can leverage the state of neighboring patches to predict the central patch at the next time step. This allows the model to capture objects moving across patch boundaries.
Experimental Setup
We evaluated our models on two distinct datasets:
- van Hateren Dataset: A small collection of 56 natural videos used for initial validation of the discretization approach.
- UCF-101: A large-scale dataset featuring 13,320 videos of 101 human action categories. This dataset presents significant challenges, including camera motion, varied lighting, and compression artifacts, providing a robust test for unsupervised learning.
Results and Discussion
Our quantitative analysis on UCF-101 shows that the rCNN significantly outperforms both n-gram models and standard rNNs, achieving a lower perplexity of 3.9. This confirms that spatial context is essential for accurate video prediction.
Qualitatively, the model generates short sequences that exhibit realistic motion, such as human walking or tool usage, without the typical blurring seen in MSE-based models. By forcing the model to select from a dictionary of clear visual atoms, discretization acts as a powerful regularizer.
We also verified that the model learns true temporal dynamics rather than simple identity mappings. When tested on reversed or temporally shuffled sequences, the model assigned significantly lower probabilities, indicating it has captured the "arrow of time" and basic physical constraints.
Conclusion and Future Work
This work establishes a strong baseline for generative video modeling by framing the problem as a language task. While successful, several challenges remain. The model currently struggles with long-term consistency, often "freezing" after a few frames. Additionally, the fixed patch size limits the model's ability to handle multi-scale objects. Future research will explore multi-resolution pyramids and more sophisticated quantization methods to reduce the information loss inherent in the discretization process.
Summary updated