Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Tianyi, Norouzian, Atta, Mohan, Aanchan, Ducatelle, Frederick
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2410.13649
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912076430049280
author Zhang, Tianyi
Norouzian, Atta
Mohan, Aanchan
Ducatelle, Frederick
author_facet Zhang, Tianyi
Norouzian, Atta
Mohan, Aanchan
Ducatelle, Frederick
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13649
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A new approach for fine-tuning sentence transformers for intent classification and out-of-scope detection tasks
Zhang, Tianyi
Norouzian, Atta
Mohan, Aanchan
Ducatelle, Frederick
Computation and Language
Artificial Intelligence
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.
title A new approach for fine-tuning sentence transformers for intent classification and out-of-scope detection tasks
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.13649