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

Abstract

Current self-supervised learning (SSL) speech encoders excel at acoustic feature extraction but lack inherent semantic understanding. This paper introduces the SSE (Semantics into Speech Encoders) framework, an unsupervised approach to injecting semantic knowledge from Large Language Models (LLMs) into speech encoders. By utilizing an unsupervised ASR bridge and residual connections, SSE achieves significant performance gains on complex spoken language understanding tasks without requiring labeled transcripts, rivaling systems trained on hundreds of hours of labeled data.

Introduction

Self-supervised learning (SSL) has revolutionized speech processing with models like HuBERT and wav2vec 2.0. These models are highly effective at capturing acoustic nuances but remain "meaning-blind," failing to grasp the semantic relationships inherent in language. Traditionally, bridging this gap requires a pipeline approach: transcribing audio to text via Automatic Speech Recognition (ASR) and then processing the text with a text-based LLM. However, training high-quality ASR models typically demands thousands of hours of expensive, human-labeled data.

The SSE framework addresses this limitation by providing a task-agnostic, unsupervised method to endow speech encoders with the semantic "brainpower" of an LLM like BART, bypassing the need for labeled transcripts entirely.

The SSE Framework

The SSE architecture is designed as a multi-stage pipeline that translates raw audio into semantically rich representations. It functions like a relay race with three main components.

Architecture Components

  1. Speech Encoder (The Listener): A frozen, pretrained SSL model (e.g., wav2vec 2.0 or HuBERT) that extracts high-level acoustic features from raw audio data.
  2. Unsupervised ASR Bridge (The Translator): This module uses a Generative Adversarial Network (GAN) to map acoustic patterns to subword tokens. Crucially, this mapping is learned by observing unlabeled text and audio independently, rather than through paired transcripts.
  3. Large Language Model (The Brain): Subword tokens from the bridge are fed into a pretrained BART model. BART leverages its extensive pre-existing knowledge of language to provide the semantic context missing from the raw audio features.
The SSE-BASE and SSE-TUNE architectures. SSE-BASE uses a standard BART model, while SSE-TUNE incorporates adapters and attention mechanisms for better alignment.

Enhancing Connectivity

To ensure robust performance, the authors introduced two key "glue" components:

  • Attention Residual Connections: Unsupervised translation can be noisy. Residual connections allow the model to bypass the translator and look directly at the original acoustic features, preventing errors in transcription from becoming catastrophic bottlenecks.
  • Adapters: These are small, trainable layers inserted into the frozen LLM. They facilitate the alignment of internal LLM representations with specific speech tasks without requiring a full retraining of the massive model.

Experimental Setup and Datasets

The SSE framework was evaluated on four diverse benchmarks to demonstrate its versatility across different spoken language understanding (SLU) tasks:

  • Fluent Speech Commands (FSC): Simple intent classification (e.g., "turn on the lights").
  • SLURP: A complex dataset for in-home personal assistants, requiring both intent classification (IC) and slot filling (SF).
  • SLUE-NER: Focused on Named Entity Recognition (NER) in spoken language.
  • NMSQA (Natural Multi-speaker Spoken Question Answering): A challenging task where the model identifies answers to spoken questions within spoken passages.

Key Results and Insights

The integration of semantics proved to be a significant performance driver. On the SLURP dataset, SSE improved intent classification accuracy by over 5% compared to standard speech encoders. In the NMSQA task, it outperformed the previous state-of-the-art unsupervised method, DUAL, by over 2% in F1 score.

Performance comparison of SSE models against various baselines across FSC, SLURP, and SLUE-NER benchmarks.

The Power of Subwords and Residuals

A major insight from this work is the superiority of subword tokens over phonemes for linking speech and text. Subwords carry more semantic weight, allowing the model to better leverage the LLM's knowledge. Furthermore, the "acoustic safety net" provided by residual connections was found to be vital for recovering information lost during noisy unsupervised transcription.

Conclusion

The SSE framework demonstrates that semantics can be effectively injected into speech encoders without labeled data. By achieving performance comparable to models trained on 100 hours of labeled transcripts, SSE paves the way for more efficient and capable speech-understanding systems. Future work will explore scaling to larger LLMs and developing more sophisticated bridge modules to further narrow the gap with fully supervised systems.

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