TL;DR
This paper introduces Adversarial Deep Metric Learning (ADML) to improve open-vocabulary keyword spotting (KVS) by aligning audio and text representations. ADML uses a novel modality adversarial learning (MAL) technique to make audio and text embeddings indistinguishable, significantly boosting performance on challenging cross-modal tasks.
What Problem Does This Paper Address?
Keyword spotting (KWS) systems are becoming increasingly sophisticated, moving beyond fixed keyword sets to "open-vocabulary" KWS. This allows users to define their own keywords, often by simply providing text. A key challenge in this domain is aligning audio representations with text representations, especially when the text is used for enrollment. Traditional methods often rely on comparing embeddings at the utterance level or use complex phoneme-level alignment techniques. However, the inherent differences between audio and text modalities (heterogeneity) create a significant "domain gap," hindering effective alignment and leading to suboptimal performance. This paper tackles this cross-modal heterogeneity head-on, aiming to create more robust and aligned audio-text representations for open-vocabulary KWS.
Methods
The core of the proposed method is Adversarial Deep Metric Learning (ADML), which combines deep metric learning (DML) with a new Modality Adversarial Learning (MAL) component.
- Deep Metric Learning (DML): The paper leverages DML to learn a shared embedding space where similar audio and text keywords are close together, and dissimilar ones are far apart. They explore both utterance-level and phoneme-level matching.
- Phoneme-Level Matching: They use a cross-attention mechanism to align audio and text sequences at the phoneme level. The Asymmetric-Proxy (AsyP) loss with Adaptive Margins and Scaling (AdaMS) is employed for this, which is adapted to learn phoneme-specific parameters.
- Utterance-Level Matching: They use Relational Proxy (RP) loss variants for utterance-level alignment.
- Modality Adversarial Learning (MAL): This is the novel contribution. A modality classifier is trained to distinguish between audio and text embeddings. Simultaneously, the audio and text encoders are trained to fool this classifier. This is achieved using a Gradient Reversal Layer (GRL), which flips the gradient during backpropagation. The goal is to force the encoders to produce "modality-invariant" embeddings, effectively reducing the domain gap between audio and text. MAL is applied at both phoneme and utterance levels.
- Keyword Classification Loss: To further improve the acoustic encoder's discriminative power, they incorporate a SphereFace2-based keyword classification loss, which is known for its effectiveness in closed-set classification tasks.
Datasets
- Training: King-ASR-066 dataset (4.6k hours, 210k unique word classes).
- Evaluation:
- Wall Street Journal (WSJ) dataset (3.2k unique words, 18k segments, augmented with RIRs and MUSAN noise).
- LibriPhrase dataset (evaluated on both easy (LPE) and hard (LPH) sets).
Key Insights and Ideas
- The Domain Gap is a Major Hurdle: The inherent differences between audio and text representations are a significant bottleneck for cross-modal tasks like KWS.
- Adversarial Training for Modality Invariance: Using a modality classifier adversarially is a powerful way to force encoders to learn representations that are less sensitive to the input modality, leading to better cross-modal alignment.
- Phoneme-Level Alignment Matters: Explicitly aligning audio and text at the phoneme level, in addition to utterance level, significantly improves performance.
- SphereFace2 for Open-Vocabulary: Adapting a face recognition loss (SphereFace2) for keyword classification in an open-vocabulary setting yields substantial gains, highlighting its generalizability.
- MAL is Generally Applicable: The MAL component not only improves the proposed ADML but also enhances existing baseline methods, demonstrating its broad utility.
Key Results
- Significant Performance Boost: The proposed ADML method, incorporating MAL and phoneme-level matching, achieves state-of-the-art results on both WSJ and LibriPhrase datasets.
- MAL's Impact: Applying MAL at both utterance and phoneme levels resulted in a 14.82% relative improvement over the baseline on the WSJ dataset.
- Phoneme-Level Matching Benefits: Phoneme-level matching methods consistently outperform utterance-level-only baselines. The AsyP loss with AdaMS achieved 84.42% AP on WSJ.
- Keyword Classification Gains: The SphereFace2 loss improved the AP from 86.23% to 90.24% on WSJ, a significant gain.
- LibriPhrase Performance: ADML+SF2 achieved the best performance on the LibriPhrase dataset, outperforming other methods.
Limitations and Future Work
- Limitations: The paper acknowledges that hyperparameters for DML losses (like α, β, λ in AsyP loss) require manual tuning, although AdaMS helps automate this. The evaluation on LibriPhrase uses a training set from a different domain (King-ASR-066), which is a common practice for evaluating generalization but might not fully represent real-world scenarios where training and testing data might be more aligned.
- Future Work: The authors suggest exploring more advanced adversarial learning techniques to further enhance Modality Adversarial Learning (MAL).
Summary updated