TL;DR
This paper introduces a novel two-stage knowledge distillation approach to improve end-to-end spoken language understanding (SLU) by effectively transferring knowledge from text models to speech models. By matching both intermediate representations and final predictions during pre-training and fine-tuning, and incorporating data augmentation, they achieve state-of-the-art results on the Fluent Speech Commands dataset, particularly excelling in low-resource scenarios.
What Problem Does This Paper Address?
Traditional spoken language understanding (SLU) systems often rely on a pipeline of Automatic Speech Recognition (ASR) followed by Natural Language Understanding (NLU). This pipeline approach is prone to error propagation, where errors in ASR can significantly degrade NLU performance. Furthermore, valuable acoustic information like prosody, which could aid understanding, is often lost when speech is converted to text. End-to-end (E2E) SLU aims to overcome these limitations by directly mapping speech to intent and slots. However, E2E SLU models can struggle to extract robust features, especially when training data is scarce or noisy. This paper addresses the challenge of improving the accuracy and robustness of E2E SLU models, particularly in low-resource settings, by leveraging textual information more effectively.
Methods
The core of this work is a two-stage textual knowledge distillation strategy. The authors use a vq-wav2vec BERT as a powerful speech encoder, pre-trained using self-supervised learning, which captures rich and general speech features. This speech encoder is then trained in conjunction with a text BERT model.
The distillation process occurs in two phases:
- Pre-training Knowledge Distillation (PT-KD): During this stage, the speech encoder's hidden representations are aligned with the hidden representations of the corresponding text transcription from the text BERT. This is achieved by minimizing an L1 loss between these representations, in addition to the standard masked language modeling (MLM) task for the speech encoder. This helps the speech encoder learn to extract semantic information relevant to language.
- Fine-tuning Knowledge Distillation (FT-KD): In the fine-tuning phase, the focus shifts to aligning the final output predictions. The authors minimize an L1 loss between the predicted logits (scores for each intent class) of the speech model and the text model. This further refines the speech model's ability to predict intents based on textual knowledge.
Additionally, the paper incorporates data augmentation (DA) techniques during fine-tuning. Specifically, they mask spans of discretized audio tokens and contextualized hidden representations, inspired by methods like SpanBERT and SpecAugment. This augmentation is applied for regularization, making the model more robust to variations and noise.
The overall architecture combines the vq-wav2vec BERT speech encoder with a DeepSpeech2 acoustic model for feature aggregation, and a text BERT for knowledge transfer.
Datasets
The proposed method is evaluated on three SLU datasets:
- Fluent Speech Commands (FSC): A widely used dataset for SLU, featuring 336 intent classes. Experiments are conducted on the full dataset and a challenging 10% subset to simulate low-resource conditions.
- SNIPS: An NLU benchmark dataset. For this work, speech data was synthesized using a text-to-speech toolkit to enable SLU evaluation.
- Smartlights: This dataset has two subsets, "Close field" and "Far field," with the latter being noisier.
Key Insights and Ideas
- Two-stage distillation is crucial: The paper strongly argues that distilling knowledge in both the pre-training (matching representations) and fine-tuning (matching logits) stages is essential for optimal performance. This suggests that different levels of knowledge transfer are beneficial at different training phases.
- Textual knowledge is a powerful guide: By leveraging text BERT, the speech encoder learns to extract more semantically relevant features, bridging the gap between acoustic signals and linguistic meaning.
- vq-wav2vec BERT is a strong foundation: The choice of vq-wav2vec BERT as a speech encoder, pre-trained via self-supervision, provides a robust starting point that captures general speech characteristics, making it amenable to knowledge distillation.
- Data augmentation enhances robustness: Masking techniques applied to both discrete audio tokens and contextualized representations significantly improve performance, especially in low-resource settings, by making the model more resilient to variations.
- Low-resource performance boost: The proposed method shows a marked improvement in low-resource scenarios (10% subset of FSC), indicating its practical utility where labeled data is scarce.
Key Results
- State-of-the-art on FSC: The proposed method achieves a remarkable 99.7% test accuracy on the full Fluent Speech Commands (FSC) dataset and 99.5% on the 10% subset, surpassing previous state-of-the-art results.
- Reduced gap in low-resource settings: The performance gap between the full dataset and the 10% subset is significantly reduced, highlighting the method's effectiveness in data-scarce environments.
- All components contribute: Ablation studies confirm that each component of the proposed method—textual knowledge distillation (both PT-KD and FT-KD), AM pre-training, and data augmentation—is crucial for achieving the best performance.
- Good performance on other datasets: The method also achieves strong results on the SNIPS and Smartlights datasets, demonstrating its generalizability.
Limitations and Future Work
- Data augmentation nuances: While data augmentation is beneficial overall, the paper notes that it was not helpful on the SNIPS dataset. They hypothesize this is because the SNIPS utterances are clean and synthesized with a single speaker, making augmentation less impactful or potentially detrimental.
- Future directions: The authors suggest extending their method to other downstream tasks such as speech emotion recognition and spoken question answering.
Summary updated