Hostname: page-component-5db58dd55d-688nx Total loading time: 0 Render date: 2026-07-08T03:19:02.273Z Has data issue: false hasContentIssue false

Intent detection and slot filling for Persian: Cross-lingual training for low-resource languages

Published online by Cambridge University Press:  06 September 2024

Reza Zadkamali
Affiliation:
Amirkabir University of Technology, Tehran, Iran.
Saeedeh Momtazi*
Affiliation:
Amirkabir University of Technology, Tehran, Iran.
Hossein Zeinali
Affiliation:
Amirkabir University of Technology, Tehran, Iran.
*
Corresponding author: Saeedeh Momtazi; Email: momtazi@aut.ac.ir
Rights & Permissions [Opens in a new window]

Abstract

Intent detection and slot filling are two necessary tasks for natural language understanding. Deep neural models have already shown great ability facing sequence labeling and sentence classification tasks, but they require a large amount of training data to achieve accurate results. However, in many low-resource languages, creating accurate training data is problematic. Consequently, in most of the language processing tasks, low-resource languages have significantly lower accuracy than rich-resource languages. Hence, training models in low-resource languages with data from a richer-resource language can be advantageous. To solve this problem, in this paper, we used pretrained language models, namely multilingual BERT (mBERT) and XLM-RoBERTa, in different cross-lingual and monolingual scenarios. To evaluate our proposed model, we translated a small part of the Airline Travel Information System (ATIS) dataset into Persian. Furthermore, we repeated the experiments on the MASSIVE dataset to increase our results’ reliability. Experimental results on both datasets show that the cross-lingual scenarios significantly outperform monolinguals ones.

Information

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. An example of intent and slot labels from the ATIS dataset.

Figure 1

Table 1. Summary of slot filling and intent detection results of existing models on SNIPS and ATIS datasets

Figure 2

Figure 2. Illustration of the JointBERT+CRF model. The input query is “from Philadelphia to Toronto” (Chen et al. 2019).

Figure 3

Figure 3. The architecture of the EN$\to$PR training scenario; the model was first trained on English training data and then on Persian training data.

Figure 4

Figure 4. The architecture of the EN + PR training scenario; the model was trained on a combination of English and Persian training data.

Figure 5

Figure 5. Examples of translated ATIS utterances with corresponding labels. The top part is the original English utterance, and the bottom part is the Persian translation.

Figure 6

Table 2. Datasets statistics

Figure 7

Table 3. Experimental results with all the scenarios, using mBERT pretrained language model as the encoder on ATIS and MASSIVE test dataset

Figure 8

Table 4. Experimental results with all the scenarios, using XLM-RoBERTa pretrained language model as the encoder on ATIS and MASSIVE test dataset

Figure 9

Table 5. Experimental results on the MASSIVE dataset using an equal number of Persian and English samples for training on the mBERT and XLM-RoBERTa language models

Figure 10

Figure 6. Performance over different size of Persian data for training phase in PR$\to$EN scenario.

Figure 11

Figure 7. Demonstration of a test sample from the ATIS dataset generated by the PR + EN scenario and mBERT model. The gold label and translation are also included.

Figure 12

Figure 8. Demonstration of a test sample from the MASSIVE dataset generated by the PR$\to$EN scenario and mBERT model. The gold label and translation are also included.

Figure 13

Figure 9. Demonstration of a test sample from the ATIS dataset showing incorrect output of our model with the EN + PR scenario. The golden label and translation are also included.

Figure 14

Table 6. Confusion matrix for intent detection of ATIS dataset

Figure 15

Figure 10. Demonstration of a test sample from the MASSIVE dataset showing incorrect output of our model with the EN$\to$PR scenario. The golden label and translation are also included.