Adaptive Knowledge Distillation Between Text and Speech Pre-Trained Models

Jinjie Ni, Yukun Ma, Wen Wang, Qian Chen, Dianwen Ng, Han Lei, Trung Hieu Nguyen, Chong Zhang, Bin Ma, Erik Cambria · DOI

TL;DR

This paper introduces Prior-informed Adaptive Knowledge Distillation (PAD), a novel method to transfer knowledge from text-based language models to speech-based models. PAD addresses the inherent semantic and granularity gaps between text and speech embeddings by adaptively aligning them using significance priors and an anchor-based span aggregation technique, leading to improved performance on spoken language understanding tasks.

What Problem Does This Paper Address?

The success of self-supervised learning has led to powerful pre-trained models for both text and speech. While speech models excel at capturing acoustic information, they often lack the rich linguistic understanding found in text models. Knowledge distillation offers a way to transfer this linguistic knowledge, but it's hindered by the "modal disparity" – the fundamental differences in how text and speech are represented and structured. Specifically, aligning the embedding spaces of text and speech is challenging due to semantic differences (e.g., noise in speech vs. symbolic text) and granularity mismatches (e.g., one word in text can correspond to many phonemes in speech). Existing methods often overlook these issues, leading to suboptimal knowledge transfer.

Methods

The paper proposes Prior-informed Adaptive Knowledge Distillation (PAD), which builds upon metric-based distillation. PAD introduces two key innovations:

  • Attention-based Significance Priors (ASP): This technique leverages the self-attention maps of pre-trained transformer models to identify the most semantically relevant parts of a sequence (either speech or text). By scoring tokens based on their significance, PAD can focus the alignment process on more meaningful units, effectively down-weighting noise or less informative segments. This is applied to both global (sentence-level) and local (token-level) alignments.
  • Anchor-based Adaptive Span Aggregation (AASA): To address the granularity gap, AASA adaptively groups speech embeddings into "spans." Instead of aligning individual speech tokens to text tokens, AASA creates flexible speech "chunks" that better correspond to text units. This is achieved by selecting anchor points based on significance scores and aggregating speech embeddings within defined spans of varying scales. This allows for a more natural alignment between the different granularities of speech and text.

PAD then uses these enhanced representations within both global and local alignment objectives, aiming for a more effective transfer of linguistic knowledge.

Datasets

The paper uses the following datasets:

  • Training Data: 10-hour transcribed data from the train-clean-360 subset of Librispeech 960.
  • Evaluation Benchmarks: Three spoken language understanding (SLU) tasks evaluated on:
  • Intent Classification (IC): Fluent Speech Commands dataset.
  • Emotion Recognition (ER): IEMOCAP dataset.
  • Slot Filling (SF): Audio SNIPS dataset.

The evaluation follows the SUPERB benchmark framework, which uses pre-trained models and fixed upstream components for fair comparison.

Key Insights and Ideas

  • The "semantic and granularity gap" is a critical bottleneck: The paper highlights that simply aligning text and speech embeddings without considering their inherent differences leads to poor knowledge transfer.
  • Attention maps hold valuable "significance" information: Leveraging self-attention mechanisms to identify semantically important parts of speech and text is a powerful way to guide distillation.
  • Adaptive span aggregation bridges the granularity divide: Directly aligning individual speech frames to text words is often a poor match. Grouping speech frames into contextually relevant spans significantly improves alignment.
  • Global and local alignments have complementary strengths: Global alignments are better for classification tasks (like intent recognition), while local alignments excel at sequence generation tasks (like slot filling). PAD's approach aims to improve both.
  • Joint alignment combinations can be tricky: While combining global and local alignments is beneficial, certain combinations (e.g., global with token-level local) might be less effective than others due to inherent incompatibilities.

Key Results

The proposed PAD method consistently outperforms existing metric-based distillation baselines across the evaluated SLU tasks.

  • Overall Improvement: PAD variants (PAD-Glob, PAD-TLocal, PAD-SLocal) show superior performance on Intent Classification, Emotion Recognition, and Slot Filling compared to methods like Glob-cls, TLocal-idf, and SLocal-OR.
  • Span-level Advantage: The span-level local alignment (PAD-SLocal) demonstrates strong performance on both classification and sequence generation tasks, indicating the effectiveness of AASA in narrowing the speech-text granularity gap.
  • Prior Importance: Ablation studies show that removing either the speech or text significance priors leads to a noticeable drop in performance, confirming their crucial role.
  • Alignment Loss Reduction: Figures show that PAD, with its priors and adaptive spans, achieves a greater reduction in alignment loss during training compared to vanilla alignment methods, indicating more effective homogenization of embedding spaces.

Limitations and Future Work

  • Trade-off between Global and Local Alignments: The paper acknowledges that global and local alignments can be contradictory in essence, and there's an inherent trade-off in their performance.
  • Future Work: The authors plan to investigate methods to alleviate this trade-off between global and local alignment strategies in future research.

Summary updated

BibTeX
@inproceedings{ni2023adaptive,
  author = {Jinjie Ni and Yukun Ma and Wen Wang and Qian Chen and Dianwen Ng and Han Lei and Trung Hieu Nguyen and Chong Zhang and Bin Ma and Erik Cambria},
  title = {{Adaptive Knowledge Distillation Between Text and Speech Pre-Trained Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096950},
}
Figure