Slot-Gated Modeling for Joint Slot Filling and Intent Prediction

Chih-Wen Goo, Guang Gao, Yun-Kai Hsu, Chih-Li Huo, Tsung-Chieh Chen, Keng-Wei Hsu, Yun-Nung ChenNAACL 2018

Abstract

Spoken Language Understanding (SLU) typically involves two primary tasks: intent prediction and slot filling. While joint models have improved performance by sharing information between these tasks, they often rely on implicit learning through shared loss functions. This paper proposes a novel slot-gated mechanism that explicitly models the relationship between intent and slots. By using intent context to gate slot features, the proposed architecture achieves significant improvements in sentence-level semantic frame accuracy on the ATIS and Snips benchmark datasets.

Introduction

In modern Spoken Language Understanding (SLU) systems, parsing a user's utterance into a structured semantic frame is a critical step. This process requires solving two sub-tasks simultaneously: Intent Prediction, which identifies the user's overall goal, and Slot Filling, which labels specific entities within the sequence.

Example of SLU task: Intent prediction and slot filling for a movie query.

Historically, these tasks were handled by separate "pipelined" models, which suffered from error propagation. Recent state-of-the-art approaches moved toward joint models to mitigate this. However, these models often lack an explicit mechanism to leverage the strong dependency of slots on the overall intent. The authors of this paper argue that intent information should explicitly guide slot prediction to ensure semantic consistency across the entire utterance.

Proposed Methodology

The core contribution of this work is the Slot-Gated Mechanism, built upon a Bidirectional Long Short-Term Memory (BLSTM) network with attention.

The Slot-Gated Mechanism

The model first generates context vectors for the intent ($c^I$) and each slot ($c^S_i$) using attention mechanisms. The "Slot Gate" ($g$) is a learnable component that combines these contexts. It uses a $tanh$ activation and a trainable vector to produce a weighting factor that "gates" the slot features. By multiplying the slot context by this gate $g$, the model ensures that slot predictions are conditioned on the intent context, effectively filtering slot information through the lens of the predicted intent.

Model Architectures

The researchers proposed two variations of this architecture:

  1. Full Attention: This version utilizes separate attention mechanisms for both slots and intents, allowing for more fine-grained feature extraction.
  2. Intent Attention: A simplified version where slots share the attention mechanism of the intent, reducing model complexity.
Architectures for the Slot-Gated Model with Full Attention (a) and Intent Attention (b).

Experimental Setup

The models were evaluated on two widely used SLU benchmarks:

  • ATIS (Airline Travel Information System): A domain-specific dataset for flight reservations with a small vocabulary (722 words) and highly skewed intent distribution.
  • Snips: A diverse dataset from a personal voice assistant with a large vocabulary (11,241 words) and balanced intents across seven domains, such as music and restaurant booking.

Results and Discussion

The slot-gated models demonstrated superior performance over previous state-of-the-art joint models across multiple metrics.

Key Results

  • Sentence-Level Accuracy: The most demanding metric, requiring the entire semantic frame to be correct, saw a 4.2% relative improvement on ATIS and a 1.9% relative improvement on Snips.
  • Slot Filling (F1): Achieved 95.2% on ATIS and 88.8% on Snips.
  • Intent Accuracy: Reached 94.1% on ATIS and 97.0% on Snips.

Insights

The success of the slot-gated approach highlights the importance of explicit modeling. While shared loss functions allow for implicit correlation, forcing the network to pass slot information through an "intent filter" leads to more robust semantic representations. This is particularly evident in sentence-level accuracy; the gate acts as a global consistency check, preventing single-slot errors that would otherwise invalidate the entire frame.

Furthermore, the choice of architecture depends on dataset complexity. On the simpler ATIS dataset, the shared "Intent Attention" model performed slightly better due to its lower parameter count. Conversely, the "Full Attention" model was necessary to handle the diverse vocabulary and intents of the Snips dataset.

Conclusion

The introduction of a slot-gated mechanism provides a powerful way to explicitly model the dependencies between intent and slots in SLU. While the current model assumes a single intent per utterance, its success suggests that gating mechanisms could be a foundational component for future multi-intent or multi-domain SLU architectures. Future work may explore extending this guidance to more complex dialogue scenarios and optimizing the computational overhead of dual-attention systems.

Summary updated

BibTeX
@inproceedings{goo2018slot,
  author = {Chih-Wen Goo and Guang Gao and Yun-Kai Hsu and Chih-Li Huo and Tsung-Chieh Chen and Keng-Wei Hsu and Yun-Nung Chen},
  title = {{Slot-Gated Modeling for Joint Slot Filling and Intent Prediction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=rkbUnMZ_-H},
}
Figure