Abstract
Current multi-modal representation learning often relies on high-level continuous vectors that act as "black boxes," making it difficult to interpret cross-modal alignments or capture fine-grained details. We present a self-supervised framework that learns a shared, discrete embedding space across modalities such as video, audio, and text. By introducing a novel Cross-Modal Code Matching (CMCM) objective, the model maps disparate inputs to a common set of "codewords." This approach significantly enhances retrieval performance and enables zero-shot concept localization, providing a more interpretable and precise foundation for multi-modal AI.
Introduction
The challenge in multi-modal AI lies in bridging the gap between different data types—pixels, waveforms, and text. While existing models excel at global retrieval tasks, they often fail to capture fine-grained semantic details and lack interpretability. Their continuous representation spaces are difficult for humans to parse, and modality-independent encoders can lead to misaligned feature spaces. This research addresses these issues by creating a shared "vocabulary" of discrete concepts that can be used interchangeably across modalities.
Methodology
The proposed framework utilizes a two-branch architecture that integrates traditional high-level continuous embeddings with a novel Shared Discrete Embedding Space.
Vector Quantization (VQ)
The model processes fine-grained features, such as individual video frames or audio segments, and maps them to the nearest entry in a shared codebook. This process discretizes continuous features into a finite set of representational units, or codewords.
Cross-Modal Code Matching (CMCM)
A significant hurdle in shared discretization is "codebook collapse," where different modalities occupy disjoint regions of the codebook. To prevent this, the authors introduced the Cross-Modal Code Matching (CMCM) objective. CMCM is a contrastive loss function that encourages positive pairs (e.g., a video and its corresponding audio) to share a similar probability distribution over the codebook, effectively forcing the model to ignore modality-specific noise in favor of underlying shared meaning.
Hybrid Representation
The final output is a hybrid of fine-grained discrete codes and high-level continuous embeddings. This combination leverages the precision of continuous vectors for global context while utilizing discrete codes for interpretability and detail.
Experimental Setup and Results
The framework was rigorously evaluated on three major cross-modal datasets:
- S-MiT (Video-Audio): 500k pairs of video clips and spoken captions.
- Places (Image-Audio): 400k pairs of images and spoken descriptions.
- MSR-VTT (Video-Text): 10k video clips with natural language captions.
The method consistently outperformed strong baselines. On S-MiT, visual retrieval (R@1) improved from 30.2% to 34.3%. On MSR-VTT, the model achieved a state-of-the-art R@1 of 43.4%, surpassing specialized models like CLIP4Clip.
Key Insights and Interpretability
One of the most compelling outcomes of this research is the emergent semantic alignment within the discrete space. Without explicit labels, the model learns to associate specific codewords with human-understandable concepts.
As shown in the visualization of Codeword #201, the model identifies the concept of "juggling" across both visual and auditory streams. This fine-grained discretization allows for zero-shot localization; the model can highlight where an action occurs in a video or when a word is spoken in an audio clip based on codeword activation.
Conclusion and Future Work
This work demonstrates that shared discrete representations can bridge the gap between modalities while providing a level of interpretability previously missing in high-level continuous models. Current limitations include the necessity of "warm-starting" with pre-trained encoders and the challenge of scaling codebook sizes to encompass all human concepts. Future research will explore training from scratch and extending the framework to support more than two modalities simultaneously, aiming for a truly universal concept space.
Summary updated