VideoComp: Advancing Fine-Grained Compositional and Temporal Alignment in Video-Text Models

Dahun Kim, A. J. Piergiovanni, Ganesh Satish Mallya, Anelia Angelova

Introduction

Current Vision-Language Models (VLMs) often suffer from a "bag-of-words" problem in video understanding. While they excel at identifying objects and actions within a frame, they frequently fail to grasp the temporal sequence and logical flow of events. For instance, a model might struggle to distinguish between "a person diving into a pool" and "a person climbing out of a pool" if it only recognizes the keywords "person" and "pool." VideoComp addresses this gap by introducing a benchmark and training framework focused on fine-grained compositional and temporal alignment.

The Challenge of Temporal Compositionality

Most existing benchmarks evaluate models on static images or short, single-event clips. This lack of complexity prevents models from learning how events relate to each other over time. VideoComp aims to move beyond simple keyword matching toward true temporal alignment, forcing models to track evolving relationships and narrative structures in continuous, multi-event videos.

Methodology: Teaching Temporal Order

The researchers proposed three primary innovations to enhance temporal reasoning:

  1. Challenging Negative Samples: Using Large Language Models (LLMs) like Gemini 1.5 Pro, the team generated "distorted" versions of positive video-text pairs. These distortions include temporal reordering (shuffling events), action replacement (changing key verbs), and segment mismatch (pairing text with the wrong video portion).
  2. Hierarchical Pairwise Preference Loss (CompLoss): Instead of binary classification, VideoComp uses a ranking system. The model learns to assign the highest similarity to the correct pair, a lower score to a slightly disrupted pair, and the lowest to a heavily disrupted one. This "degrees of correctness" approach provides a richer training signal.
  3. CompPretrain (Simulated Long-form Training): To overcome the scarcity of densely annotated long-form data, the authors "stacked" multiple short video-caption pairs to create pseudo-long-form videos. This allows training on temporal flow using existing large-scale short-video datasets.
A sequence of video frames illustrating a multi-event diving narrative, from preparation to the crowd's reaction.

Benchmarking and Datasets

The study introduces two new benchmarks: ActivityNet-Comp (human activities) and YouCook2-Comp (procedural cooking tasks). For training, the authors utilized VideoCC3M for the "stacking" strategy and DataComp-1B for initial image-level pretraining. The underlying architecture, VidCLIP, utilizes a ViT-Large vision encoder and a Transformer text encoder with temporal pooling.

Key Results and Insights

The VideoComp framework yielded significant improvements:

  • Robustness Gains: The final VidCLIP model improved comprehensive accuracy on ActivityNet-Comp from a baseline of 18.9% to 35.0%.
  • Competitive Performance: Despite having only 500M parameters, the fine-tuned VidCLIP model outperformed larger models like Gemini 1.5 Flash on temporal reordering tasks.
  • Zero-Shot Generalization: The CompPretrain strategy improved performance on standard benchmarks like MSR-VTT, indicating that learning compositionality enhances general video understanding.

Conclusion and Future Directions

VideoComp demonstrates that teaching models about temporal boundaries and sequences through ranking losses and simulated long-form data is highly effective. While dual-encoder models like CLIP are efficient, future work may explore these loss functions in more complex cross-attention architectures. Additionally, scaling the "stacking" pretraining to larger datasets could further bridge the gap between specialized video models and general-purpose Large Multimodal Models.

Summary updated

BibTeX
@inproceedings{kim2025videocomp,
  author = {Dahun Kim and A. J. Piergiovanni and Ganesh Satish Mallya and Anelia Angelova},
  title = {{VideoComp: Advancing Fine-Grained Compositional and Temporal Alignment in Video-Text Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02706},
}
Figure