[Paper Review] Aligning Speech to Languages to Enhance Code-switching Speech Recognition
This paper proposes a language alignment loss (LAL) for code-switching speech recognition that enables frame-level language identification using pseudo labels from the ASR decoder, eliminating the need for costly frame-level annotations. By integrating LAL with large language models (LLMs) via a linguistic hint, the method achieves 14.1% relative WER reduction on the ASRU dataset and 5.5% on SEAME, with only a negligible parameter increase.
Code-switching (CS) refers to the switching of languages within a speech signal and results in language confusion for automatic speech recognition (ASR). To address language confusion, we propose a language alignment loss (LAL) that aligns acoustic features to pseudo-language labels learned from the ASR decoder during ASR training. This approach enables frame-level language identification without the need for frame-level language annotations. To further tackle the complex token alternatives for language modeling in bilingual scenarios, we propose to employ large language models via a generative error correction method. A linguistic hint, derived from LAL outputs and decoded hypotheses, is introduced to guide the prompting and enhance the LLM-based generative error correction for CS-ASR. The proposed methods are evaluated on the SEAME dataset and data from the ASRU 2019 Mandarin-English code-switching speech recognition challenge. The incorporation of the proposed language alignment loss improves CS-ASR performance for both hybrid CTC/attention and Whisper models on both datasets, with only a negligible increase in the number of parameters. This work also highlights the efficacy of language alignment loss in balancing primary-language-dominant bilingual data during training, with an 8.6% relative improvement on the ASRU dataset compared to the baseline model. Performance evaluation using large language models reveals the advantage of the linguistic hint by achieving 14.1% and 5.5% relative improvement on test sets of the ASRU and SEAME datasets, respectively.
Motivation & Objective
- Address language confusion in code-switching speech recognition due to lack of frame-level language annotations.
- Reduce reliance on expensive monolingual encoders or decoders that increase model parameters.
- Improve performance on imbalanced bilingual data by balancing primary and secondary language representation during training.
- Enhance ASR output quality using large language models via generative error correction guided by linguistic hints.
- Develop a low-cost, effective method to inject language-aware context into end-to-end ASR without external supervision.
Proposed method
- Introduce a language alignment loss (LAL) that performs frame-level language identification using pseudo language labels derived from the ASR decoder’s cross-attention weights.
- Use frame-to-token alignment from cross-attention matrices (not CTC) to generate more accurate pseudo labels, avoiding the issue of blank token misalignment.
- Train the ASR model with LAL to learn language-specific representations at the frame level without requiring ground-truth language labels.
- Generate an utterance-level linguistic hint from LAL predictions and decoded hypotheses to guide LLM prompting for error correction.
- Apply a fine-tuned LLM with LoRA adaptation for generative error correction, using the linguistic hint as a context prompt.
- Combine LAL-enhanced ASR with LLM-based correction via late fusion, improving robustness to substitutions and grammatical errors.
Experimental results
Research questions
- RQ1Can frame-level language identification be effectively performed without ground-truth language annotations in code-switching ASR?
- RQ2How does the proposed language alignment loss improve ASR performance on imbalanced bilingual data compared to standard end-to-end models?
- RQ3To what extent can a linguistic hint derived from LAL and ASR hypotheses enhance LLM-based error correction in code-switched speech?
- RQ4What is the impact of LAL on reducing substitution errors caused by language confusion in multilingual speech?
- RQ5Can LLMs guided by linguistic hints improve ASR performance on spontaneous, colloquial code-switched speech without fine-tuning on the target domain?
Key findings
- The LAL method achieves an 8.6% relative WER improvement on the ASRU 2019 code-switching dataset compared to the baseline model, demonstrating effectiveness in balancing primary- and secondary-language dominance.
- On the SEAME dataset, the LAL-based model reduces WER by 5.5% relative when combined with LLM-based error correction using a linguistic hint.
- The LAL method achieves 14.1% relative WER reduction on the ASRU dataset when enhanced with LLMs and linguistic hints, showing strong synergy between LAL and LLMs.
- The LAL method increases model parameters by only a negligible amount, as it requires only a single linear layer, unlike methods requiring additional encoders or decoders.
- The linguistic hint significantly improves LLM prompting, reducing substitution errors and grammatical inconsistencies in code-switched outputs.
- Despite improvements, the LLM fine-tuned on SEAME data performs worse on colloquial expressions, suggesting a trade-off between grammatical correctness and naturalness in spontaneous speech.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.