Introduction
Visually Grounded Speech (VGS) models aim to learn the relationship between images and spoken captions without relying on written transcripts. While models like CLIP (Contrastive Language-Image Pre-training) have achieved state-of-the-art performance in mapping text to images, adapting these powerful representations for raw audio remains a significant challenge. Segmental SpeechCLIP addresses this by bridging the gap between continuous speech signals and the frozen CLIP text-image space.
The Challenge of Continuous Speech
Previous attempts to leverage CLIP for speech, such as "Cascaded SpeechCLIP," attempted to extract a fixed number of keywords from audio to map them to CLIP's text embeddings. This approach faced two primary hurdles:
- Lack of Discrete Tokens: Unlike text, speech is continuous and lacks clear boundaries between "tokens."
- Temporal Rigidity: Forcing a model to extract a fixed number of keywords ignores the natural temporal structure and varying lengths of spoken sentences, leading to significant information loss.
Methodology: The Segmental Architecture
The authors propose a hierarchical segmental encoder that processes audio to discover "word-like" units automatically. This architecture allows the model to leverage a frozen CLIP text encoder more effectively.
Key Components:
- Feature Extraction: Initial frame-level representations are obtained using a frozen Wav2vec 2.0 model.
- Boundary Detection: A dedicated detector identifies transitions in the audio (potential word or phone boundaries), allowing the model to deduce the number of segments dynamically.
- Segmental Encoding: Frames within identified boundaries are averaged and passed through a segment encoder to create a sequence of embeddings.
- Direct Embedding Learning: Instead of using non-differentiable operations to pick discrete words, the model directly learns continuous embeddings that the frozen CLIP text encoder can interpret. This makes the training process smoother and more efficient.
- Hard Negative Mining: To refine the contrastive learning process, clustering-based techniques are used to identify visually similar but incorrect images ("hard negatives"), forcing the model to learn finer semantic distinctions.
Key Results
The Segmental SpeechCLIP approach demonstrates a massive performance leap over previous cascaded methods. On the SpokenCOCO image-to-speech retrieval task, it achieved a Recall@1 (R@1) of 28.2%, compared to just 6.4% for the previous Cascaded SpeechCLIP.
Beyond retrieval, the model showed strong semantic understanding on the ZeroSpeech 2021 benchmark, outperforming several baselines in word-level semantic similarity tasks. Additionally, the inclusion of hard negative mining provided a consistent boost of 3-4 points across retrieval metrics.
Discussion and Future Work
While Segmental SpeechCLIP significantly outperforms the cascaded baseline, it still trails the "Parallel" variant of SpeechCLIP, which does not utilize the text encoder at all. This suggests that the current segmentation process may still lose some nuanced information present in the raw audio signal.
Future improvements could include:
- Multi-layer Features: Utilizing a weighted combination of Wav2vec 2.0 layers rather than a single layer.
- Speech-Only Pre-training: Incorporating masked language modeling on large-scale speech-only data to further refine the audio encoder before multi-modal training.
By keeping heavy-duty encoders like Wav2vec 2.0 and CLIP frozen, this architecture remains highly efficient, allowing for high-performance training even on hardware with limited compute resources.
Summary updated