Balanced Joint Adversarial Training for Robust Intent Detection and Slot Filling

Xu Cao, Deyi Xiong, Chongyang Shi, Chao Wang, Yao Meng, Changjian Hu

Abstract

Spoken Language Understanding (SLU) models, typically performing Intent Detection (ID) and Slot Filling (SF) jointly, are often vulnerable to minor input perturbations such as typos or filler words. This paper introduces Balanced Joint Adversarial Training (BJAT), a novel approach that generates joint adversarial examples and utilizes a balance factor to stabilize multi-task learning. By addressing the sensitivity gap between ID and SF tasks, BJAT significantly enhances model robustness and generalization to rare words, achieving state-of-the-art results on benchmark datasets.

Introduction

In modern dialogue systems, Intent Detection (ID) and Slot Filling (SF) are the two primary components of Spoken Language Understanding. While joint models have become the standard for these tasks, they remain brittle when faced with real-world noise. Minor perturbations—such as a typo ("pitsburgh" for "pittsburgh") or the insertion of filler words ("watch video movie")—can lead to significant performance degradation. Standard techniques like character embeddings often fail to fully reconstruct semantic meaning from such noisy inputs.

Furthermore, applying adversarial training in a multi-task setting is challenging. Adversarial noise often impacts the loss of one task (e.g., SF) much more than the other (e.g., ID), leading to training instability and sub-optimal convergence.

Methodology: Balanced Joint Adversarial Training

The authors propose a two-stage evolution of adversarial training to address these vulnerabilities:

Joint Adversarial Training (JAT)

JAT utilizes the Fast Gradient Method (FGM) to identify "worst-case" perturbations to add to input word and character embeddings. The model is then trained to maintain correct predictions despite this noise, effectively "robustifying" the embedding space.

Balanced Joint Adversarial Training (BJAT)

The core innovation, BJAT, introduces a balance factor ($\alpha$) as a regularization term. Since ID and SF tasks have different sensitivities to noise, a single perturbation can cause an imbalance in their respective loss increases. The balance factor measures this discrepancy; by minimizing $\alpha$ alongside the standard loss, the model is forced toward a stable equilibrium where both tasks are equally robust.

The architecture of the proposed model featuring the Perturbation Module for generating adversarial noise.

The underlying architecture consists of a bidirectional LSTM encoder followed by an Attention/Max-pooling layer for intent detection and a Conditional Random Field (CRF) for slot filling. This method is also compatible with large-scale pre-trained models like BERT.

Experimental Setup

The proposed methods were evaluated on two gold-standard SLU benchmarks:

  • ATIS: A dataset focused on flight reservations (approx. 4,500 training sentences).
  • SNIPS: A larger, more diverse dataset from a personal voice assistant (approx. 13,000 training sentences).

To rigorously test robustness, "noisy" versions of these test sets were created by randomly adding, changing, or deleting characters in both slot words and contextual words.

Key Results and Discussion

The experimental results demonstrate that BJAT provides substantial improvements in both accuracy and robustness.

Performance comparison of baseline (AC/MC), JAT, and BJAT on ATIS and SNIPS datasets across Intent Classification Accuracy (ICA), Slot F1 (SF1), and Sentence Overall Accuracy (SOA).

Performance Gains

On the SNIPS dataset, the BJAT-enhanced lightweight model improved Sentence Overall Accuracy (SOA) by 10.9% over the baseline. When integrated with BERT-large, BJAT achieved new state-of-the-art results on both ATIS and SNIPS.

Robustness to Noise and Rare Words

BJAT models exhibited significantly smaller performance drops on noisy data. For instance, on the ATIS noisy test set, the drop in Intent Classification Accuracy was reduced from 3.72% (baseline) to 2.55% (BJAT). Additionally, BJAT nearly doubled the slot prediction accuracy for "Unseen" (UNK) words on ATIS, suggesting that adversarial training helps the model generalize to gaps in its vocabulary by acting as a powerful regularizer.

Training Stability

A critical insight of this work is the "Multi-task Sensitivity Gap." Slot filling is typically more sensitive to embedding perturbations than intent detection. By balancing this sensitivity, BJAT produces smoother learning curves and better optima compared to standard JAT, which often suffers from oscillations during training.

Conclusion and Future Work

Balanced Joint Adversarial Training (BJAT) offers a robust solution for joint SLU models by stabilizing multi-task adversarial training. While the current work focuses on embedding-level perturbations, it serves as a strong proxy for text-level noise. Future research may explore extending this balancing mechanism to other multi-task NLP challenges, such as joint entity and relation extraction, or incorporating discrete adversarial attacks like synonym substitution.

Summary updated

BibTeX
@inproceedings{cao2020balanced,
  author = {Xu Cao and Deyi Xiong and Chongyang Shi and Chao Wang and Yao Meng and Changjian Hu},
  title = {{Balanced Joint Adversarial Training for Robust Intent Detection and Slot Filling}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.432},
}
Figure