A language model based approach towards large scale and lightweight language identification systems

Brij Mohan Lal Srivastava, Hari Krishna Vydana, Anil Kumar Vuppala, Manish ShrivastavaarXiv 2015

Abstract

Multilingual spoken dialogue systems have gained prominence in the recent past necessitating the requirement for a front-end Language Identification (LID) system. Most of the existing LID systems rely on modeling the language discriminative information from low-level acoustic features. Due to the variabilities of speech (speaker and emotional variabilities, etc.), large-scale LID systems developed using low-level acoustic features suffer from a degradation in the performance. In this approach, we have attempted to model the higher level language discriminative phonotactic information for developing an LID system. In this paper, the input speech signal is tokenized to phone sequences by using a language independent phone recognizer. The language discriminative phonotactic information in the obtained phone sequences are modeled using statistical and recurrent neural network based language modeling approaches. As this approach, relies on higher level phonotactical information it is more robust to variabilities of speech. Proposed approach is computationally light weight, highly scalable and it can be used in complement with the existing LID systems.

Introduction

The rise of multilingual spoken dialogue systems has increased the demand for robust Language Identification (LID) front-ends. Traditional LID systems typically model language-discriminative information using low-level acoustic features, such as Mel-frequency cepstral coefficients (MFCCs). However, these features are often susceptible to speech variabilities, including speaker identity, emotional state, and recording conditions. Furthermore, scaling these systems to hundreds of languages is computationally intensive, often requiring parallel language-specific recognizers (PPRLM), which limits their practical deployment in large-scale applications.

This paper proposes a lightweight and scalable LID system that shifts the focus from acoustic modeling to higher-level phonotactic modeling—the study of how sounds are sequenced within a language. By utilizing a single language-independent phone recognizer and advanced language modeling techniques, the system achieves high robustness and scalability.

Methodology

The proposed LID system follows a two-stage pipeline: tokenization and sequence modeling.

System Architecture

The overall architecture is depicted in Figure 1. The input speech signal is first processed by a phone recognizer to generate a sequence of phone tokens. These tokens are then fed into a bank of language models, each representing a specific language. The language model that assigns the highest probability to the sequence identifies the language.

Proposed LID system architecture using a phone recognizer and language models.

Tokenization

Instead of employing multiple language-specific recognizers, the system uses a single, language-independent phone recognizer based on CMU’s PocketSphinx, trained on US English. The core idea is that the recognizer does not need to be phonetically accurate for every target language; it only needs to be consistent. By consistently mapping similar acoustic segments to the same phone labels, it creates a discriminative "tokenized" signature for each language.

Sequence Modeling

The resulting phone sequences are modeled using two distinct approaches:

  1. Statistical Language Models (SRILM): Standard n-gram models (1-gram to 6-gram) are used to capture local phonotactic constraints.
  2. Recurrent Neural Network Language Models (RNNLM): RNNs are employed to capture longer-term dependencies in the phone sequences. To manage computational complexity, the authors experimented with different class-based output layers.

Experimental Setup

The system was evaluated using a dataset from the Topcoder Spoken Language Recognition challenge, encompassing 176 languages. Each language included 375 utterances, each 10 seconds long. For the RNNLM experiments, the data was split into 300 utterances for training, 30 for validation, and 45 for testing per language.

Results and Discussion

The performance of the various modeling approaches across all 176 languages is summarized in Figure 3.

Comparison of accuracy across different SRILM and RNNLM configurations.

Analysis of Statistical Models

For the SRILM approach, the 3-gram model yielded the highest average accuracy of 85.45%. Interestingly, performance began to degrade for higher-order n-grams (e.g., 6-grams), likely due to data sparsity issues where specific long sequences were not sufficiently represented in the training data.

Superiority of Neural Modeling

The RNNLM approach consistently outperformed the statistical models. Specifically, the RNNLM with 6 classes achieved the highest average accuracy of 87.69%, with peak accuracies reaching 90.58% for certain languages. This suggests that the recurrent architecture is better suited for capturing the complex, long-range structural rules inherent in phonotactic patterns.

Robustness and Scalability

A key finding is that phonotactic modeling provides a "shield" against low-level acoustic variations. By abstracting speech into phone sequences, the system becomes more robust to speaker-specific traits and emotional nuances. Furthermore, the use of a single recognizer makes the system significantly more lightweight and easier to scale to a large number of languages compared to traditional parallel architectures.

Conclusion

This research demonstrates a highly scalable and lightweight approach to Language Identification by modeling high-level phonotactic information. By leveraging a universal phone recognizer and recurrent neural networks, the system achieves an average accuracy of 87.69% across 176 languages. Future work will explore model pruning, interpolation techniques, and the development of LID-specific acoustic models to further enhance performance and efficiency.

Summary updated

BibTeX
@misc{srivastava2015language,
  author = {Brij Mohan Lal Srivastava and Hari Krishna Vydana and Anil Kumar Vuppala and Manish Shrivastava},
  title = {{A language model based approach towards large scale and lightweight language identification systems}},
  year = {2015},
  eprint = {1510.03602},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1510.03602},
}
Figure