Improving Robustness of Task Oriented Dialog Systems

Arash Einolghozati, Sonal Gupta, Mrinal Mohit, Rushin ShaharXiv 2019

TL;DR

Task-oriented dialog systems are notoriously fragile, often failing when faced with minor rephrasings or synonyms. This paper introduces a framework for generating adversarial test sets for joint intent-slot tagging and proposes a defense strategy combining back-translation-based data augmentation with adversarial logit pairing to significantly boost model robustness.

What Problem Does This Paper Address?

Modern conversational AI relies on Natural Language Understanding (NLU) to perform two joint tasks: intent detection (classifying the user's goal, e.g., "find_weather") and slot tagging (identifying parameters, e.g., "Sydney" as a location).

Figure 1: Example sentence and its annotation

While these models perform well on standard benchmarks, they are often "over-sensitive" to small variations. A slight change in word order or the use of a synonym can cause the model to flip its prediction, even if the meaning remains identical to a human. Unlike computer vision, where adversarial noise is often imperceptible, creating adversarial examples for text is difficult because language is discrete; changing a single word can fundamentally alter a sentence's meaning. The authors address the lack of robust evaluation and defense mechanisms for these joint NLU tasks.

Methods

The authors propose a two-part solution: a method for generating "hard" test cases and a training strategy to defend against them.

1. Generating Adversarial Examples

To evaluate robustness, the researchers used two automated techniques to create paraphrases:

  • Back-translation: Translating an English query into an auxiliary language (like Spanish or Czech) and then back into English. This often produces natural-sounding variations (e.g., "Can I get the 10 day forecast?" becomes "Can I get a 10 day forecast?").
  • Noisy Sequence Autoencoder: Training a model to reconstruct a sentence but adding noise to the encoder's hidden state to force diverse outputs.
Figure 2: An example of back-translation. Translating the utterance back into the original language (English) but via an auxiliary language (Spanish) results in paraphrased variations in the beam.

To ensure these were truly "adversarial," they specifically selected variations where the base model's prediction changed compared to the original sentence, followed by manual re-annotation to ensure the ground truth labels were correct.

2. Defense Mechanisms

  • Data Augmentation: They added back-translated versions of the training data into the training set. Since slot labels might shift during translation, they used a "self-training" approach where the base model helped re-tag the new variations.
  • Adversarial Logit Pairing (ALP): This technique, adapted from computer vision, adds a loss term that penalizes the model if its "logits" (the raw output scores before the final decision) for a sentence and its paraphrase are too different. This encourages the model to have "smoother" decision boundaries.

Datasets

The study utilized a dataset of task-oriented queries in the weather and alarm domains, originally provided by Schuster et al. (2018).

  • Training: 25k queries.
  • Evaluation: 3k queries.
  • Test: 7k queries.
  • Labels: 11 intents and 7 slots. The authors created new adversarial test sets based on this data using the methods described above.

Key Insights and Ideas

  • Fragility is Pervasive: Even an ensemble of five models only slightly improved robustness, suggesting that the sensitivity to small perturbations is a fundamental property of the underlying neural architectures.
  • Natural vs. Malicious: The "adversarial" examples here aren't necessarily malicious attacks; they are often just natural variations (like adding a definite article) that the model hasn't seen enough of during training.
  • The Robustness-Accuracy Trade-off: A recurring theme in adversarial research appeared here: techniques that make the model more robust to "noisy" inputs often lead to a slight decrease in accuracy on "clean," standard data.
  • Cross-Method Transfer: Interestingly, augmenting data using back-translation (e.g., via Spanish) also improved the model's performance on adversarial examples generated by entirely different methods (like the noisy autoencoder).

Key Results

The baseline model was highly vulnerable, with its accuracy plummeting from 87.1% on clean data to as low as 21.4% on some adversarial sets.

Table 3: Accuracy over clean and adversarial test sets.

By combining data augmentation and Adversarial Logit Pairing, the researchers achieved:

  • Significant Robustness Gains: The average accuracy on adversarial sets improved from 29.2% to 41.3%.
  • Controlled Degradation: While robustness increased, clean accuracy only dropped by about 3.5% (from 87.1% to 83.6%).
  • Synergy: The combination of augmentation and ALP performed better than either method alone on the most difficult adversarial sets.

Limitations and Future Work

Despite the improvements, a "huge gap" remains between clean accuracy (~87%) and adversarial accuracy (~41%). The authors note that their current self-training method for labeling augmented data is simple and could be improved with more sophisticated techniques like multi-task tri-training.

Furthermore, the current approach to back-translation is computationally expensive for very large datasets. Future research could focus on more efficient ways to select which sentences to augment and which paraphrased "beams" are most beneficial for training. The authors also suggest exploring "targeted" attacks, where a model is intentionally nudged toward a specific incorrect label.

Summary updated

BibTeX
@misc{einolghozati2019improving,
  author = {Arash Einolghozati and Sonal Gupta and Mrinal Mohit and Rushin Shah},
  title = {{Improving Robustness of Task Oriented Dialog Systems}},
  year = {2019},
  eprint = {1911.05153},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.05153},
}
Figure