RED-ACE: Robust Error Detection for ASR using Confidence Embeddings

Zorik Gekhman, Dina Zverinski, Jonathan Mallinson, Genady Beryozkin

TL;DR

Modern Automatic Speech Recognition (ASR) error detection models often treat transcription cleanup as a pure text-processing task, completely ignoring the ASR model's internal confidence scores. RED-ACE bridges this gap by introducing a novel Confidence Embedding layer into a Transformer architecture, jointly encoding text and quantized acoustic confidence scores. This simple yet effective integration yields significant performance gains and robust error detection across varying audio qualities.

What Problem Does This Paper Address?

While state-of-the-art ASR systems are incredibly powerful, they still frequently stumble when encountering noisy audio, rare accents, or domain-specific vocabulary. Because many high-performing ASR systems are deployed as black-box cloud APIs, users cannot fine-tune them directly. Instead, practitioners rely on ASR Error Detection (AED) models as a post-processing step to flag potential transcription mistakes before they propagate to downstream tasks.

However, modern Transformer-based AED approaches typically treat this as a standard NLP sequence-tagging task. They look exclusively at the generated text hypothesis, throwing away valuable non-textual metadata—specifically, word-level confidence scores provided by the ASR engine. This paper addresses how to effectively integrate these continuous acoustic confidence signals into modern, discrete Transformer architectures.

Methods

The authors present RED-ACE (Robust Error Detection for ASR using Confidence Embeddings), which adapts a pre-trained BERT model into a confidence-aware sequence tagger that classifies each token as either ERROR or NOTERROR.

The pipeline consists of two primary stages:

  1. Quantization: Floating-point confidence scores (ranging from 0.0 to 1.0) are mapped into discrete integer bins using an equal-width binning algorithm.
  2. Confidence Embeddings (ACE): Rather than naively appending raw scores to the text or final layers, RED-ACE introduces a learned confidence embedding lookup matrix. For every token, its corresponding confidence bin embedding is directly summed with BERT's standard token, segment, and position embeddings before being fed into the Transformer encoder layers.

This architecture allows the model's self-attention mechanism to natively weigh textual context against acoustic certainty at every layer.

Figure 1: Our AED pipeline. The confidence scores are quantized and jointly encoded with the transcription text into a contextualized representation.
Figure 2: Our confidence-aware AED model. We use a BERT-based tagger with modifications colored in green. An additional embedding layer is added to repre- sent the embedding of the quantized confidence scores.

Datasets

To train and evaluate their approach, the authors created and released a novel AED dataset based on the LibriSpeech corpus (1,000 hours of English speech). They transcribed the audio using two distinct black-box models from the Google Cloud Speech-to-Text API (default and video) to evaluate cross-model generalization.

Ground-truth error labels were generated by aligning the ASR hypotheses with the original reference transcripts using minimum edit distance; any word requiring substitution or deletion was labeled an ERROR.

Dataset Statistics

Key Insights and Ideas

  • Naive Concatenation Fails: Simply appending raw confidence scores to the final hidden states of a Transformer model (the $BERT_C$ baseline) actually degrades performance compared to a text-only model. This indicates that Transformers struggle to combine raw continuous scalars with highly contextualized dense text representations without proper architectural integration.
  • Acoustic and Textual Signals are Complementary: A word might make perfect grammatical sense in a sentence (fooling a text-only language model) but possess a very low acoustic confidence score. Conversely, a rare word might look out of place to a language model but have high acoustic certainty. RED-ACE successfully balances both signals.
  • Robustness to Quality Shifts: Models trained on lower-quality audio data generalize better to clean data than vice versa, because the higher error rates expose the error detector to a wider variety of mistake patterns during training.

Key Results

RED-ACE consistently outperformed text-only BERT and all heuristic baselines across both clean and other (noisier/lower quality) audio pools:

  • Performance Boost: RED-ACE achieved an F1 score improvement ($\Delta F1$) of +4.9% on the clean dataset and +7.4% on the other dataset compared to the standard text-only BERT baseline.
  • Cross-Pool Robustness: In cross-pool evaluations (e.g., training on noisy other data and testing on clean data), RED-ACE maintained its performance edge, proving highly resilient to shifts in underlying audio recording quality.
  • Model Generalization: The benefits held true when switching to a completely different ASR model architecture (video), confirming that the confidence embedding mechanism is robust to the specific black-box ASR engine used.
Main Results Table

Limitations and Future Work

  • Isolated Deletions: The current framework cannot detect errors where the ASR system completely omits a word while transcribing the surrounding words correctly. Because RED-ACE operates as a sequence tagger over the generated text hypothesis, it can only flag incorrect words that are physically present in the transcript.
  • Future Directions: The authors plan to extend this framework to leverage additional non-textual signals from the ASR system, such as alternative hypothesis lattices (N-best lists). They also suggest exploring how confidence embeddings can be integrated directly into downstream ASR error correction models (sequence-to-sequence architectures) rather than just detection.

Summary updated

BibTeX
@inproceedings{gekhman2022red,
  author = {Zorik Gekhman and Dina Zverinski and Jonathan Mallinson and Genady Beryozkin},
  title = {{RED-ACE: Robust Error Detection for ASR using Confidence Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.180},
}
Figure