Abstract
Speech accents pose a significant challenge to state-of-the-art automatic speech recognition (ASR) systems. Degradation in performance across underrepresented accents is a severe deterrent to the inclusive adoption of ASR. In this work, we propose a novel accent adaptation approach for end-to-end ASR systems using cross-attention with a trainable set of codebooks. These learnable codebooks capture accent-specific information and are integrated within the ASR encoder layers. The model is trained on accented English speech, while the test data also contained accents which were not seen during training. On the Mozilla Common Voice multi-accented dataset, we show that our proposed approach yields significant performance gains not only on the seen English accents (up to 37% relative improvement in word error rate) but also on the unseen accents (up to 5% relative improvement in WER). Further, we illustrate benefits for a zero-shot transfer setup on the L2Artic dataset. We also compare the performance with other approaches based on accent adversarial training.
Introduction
Standard automatic speech recognition (ASR) systems are notoriously biased toward standard dialects, such as General American English. Performance often degrades sharply when encountering regional or non-native speech because training datasets are typically dominated by a few major accents. Existing solutions generally fall into two categories: accent-agnostic methods, which attempt to force the model to ignore accent information via adversarial training, and accent-aware methods, which utilize pre-calculated accent embeddings. However, ignoring accent information can discard helpful acoustic cues, while coarse embeddings often fail to capture fine-grained phonetic variations. Furthermore, most systems struggle to generalize to accents not present in the training set.
Proposed Method: Accent-Specific Codebooks
This research introduces a novel architectural modification to the state-of-the-art Conformer model to address these challenges. The proposed system, termed Codebook Attend (CA), incorporates three key innovations:
- Accent-Specific Codebooks: The model maintains a set of trainable vectors for every accent encountered during training (e.g., US, British, Scottish). These vectors serve as a latent memory of the unique phonetic and acoustic characteristics of each accent.
- Cross-Attention Integration: Instead of simple concatenation, a cross-attention sub-layer is integrated into the encoder blocks. Speech features act as the "Query," while accent codebook entries serve as the "Key" and "Value." This allows the model to dynamically pull relevant accent information for every frame of speech.
- Joint Beam-Search Decoding: To handle unknown accents at test time, the authors implemented a modified decoding process. The model simultaneously searches across all seen accent codebooks, essentially "trying on" different accent filters and retaining the most linguistically coherent hypotheses.
Experimental Setup and Results
The model was evaluated using two primary datasets: a curated subset of the Mozilla Common Voice (MCV_ACCENT) and the L2-Arctic dataset for zero-shot transfer evaluation. The MCV_ACCENT split included five "Seen" accents (US, England, Australia, Canada, Scotland) and nine "Unseen" accents (e.g., Africa, India, Ireland).
Performance Gains
The CA model demonstrated superior performance across all categories. On the MCV dataset, it achieved up to a 37% relative improvement in Word Error Rate (WER) for specific seen accents like Scottish English. Crucially, it also showed a 5% relative improvement on unseen accents, outperforming popular techniques like Domain Adversarial Training (DAT).
Key Insights
- Acoustic Granularity: By using cross-attention, the model performs fine-grained adaptation at the frame level rather than relying on a single global embedding.
- Early Layer Importance: Ablation studies indicated that integrating codebooks into the early encoder layers provides the most benefit, confirming that accents are primarily an acoustic/phonetic phenomenon handled in the lower levels of the network.
- Generalization through Similarity: The model exhibits a "nearest neighbor" effect for unseen accents. For instance, it often utilizes the Australian codebook to decode New Zealand speech, suggesting the codebooks learn meaningful acoustic clusters that generalize across similar regions.
Conclusion
The use of accent-specific codebooks with cross-attention provides a robust framework for improving ASR inclusivity. While the joint beam search increases inference time by approximately 16%, the significant gains in accuracy for both seen and unseen accents justify the trade-off. Future work may explore moving toward a single, massive shared codebook with dynamic gating to further improve scalability across hundreds of micro-dialects.
Summary updated