Abstract
This paper introduces a novel framework for Unsupervised Video Continual Learning (uVCL), addressing the challenge of learning from continuous, unlabeled video streams without predefined task boundaries. By integrating pre-trained video transformers with non-parametric Kernel Density Estimation (KDE) clustering and a lightweight feature-replay memory system, the proposed method dynamically identifies new video categories while mitigating catastrophic forgetting. Experimental results demonstrate that this approach significantly outperforms adapted supervised baselines in both accuracy and computational efficiency across multiple benchmark datasets, including UCF101, HMDB51, and Something-Something V2.
Introduction
Continual Learning (CL) is essential for developing AI models that can adapt to new information over time without suffering from catastrophic forgetting. While significant progress has been made in supervised CL, real-world data streams are often unlabeled and lack clear task boundaries. This is particularly true for video data, which presents additional challenges due to high computational and memory requirements.
Existing research in unsupervised continual learning has primarily focused on static images. This paper addresses the gap in video-based unsupervised CL by proposing a framework that can ingest unstructured video streams, automatically group them into semantically meaningful categories, and retain that knowledge over extended periods.
Methodology
The proposed framework, uVCL-KDE, and its extension, uVCL-KDE-RBF, utilize a multi-stage pipeline designed for efficiency and scalability.
- Feature Extraction: Incoming videos are processed through a frozen, pre-trained video transformer (VideoMAE V2) to extract high-dimensional spatio-temporal embeddings.
- Non-Parametric Clustering: Instead of using a fixed number of classes, the model employs Mean-shift clustering based on Kernel Density Estimation (KDE). This allows the internal representation to expand organically as new data arrives.
- Novelty Detection: A distance-based threshold mechanism identifies novel data points. If the distance to existing cluster centers exceeds a threshold ($\Theta$), the system flags the data as novel and spawns a new cluster.
- Linear Cluster Self-Allocation (RBF): The uVCL-KDE-RBF variant adds a linear classification layer that uses cluster assignments as "pseudo-labels." It is trained using a Focal Loss-modified Multi-Class Cross-Entropy loss to manage the inherent class imbalance in unsupervised streams.
- Memory Management: To prevent forgetting, the system maintains a small buffer of feature embeddings (rather than raw video) for each cluster using a First-In-First-Out (FIFO) queue. These features are replayed during the learning of subsequent tasks.
Experimental Setup
The framework was evaluated on three standard video action recognition datasets, modified to simulate an unsupervised continual learning environment by removing all labels and task boundaries:
- UCF101: Split into 37 sequential tasks.
- HMDB51: Split into 13 sequential tasks.
- Something-Something V2 (SSv2): A highly complex dataset split into 659 sequential tasks.
Results and Discussion
The proposed method was compared against adapted supervised CL baselines such as iCaRL, EWC, and MAS. The results highlight the superiority of the non-parametric approach in dynamic environments.
Performance and Efficiency
On the UCF101 dataset, uVCL-KDE-RBF achieved a cluster accuracy of approximately 93%, vastly outperforming the best baseline (iCaRL at ~12%). Similar trends were observed on HMDB51, where it achieved ~34% vs ~11% for baselines. Notably, the model demonstrated exceptional efficiency; on the massive SSv2 dataset, it completed training in roughly 1 day and 43 minutes using only 103K trainable parameters. In contrast, baselines with over 21 million parameters struggled to complete even a fraction of the tasks in the same timeframe.
Key Insights
- Dynamic Architectures: The use of KDE and Mean-shift is crucial for handling non-stationary real-world streams, allowing the model to expand its capacity only when genuinely novel information is encountered.
- Feature Replay: Storing 1024-dimensional embeddings instead of raw video frames significantly reduces the memory footprint while effectively preventing catastrophic forgetting.
- Handling Imbalance: Focal Loss is a necessary component for training on unsupervised pseudo-labels to prevent frequent classes from dominating the learning process.
Conclusion
The uVCL-KDE framework provides a robust and efficient solution for unsupervised video continual learning. While the current implementation relies on fixed novelty thresholds, future work aims to develop dynamic criteria to further enhance the model's adaptability. Additionally, improving cluster separation on highly complex datasets remains an area for further investigation.
Summary updated