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
Video-Text Retrieval (VTR) is a fundamental task in cross-modal understanding, requiring models to find the most relevant video for a given text query and vice versa. Despite the success of large-scale pre-trained models like CLIP, a significant "modality gap" remains. Video and text are typically processed by separate encoders, resulting in representations that reside in heterogeneous dense spaces. This makes direct comparison difficult, as the "languages" of visual and textual features are fundamentally different.
Previous research attempted to bridge this gap by creating a shared latent space. However, these spaces were often initialized randomly or updated in an unsupervised fashion. Without explicit semantic guidance, these shared spaces often fail to capture the precise nuances needed for accurate retrieval.
S3MA: Supervised Shared Sparse Multi-grained Alignment
The proposed S3MA framework addresses these limitations by introducing a shared "sparse concept" space that uses the text modality as a supervised anchor.
Fine-Grained Aligned Sparse Space
Instead of a black-box dense vector, S3MA utilizes a set of "sparse concepts." These are initialized by clustering approximately 30,000 sub-word embeddings into a smaller set of concept clusters (e.g., 1,024). Each cluster represents a group of semantically similar words, providing a structured foundation for the shared space.
Supervised Mapping and Multi-Grained Representation
Unlike previous methods, S3MA uses the text modality as a supervisor. Text representations are derived by looking up these sparse concepts, while video and frame representations are projected into this same space by calculating their similarity to these concepts. This ensures that visual features are mapped to established linguistic anchors.
To capture temporal nuances, the model employs multi-grained alignment. It doesn't just compare the global video to the sentence (coarse-grained); it also compares individual video frames to the sentence (fine-grained) across both the original dense space and the new shared sparse space.
Training Objectives
The model is optimized using a triple loss objective:
- Contrastive Loss: Standard matching of video-text pairs.
- Alignment Loss: Minimizes the distance between video/frame sparse representations and the text "anchor."
- Sparse Similarity Loss: Ensures the activation patterns of the video across concepts match the text.
Experimental Results
S3MA was evaluated on three standard benchmarks: MSR-VTT, MSVD, and ActivityNet. The framework achieved significant performance gains across the board, demonstrating its robustness across different types of video content.
On the MSR-VTT dataset, S3MA reached a Recall@1 (R@1) of 51.7% for text-to-video retrieval (using a ViT-B/32 backbone), outperforming previous state-of-the-art (SOTA) methods like CLIP4Clip and X-CLIP. It also achieved the best R@1 scores on MSVD (47.3%) and ActivityNet (45.0%).
Ablation studies confirmed that the "supervised" nature of the sparse space is critical. Removing the text anchor caused a significant drop in retrieval accuracy, proving that anchoring visual features to linguistic concepts is vital for effective alignment.
Conclusion
S3MA introduces a novel approach to bridging the modality gap in video-text retrieval. By leveraging a supervised shared sparse space and multi-grained similarity matching, the framework achieves state-of-the-art performance and offers improved interpretability. Future work may extend this supervised sparse approach to other cross-modal tasks involving audio or depth data.
Summary updated