MCLF: A Multi-grained Contrastive Learning Framework for ASR-robust Spoken Language Understanding

Zhiqi Huang, Dongsheng Chen, Zhihong Zhu, Xuxin ChengEMNLP 2023

Abstract

Enhancing the robustness towards Automatic Speech Recognition (ASR) errors is of great importance for Spoken Language Understanding (SLU). Trending ASR-robust SLU systems have witnessed impressive improvements through global contrastive learning. However, although most ASR errors occur only at local positions of utterances, they can easily lead to severe semantic changes, and utterance-level classification or comparison is difficult to distinguish such differences. To address the problem, we propose a two-stage multi-grained contrastive learning framework dubbed MCLF. Technically, we first adapt the pre-trained language models to downstream SLU datasets via the proposed multi-grained contrastive learning objective and then fine-tune it on the corresponding dataset. Besides, to facilitate contrastive learning in the pre-training stage, we explore several data augmentation methods to expand the training data. Experimental results and detailed analyses on four datasets and four BERT-like backbone models demonstrate the effectiveness of our approach.

Introduction

Spoken Language Understanding (SLU) serves as the critical component in voice-activated assistants like Siri or Alexa, responsible for extracting intent and slots from spoken input. Traditionally, these systems operate in a pipeline where an ASR engine converts speech to text, followed by an SLU model that processes the transcript.

The primary challenge in this architecture is the propagation of ASR errors. Even minor local errors—such as misrecognizing "fair" as "fare"—can fundamentally alter the semantic meaning of an utterance. While existing ASR-robust models utilize global contrastive learning to align noisy and clean sentence representations, these methods often fail to capture the fine-grained, token-level discrepancies that drive semantic confusion. This paper introduces MCLF, a framework designed to bridge this gap through multi-grained alignment.

Methodology

MCLF employs a two-stage approach to enhance model robustness: multi-grained contrastive pre-training followed by robust fine-tuning.

1. Multi-grained Contrastive Pre-training

In the first stage, the model is adapted to the SLU domain using three primary objectives:

  • Global Contrastive Learning ($L_g$): Aligns the overall sentence embeddings (via the [CLS] token) of noisy ASR hypotheses with their corresponding clean "oracle" transcripts.
  • Fine-grained Contrastive Learning ($L_f$): This core novelty aligns individual tokens by calculating a token-wise similarity matrix. This forces the model to identify and "correct" local ASR noise by focusing on reliable semantic anchors.
  • Masked Language Modeling ($L_{mlm}$): Standard BERT-style pre-training is maintained to preserve general linguistic knowledge.

To support this stage, the authors utilize Data Augmentation (DA) to simulate ASR errors (insertions, deletions, and substitutions) when massive paired ASR-Oracle data is unavailable.

Overview of the MCLF framework, illustrating the pre-training architecture (a) with global and fine-grained objectives, and the fine-tuning stage (b).

2. Robust Fine-tuning

The pre-trained model is fine-tuned on specific SLU tasks using Supervised Contrastive Learning (SCL), which clusters examples with identical intent labels. Additionally, Self-Distillation is employed to mitigate the impact of potential label noise during the training process.

Experimental Evaluation

The framework was evaluated across four major SLU benchmarks:

  • SLURP: A large-scale dataset featuring real-world ASR hypotheses.
  • ATIS: A classic flight reservation dataset.
  • TREC6 & TREC50: Question classification datasets.

For datasets lacking real ASR noise, hypotheses were synthesized using Text-to-Speech (TTS) followed by an ASR engine to ensure realistic error patterns.

Results and Analysis

MCLF consistently outperformed established baselines such as SpokenCSE and PhonemeBERT across all tested backbone models (RoBERTa, BERT, ELECTRA, and TinyBERT).

Robustness to Noise

A critical finding is the model's performance as speech recognition quality degrades. As illustrated in the performance analysis, the accuracy gap between MCLF and the RoBERTa baseline widens significantly as the Word Error Rate (WER) increases. In high-noise scenarios (WER > 0.4), MCLF maintains superior stability compared to standard models.

Performance comparison between the RoBERTa baseline and MCLF across varying ASR noise levels, showing increased relative gains as WER increases.

Key Insights

  • Local vs. Global: Token-level similarity ($L_f$) is essential for identifying which parts of a noisy transcript are semantically reliable.
  • Model Agnosticism: The framework provides consistent gains regardless of the underlying architecture, with particularly high relative boosts for smaller models like TinyBERT, making it ideal for edge-device deployment.
  • Pooling Strategy: The authors noted that Mean-Max pooling (concatenating average and maximum token features) proved more effective than the standard [CLS] token for representing noisy utterances.

Conclusion

MCLF demonstrates that multi-grained contrastive learning is a highly effective strategy for building ASR-robust SLU systems. While the pre-training stage introduces some computational overhead, the inference speed remains unaffected, ensuring the method's viability for real-time applications. Future work may involve integrating acoustic features directly into the text-based pre-trained models to further capture nuances lost in the ASR process.

Summary updated

BibTeX
@inproceedings{huang2023mclf,
  author = {Zhiqi Huang and Dongsheng Chen and Zhihong Zhu and Xuxin Cheng},
  title = {{MCLF: A Multi-grained Contrastive Learning Framework for ASR-robust Spoken Language Understanding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=VjSxQNhdKs},
}
Figure