Generative Context-Aware Fine-Tuning of Self-Supervised Speech Models

Suwon Shon, Kwangyoun Kim, Prashant Sridhar, Yi-Te Hsu, Shinji Watanabe, Karen Livescu

Abstract

Modern self-supervised speech models, while highly effective, are often constrained by the quadratic complexity of Transformer architectures, leading to a reliance on short, isolated segment processing. This "segment-level" approach discards valuable contextual information from surrounding utterances that could otherwise resolve linguistic and acoustic ambiguities. This paper presents a novel context-aware fine-tuning strategy that allows models to leverage neighboring context during training while maintaining real-time inference speeds. By introducing an auxiliary generative loss, the model learns to "hallucinate" relevant features of adjacent segments from the current input alone, resulting in significant performance gains across speech recognition and understanding tasks with negligible parameter overhead.

Introduction

State-of-the-art speech models, such as wav2vec 2.0, have significantly advanced the field of Spoken Language Understanding (SLU). However, these models face a fundamental trade-off between context length and computational efficiency. To remain viable for real-time applications, speech is typically processed in short utterances. This isolation prevents the model from utilizing broader conversational cues—such as speaker style, environmental noise, or topical consistency—which are critical for tasks like Named Entity Recognition (NER) and Sentiment Analysis (SA).

Existing attempts to incorporate context often involve "Context Injection," where multiple segments are fed into the model simultaneously. While effective for accuracy, this approach doubles or triples inference latency, making it unsuitable for production environments. This research addresses this limitation by proposing a generative framework that encodes contextual awareness directly into the model's representations during the fine-tuning stage.

Methodology

The proposed framework, Context-Aware Fine-Tuning, introduces a mechanism to capture inter-segment dependencies without requiring multi-segment inputs at test time.

The Context Module

The architecture begins with a small Context Module consisting of an attention-based pooling layer followed by a fully connected layer. This module is designed to compress a variable-length speech segment into a fixed-size "context embedding" vector.

From Injection to Generation

Two distinct strategies were evaluated:

  1. Context Injection (Baseline): The model takes the context vector from a neighboring segment (past or future) and concatenates it to every frame of the current segment. While this provides a performance boost, it requires the neighbor to be processed at inference time, increasing latency.
  2. Context Generator (Innovation): To eliminate inference-time overhead, the researchers introduced a "Context Generator." During fine-tuning, the model is optimized using an auxiliary L2 loss. This loss encourages the context vector derived from the current segment to approximate the context vector of its neighboring segments.

By forcing the model to predict the latent features of its neighbors, the current segment's representation is enriched with global information. At inference, the auxiliary generator and neighboring segments are discarded; the model simply processes the current segment, which now contains "hallucinated" context clues.

Experimental Setup

The methodology was validated across two primary benchmarks designed to test the limits of speech models in diverse conditions:

  • SLUE (Spoken Language Understanding Evaluation): Utilizing the VoxCeleb and VoxPopuli subsets, the researchers tested the model on "natural speech in the wild." These datasets are characterized by varied acoustic environments and unscripted speech, providing a rigorous test for Automatic Speech Recognition (ASR), NER, and SA.
  • Libri-light: This benchmark was used to evaluate the model’s robustness in low-resource settings, using labeled data splits ranging from 10 minutes to 100 hours.

Results and Key Insights

The context-aware approach demonstrated consistent improvements over standard fine-tuning baselines while adding only 0.028% more parameters.

Performance Gains

  • Speech Recognition: The method achieved a 5% to 8% relative improvement in Word Error Rate (WER) on SLUE datasets.
  • Named Entity Recognition: The model showed a substantial 10% relative improvement in F1 score, suggesting that context is vital for identifying specific entities in conversation.
  • Sentiment Analysis: A 2% improvement was observed. Notably, this gain is comparable to the improvement typically seen when moving from a "Base" to a "Large" model architecture, but without the associated computational cost.
  • Low-Resource Robustness: On the Libri-light 10-minute and 1-hour tracks, the generative context signal proved particularly effective, suggesting that context acts as a powerful regularizer when labeled data is scarce.

The Role of Future Context

An interesting finding of the study was that training the model to predict future segments often yielded higher performance gains than predicting past segments. This suggests that the "anticipatory" nature of the generative loss helps the model build more robust representations of the current acoustic signal.

Conclusion and Future Work

This research demonstrates that speech models do not necessarily need to "see" neighboring segments to benefit from them. By aligning the representations of current segments with their broader context during training, models can capture long-range latent features—such as speaker intent or environmental characteristics—that are present but often ignored in the local signal.

Future work remains in several areas. Currently, the method is applied only during fine-tuning; integrating this generative loss into the initial self-supervised pre-training phase could yield even greater benefits. Additionally, the researchers aim to expand the application of this method to more complex SLU tasks, such as automated summarization and intent classification, and explore the integration of even longer-range, conversation-level context.

Summary updated

BibTeX
@inproceedings{shon2024generative,
  author = {Suwon Shon and Kwangyoun Kim and Prashant Sridhar and Yi-Te Hsu and Shinji Watanabe and Karen Livescu},
  title = {{Generative Context-Aware Fine-Tuning of Self-Supervised Speech Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=eXxSwmYKwz},
}
Figure