CHAIN: Exploring Global-Local Spatio-Temporal Information for Improved Self-Supervised Video Hashing

Rukai Wei, Yu Liu, Jingkuan Song, Heng Cui, Yanzhao Xie, Ke Zhou · DOI

Abstract

As digital video content continues to expand exponentially, efficient retrieval mechanisms are paramount. Video hashing addresses this by compressing high-dimensional data into compact binary codes, enabling rapid Hamming distance searches. However, existing self-supervised hashing methods often struggle to capture the intricate temporal dependencies and scene transitions inherent in video. This paper introduces CHAIN (Contrastive Hashing with Global-Local Spatio-temporal Information), a novel framework that integrates global contrastive learning with two specialized local tasks: frame order verification and scene change regularization. By balancing "big picture" semantics with fine-grained temporal dynamics, CHAIN achieves state-of-the-art performance across multiple benchmarks, showing particular strength at low bitrates.

Introduction

The primary challenge in video hashing lies in creating meaningful binary representations without the aid of manual labels. Traditional self-supervised approaches frequently rely on static spatial features or simplistic temporal patterns, which often fail to account for the high redundancy between consecutive frames and the complex chronological dependencies of actions. Furthermore, long-form videos often contain multiple distinct scenes that can obscure global encoding efforts.

To address these limitations, the authors propose the CHAIN framework. CHAIN is designed to move beyond simple spatial similarity by explicitly modeling the temporal flow and internal structural changes of a video. This dual focus on global and local information allows the model to generate more discriminative and robust hash codes for large-scale retrieval tasks.

The CHAIN Framework

CHAIN utilizes a hybrid architecture consisting of a 2D Convolutional Neural Network (CNN), such as VGG or ResNet, for spatial feature extraction, followed by a Transformer-based temporal encoder to capture long-range dependencies. The framework is optimized through a multi-task learning objective comprising three core components:

1. Global Spatio-temporal Contrastive Learning

The model employs a contrastive objective where two different "views" of the same video—generated through spatial cropping and temporal segment sampling—are encouraged to have similar hash codes. Conversely, views from different videos are pushed apart in the feature space. This ensures the model captures the overarching semantic content of the video.

2. Frame Order Verification (Local Temporal)

To prevent the Transformer from over-smoothing the sequence and losing temporal specificity, CHAIN incorporates a Frame Order Verification (FOV) task. The model is required to predict the absolute position of frames within a sequence. This forces the encoder to develop a granular understanding of the chronological progression of actions.

3. Scene Change Regularization (Local Spatial)

Recognizing that videos are often composed of disparate scenes, the authors introduce Scene Change Regularization (SCR). Using prototypical contrastive learning, the model clusters frames into distinct "scenes." It then learns to attract frames belonging to the same scene while repelling those from different scenes. This helps the model perceive sharp transitions and viewpoint changes that are often lost in global pooling.

Experimental Evaluation

Datasets and Setup

The effectiveness of CHAIN was evaluated on four prominent video benchmarks:

  • FCVID: Approximately 91,000 web videos across 239 categories.
  • ActivityNet v1.3: Focused on complex human activities in long-duration videos.
  • UCF101: A standard action recognition dataset with 101 categories.
  • HMDB51: A challenging dataset focused on human motion.

Instead of random sampling, the authors utilized a segment sampling strategy, dividing videos into equal segments and selecting one frame from each. This ensures the model observes the entire narrative arc of the video, which is essential for the SCR task.

Performance and Efficiency

CHAIN consistently outperformed previous state-of-the-art (SOTA) methods, such as ConMH and BTH, across all tested bit lengths. Notable results include:

  • Accuracy: On the FCVID dataset, CHAIN achieved a 21.4% improvement in mean Average Precision (mAP@20) over previous SOTA using 64-bit codes.
  • Low-Bit Robustness: The model demonstrated significant gains at low bitrates. On ActivityNet using only 16 bits, it improved performance by 54.3% compared to ConMH.
  • Computational Overhead: Despite the multi-task training regime, the inference remains highly efficient. The encoding time is approximately 0.93ms per video, making it viable for real-time large-scale retrieval systems.

Discussion and Insights

A key takeaway from this research is the necessity of the "Global-Local" balance. While global contrastive learning provides a semantic foundation, the local tasks (FOV and SCR) are what allow the model to distinguish between similar-looking videos with different temporal signatures. Furthermore, the framework exhibits high flexibility; experiments showed that replacing the standard CNN backbone with a CLIP visual backbone resulted in even more substantial performance gains, indicating that CHAIN scales effectively with more powerful feature extractors.

Conclusion and Future Work

CHAIN represents a significant step forward in self-supervised video hashing by successfully integrating local temporal and spatial cues into a global contrastive framework. While the current results are robust, the authors suggest that future iterations could benefit from more advanced temporal architectures like TimeSformer to better handle extremely long-form content. Additionally, exploring methods for efficient model updating—to prevent hash indexes from becoming "stale" as data distributions shift—remains a critical area for future deployment research.

Summary updated

BibTeX
@inproceedings{wei2023chain,
  author = {Rukai Wei and Yu Liu and Jingkuan Song and Heng Cui and Yanzhao Xie and Ke Zhou},
  title = {{CHAIN: Exploring Global-Local Spatio-Temporal Information for Improved Self-Supervised Video Hashing}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3613440},
}
Figure