Accented Speech Recognition With Accent-specific Codebooks

Darshan Prabhu, Preethi Jyothi, Sriram Ganapathy, Vinit Unni · DOI

Introduction

Automatic Speech Recognition (ASR) systems have reached high levels of accuracy for standard dialects, but they often struggle with accented speech. Accents are influenced by a complex interplay of native language, geography, and socio-economics, making it nearly impossible to collect enough training data to cover every variation. Current solutions typically fall into two categories: accent-agnostic models that attempt to ignore accent information, or accent-aware models that use pre-defined embeddings. However, these methods often fail to generalize to "unseen" accents—those not present in the training data.

This paper introduces Codebook Attend (CA), a novel framework that integrates learnable, accent-specific codebooks into a Conformer-based ASR model. By using cross-attention and a specialized decoding algorithm, the system achieves significant performance gains for both seen and novel accents.

The Codebook Attend (CA) Framework

The CA framework is built on three primary innovations designed to capture and leverage the nuances of accented speech:

  1. Accent-Specific Codebooks: For every accent in the training set, the model maintains a "codebook"—a set of trainable latent vectors that capture unique acoustic and phonetic nuances.
  2. Cross-Attention Integration: Rather than simply concatenating an accent embedding to the input, the model uses a cross-attention mechanism inspired by the Perceiver framework. In each layer of the Conformer encoder, speech representations "attend" to the entries in the accent codebook, allowing for a fine-grained integration of accent information.
  3. Joint Beam-Search Decoding: At test time, the speaker's accent is usually unknown. To address this, the authors modified the standard beam-search algorithm. The decoder simultaneously explores hypotheses using all available seen accent codebooks and keeps the most likely sequences across all choices. This effectively allows the model to "pick" the best-fitting accent profile for each utterance.

Experimental Evaluation

The researchers utilized two primary datasets to evaluate the framework:

  • Mozilla Common Voice (MCV): Two subsets, MCV_ACCENT-100 and MCV_ACCENT-600, were curated featuring 14 English accents. Five were designated as "seen" (e.g., US, England) and nine as "unseen" (e.g., India, Philippines) to test generalization.
  • L2-Arctic: This dataset contains non-native English speech from speakers with diverse native languages (e.g., Arabic, Hindi, Korean). It was used for zero-shot transfer evaluation without any fine-tuning.

Key Results and Analysis

The CA system was compared against several strong baselines, including standard Conformers and models using Domain Adversarial Training (DAT).

Performance Gains

  • Seen Accents: On the MCV-100 set, the CA system achieved a Word Error Rate (WER) of 13.6%, a notable improvement over the Conformer baseline's 14.0%. Overall, the authors report up to a 37% relative improvement in WER for seen accents in specific contexts.
  • Unseen Accents: The system improved WER on unseen accents from 23.7% to 22.9%. While a 5% relative improvement is modest, it represents a significant step forward for the difficult task of zero-shot accent recognition.
  • Zero-Shot Transfer: On the L2-Arctic dataset, the CA model outperformed all other techniques on every single accent, proving that the learned codebooks capture robust features that transfer across different datasets.

Technical Insights

  • Approximating Unseen Accents: The model appears to use components of familiar accents to approximate unfamiliar ones. For example, a New Zealand accent might benefit from the patterns learned in an Australian codebook.
  • Early Layer Integration: Ablation studies revealed that adding codebooks to the early layers of the encoder provides the most benefit. This suggests that accents are primarily acoustic/phonetic differences processed in the lower levels of the neural network.
  • Hard Gating: The authors found that "hard gating" (committing to specific codebooks during training) was more effective than "soft gating" (averaging across codebooks). This forces the codebooks to specialize and capture distinct accent-specific information.

Limitations and Future Work

While the CA framework shows great promise, the authors identified several areas for improvement:

  • Inference Overhead: The joint beam-search algorithm increases computation time by approximately 16%.
  • Scalability: Creating one codebook per accent may not scale to hundreds of micro-accents. Future research may explore a single large "universal" codebook with learnable gates.
  • Utterance Constraints: The current system assumes one accent per utterance and cannot yet handle "code-switching" or mixed-accent environments within a single recording.

Conclusion

The Codebook Attend framework offers a powerful new approach to the long-standing problem of accented speech recognition. By combining latent accent representations with dynamic decoding, the model provides a path toward ASR systems that are more robust and inclusive of global linguistic diversity.

Summary updated

BibTeX
@inproceedings{prabhu2023accented,
  author = {Darshan Prabhu and Preethi Jyothi and Sriram Ganapathy and Vinit Unni},
  title = {{Accented Speech Recognition With Accent-specific Codebooks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=ZWpJFq6RRU},
}
Figure