An Explicit-Joint and Supervised-Contrastive Learning Framework for Few-Shot Intent Classification and Slot Filling

Han Liu, Feng Zhang, Xiaotong Zhang, Siyang Zhao, Xianchao Zhang

Abstract

Few-shot learning is critical for task-oriented dialogue systems where labeled data for new intents and slots is often scarce. This paper presents a novel framework that integrates explicit-joint learning with supervised contrastive learning (SCL). By enabling bidirectional interaction between intent classification (IC) and slot filling (SF) through label descriptions and structuring the embedding space with SCL, the proposed model significantly outperforms traditional prototypical networks. Evaluations on SNIPS, ATIS, and TOP benchmarks demonstrate state-of-the-art performance in few-shot scenarios.

Introduction

In modern task-oriented dialogue systems, understanding user requests involves two core tasks: Intent Classification (IC) and Slot Filling (SF). For instance, in the query "Find a flight from London to Paris," the system must identify the intent as Find_Flight and extract slots like From_City: London and To_City: Paris.

A major bottleneck in developing these systems is the "data scarcity" problem. As new features are added, collecting large-scale labeled datasets for every new intent and slot is prohibitively expensive. Few-shot learning addresses this by training models to generalize from only a few examples. However, existing methods often treat IC and SF as independent or use "black-box" joint learning that fails to exploit the explicit semantic relationships between intents and slots.

Methodology

The authors introduce a two-pronged architecture designed to maximize information exchange and representation robustness.

The proposed framework architecture featuring Explicit Joint Learning and Supervised Contrastive Learning modules.

Explicit-Joint Learning via Bidirectional Interaction

Instead of a simple shared backbone, the model employs an attention mechanism over label descriptions. By encoding the textual definitions of labels (e.g., using the word "destination" to represent a destination slot), the model leverages prior semantic knowledge from pre-trained models like BERT. This allows for the generation of "slot-attention-based intent representations" and "intent-attention-based slot representations," where the two tasks mutually inform each other.

Supervised Contrastive Learning (SCL)

To enhance the discriminative power of the embeddings, the framework incorporates SCL. Unlike standard cross-entropy loss, SCL uses a "pull and push" strategy: it pulls embeddings of the same class closer together while pushing those of different classes apart. This results in more distinct clusters, which is particularly beneficial when only a handful of examples are available per category.

Prototypical Network Extension

The model builds on Prototypical Networks but adds a "window strategy" for slot filling. This allows the model to consider surrounding words when creating a "prototype" for a specific slot, making the representation more context-aware.

Key Results

The framework was rigorously tested on three benchmarks: SNIPS, ATIS, and TOP. The results indicate substantial gains over strong baselines, including BERT-based Prototypical Networks.

Comparison of Intent Classification (IC) Accuracy across different datasets and algorithms, highlighting the performance of the proposed framework.

As shown in the results table, the proposed framework consistently achieves higher IC accuracy. For example, on the ATIS dataset, the model improved accuracy by nearly 22% compared to standard BERT+Proto models, and by 10% on the TOP dataset. Similar trends were observed for Slot Filling F1-scores. Ablation studies further confirmed that the bidirectional interaction and SCL modules are both critical for these performance leaps.

Conclusion

This research demonstrates that explicitly modeling the interaction between intent and slot labels, combined with contrastive learning, provides a robust solution for few-shot NLU tasks. By treating labels as semantic data rather than arbitrary IDs, the model effectively transfers knowledge to new domains. Future work will focus on extending this framework to handle multi-intent utterances and exploring more complex joint learning strategies.

Summary updated

BibTeX
@inproceedings{liu2021explicit,
  author = {Han Liu and Feng Zhang and Xiaotong Zhang and Siyang Zhao and Xianchao Zhang},
  title = {{An Explicit-Joint and Supervised-Contrastive Learning Framework for Few-Shot Intent Classification and Slot Filling}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.167},
}
Figure