Video-Text Retrieval by Supervised Sparse Multi-Grained Learning

Yimu Wang, Peng Shi

Abstract

While recent progress in video-text retrieval has been advanced by the exploration of better representation learning, in this paper, we present a novel multi-grained sparse learning framework, S3MA, to learn an aligned sparse space shared between the video and the text for video-text retrieval. The shared sparse space is initialized with a finite number of sparse concepts, each of which refers to a number of words. With the text data at hand, we learn and update the shared sparse space in a supervised manner using the proposed similarity and alignment losses. Moreover, to enable multi-grained alignment, we incorporate frame representations for better modeling the video modality and calculating fine-grained and coarse-grained similarities. Benefiting from the learned shared sparse space and multi-grained similarities, extensive experiments on several video-text retrieval benchmarks demonstrate the superiority of S3MA over existing methods.

Introduction

Matching a video to a text description (Video-Text Retrieval or VTR) is a fundamental challenge in cross-modal AI. The primary obstacle is the heterogeneity gap: videos consist of high-dimensional pixel data, while text is composed of discrete semantic symbols. Standard encoders, such as CLIP, produce "dense" representations that are inherently modality-dependent. While these can be projected into a joint space, these spaces are often unsupervised, meaning the model lacks explicit semantic guidance for its dimensions.

Previous "sparse" methods attempted to bridge this gap using a set of "concepts" or codebooks, but these were often randomly initialized or updated without direct semantic supervision. This makes it difficult for a model to precisely align specific actions in a video with corresponding words in a caption. To address this, we introduce S3MA (Supervised Shared Sparse Multi-grained Alignment).

Methodology

S3MA builds a better "common ground" for video and text through three main innovations:

  1. Supervised Shared Sparse Space: Instead of a random codebook, the sparse space is initialized by clustering approximately 30,000 sub-word embeddings into a smaller set of "sparse concepts" (e.g., 1,024 clusters). Crucially, text data acts as an anchor to supervise the learning of this space, forcing video features to align with human-understandable concepts.
  2. Multi-Grained Alignment: The model captures both global video summaries (coarse-grained) and individual frame representations (fine-grained). Projecting individual frames into the sparse space allows the model to capture fleeting actions or specific objects that might be missed at the video level.
  3. Multi-Space Similarity: S3MA calculates similarity in both the original "dense" encoder space and the new "shared sparse" space. The final retrieval score is an ensemble of these four similarities: Dense Video-Sentence, Dense Frame-Sentence, Sparse Video-Sentence, and Sparse Frame-Sentence.
The S3MA architecture details the flow from raw video and text to shared sparse representations.

Experimental Results

We evaluated S3MA on three standard benchmarks: MSR-VTT (10,000 clips), MSVD (1,970 videos), and ActivityNet (20,000 videos). The model achieved State-of-the-Art (SOTA) results across multiple metrics:

  • MSR-VTT: Using a ViT-B/32 backbone, S3MA reached a 51.7% R@1 (Recall at 1) for text-to-video retrieval, significantly outperforming previous leaders like X-Pool (46.9%) and TS2-Net (47.0%).
  • ActivityNet: It achieved 45.0% R@1, a substantial jump over the popular CLIP4Clip baseline (40.5%).
  • Ablation Studies: Removing the anchor-based supervised alignment caused a significant performance drop, confirming that supervision of the sparse space is critical to the architecture's success.
Performance comparison on the MSR-VTT dataset shows S3MA outperforming state-of-the-art methods across various backbones.

Discussion and Insights

A key finding is that text is the most effective teacher for sparse spaces. Because text is inherently semantic, it provides a stable reference point for high-variance video data. Furthermore, clustering words into concepts helps reduce noise; while using raw words provides more detail, it can lead to sparse gradients. Clustering ensures a dense enough signal for effective learning.

While S3MA advances the state-of-the-art, challenges remain. Some sparse concepts can become "hubs," being activated far more often than others, which can slightly degrade retrieval quality. Future work could involve moving beyond frame-level features to object-level or word-level alignment, matching specific bounding boxes in a video to specific nouns in a sentence.

Conclusion

S3MA introduces a novel framework for video-text retrieval by leveraging a supervised shared sparse space and multi-grained alignment. By using text as a semantic anchor, the model effectively bridges the modality gap, achieving superior performance on major benchmarks and providing a more interpretable representation of cross-modal similarity.

Summary updated

BibTeX
@inproceedings{wang2023video,
  author = {Yimu Wang and Peng Shi},
  title = {{Video-Text Retrieval by Supervised Sparse Multi-Grained Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=UjxIT4aPKi},
}
Figure