TL;DR
This paper introduces Zero-Shot-BERT-Adapters (Z-BERT-A), a novel two-stage pipeline for discovering new, unseen user intents in a multilingual setting. By leveraging Natural Language Inference (NLI) and lightweight BERT adapters, Z-BERT-A effectively identifies emerging intents, outperforming larger models and offering a scalable solution for dynamic intent detection in real-world applications.
What Problem Does This Paper Address?
In conversational AI and dialogue systems, accurately understanding user intent is paramount. However, a significant challenge arises when users express intents that were not part of the system's initial training data – these are known as "unseen" or "unknown" intents. Traditional intent detection models are often trained on a fixed set of intents, making them brittle and unable to adapt to evolving user needs or novel expressions. This necessitates costly retraining or manual updates. Furthermore, many existing datasets and models are English-centric, limiting their applicability in multilingual environments. The paper tackles this by proposing a method for intent discovery, which goes beyond classification to identify and categorize entirely new intents without prior exposure.
Methods
The Z-BERT-A pipeline operates in two stages:
- Intent Generation: This stage uses a dependency parser (from spaCy) to analyze the grammatical structure of a user's utterance. By identifying specific dependency relations (like direct object, adjectival modifier, etc.) and part-of-speech tags, the system extracts potential "action-object" pairs that represent candidate intents. This process is language-dependent, requiring specific patterns for English, Italian, and German. The extracted candidate intents are then lemmatized.
- Zero-Shot Intent Classification: The generated candidate intents from the first stage are used as labels for a Natural Language Inference (NLI) model. This model, a BERT Transformer fine-tuned with lightweight Adapters (BERT-A), is trained to determine the relationship (entailment, contradiction, neutral) between the user's utterance (premise) and a candidate intent phrased as a hypothesis. The intent with the highest entailment score is selected. The use of Adapters allows for efficient fine-tuning without modifying the entire BERT backbone, reducing computational cost and memory requirements.
Datasets
The paper utilizes and creates datasets for training and evaluation:
- SNLI (Stanford Natural Language Inference): A large corpus of human-written English sentence pairs, used for training the NLI component of the BERT-A model.
- Banking77-OOS: An intent classification dataset for online banking queries, comprising 13,083 queries labeled with 77 intents. This dataset is crucial for evaluating the zero-shot performance on both known and unseen intents.
- Banking77-OOS-NLI: A newly generated dataset created by transforming the Banking77-OOS intent classification task into an NLI task. This was done by using utterances as premises and generating hypotheses based on WordNet synsets of extracted keywords. This dataset is used for adaptive fine-tuning of the NLI model.
- Italian and German versions of Banking77: The authors also compiled multilingual versions of the Banking77 dataset by translating and manually annotating data, enabling evaluation in low-resource language settings.
Key Insights and Ideas
- NLI as a powerful framework for zero-shot intent discovery: The paper demonstrates that framing intent discovery as an NLI problem, where an utterance is checked for entailment with potential intent descriptions, is highly effective.
- Lightweight Adapters offer efficiency without sacrificing performance: Using BERT with Adapters for fine-tuning significantly reduces computational overhead compared to full model fine-tuning, making the system more deployable, especially in resource-constrained environments.
- Dependency parsing can effectively generate candidate intents: The method of extracting potential intents from grammatical structures provides a robust way to generate hypotheses for the zero-shot classifier, even for novel intents.
- Multilingual capabilities are achievable with careful adaptation: The approach successfully extends to Italian and German, showing that the core pipeline can be adapted to different linguistic structures.
- Smaller, focused models can outperform large LMs: Surprisingly, Z-BERT-A, a relatively lightweight model, often outperforms much larger Large Language Models (LLMs) in zero-shot intent discovery tasks, highlighting the value of well-designed pipelines.
Key Results
- NLI Task Performance: Z-BERT-A achieved top results when fine-tuned on the Banking77-OOS-NLI dataset, outperforming fine-tuning on SNLI by 1.6% in accuracy and 2% in F1-score.
- Known Intent Classification: In a zero-shot setting with known intents, Z-BERT-A consistently outperformed several baselines, including BARTO and ZS-DNN.
- Unknown Intent Discovery (Zero-Shot): Z-BERT-A demonstrated superior performance in identifying unseen intents, outperforming baselines like TO by a consistent margin (e.g., 2.7% against TO in one setting).
- Multilingual Performance: For Italian, Z-BERT-A outperformed the best baseline (TO) by 13% in cosine similarity. The results showed comparable performance across English, Italian, and German, with some classes performing better in English as expected.
- LLM Comparison: While LLMs like GPT-3.5 showed promise, Z-BERT-A achieved higher similarity scores in intent generation, indicating its effectiveness in producing semantically relevant intents.
Limitations and Future Work
- Language Dependency in Intent Generation: The current intent generation stage relies on language-specific dependency parsing rules, which can be complex to maintain and extend to new languages.
- Generalization Power of Generated Intents: The generated intents are directly derived from the utterance's structure, which might limit their generalization power.
- Future Work: The authors suggest replacing the dependency parsing with a model-based zero-shot approach for intent generation to overcome language-dependency issues and potentially improve generalization. They also highlight the potential for using Z-BERT-A to dynamically adapt intent detection systems and mitigate bias by incorporating newly discovered intents.
Summary updated