Zero-Shot Cross-Lingual Sequence Tagging as Seq2Seq Generation for Joint Intent Classification and Slot Filling

Fei Wang, Kuan-Hao Huang, Anoop Kumar, Aram Galstyan, Greg Ver Steeg, Kai-Wei Chang2022

Abstract

The joint intent classification and slot filling task seeks to detect the intent of an utterance and extract its semantic concepts. In the zero-shot cross-lingual setting, a model is trained on a source language and then transferred to other target languages through multi-lingual representations without additional training data. While prior studies show that pre-trained multilingual sequence-to-sequence (Seq2Seq) models can facilitate zero-shot transfer, there is little understanding on how to design the output template for the joint prediction tasks. In this paper, we examine three aspects of the output template – (1) label mapping, (2) task dependency, and (3) word order. Experiments on the MASSIVE dataset consisting of 51 languages show that our output template significantly improves the performance of pre-trained cross-lingual language models.

Introduction

Building voice assistants that function across dozens of languages presents a significant scaling challenge. The standard approach involves Joint Intent Classification (IC) and Slot Filling (SF). For instance, in the command "Set an alarm for 5 PM," the system must identify the intent as alarm_set and extract the slot time: 5 PM.

The most efficient way to scale these systems is through zero-shot cross-lingual transfer, where a model is trained on a high-resource language (typically English) and expected to generalize to dozens of other languages without additional localized training data. While generative Sequence-to-Sequence (Seq2Seq) models like mT5 are powerful, they are highly sensitive to task formatting. This research addresses the lack of a principled framework for designing output templates in these generative NLU tasks.

Methodology: Optimizing the Output Template

The researchers treat NLU as a translation task where the model "translates" a raw sentence into a structured string of labels. Using the mT5 (multilingual T5) model as a backbone, the study focused on three critical design choices for the output template:

  1. Label Mapping: Instead of using arbitrary label IDs, the authors utilized concise, hierarchical labels. By adding prefixes to group related intents and using semantically meaningful words, the labels become more "natural" for the model to generate based on its pre-trained knowledge.
  2. Task Dependency: The order of generation matters. The study found that predicting the Intent label before the Slot labels acts as a helpful context or "prompt," improving the accuracy of the more difficult slot-filling task.
  3. Word Order (Data Augmentation): To mitigate English-specific word order bias (SVO), the authors implemented segment-level shuffling during training. This forces the model to learn the relationship between words and labels regardless of their position, aiding transfer to languages with different structures like Japanese (SOV).
The Seq2Seq model architecture for joint intent classification and slot filling, illustrating the transformation from raw text to structured intent and slot labels.

Key Results and Performance

The optimized template approach demonstrated significant improvements over the vanilla mT5 baseline across the MASSIVE dataset, which spans 51 languages and 18 domains.

  • Slot F1 Score: Improved by an average of 10.7% across all languages.
  • Exact Match Accuracy: Increased by 5.2%.
  • State-of-the-Art Comparison: The generative approach outperformed the previous state-of-the-art classification-based model (XLM-R) by 5.0% in Slot F1.
Zero-shot performance comparison between the baseline mT5 and the optimized approach across 51 target languages, showing consistent gains in nearly every case.

The method was successful in 49 out of 50 target languages. The consistent performance boost across diverse language families and scripts suggests that treating labels as semantic tokens allows the model to leverage its internal cross-lingual representations more effectively than traditional classification heads.

Conclusion and Future Work

This research highlights that the performance of zero-shot cross-lingual NLU is heavily dependent on output template design. By making labels more semantic and breaking source-language word order biases, generative models can achieve superior transfer performance. Future research may explore different decoding strategies, such as beam search, and investigate whether training on morphologically rich source languages further enhances cross-lingual robustness.

Summary updated

BibTeX
@misc{wang2022zero,
  author = {Fei Wang and Kuan-Hao Huang and Anoop Kumar and Aram Galstyan and Greg Ver Steeg and Kai-Wei Chang},
  title = {{Zero-Shot Cross-Lingual Sequence Tagging as Seq2Seq Generation for Joint Intent Classification and Slot Filling}},
  year = {2022},
  doi = {10.18653/v1/2022.mmnlu-1.6},
}
Figure