Abstract
Understanding scenes in movies is crucial for a variety of applications such as video moderation, search, and recommendation. However, labeling individual scenes is a time-consuming process. In contrast, movie level metadata (e.g., genre, synopsis, etc.) regularly gets produced as part of the film production process, and is therefore significantly more commonly available. In this work, we propose a novel contrastive learning approach that uses movie metadata to learn a general-purpose scene representation. Specifically, we use movie metadata to define a measure of movie similarity, and use it during contrastive learning to limit our search for positive scene-pairs to only the movies that are considered similar to each other. Our learned scene representation consistently outperforms existing state-of-the-art methods on a diverse set of tasks evaluated using multiple benchmark datasets. Notably, our learned representation offers an average improvement of 7.9% on the seven classification tasks and 9.7% improvement on the two regression tasks in LVU dataset. Furthermore, using a newly collected movie dataset, we present comparative results of our scene representation on a set of video moderation tasks to demonstrate its generalizability on previously less explored tasks.
Introduction
Understanding "scenes"—sequences of shots that form a semantic unit—is a fundamental challenge in long-form video analysis. While scene understanding is critical for applications like video moderation and recommendation, training effective models is hindered by the labor-intensive nature of manual scene labeling.
Existing self-supervised methods typically rely on contrastive learning, which learns representations by comparing augmented versions of the same image against random negative samples. However, while geometric augmentations (e.g., cropping, color jittering) work well for object-centric tasks, they often fail to capture the high-level "thematic" context of a scene. A scene's meaning is derived from its semantic content—such as a romantic interaction or a high-speed chase—which cannot be bridged by simple pixel-level transformations.
Methods
Movies2Scenes addresses this gap by leveraging readily available movie-level metadata (e.g., genre, synopsis, co-watch history) as a "weak supervisor" to identify thematically similar scenes across different movies. The framework consists of a two-stage pipeline:
- Movie Similarity Learning: The model first learns to measure similarity between movies. Using metadata like co-watch history, a similarity score is defined. A Movie Encoder is then trained to predict this similarity based on sequences of shots within the movies.
- Automatic Scene Selection: Once movie-level similarity is established, the model identifies specific pairs of scenes between similar movies that exhibit the highest thematic alignment. These pairs serve as "thematic positives" for contrastive learning.
- Scene Contrastive Learning: These automatically selected scene pairs are used in a contrastive learning setup (InfoNCE loss) to train a general-purpose scene representation.
The architecture utilizes a Vision Transformer (ViT) backbone. A key technical innovation is the use of 2D interpolation for positional embeddings, allowing the model to handle variable-length inputs (varying numbers of shots per scene) without the need for retraining.
Datasets and Evaluation
The researchers evaluated Movies2Scenes using a combination of large-scale pre-training data and established benchmarks:
- MovieCL30K: A new pre-training dataset of 30,340 movies across 11 genres.
- LVU (Long-form Video Understanding): A benchmark featuring nine tasks, including director and genre prediction.
- MovieNet: Used for place tagging and boundary detection.
- MCD (Mature Content Dataset): A new dataset of ~44,000 clips for video moderation tasks (detecting sex, violence, and drug use).
Results and Discussion
Movies2Scenes demonstrates significant performance gains over previous state-of-the-art (SOTA) models. On the LVU benchmark, the model achieved an average improvement of 7.9% across seven classification tasks and a 9.7% improvement on two regression tasks.
Key insights from the study include:
- Thematic Augmentation: Metadata-driven scene selection provides a much richer set of "augmentations" than pixel-level transforms, capturing semantic meaning across different films.
- Metadata as Free Supervision: Movie-level metadata is a standard byproduct of film production, making it a scalable resource for training compared to manual labels.
- Context Window Sensitivity: Ablation studies revealed that while increasing the number of shots per scene generally improves performance, excessively long windows (e.g., 16 shots) can introduce noise by crossing actual scene boundaries.
Conclusion
Movies2Scenes introduces a novel paradigm for learning scene representations by utilizing high-level movie similarities. By bridging the gap between movie-level metadata and scene-level semantics, the framework achieves state-of-the-art results on complex video understanding tasks. Future work will explore incorporating additional modalities like audio and expanding the scale of pre-training to further refine these thematic representations.
Summary updated