Intent classification using pre-trained language agnostic embeddings for low resource languages

Hemant Yadav, Akshat Gupta, Sai Krishna Rallabandi, Alan W. Black, Rajiv Ratn Shah

TL;DR

This paper tackles the challenge of building Spoken Language Understanding (SLU) systems for low-resource languages without relying on language-specific Automatic Speech Recognition (ASR). They propose using pre-trained, language-agnostic acoustic embeddings from a universal phone decoder (Allosaurus) to directly perform intent classification, achieving state-of-the-art results on Sinhala and Tamil.

What Problem Does This Paper Address?

Building effective Spoken Language Understanding (SLU) systems, which typically involve converting speech to text (ASR) and then understanding the text's intent (NLU), is heavily reliant on large amounts of labeled data. This is a major bottleneck for low-resource languages where such data is scarce. Traditional approaches require a separate, high-quality ASR system for each language, which is often infeasible. This paper explores a more efficient approach: bypassing the ASR step entirely by using phonetic transcriptions or, more effectively, acoustic embeddings derived from a language-independent universal phone decoder. This allows for the creation of NLU modules that can work across languages without needing language-specific speech recognition models.

Methods

The core of the proposed method is a 1-D dilated Convolutional Neural Network (CNN) architecture designed for intent classification. The novelty lies in the input embeddings used:

  • Phone Embeddings (E1): These are learned embeddings that map individual phones (phonetic units) to a 256-dimensional feature vector. This is similar to previous work.
  • Panphone Embeddings (E2): These are fixed 26-dimensional features for each phone, derived from a resource that maps phones to articulatory features.
  • Allo Embeddings (E3): This is the proposed novel embedding. It utilizes the pre-trained, language-agnostic last layer outputs (640-dimensional) from the Allosaurus universal phone decoder. These embeddings are fixed and not trained further.

The 1-D dilated CNN architecture consists of four layers with increasing dilation rates to capture a wider temporal context. This is followed by average pooling and a linear layer for intent classification. The authors emphasize that the Allo embeddings are language-agnostic, meaning they are derived from a model trained on a large, diverse dataset (primarily English) and are expected to generalize to other languages.

Datasets

The experiments were conducted on three languages, simulating different resource scenarios:

  • English: Fluent Speech Commands (FSC) dataset [4], representing a high-resource scenario with 30,043 utterances and 97 speakers.
  • Sinhala: A banking domain dataset collected via crowd-sourcing [1], representing a medium-resource scenario with 7,624 utterances and 215 speakers.
  • Tamil: Another banking domain dataset collected via crowd-sourcing [12], representing a low-resource scenario with 400 utterances and 40 speakers.

For Sinhala and Tamil, 5-fold cross-validation was used due to the lack of standard train/validation/test splits.

Key Insights and Ideas

  • Language-Agnostic Embeddings are Powerful: The "Allo" embeddings, derived from a pre-trained universal phone decoder, demonstrate strong performance across different languages, even those with significantly less training data. This suggests that acoustic information captured by such models is highly transferable.
  • Context is King for Low-Resource Settings: For the Allo embeddings, a larger temporal context (achieved through dilated CNNs) is crucial, especially in low-resource scenarios. This larger context seems to compensate for the limited training data by providing more discriminative information.
  • CNNs Outperform LSTMs/Transformers in Low-Resource: The paper shows that their 1-D dilated CNN architecture, when coupled with phone embeddings, outperforms previous work using LSTMs and Transformers on low-resource languages, suggesting CNNs are more robust to data scarcity in this context.
  • Allo Embeddings Offer a Competitive Edge: While Phone embeddings can achieve good results, Allo embeddings consistently perform better or on par, especially in low-resource settings, and achieve new state-of-the-art results on Sinhala and Tamil.

Key Results

  • State-of-the-Art on Low-Resource: The proposed method using Allo embeddings achieved new SOTA accuracy on Sinhala (99.42%) and Tamil (98.50%) when using configuration C5 (largest context size).
  • Competitive on High-Resource: For English, the system achieved 99.08% accuracy, performing competitively with existing End-2-End approaches.
  • Significant Gains: The system improved intent classification accuracy by an absolute 2.11% for Sinhala and 7.00% for Tamil compared to previous SOTA.
  • Context Size Matters: Figure 2 clearly shows that increasing the context size generally leads to improved accuracy for all embeddings, but this effect is more pronounced for Allo embeddings in low-resource scenarios.
  • Scalability: Figure 4 demonstrates that with a small number of training examples (192), Allo embeddings perform comparably to Phone and Panphone embeddings. However, as the training data increases, Allo embeddings show significant gains, validating the hypothesis that context size compensates for limited data.

Limitations and Future Work

  • Context Size Dependency: The paper acknowledges that for Allo embeddings to perform well in low-resource settings, a larger context size is necessary. This implies a trade-off between model complexity and data availability.
  • Fine-tuning Potential: The authors suggest that further gains could be achieved by fine-tuning the Allosaurus tool in an end-to-end fashion with the 1-D dilated CNN.
  • Slot Identification: The proposed method can be extended to perform slot identification, similar to previous work.
  • Extremely Low-Resource Settings: Future work aims to explore how to make Allo embeddings perform better in extremely low-resource settings, potentially with smaller context sizes.

Summary updated

Abstract

Building Spoken Language Understanding (SLU) systems that do not rely on language specific Automatic Speech Recognition (ASR) is an important yet less explored problem in language processing. In this paper, we present a comparative study aimed at employing a pre-trained language agnostic acoustic model to perform SLU in low resource scenarios. Specifically, we use three different embedding settings extracted using Allosaurus, a pre-trained universal phone decoder: (1) Phone-labels (2) Panphone, and (3) Allo embeddings (proposed by us). These embeddings are then used in identifying the spoken intent. We perform experiments across three different languages: English, Sinhala, and Tamil each with different data sizes to simulate high, medium, and low resource scenarios. Our system improves on the state-of-the-art (SOTA) intent classification accuracy by absolute 2.11% for Sinhala and 7.00% for Tamil and achieves competitive results in English. Furthermore, we also present a quantitative analysis to show how the performance scales with the number of training examples.
BibTeX
@inproceedings{yadav2022intent,
  author = {Hemant Yadav and Akshat Gupta and Sai Krishna Rallabandi and Alan W. Black and Rajiv Ratn Shah},
  title = {{Intent classification using pre-trained language agnostic embeddings for low resource languages}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10873},
}
Figure