Abstract
We present a method for visually-grounded spoken term discovery. After training either a HuBERT or wav2vec2.0 model to associate spoken captions with natural images, we show that powerful word segmentation and clustering capability emerges within the model's self-attention heads. Our experiments reveal that this ability is not present to nearly the same extent in the base HuBERT and wav2vec2.0 models, suggesting that the visual grounding task is a crucial component of the word discovery capability we observe. We also evaluate our method on the Buckeye word segmentation and ZeroSpeech spoken term discovery tasks, where we outperform all currently published methods on several metrics.
Introduction
Learning a language without a dictionary or transcript is a fundamental challenge in speech processing known as spoken term discovery. This task requires a model to take a stream of raw, unsegmented audio and identify where words begin and end, while simultaneously grouping similar acoustic patterns into meaningful categories.
While modern self-supervised models like HuBERT and wav2vec2.0 learn robust acoustic representations, they often struggle to pinpoint discrete word boundaries because their internal attention mechanisms remain fragmented. This research explores the hypothesis that visual grounding—the process of linking sounds to visual objects, much like human infants do—is the essential catalyst needed to help these models organize continuous speech into discrete words.
Methodology
The researchers propose a dual-encoder architecture consisting of a Transformer-based Audio Encoder (HuBERT or wav2vec2.0) and a Vision Transformer (ViT) as the image encoder.
A critical finding in their methodology was that "reinitializing" (resetting to random weights) the last few layers of a pre-trained HuBERT model before training it on the visual task significantly boosted word discovery performance. These variants are referred to as VG-HuBERT$_x$, where $x$ denotes the number of reset layers.
The discovery process involves two primary stages:
- Segmentation: The model utilizes a
[CLS_A]token that attends to the entire audio sequence. By applying a simple threshold to these attention maps, the model identifies contiguous "blocks" of high attention that align remarkably well with actual word boundaries. - Clustering: To determine word identities, the model takes the average feature vector of each discovered segment and uses K-means clustering to group them into categories.
The Impact of Visual Grounding
The most striking result of this approach is how visual grounding forces the model to sparsify its attention. In standard self-supervised models, attention is often "noisy" and spread across many frames. In contrast, the visually grounded version concentrates its attention into clean, word-aligned chunks.
Layer-wise Emergence of Word Units
Word discovery performance is not uniform across the Transformer's architecture. The ability to identify and segment words typically peaks in the middle-to-upper layers. This suggests a hierarchical learning process where the model builds basic acoustic features in the early layers and develops semantic word identities in the later stages of the network.
Furthermore, the model's attention tends to concentrate on the "nucleus" or the most informative part of a word. Interestingly, using these nucleus segments for clustering proved more effective than using "oracle" (perfect) word boundaries, as the nucleus naturally filters out non-informative transitions between words.
Experimental Results
The visually grounded models established new state-of-the-art (SOTA) benchmarks across multiple tasks:
- ZeroSpeech 2020: VG-HuBERT$_3$ achieved an M-score of 71.8, a significant improvement over the previous best of 64.5 (PDTW).
- Buckeye Word Segmentation: The model improved the Boundary F1 score to 44.8 (up from 36.4) and the Token F1 to 31.0 (up from 25.0).
- Efficiency: Unlike competing methods that rely on complex search algorithms like Segmental Dynamic Time Warping, this method achieves SOTA results through simple attention map thresholding.
Conclusion
This work demonstrates that visual context is a powerful driver for language acquisition in machines. While the current method requires paired image-audio data—which can be scarce for low-resource languages—it opens new doors for automatic lexicon building. Future research may extend this to discovering sub-word units like phonemes or syllables and exploring how models might discover abstract syntactic structures that lack direct visual counterparts.
Summary updated