Computer Science > Computation and Language
arXiv:2302.09852 (cs)
[Submitted on 20 Feb 2023 (v1), last revised 21 Feb 2024 (this version, v3)]
Title:Unsupervised Layer-wise Score Aggregation for Textual OOD Detection
Authors:Maxime Darrin,Guillaume Staerman,Eduardo Dadalto Câmara Gomes,Jackie CK Cheung,Pablo Piantanida,Pierre Colombo
View a PDF of the paper titled Unsupervised Layer-wise Score Aggregation for Textual OOD Detection, by Maxime Darrin and 5 other authors
View PDFHTML (experimental)Abstract:Out-of-distribution (OOD) detection is a rapidly growing field due to new robustness and security requirements driven by an increased number of AI-based systems. Existing OOD textual detectors often rely on an anomaly score (e.g., Mahalanobis distance) computed on the embedding output of the last layer of the encoder. In this work, we observe that OOD detection performance varies greatly depending on the task and layer output. More importantly, we show that the usual choice (the last layer) is rarely the best one for OOD detection and that far better results could be achieved if the best layer were picked. To leverage this observation, we propose a data-driven, unsupervised method to combine layer-wise anomaly scores. In addition, we extend classical textual OOD benchmarks by including classification tasks with a greater number of classes (up to 77), which reflects more realistic settings. On this augmented benchmark, we show that the proposed post-aggregation methods achieve robust and consistent results while removing manual feature selection altogether. Their performance achieves near oracle's best layer performance.
Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
Cite as: | arXiv:2302.09852 [cs.CL] |
(orarXiv:2302.09852v3 [cs.CL] for this version) | |
https://doi.org/10.48550/arXiv.2302.09852 arXiv-issued DOI via DataCite |
Submission history
From: Maxime Darrin [view email][v1] Mon, 20 Feb 2023 09:26:11 UTC (20,183 KB)
[v2] Mon, 29 May 2023 19:31:57 UTC (19,776 KB)
[v3] Wed, 21 Feb 2024 17:47:37 UTC (656 KB)
Full-text links:
Access Paper:
- View PDF
- HTML (experimental)
- TeX Source
- Other Formats
View a PDF of the paper titled Unsupervised Layer-wise Score Aggregation for Textual OOD Detection, by Maxime Darrin and 5 other authors
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer(What is the Explorer?)
Connected Papers(What is Connected Papers?)
Litmaps(What is Litmaps?)
scite Smart Citations(What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv(What is alphaXiv?)
CatalyzeX Code Finder for Papers(What is CatalyzeX?)
DagsHub(What is DagsHub?)
Gotit.pub(What is GotitPub?)
Hugging Face(What is Huggingface?)
Papers with Code(What is Papers with Code?)
ScienceCast(What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower(What are Influence Flowers?)
CORE Recommender(What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community?Learn more about arXivLabs.