Lexical Speaker Error Correction: Leveraging Language Models for Speaker Diarization Error Correction

Rohit Paturi, Sundararajan Srinivasan, Xiang Li

Introduction

Researchers from AWS AI Labs have introduced a novel "second-pass" system designed to refine speaker diarization—the process of identifying "who spoke when" in an audio recording. While traditional systems rely heavily on acoustic features (the sound of a voice), they often struggle during speaker turns or overlapping speech. The proposed Speaker Error Correction (SEC) module leverages the power of Large Language Models (LLMs) to analyze transcribed text, using lexical context to correct attribution errors. This approach has demonstrated a 15-30% relative reduction in word-level diarization errors across multiple telephony datasets.

The Problem: Acoustic Limitations

Standard speech processing pipelines typically treat Automatic Speech Recognition (ASR) and Speaker Diarization (SD) as independent tasks. The ASR system transcribes what was said, while the SD system determines who said it based on voice characteristics.

However, acoustic-only models face significant hurdles. Short speech segments may lack sufficient data for accurate speaker identification, and timing mismatches during the reconciliation of ASR and SD outputs can lead to words being attributed to the wrong individual. By incorporating lexical information—the meaning and flow of the conversation—the SEC framework acts as a semantic "sanity check" on initial acoustic labels.

Methods

The SEC framework is a modular post-processing step that can be integrated into existing pipelines without retraining underlying acoustic models.

The overall system pipeline (a), the Lexical Speaker Corrector architecture (b), and the SEC inference strategy using sliding windows (c).

Architecture and Training

The system utilizes a pre-trained RoBERTa-base model to generate word embeddings. These embeddings are fused with initial speaker labels from the first-pass diarization and processed by a Transformer Encoder to predict corrected labels.

To overcome the scarcity of high-quality paired audio-text data, the authors employed a curriculum learning strategy. They simulated errors in plain text transcripts by randomly swapping speaker labels and substituting words. Initially, the model is trained on "easy" tasks with low speaker error rates to build trust in the first-pass labels. As training progresses, the error rate is increased, forcing the model to rely more heavily on lexical context to identify speaker transitions.

Inference Strategy

During inference, the system processes text using sliding windows. Empirical testing revealed that a window of approximately 30 words is optimal; shorter windows lack sufficient context, while longer windows may introduce irrelevant information that confuses the model. While the local windows are optimized for two-speaker scenarios, the system can handle multi-speaker audio by processing segments where only two speakers are active at a time.

Experimental Evaluation

The models were trained on the Fisher dataset and evaluated on several benchmarks to test generalization:

  • RT03-CTS: Conversational telephone speech benchmark.
  • Callhome American English (CHAE): Unconstrained native English conversations.
  • CH-109: A two-speaker subset of Callhome.

Key Results

The SEC module consistently outperformed strong baselines, achieving a 15-30% relative reduction in the Word Diarization Error Rate (WDER). Notably, the model generalized well to new datasets even when trained solely on Fisher data. The best performance was achieved through fine-tuning on a small amount of real paired data (RealSEC), which brought the Fisher test set WDER down to 1.53 from a 2.26 baseline.

Key Insights and Qualitative Analysis

A primary takeaway of this research is that words carry significant speaker cues. Humans can often identify speaker changes in a transcript based on conversational structure (e.g., a question followed by a response). This study proves that LLMs can effectively capture these cues to rectify acoustic mistakes.

Qualitative examples demonstrating how the SEC module corrects errors in overlapping speech and speaker turns.

As shown in the qualitative examples, the SEC module is particularly effective at resolving errors where the baseline hypothesis incorrectly switches speaker IDs mid-sentence or fails to account for brief interjections. By analyzing the "flow" of the sentence, the model re-attributes words to the correct speaker, significantly improving the coherence of the final transcript.

Limitations and Future Work

While the current system shows great promise, it is currently limited to English. Future iterations aim to incorporate multi-lingual training to create a language-agnostic corrector. Additionally, the researchers plan to generalize the local window logic for complex environments with many simultaneous participants, such as large meetings. Finally, integrating "soft" acoustic confidence scores from the first pass into the SEC module could prevent over-correction and further enhance accuracy.

Summary updated

BibTeX
@inproceedings{paturi2023lexical,
  author = {Rohit Paturi and Sundararajan Srinivasan and Xiang Li},
  title = {{Lexical Speaker Error Correction: Leveraging Language Models for Speaker Diarization Error Correction}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-1982},
}
Figure