Rapid Language Adaptation for Multilingual E2E Speech Recognition Using Encoder Prompting

Yosuke Kashiwagi, Hayato Futami, Emiru Tsunoo, Siddhant Arora, Shinji Watanabe

Abstract

Multilingual end-to-end (E2E) speech recognition models often struggle with low-resource languages due to difficulties in language identification (LID). This paper introduces "Encoder Prompting," a novel technique for steering Connectionist Temporal Classification (CTC) models using language IDs during inference. By integrating prompts into the intermediate layers of a self-conditioned encoder, the proposed method achieves significant performance gains without requiring retraining. Experimental results show a 28% average error reduction across 52 languages, with improvements reaching 41% for extremely low-resource scenarios.

Introduction

Multilingual E2E speech recognition systems provide a unified framework for handling diverse languages. However, their performance is heavily dependent on accurate language identification. In standard Attention-based Encoder-Decoder (AED) architectures, such as Whisper, language tags are typically used to prompt the decoder.

Standard decoder prompting during training and inference.

While effective for AED, this approach is less compatible with joint CTC-AED systems. The CTC branch, characterized by conditional independence, treats audio frames separately and traditionally lacks a mechanism to incorporate external language prompts during inference. Consequently, if a model misidentifies a language early in the process, the CTC branch remains "lost," leading to degraded transcription quality.

Methodology: Encoder Prompting

To address this limitation, we leverage the Self-Conditioned CTC (SC-CTC) framework. SC-CTC models generate intermediate predictions within the encoder, which are then fed back into subsequent layers to refine the final output.

The proposed Encoder Prompting technique manually intervenes in these intermediate predictions. When the target language is known (e.g., via user settings), the model's internal "guess" is replaced or modified with the correct language ID (LID) before being passed to the rest of the encoder stack.

The proposed Encoder Prompting architecture within a Self-Conditioned CTC framework.

Modification Strategies

We evaluated three primary strategies for injecting prompts:

  1. Replacement: The frame with the highest LID probability is overwritten with a one-hot vector of the target language.
  2. Aggregation: The total probability mass of all language tokens is summed and reassigned to the target language across all frames, reducing "language noise."
  3. Prefix: Only the initial frame of the sequence is overwritten, mimicking traditional decoder prompting.

Additionally, Soft Prompting was introduced to handle uncertainty by narrowing the model's focus to a subset of likely languages rather than a single choice.

Experimental Results

The method was tested on the Common Voice + VoxForge (52 languages) and FLEURS (102 languages) benchmarks.

Performance Gains

On the Common Voice dataset, Encoder Prompting reduced the average Character Error Rate (CER) from 22.4% to 14.3%, representing a 36% relative improvement over the baseline SC-CTC. The most significant impact was observed in "extremely low-resource" languages (less than 5 hours of training data), where error rates plummeted by 41%.

Key Insights

  • Propagation of Language Awareness: Prompting the encoder ensures that language information influences the entire network, benefiting both CTC and Attention branches.
  • Bypassing the LID Bottleneck: The primary failure mode for low-resource languages is incorrect LID. Encoder prompting effectively removes this bottleneck.
  • Zero-Shot Capability: The technique is applied during inference and requires no additional training or fine-tuning of the pre-trained SC-CTC model.

Conclusion

Encoder Prompting offers a robust and efficient way to adapt multilingual ASR models to specific languages. By steering the encoder's internal representations, we significantly improve accuracy, particularly for the world's most under-represented languages. Future work will explore closed-loop systems where decoder feedback further refines encoder prompts.

Summary updated

BibTeX
@inproceedings{kashiwagi2024rapid,
  author = {Yosuke Kashiwagi and Hayato Futami and Emiru Tsunoo and Siddhant Arora and Shinji Watanabe},
  title = {{Rapid Language Adaptation for Multilingual E2E Speech Recognition Using Encoder Prompting}},
  booktitle = {Interspeech},
  year = {2024},
  doi = {10.21437/interspeech.2024-702},
}
Figure