Contrastive Losses Are Natural Criteria for Unsupervised Video Summarization

Zongshang Pang, Yuta Nakashima, Mayu Otani, Hajime Nagahara

Introduction

Video summarization is the process of automatically selecting a small subset of frames that capture the essential narrative or "gist" of a longer video. This task is critical for efficient video browsing, indexing, and retrieval. In the unsupervised setting—where human-annotated summaries are unavailable—researchers typically rely on two primary heuristics: diversity (ensuring selected frames are distinct) and representativeness (ensuring the summary reflects the entire video content).

The Problem with Bootstrapping

Most contemporary unsupervised summarization methods utilize a "bootstrapping" architecture. In this workflow, a model generates a candidate summary, calculates its diversity and representativeness, and then uses these metrics as rewards or losses to update the model parameters. The authors of this paper argue that this approach is inherently inefficient. It relies on evaluating poor-quality, "online-generated" summaries during the early stages of training, which can lead to instability and slow convergence.

Comparison between traditional bootstrapping workflows and the proposed direct contrastive loss approach.

Instead of this iterative cycle, the authors ask a fundamental question: Can we directly quantify a single frame's importance based on its intrinsic relationship to its temporal neighbors and the video as a whole?

Contrastive Criteria for Frame Importance

The proposed solution shifts the focus from summary-level evaluation to frame-level scoring using principles from contrastive representation learning. Specifically, the authors adapt the concepts of alignment and uniformity into three distinct metrics:

  1. Local Dissimilarity ($L_{align}$): This metric serves the diversity objective. It measures the semantic distance between a frame and its nearest temporal neighbors. A frame that is highly similar to its neighbors is considered redundant, while a frame that stands out likely contains unique, informative content.
  2. Global Consistency ($L_{uniform}$): This metric addresses representativeness. It measures how well a frame aligns with the global feature distribution of the entire video. This ensures that a "dissimilar" frame is not merely an outlier or noise, but is semantically relevant to the video's overarching theme.
  3. Uniqueness Filter ($H_{\hat{\theta}}$): A common failure in video summarization is the selection of generic background frames (e.g., a blue sky or a busy street) that are dissimilar and consistent within a single video but appear frequently across many different videos. By training on a large-scale dataset (YouTube8M), the model learns to penalize frames that are "too common" across the general distribution of video content.
Conceptual visualization of local dissimilarity, global consistency, and uniqueness across multiple videos.

Implementation and Workflow

The authors demonstrate the versatility of these criteria through two implementation modes:

  • Zero-Shot Summarization: Strikingly, these metrics can be calculated directly using off-the-shelf pre-trained features (e.g., from ImageNet) without any additional training. This "zero-shot" approach already outperforms several complex supervised models.
  • Contrastive Refinement: To further enhance performance, a lightweight "Refinement Module" (a small Transformer encoder) is introduced. This module is trained to project pre-trained features into a space specifically optimized for the three contrastive losses mentioned above.

Key Results and Insights

The method was evaluated on standard benchmarks, including TVSum and SumMe, as well as the large-scale YouTube8M dataset.

  • State-of-the-Art Performance: On TVSum, the refined model achieved a Kendall’s $\tau$ of 0.1609 and a Spearman’s $\rho$ of 0.2118. These results significantly outperform previous unsupervised leaders like DR-DSN and are competitive with supervised methods.
  • The Power of Pre-training: One of the paper's most significant contributions is highlighting that raw pre-trained features, when evaluated through the right contrastive lens, are remarkably effective. The zero-shot version of the model achieved F1 scores (e.g., 56.4 on TVSum) that rival many trained unsupervised systems.
  • Generalization: Models trained on 10,000 random YouTube8M videos generalized exceptionally well to the smaller benchmark datasets, suggesting that contrastive criteria are "natural" priors for what makes a frame important.

Conclusion

By moving away from complex bootstrapping and toward direct frame-level quantification, this work simplifies the unsupervised video summarization pipeline while improving performance. The "Uniqueness Filter" effectively handles the background redundancy problem, and the reliance on contrastive principles provides a stable training signal. Future research may explore how these contrastive criteria might synergize with other self-supervised tasks, such as video-text alignment, to further refine the semantic quality of generated summaries.

Summary updated

BibTeX
@inproceedings{pang2023contrastive,
  author = {Zongshang Pang and Yuta Nakashima and Mayu Otani and Hajime Nagahara},
  title = {{Contrastive Losses Are Natural Criteria for Unsupervised Video Summarization}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00205},
}
Figure