Introducing Semantics into Speech Encoders

Derek Xu, Shuyan Dong, Changhan Wang, Suyoun Kim, Zhaojiang Lin, Bing Liu, Akshat Shrivastava, Shang-Wen Li, Liang-Hsuan Tseng, Guan-Ting Lin, Alexei Baevski, Hung-yi Lee, Yizhou Sun, Wei Wang · DOI

TL;DR

This paper introduces a novel, unsupervised method to inject semantic understanding into self-supervised speech encoders, bridging the gap between acoustic and language models. By leveraging unsupervised ASR and large language models (LLMs), their approach significantly boosts performance on spoken language understanding tasks without requiring expensive labeled ASR data.

What Problem Does This Paper Address?

Modern virtual AI assistants need to understand spoken language deeply, going beyond just recognizing sounds to grasping meaning. While self-supervised speech encoders (like Wav2Vec 2.0 and HuBERT) are great at capturing acoustic information, they often lack semantic understanding. Current state-of-the-art systems achieve good semantic performance by using a pipeline: a speech encoder feeds into a large language model (LLM). However, these pipelines typically rely on supervised Automatic Speech Recognition (ASR) data, which is costly and time-consuming to obtain. Furthermore, these systems are often task-specific. This paper aims to solve this by proposing a task-agnostic, unsupervised method to integrate semantic information from LLMs into self-supervised speech encoders, eliminating the need for labeled ASR data.

Methods

The core idea is to use an unsupervised ASR (ASR-U) system as a bridge to connect a self-supervised speech encoder with a pre-trained LLM.

  1. Unsupervised ASR Bridge: They leverage a system similar to w2v2-U2.0, which uses a Generative Adversarial Network (GAN) to learn to generate phoneme sequences from speech embeddings. These phonemes are then converted to subword tokens using a Weighted Finite State Transducer (WFST) and known phoneme-to-subword mappings. This bridge module is trained without any labeled ASR data.
  2. Semantic Integration: The output subword tokens from the bridge are fed into a pre-trained LLM (BART in their experiments). This allows the LLM's rich semantic representations to be incorporated into the speech processing pipeline.
  3. Combining Acoustic and Semantic Information: To better leverage both acoustic and semantic signals, they propose two key enhancements:
  4. Attention Residual Connection: A residual connection is added between the semantic embeddings from the LLM and the original acoustic embeddings from the speech encoder. This helps retain acoustic information, which is crucial for tasks like Named Entity Recognition (NER) that rely heavily on accurate transcription.
  5. Adapters: Lightweight adapter modules are inserted into the LLM. These adapters are trained during fine-tuning, allowing the LLM to be efficiently adapted to the speech domain without retraining the entire LLM.

They present two main model versions: SSP-BASE (speech encoder + bridge + LLM) and SSP-TUNE (SSP-BASE with residual attention and adapters).

Datasets

The paper uses several standard datasets for evaluation:

  • FSC (Fluent Speech Commands): For Intent Classification (IC).
  • SLURP (Spoken Language Understanding Resource Package): For Intent Classification (IC) and Slot Filling (SF).
  • SLUE (Spoken Language Understanding Evaluation): For Named Entity Recognition (NER).
  • NMSQA (Natural Multi-speaker Spoken Question Answering): For Spoken Question Answering (SQA).

Key Insights and Ideas

  • Unsupervised ASR as a Semantic Bridge: The paper demonstrates that unsupervised ASR systems can effectively bridge the gap between acoustic speech representations and semantic LLMs, a crucial step for integrating semantics without labeled data.
  • Importance of Residual Connections: For tasks that require accurate transcription (like NER), simply passing semantic information through a bridge can lead to information loss. The proposed attention residual connection is vital for preserving acoustic details and improving performance on such tasks.
  • Adapters for Efficient LLM Alignment: Adapters provide an efficient way to fine-tune LLMs for speech tasks, allowing them to better align with speech encoder outputs without significant computational overhead.
  • Semantic Embeddings Improve Cluster Separation: Visualizations (t-SNE) show that incorporating semantic information leads to more distinct and better-separated clusters for different intents, indicating a richer representation.

Key Results

  • Significant SLU Performance Gains: SSP-TUNE achieved over 5% improvement in Intent Classification (IC) accuracy and over 2% improvement in Spoken Question Answering (SQA) FF1 score compared to baseline speech encoders.
  • Competitive with Supervised Methods: The unsupervised SSP-TUNE model achieved performance comparable to supervised methods trained on over 100 hours of labeled ASR data.
  • Robustness to ASR Errors: The proposed method, particularly SSP-TUNE, shows robustness to noisy transcriptions generated by the ASR-U bridge, outperforming simpler pipeline approaches.
  • Ablation Studies: Both residual attention and adapters individually contribute to performance gains, with their combination (SSP-TUNE) yielding the best results.

Limitations and Future Work

  • ASR-U Noise: While the model is robust, the ASR-U bridge still introduces some noise, which can impact performance on tasks highly dependent on precise transcription. The paper notes that more accurate ASR-U models or components that further alleviate ASR errors would be beneficial.
  • Task-Specific Performance: While the approach is task-agnostic in its architecture, performance gains vary across tasks. Tasks heavily reliant on acoustic information (like NER) benefit more from the residual connection, while tasks that are more semantic-centric (like IC) see larger gains from the LLM integration.
  • Future Work: The authors suggest that this work is a step towards actualizing virtual AI assistants and that further research can explore more sophisticated ways to align LLMs and speech encoders, potentially leading to even more capable systems. They also highlight the potential for this approach to generalize to various downstream tasks and languages.

Summary updated

BibTeX
@inproceedings{xu2023introducing,
  author = {Derek Xu and Shuyan Dong and Changhan Wang and Suyoun Kim and Zhaojiang Lin and Bing Liu and Akshat Shrivastava and Shang-Wen Li and Liang-Hsuan Tseng and Guan-Ting Lin and Alexei Baevski and Hung-yi Lee and Yizhou Sun and Wei Wang},
  title = {{Introducing Semantics into Speech Encoders}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.639},
}
Figure