TL;DR
This paper introduces a novel "Concatenated Tokenizer" that allows a single Automatic Speech Recognition (ASR) model to handle code-switching (mixing languages within a sentence) while also identifying the language of each spoken word. They also present a method for generating synthetic code-switching data from existing monolingual datasets, enabling better training of these complex models.
What Problem Does This Paper Address?
Code-switching (CS) is common in multilingual communities, but building ASR systems that can accurately transcribe it is challenging. Traditional approaches often require large, specialized CS datasets, which are scarce. Existing methods for multilingual ASR might struggle to seamlessly switch between languages within a single utterance. Furthermore, accurately identifying which language is being spoken at any given moment is crucial for tasks like post-processing transcripts, but often requires separate models. This paper aims to bridge this gap by enabling robust CS ASR and integrated language identification using readily available monolingual data.
Methods
The core innovation is the Concatenated Tokenizer. Instead of creating a single, large tokenizer for all languages (which can lose language-specific information and lead to unbalanced token distributions), this method reuses existing monolingual tokenizers. Each language's tokenizer is assigned a distinct, non-overlapping range of token IDs. For example, English tokens might be IDs 0-1023, and Spanish tokens 1024-2047. This allows the ASR model to implicitly know the language of each token based on its ID. This approach also simplifies adding or removing languages from the model.
To overcome the lack of large CS datasets, the authors developed a synthetic data generation pipeline. This pipeline stitches together segments from monolingual speech data, carefully controlling parameters like silence duration and audio normalization to avoid introducing artificial cues that could mislead the model. This allows for the creation of large, diverse CS training corpora from existing monolingual resources.
Datasets
- Training Data:
- English: LibriSpeech (~960 hours)
- Spanish: Mozilla Common Voice 7.0, Multilingual LibriSpeech, Voxpopuli, Fisher (~1300 hours total)
- Hindi: ULCA dataset (~2250 hours)
- Synthetic CS Data: 10K hours generated for English-Spanish and English-Hindi pairs.
- Evaluation Data:
- English-Spanish:
- Monolingual: English Librispeech test-other
- Code-Switched: Miami Bangor corpus (real-world, full conversations)
- English-Hindi:
- Monolingual: English Librispeech test-other
- Code-Switched: MUCS 2021 corpus (real-world)
- Language Identification: FLEURS dataset (out-of-distribution)
- English-Spanish:
Key Insights and Ideas
- Implicit Language ID is Powerful: Assigning distinct ID ranges to tokenizers is a surprisingly effective way to embed language identification directly into the ASR model's output, eliminating the need for a separate LID model.
- Synthetic Data is a Game-Changer: The ability to generate high-quality synthetic CS data from monolingual sources significantly democratizes CS ASR research, reducing reliance on scarce, real-world CS corpora.
- Unified Models are Feasible: A single model trained with the concatenated tokenizer can achieve performance comparable to monolingual models on monolingual tasks, while also excelling at code-switching.
- Tokenizer Design Matters: The proposed concatenated tokenizer offers advantages over aggregated tokenizers (which merge vocabularies) by preserving language-specific information and enabling easier manipulation for tasks like LID.
Key Results
- State-of-the-Art on CS: The proposed models achieved new state-of-the-art results on the Miami Bangor CS evaluation corpus for English-Spanish.
- Competitive ASR Performance: The CS models performed competitively with monolingual models on monolingual evaluation sets.
- High Language Identification Accuracy: The Concatenated Tokenizer models achieved over 98% accuracy on the out-of-distribution FLEURS dataset for language identification.
- Improved Convergence: Initializing CS models from multilingual checkpoints led to better results and faster convergence compared to training from scratch.
Limitations and Future Work
- Scalability to More Languages: While the concatenated tokenizer assigns exclusive token spaces, scaling to a very large number of languages might lead to an unwieldy tokenizer size. Future work could explore how to manage this scalability challenge for massive multilingual models.
- Generalizability: The current work focused on two language pairs (English-Spanish, English-Hindi). Further experiments with a more diverse set of language pairs are needed to validate the generalizability of the approach.
- Extension to More Than Two Languages: Investigating the concatenated tokenizer's performance with more than two languages simultaneously is a promising future direction.
- Advanced Silence Handling: The synthetic data generation currently uses amplitude-based silence removal, which could be extended to more sophisticated voice activity detection (VAD) methods.
Summary updated