A Pointer Network-based Approach for Joint Extraction and Detection of Multi-Label Multi-Class Intents

Ankan Mullick, Sombit Bose, Abhilash Nandy, Gajula Chaitanya, Pawan Goyal

Abstract

In task-oriented dialogue systems, users frequently issue complex queries containing multiple, overlapping, or hierarchical intents. Traditional Natural Language Understanding (NLU) systems typically operate under a "one query, one intent" assumption, leading to failures in real-world scenarios. This paper presents the Multi-Label Multi-Class Intent Detection (MLMCID) framework, which utilizes a pointer network-based architecture to jointly extract intent spans and classify them into coarse and fine-grained categories. Our results demonstrate that specialized models using this architecture significantly outperform large language models (LLMs) such as GPT-4 in precise boundary detection and intent classification across various benchmarks.

Introduction

The "messy reality" of human interaction often involves multi-tasking within a single utterance. For instance, a user might say, "Show me walking directions to MOMA and book a cab." Standard NLU pipelines often fail here, either capturing only the dominant intent or failing to delineate where one intent ends and another begins.

The authors identify three critical gaps in current NLU research: the need for precise span extraction, the requirement for hierarchical labeling (distinguishing coarse categories like Location_Service from fine-grained ones like GetDirections), and the scarcity of multi-intent datasets.

Examples of multi-intent queries illustrating the complexity of span extraction and hierarchical labeling.

To address these, the MLMCID framework is proposed, treating intent detection as a joint sequence-to-sequence problem.

Methodology: The MLMCID Framework

The MLMCID architecture is an encoder-decoder system optimized for extracting multiple intents from a single source sentence.

The MLMCID architecture: A transformer-based encoder (e.g., RoBERTa) paired with a Pointer Network decoder for joint span extraction and intent detection.

Encoder Block

The framework leverages transformer backbones—such as BERT, RoBERTa, or XLM-R—to encode source sentence tokens into contextualized vector representations ($V^E$). This provides the semantic foundation necessary for understanding complex linguistic structures.

Pointer Network Decoder

A key innovation is the use of a Pointer Network within the decoder. Instead of selecting from a fixed vocabulary, the decoder "points" to specific start ($st$) and end ($en$) indices in the input string. This mechanism allows the model to define "intent spans" with high precision, accommodating variable-length queries and overlapping intents more effectively than traditional BIO tagging.

Sextuplet Output Generation

The model is designed to produce a "sextuplet" for each identified intent: $(span_i^1, in_i^{c1}, in_i^{f1}, span_i^2, in_i^{c2}, in_i^{f2})$. This structure enables the joint learning of primary and non-primary intents, ensuring that the most dominant user goal is prioritized while secondary goals are still captured.

Experimental Evaluation and Results

The authors evaluated MLMCID on a curated dataset derived from popular NLU benchmarks, including SNIPS, ATIS, and BANKING77, augmented to feature multi-intent queries.

Performance vs. Large Language Models

One of the most significant findings is that specialized, smaller models can outperform massive LLMs on these structured tasks. For example, on the SNIPS dataset, the RoBERTa-based MLMCID achieved a coarse intent accuracy of 90.0% for primary intents, whereas GPT-4 achieved only 64.7%. The disparity was even more pronounced in fine-grained F1-scores, where MLMCID reached 78.4% compared to GPT-4's 48.2%. This suggests that LLMs struggle with the exact boundary detection required for span extraction in this specific format.

Multilingual and Few-Shot Capabilities

The architecture demonstrated robust performance in non-English languages (Spanish and Thai) using the XLM-R encoder. Furthermore, the model showed strong few-shot learning capabilities, maintaining decent performance even when trained on as few as 5 or 10 examples per intent, making it highly viable for niche domains with limited data.

Conclusion

The MLMCID framework represents a significant advancement in handling complex user queries. By combining transformer encoders with pointer network decoders, the system achieves high accuracy in both span extraction and hierarchical intent detection. The results underscore that architectural innovation remains a powerful alternative to the "brute force" scaling of large language models for specialized NLU tasks. Future work will explore more flexible output structures to handle an arbitrary number of intents beyond the current two-intent focus.

Summary updated

BibTeX
@inproceedings{mullick2024pointer,
  author = {Ankan Mullick and Sombit Bose and Abhilash Nandy and Gajula Chaitanya and Pawan Goyal},
  title = {{A Pointer Network-based Approach for Joint Extraction and Detection of Multi-Label Multi-Class Intents}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.919},
}
Figure