Towards Joint Intent Detection and Slot Filling via Higher-order Attention

Dongsheng Chen, Zhiqi Huang, Xian Wu, Ge Shen, Yuexian Zou

TL;DR

This paper introduces the Higher-order Attention Network (HAN) for spoken language understanding (SLU), which improves joint intent detection and slot filling by leveraging "higher-order" interactions between intent and slot features. By employing a novel BiLinear attention block and a dynamic feature fusion layer, HAN captures more complex relationships than traditional methods, leading to state-of-the-art results on benchmark datasets.

What Problem Does This Paper Address?

Spoken Language Understanding (SLU) systems aim to decipher user commands by identifying the user's intent (e.g., "Play Song") and extracting relevant information as slots (e.g., "song title," "artist"). While these two tasks are highly correlated – knowing the intent can help identify slots, and vice versa – many existing methods treat them somewhat independently or rely on simpler interaction mechanisms. Recent advances have used attention mechanisms to foster interaction, but these typically focus on "first-order" interactions, meaning they consider pairwise relationships between individual features. The authors argue that this is insufficient and that exploring "higher-order" interactions (capturing more complex, multi-way relationships) can lead to more robust and accurate SLU systems.

Methods

The core innovation of this paper is the BiLinear attention block. Unlike standard attention mechanisms that linearly combine query and key vectors, this block uses bilinear pooling. This operation computes the outer product of feature vectors, inherently capturing second-order interactions. By stacking these BiLinear blocks, the model can learn even higher-order feature interactions. To achieve "infinity-order" interactions, they incorporate the Exponential Linear Unit (ELU) activation function.

Before the final output, the paper introduces a Dynamic Feature Fusion Layer (DFFL). Instead of simply concatenating intent and slot features, the DFFL computes correlation matrices to dynamically weight and fuse these features, aiming for a more effective integration.

The overall architecture, the Higher-order Attention Network (HAN), replaces the conventional Co-Interactive Attention Layer (CAL) with their proposed Higher-order Attention Layer (HAL), which is built upon the BiLinear attention blocks. The DFFL replaces the standard Feature Fusion Layer (FFL).

Datasets

The authors evaluate their proposed HAN on two widely-used benchmark datasets for SLU:

  • SNIPS: Contains 13,084 utterances for training, 700 for validation, and 700 for testing.
  • ATIS: Contains 4,478 utterances for training, 500 for validation, and 893 for testing.

These datasets are standard in the field and are used with their common partitions.

Key Insights and Ideas

  • Beyond First-Order: The central idea is that moving beyond simple pairwise (first-order) interactions to capture more complex, higher-order relationships between intent and slot features is crucial for improving SLU performance.
  • Bilinear Pooling for Richer Interactions: Bilinear pooling is a powerful tool for capturing second-order interactions, and stacking these blocks allows for even more sophisticated feature representations.
  • ELU for Infinity-Order: The use of ELU activation within the higher-order attention framework provides a mechanism to model theoretically infinite-order feature interactions, offering a more comprehensive understanding of feature relationships.
  • Dynamic Fusion Matters: Simply concatenating features is less effective than dynamically weighting and fusing them based on their relevance, as demonstrated by the DFFL.
  • Robustness and Generalization: The higher-order attention mechanism not only improves accuracy but also shows increased robustness to hyperparameter choices (like learning rate) and better generalization capabilities.

Key Results

The proposed HAN achieved state-of-the-art results on both the SNIPS and ATIS datasets.

  • SNIPS:
    • Overall Accuracy: 91.80% (a 2.68% improvement over the previous state-of-the-art Co-Interactive model).
  • Slot F1: 96.18%
    • Intent Accuracy: 99.12%
  • ATIS:
    • Overall Accuracy: 88.47% (a 1.78% improvement over Co-Interactive).
  • Slot F1: 96.12%
    • Intent Accuracy: 98.04%

Furthermore, when incorporating the pre-trained BERT model, HAN achieved even higher performance, demonstrating its compatibility with powerful language models. Ablation studies showed that each component of HAN (BiLinear attention, DFFL, ELU) contributed positively, with ELU providing the most significant boost.

Limitations and Future Work

  • Overfitting with Deep Stacking: While stacking BiLinear attention blocks can theoretically capture any order of interaction, the authors found that stacking too many layers (beyond two in their experiments) can lead to overfitting, hindering performance. They suggest that there's an optimal number of stacked layers.
  • Generalization to Other Tasks: The authors believe their proposed higher-order attention mechanism is applicable to other Natural Language Processing tasks beyond SLU, suggesting this as a future research direction.
  • Hyperparameter Sensitivity: While the paper demonstrates robustness to learning rate, the optimal number of HAL sublayers needs careful tuning, as performance degrades with excessive stacking.

Summary updated

Abstract

Intent detection (ID) and Slot filling (SF) are two major tasks in spoken language understanding (SLU). Recently, attention mechanism has been shown to be effective in jointly optimizing these two tasks in an interactive manner. However, latest attention-based works concentrated only on the first-order attention design, while ignoring the exploration of higher-order attention mechanisms. In this paper, we propose a BiLinear attention block, which leverages bilinear pooling to simultaneously exploit both the contextual and channel-wise bilinear attention distributions to capture the second-order interactions between the input intent or slot features. Higher and even infinity order interactions are built by stacking numerous blocks and assigning Exponential Linear Unit (ELU) to blocks. Before the decoding stage, we introduce the Dynamic Feature Fusion Layer to implicitly fuse intent and slot information in a more effective way. Technically, instead of simply concatenating intent and slot features, we first compute two correlation matrices to weight on two features. Furthermore, we present Higher-order Attention Network for the SLU tasks. Experiments on two benchmark datasets show that our approach yields improvements compared with the state-of-the-art approach. We also provide discussion to demonstrate the effectiveness of the proposed approach.
BibTeX
@inproceedings{chen2022towards,
  author = {Dongsheng Chen and Zhiqi Huang and Xian Wu and Ge Shen and Yuexian Zou},
  title = {{Towards Joint Intent Detection and Slot Filling via Higher-order Attention}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/565},
}
Figure