Reconstructing Capsule Networks for Zero-shot Intent Classification

Han Liu, Xiaotong Zhang, Lu Fan, Xuandi Fu, Qimai Li, Xiao-Ming Wu, Albert Y. S. Lam

Introduction

In modern dialogue systems like Siri or Alexa, intent classification is the fundamental task of mapping a user's utterance (e.g., "What's the forecast?") to a specific action (e.g., Get_Weather). However, as new services and features emerge, these systems must handle categories they were never explicitly trained on. This challenge is known as Zero-Shot Intent Classification (ZSIC).

While traditional models struggle with the nuances of language and a heavy bias toward known categories, researchers have introduced ReCapsNet-ZS. This evolution of Capsule Networks addresses two critical bottlenecks: word polysemy and the "seen bias" in generalized settings.

The Challenges of Zero-Shot Learning

The authors identify two major flaws in previous state-of-the-art models, such as IntentCapsNet:

  1. Polysemy and Context: Standard self-attention mechanisms treat a word as a single semantic unit. However, a word like "book" has vastly different meanings in "Book a flight" (action) versus "Read a book" (object). Existing models often fail to isolate the specific "facet" of a word's meaning relevant to the current intent.
  2. The "Seen" Bias in GZSIC: In Generalized ZSIC (GZSIC), where the model must distinguish between both seen and unseen intents simultaneously, previous models were heavily biased toward seen intents. In many cases, unseen intents were ignored entirely, with the model defaulting to the most similar known category.

Methods: Reconstructing the Capsule Network

ReCapsNet-ZS "reconstructs" the standard Capsule Network architecture with two primary innovations designed to improve semantic transfer.

Overview of the ReCapsNet-ZS architecture, illustrating the flow from training utterances to intent labels via dimensional attention and matrix reconstruction.

Dimensional Attention

Instead of assigning a single attention score to an entire word, ReCapsNet-ZS utilizes Dimensional Attention. This mechanism assigns different scores to different dimensions of a word's embedding. By doing so, the model can focus on specific semantic features—such as the "action" component of a polysemous word—while filtering out irrelevant noise. This allows for a more granular understanding of the user's goal.

Transformation Matrix Reconstruction

In Capsule Networks, "transformation matrices" serve as the knowledge bridge between low-level features and high-level intents. Rather than guessing for unseen categories, ReCapsNet-ZS reconstructs a new matrix for unseen intents by intelligently blending the matrices of similar "seen" intents. To ensure this mapping is accurate, the researchers employed a learned Mahalanobis distance metric, which accounts for correlations between different dimensions of intent label embeddings.

Experimental Results

The model was evaluated on two major benchmarks: SNIPS-NLU (English) and SMP-2018 (Chinese). The researchers tested the model in both standard zero-shot settings and the more realistic generalized setting.

Performance Breakthroughs

In standard zero-shot testing on SNIPS-NLU, ReCapsNet-ZS achieved an accuracy of 79.96%, outperforming the previous leading model, IntentCapsNet (77.52%). However, the most significant improvement occurred in the Generalized (GZSIC) setting.

Performance comparison in the Generalized Zero-Shot Intent Classification (GZSIC) setting across SNIPS-NLU and SMP-2018 datasets.

As shown in the results table, previous models like IntentCapsNet often suffered from a "black hole" effect in GZSIC, scoring 0% accuracy on unseen intents because they were overwhelmed by seen categories. ReCapsNet-ZS successfully broke this bias, achieving 11.21% accuracy on unseen intents in SNIPS-NLU while maintaining high performance on seen intents. This led to a significantly higher overall F1 score compared to all baselines.

Key Insights and Future Work

The success of ReCapsNet-ZS suggests that structural transfer (transferring transformation matrices) is more effective than simple vector transfer for zero-shot tasks. By providing the model with a robust "template" for what an unseen intent should look like, the architecture becomes far more adaptable.

While the jump from 0% to ~11-17% accuracy on unseen intents in generalized settings is a massive technical leap, it also highlights the remaining gap between AI and human-like adaptability. Future research directions include extending this framework to few-shot learning scenarios and multi-intent classification, where a single user utterance may contain multiple goals.

Summary updated

BibTeX
@inproceedings{liu2019reconstructing,
  author = {Han Liu and Xiaotong Zhang and Lu Fan and Xuandi Fu and Qimai Li and Xiao-Ming Wu and Albert Y. S. Lam},
  title = {{Reconstructing Capsule Networks for Zero-shot Intent Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1486},
}
Figure