Accidental Learners: Spoken Language Identification in Multilingual Self-Supervised Models

Travis M. Bartley, Fei Jia, Krishna C. Puvvada, Samuel Kriman, Boris Ginsburg

Abstract

In this paper, we extend previous self-supervised approaches for language identification by experimenting with Conformer based architecture in a multilingual pre-training paradigm. We find that pre-trained speech models optimally encode language discriminatory information in lower layers. Further, we demonstrate that the embeddings obtained from these layers are significantly robust to classify unseen languages and different acoustic environments without additional training. After fine-tuning a pre-trained Conformer model on the VoxLingua107 dataset, we achieve results similar to current state-of-the-art systems for language identification. More, our model accomplishes this with 5x less parameters. We open-source the model through the NVIDIA NeMo toolkit.

Introduction

Spoken Language Identification (LangID) is a foundational task in speech processing, yet the internal mechanisms of how Self-Supervised Learning (SSL) models represent language remain a subject of debate. While SSL models have achieved remarkable success by learning from vast amounts of unlabeled audio, previous research has offered conflicting views on where language-specific information is stored—some pointing to the final layers and others to the middle.

Furthermore, current state-of-the-art (SOTA) LangID models are often prohibitively large, frequently exceeding 300 million parameters. This research investigates the "critical regions" for language information within SSL models to develop more efficient, robust, and deployable LangID systems.

Methodology

The researchers utilized a Conformer-based architecture, which combines Transformers with convolutions to capture both global and local audio patterns. The study followed a four-step approach:

  1. Pre-training: A primary model, MultiVP, was trained on the multilingual VoxPopuli dataset using a contrastive loss objective.
  2. Layer Ablation: To identify the optimal depth for language features, the team iteratively added layers starting from the input (bottom) and measured LangID performance.
  3. Frozen vs. Fine-tuned: They compared "frozen" encoders (using pre-trained embeddings as-is) against fine-tuned encoders to evaluate the inherent quality of the pre-trained representations.
  4. The Decoder: For classification, they employed an "x-vector" paradigm, pooling the mean and standard deviation of encoder outputs before passing them through a bottleneck layer and a final softmax classifier.

The "Critical Region" of Language Information

A central finding of this work is that language-discriminatory information is not distributed evenly across the model. Instead, it peaks in the lower-to-middle layers. In an 18-layer model, performance is optimized when using features from layers 7 through 10. Beyond this point, LangID performance actually degrades.

Figure 2: Error rate comparison across different layers for various pre-training strategies. The MultiVP model shows a clear performance peak (lowest error) in the middle layers.

This suggests that the upper layers of SSL models become overly specialized for the specific pre-training task (such as predicting masked segments) at the expense of general language features. The authors hypothesize that LangID is essentially a task of learning a language’s phonemic distribution. Since medial layers in SSL models are known to be effective at phone identification, they naturally become the "critical regions" for LangID. Remarkably, these lower layers are robust enough to distinguish between languages the model has never encountered during pre-training.

Performance and Efficiency

By exploiting this "critical region," the researchers were able to prune the model significantly without sacrificing accuracy. A 9-layer Conformer sub-model achieved a 5.41% error rate on the VoxLingua107 benchmark.

Figure 6: Performance comparison between Conformer sub-models and massive SOTA models like XLS-R.

As shown in the results, this compact 64.8M parameter model outperformed the much larger XLS-R (300M parameters), which recorded a 5.7% error rate. This represents a 5x reduction in parameters while maintaining or improving performance. Additionally, these smaller sub-models reached convergence faster during training than their full-sized counterparts.

Conclusion

This study demonstrates that multilingual SSL models "accidentally" learn robust language representations in their early layers. By focusing on these critical regions, it is possible to build LangID systems that are both more efficient and more robust than massive, full-depth models. While challenges remain in distinguishing between highly similar language pairs (e.g., Hindi vs. Urdu), the released models provide a high-performance, open-source solution for production-grade language identification via the NVIDIA NeMo toolkit.

Summary updated

BibTeX
@inproceedings{bartley2023accidental,
  author = {Travis M. Bartley and Fei Jia and Krishna C. Puvvada and Samuel Kriman and Boris Ginsburg},
  title = {{Accidental Learners: Spoken Language Identification in Multilingual Self-Supervised Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=M4C6ZFoil3},
}
Figure