A new approach for fine-tuning sentence transformers for intent classification and out-of-scope detection tasks
Preprint
Abstract
In virtual assistant (VA) systems it is important to reject or redirect user queries that fall outside the scope of the system. One of the most accurate approaches for out-of-scope (OOS) rejection is to combine it with the task of intent classification on in-scope queries, and to use methods based on the similarity of embeddings produced by transformer-based sentence encoders. Typically, such encoders are fine-tuned for the intent-classification task, using cross-entropy loss. Recent work has shown that while this produces suitable embeddings for the intent-classification task, it also tends to disperse in-scope embeddings over the full sentence embedding space. This causes the in-scope embeddings to potentially overlap with OOS embeddings, thereby making OOS rejection difficult. This is compounded when OOS data is unknown. To mitigate this issue our work proposes to regularize the cross-entropy loss with an in-scope embedding reconstruction loss learned using an auto-encoder. Our method achieves a 1-4% improvement in the area under the precision-recall curve for rejecting out-of-sample (OOS) instances, without compromising intent classification performance.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Beyond Hard Negatives in Product Search: Semantic Matching Using One-Class Classification (SMOCC)2023
- Supervised Clustering Loss for Clustering-Friendly Sentence Embeddings: an Application to Intent Clustering2023
- Distinguish Sense from Nonsense: Out-of-Scope Detection for Virtual Assistants2022
- Out-of-Scope Intent Detection with Self-Supervision and Discriminative Training2021
- Out-of-Domain Detection for Natural Language Understanding in Dialog SystemsIEEE/ACM Transactions on Audio, Speech, and Language Processing, 2020
- A Deep Generative Distance-Based Classifier for Out-of-Domain Detection with Mahalanobis Space2020
- Pretrained Transformers Improve Out-of-Distribution Robustness2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction2019
- Self-Taught convolutional neural networks for short text clusteringNeural Networks, 2017