Efficient Cross-Modal Video Retrieval With Meta-Optimized Frames

Ning Han, Xun Yang, Ee-Peng Lim, Hao Chen, Qianru Sun

TL;DR

This paper introduces Meta-Optimized Frames (MOF), a novel bilevel optimization approach that automatically learns to compress videos into a small set of highly representative frames. This allows state-of-the-art video retrieval models to leverage the full video content during training while using significantly fewer frames for efficient inference, achieving better performance and speed.

What Problem Does This Paper Address?

Cross-modal video retrieval, the task of finding relevant videos using text queries, is crucial for organizing the vast amount of online video content. Current leading methods often rely on powerful but computationally expensive Visual Transformers (ViTs) to encode video features. To manage this computational burden, especially for long videos, a common practice is to sample a small, fixed number of frames. However, this creates a trade-off: more frames improve accuracy but increase computation time, while fewer frames are faster but may miss critical information. This paper addresses the challenge of achieving both high retrieval accuracy and computational efficiency by intelligently selecting the most informative frames.

Methods

The core innovation is the Meta-Optimized Frames (MOF) approach, built upon a Bilevel Optimization Program (BOP). This BOP framework involves two nested optimization levels:

  • Model-Level Optimization: This is the standard training of the cross-modal video retrieval model (e.g., a ViT-based encoder). It takes the MOF as input.
  • Frame-Level Optimization (Meta-Optimization): This is the novel part. Here, the MOF (the "compressed frames") are treated as learnable parameters. Using a meta-gradient descent approach, these frames are optimized to minimize the retrieval loss of the main model when evaluated on the entire video. This ensures that the selected frames capture the most critical semantic information for retrieval.

Essentially, the frame-level optimization learns to "compress" the video into a few frames that are most useful for the retrieval task, guided by the performance of the main model. This process is iterated, allowing the model and the MOF to adapt to each other.

Datasets

The proposed MOF method was evaluated on three standard, large-scale cross-modal video retrieval benchmarks:

  • MSR-VTT: Contains 10,000 YouTube video clips with 20 text captions each.
  • MSVD: Features 1,970 YouTube clips with approximately 40 descriptions per clip.
  • DiDeMo: Comprises 10,000 videos annotated with 40,000 sentences, used for video-paragraph retrieval.

The authors also re-implemented the "Frozen" baseline on MSVD and DiDeMo for fair comparison.

Key Insights and Ideas

  • Intelligent Frame Selection is Key: Random or uniform frame sampling is suboptimal. The paper demonstrates that learning to select frames based on their relevance to the retrieval task significantly boosts performance.
  • Meta-Learning for Data Compression: Applying meta-learning principles not just to model parameters but also to the input data representation (frames) is a powerful way to adapt models to specific tasks and improve efficiency.
  • Bilevel Optimization as a Unifying Framework: The BOP elegantly integrates the learning of the retrieval model and the selection of representative frames, allowing them to co-evolve.
  • Generic and Adaptable: MOF is presented as a plug-in module that can enhance various existing video retrieval architectures, including those based on transformers and CLIP.

Key Results

  • State-of-the-Art Performance: The MOF approach, when integrated with baseline models like Frozen [2] and CLIP4Clip [23], achieved new state-of-the-art results on MSR-VTT, MSVD, and DiDeMo. For instance, it improved R@10 by up to 2.2% over Frozen on MSR-VTT.
  • Efficiency Gains: MOF allows models to achieve better or comparable performance with significantly fewer input frames during inference. For example, MOF can compress 32 frames down to 8 or even 4 frames while maintaining or improving accuracy.
  • Reduced Test Time: By using fewer frames, the inference time is reduced, making the system more practical for real-world applications. For example, MOF reduced test time from 46s to 24s on MSR-VTT while improving performance.
  • Robustness: The MOF approach demonstrated effectiveness across different video backbones (ResNet-50, ResNet-152, TimeSformer), highlighting its generic applicability.

Limitations and Future Work

  • Computational Cost of Training: While MOF reduces inference cost, the bilevel optimization training process itself can be computationally intensive due to the nested gradient computations.
  • Parameter Sensitivity: The paper notes that the learning rate $\beta$ for frame-level optimization is a critical hyperparameter and the method is sensitive to it.
  • Future Work: The authors suggest incorporating MOF into other video tasks like video captioning and video classification to improve their performance. They also plan to explore MOF's potential for further optimization of inference speed.

Summary updated

BibTeX
@article{han2024efficient,
  author = {Ning Han and Xun Yang and Ee-Peng Lim and Hao Chen and Qianru Sun},
  title = {{Efficient Cross-Modal Video Retrieval With Meta-Optimized Frames}},
  journal = {IEEE Trans. Multimedia},
  year = {2024},
  doi = {10.1109/tmm.2024.3416669},
}
Figure