Attention-Informed Mixed-Language Training for Zero-Shot Cross-Lingual Task-Oriented Dialogue Systems

Zihan Liu, Genta Indra Winata, Zhaojiang Lin, Peng Xu, Pascale Fung

Abstract

Building task-oriented dialogue systems for low-resource languages is hindered by the high cost of data annotation. This paper proposes Attention-Informed Mixed-Language Training (MLT), a data-efficient zero-shot adaptation method. By leveraging an English model's attention mechanism to identify and translate key task-related words, MLT generates "code-switched" training data. This approach achieves state-of-the-art performance on dialogue state tracking and natural language understanding using as few as 5 to 20 bilingual word pairs, significantly reducing the reliance on large parallel corpora.

Introduction

Task-oriented dialogue systems, such as virtual assistants, have seen significant success in high-resource languages like English. However, extending these capabilities to low-resource languages remains a challenge. Traditional zero-shot cross-lingual adaptation methods often rely on large parallel corpora to align language representations, which is impractical for many languages. Furthermore, misalignments in common cross-lingual embeddings like MUSE or Multilingual BERT (mBERT) can degrade transfer performance. This work addresses these issues by introducing a robust zero-shot transfer method that operates under an extremely limited bilingual resource budget.

Methodology: Attention-Informed Mixed-Language Training (MLT)

The core of the proposed approach is the generation of "code-switched" (mixed-language) training data to bridge the gap between source and target languages. The MLT pipeline consists of several key stages:

  1. Attention-Based Selection: An English task-oriented model is trained with an attention layer. The words receiving the highest attention scores—representing the most task-critical information (e.g., "restaurant", "alarm")—are extracted and filtered by frequency.
  2. Dictionary Mapping: A minimal bilingual dictionary is used to translate these extracted keywords into the target language.
  3. Mixed-Language Training: The original English training data is modified by replacing the selected keywords with their target-language translations. The model is then trained on these code-switched sentences using cross-lingual embeddings.
  4. Subword-to-Word Mapping: To handle word-level tasks like slot-filling while using subword-based models (e.g., XLM, mBERT), a Transformer encoder is added to learn robust word-level representations from subword units.
Overview of the Attention-Informed Mixed-Language Training (MLT) pipeline, showing word selection, code-switched sentence generation, and zero-shot testing.

Task Architectures

The authors evaluate MLT across two primary tasks: Dialogue State Tracking (DST) and Natural Language Understanding (NLU).

Model architectures used for Dialogue State Tracking (left) and Natural Language Understanding (right). Both utilize BiLSTM encoders and attention mechanisms.
  • Dialogue State Tracking: The model uses a BiLSTM and attention layer to create utterance-level representations, which are combined with context gates to track slot-value pairs.
  • Natural Language Understanding: This involves joint intent detection (via an attention layer) and slot filling (via a Conditional Random Field layer).

Experimental Setup and Results

The method was evaluated on two major datasets: Multilingual WOZ 2.0 for DST (English, German, Italian) and the Multilingual NLU Dataset (English, Spanish, Thai) for intent detection and slot filling.

Key Results

  • Dialogue State Tracking: MLT significantly improved joint goal accuracy on Multilingual WOZ 2.0 using only 90 word pairs. For German, accuracy rose from 21.57% to 36.51%; for Italian, it increased from 20.66% to 39.35%.
  • Natural Language Understanding: Using just 20 word pairs, MLT boosted Spanish intent accuracy from 37.67% to 87.05% and slot filling F1 from 22.23% to 57.75%. Remarkably, even with only 5 word pairs, substantial gains were observed.
  • Performance on Thai: MLT outperformed large pre-trained models like XLM and mBERT on Thai NLU tasks. The authors discovered that Thai subword sequences in mBERT/XLM are roughly twice as long as in other languages, which degrades the quality of subword-to-word alignments; MLT helps mitigate this by anchoring the model with specific keywords.

Discussion and Insights

A major finding is that attention-based selection outperforms human intuition. Keywords selected by the model's attention layer capture contextual nuances and paraphrases that manual selection or rigid ontologies might miss. Furthermore, MLT promotes generalization to synonyms; by anchoring the model with a few translated keywords, the attention mechanism learns to recognize semantically related words in the target language that were never explicitly seen during training.

Limitations

Despite its success, the method faces challenges with subword alignment in complex scripts like Thai, where tokenization can lead to excessively long sequences. Additionally, the simple dictionary-based replacement may be less effective for morphologically rich languages where 1:1 word mapping is insufficient.

Conclusion

Attention-Informed Mixed-Language Training provides a highly efficient path for zero-shot cross-lingual transfer in task-oriented dialogue. By focusing on task-critical keywords identified through attention, the method achieves significant performance gains with minimal bilingual resources, offering a scalable solution for supporting low-resource languages.

Summary updated

BibTeX
@inproceedings{liu2020attention,
  author = {Zihan Liu and Genta Indra Winata and Zhaojiang Lin and Peng Xu and Pascale Fung},
  title = {{Attention-Informed Mixed-Language Training for Zero-Shot Cross-Lingual Task-Oriented Dialogue Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6362},
}
Figure