Abstract
The proliferation of web videos has made Content-Based Video Retrieval (CBVR) an essential yet challenging task. Video hashing is a promising approach for large-scale retrieval due to its computational efficiency. However, existing methods often fail to capture temporal dynamics or require extensive manual labeling. We propose Self-Supervised Video Hashing (SSVH), an unsupervised framework that leverages a Hierarchical Binary Auto-encoder (HBA) to map videos into compact binary codes. By incorporating a neighborhood-preserving loss, SSVH captures complex temporal structures and outperforms state-of-the-art unsupervised methods.
Introduction
Content-Based Video Retrieval (CBVR) aims to find similar videos based on visual content. Hashing is widely used for this task because it compresses high-dimensional video data into short binary strings, enabling fast similarity searches via XOR operations. Traditional video hashing faces three main challenges: the loss of temporal information during frame pooling, the non-differentiable nature of binary optimization, and the high cost of supervised learning. SSVH addresses these by using a hierarchical architecture and a self-supervised training objective that requires no manual labels.
Methodology
The core of the proposed approach is the Hierarchical Binary Auto-encoder (HBA), designed to learn representative binary codes directly from video sequences.
The HBA consists of a Hierarchical Binary Encoder and a Triple-Stream Decoder. The encoder uses Binary LSTM (BLSTM) units to produce binary outputs. To overcome the non-differentiability of the sign function, a piecewise linear approximation is employed during backpropagation. The hierarchical structure allows the model to summarize temporal information at different granularities, improving efficiency and capturing long-range dependencies that standard LSTMs often miss.
The Triple-Stream Decoder ensures the learned hash codes are representative by forcing the model to reconstruct the video through three distinct streams: forward frame reconstruction, backward frame reconstruction, and global video-level feature reconstruction. This multi-task objective ensures a robust and comprehensive representation.
Self-Supervised Neighborhood Preservation
To enhance retrieval performance, we introduce a neighborhood-preserving loss. This loss ensures that videos with similar visual features in the original high-dimensional space remain close in the learned Hamming space.
The model is trained to minimize a combination of reconstruction losses and the neighborhood loss. While reconstruction ensures the hash code captures individual video content, the neighborhood loss ensures that the relative structure of the data is preserved. This dual objective bridges the gap between generative reconstruction and discriminative retrieval.
Experiments and Results
We evaluated SSVH on the FCVID and YFCC datasets. SSVH significantly outperformed existing unsupervised methods. For instance, on FCVID with 256-bit codes, SSVH achieved a Mean Average Precision (mAP) of 37.9%, compared to 28.4% for the previous state-of-the-art, SSTH.
The performance gains are consistent across various bit lengths, suggesting that the model effectively utilizes additional capacity to encode complex video dynamics. Furthermore, the robustness of the self-supervised approach was demonstrated by training on the noisy, unlabeled YFCC dataset and testing on the categorized FCVID dataset. The model maintained high retrieval accuracy, proving that it learns fundamental visual and temporal features that generalize well without human-annotated labels.
Conclusion
SSVH provides an effective and scalable solution for unsupervised video hashing. By integrating hierarchical temporal modeling with a neighborhood-preserving objective, it achieves state-of-the-art retrieval performance. Future research will focus on incorporating motion-specific features and multi-modal information to further improve the discriminative power of the learned hash codes in complex real-world scenarios.
Summary updated