From the source
Apple researchers propose a lightweight method that detects code-switching directly from speech, bypassing the need for multilingual transcription.
- Code-switching, the alternation between languages within an utterance, is common in multilingual speech but underrepresented in pretraining corpora.
- The method identifies language-selective hidden-state dimensions in pretrained speech encoders and aggregates their frame-level activations into a prediction.
- Using Whisper-small, the approach achieves a mean F1 of 0.798 across 14 language pairs in CS-FLEURS, outperforming CNN and HuBERT baselines.
