Abstract
Modern conversational AI often struggles with "out-of-scope" queries that fall outside their fixed training sets. This paper presents Zero-Shot-BERT-Adapters (Z-BERT-A), a lightweight pipeline designed for unknown intent detection. By combining dependency parsing for dynamic label generation with BERT-based Natural Language Inference (NLI) enhanced by efficient Adapters, Z-BERT-A identifies novel intents across multiple languages. Experimental results demonstrate that this approach outperforms significantly larger models like GPT-3.5 in specialized intent discovery tasks while remaining computationally efficient for industrial deployment.
Introduction
The "closed-world" assumption in intent classification limits the flexibility of virtual assistants, often leading to failures when users provide inputs outside the predefined categories. Addressing "Unknown Intent Detection" is critical for building resilient, global-ready dialogue systems. While large language models (LLMs) offer zero-shot capabilities, their high operational costs and data privacy concerns often make them unsuitable for specialized business environments. Z-BERT-A addresses these challenges by providing a scalable, multilingual solution that handles unknown intents without massive computational overhead.
Methodology
The Z-BERT-A pipeline operates in two distinct stages:
- Intent Generation: Utilizing a dependency parser (via spaCy), the system analyzes the grammatical structure of the user's utterance to extract "Action-Object" pairs. This allows the model to dynamically generate candidate labels (e.g., "make-withdrawal") based on the actual input, rather than relying on a static list.
- Zero-Shot Classification via NLI: The task is framed as Natural Language Inference (NLI). The user's utterance serves as the "premise," and the generated intents are transformed into "hypotheses" (e.g., "This text is about making a withdrawal"). A BERT model ranks these hypotheses to determine the most likely intent.
To ensure efficiency and scalability, the researchers employed Adapters—small, trainable layers inserted into frozen transformer blocks. This allows the model to adapt to new tasks or languages with minimal parameter updates, making it much easier to scale and deploy.
Datasets
The study utilized several key benchmarks to validate the pipeline:
- Banking77-OOS: A specialized dataset containing 13,083 banking-related queries with 77 fine-grained intents, including "out-of-scope" (OOS) examples.
- Multilingual Benchmarks: The authors compiled and released new Italian and German versions of the Banking77 dataset to test the pipeline’s cross-lingual capabilities.
Key Results
Z-BERT-A demonstrated superior performance in both known and unknown intent detection. For known intents, it achieved an accuracy of 0.407 on Banking77-OOS, far exceeding the BART0 baseline of 0.147. In unknown intent discovery, the model reached a cosine similarity score of 0.492 with ground truth labels, outperforming Dolly, GPT-J, and even GPT-3.5 in various configurations. Furthermore, the pipeline maintained consistent performance across languages, with similarity scores of 0.467 for Italian and 0.36 for German.
Conclusion
Z-BERT-A proves that architectural finesse, such as NLI-framing and the use of Adapters, can allow smaller models (~111M parameters) to outperform massive LLMs on specialized industrial tasks. While currently limited by manual dependency parsing rules and vocabulary constraints, future work aims to transition toward a fully model-based zero-shot approach for the generation stage to enhance generalization across even more languages without manual intervention.
Summary updated