atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

Unsupervised Layer-Wise Score Aggregation for Textual OOD Detection

AAAI 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Spurious-aware OOD detection · 12 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes unsupervised, data-driven aggregation of per-layer OOD scores (Mahalanobis, cosine, IRW depth, isolation forest, LOF) across all encoder layers for textual OOD detection, and introduces the LOFTER multilingual benchmark with up to 150 classes.

Problem

Existing textual OOD detectors compute anomaly scores on a manually chosen layer (usually the last layer or logits), which is rarely the best layer and performs inconsistently across tasks, languages, and class counts.

Approach

Treat the trace of OOD scores across all encoder layers as features and aggregate them with a data-driven anomaly detector trained per class on reference score sets (no OOD samples), then take the min over classes, removing manual layer selection.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Aggregate cosine-based layer scores with IRW depth instead of using the last layerText OOD detection on LOFTER · LOFTERAUROC: 0.92 -> 0.99Helped
Aggregate cosine-based layer scores with IRW depth instead of using the last layerText OOD detection on LOFTER · LOFTERFPR: 0.22 -> 0.02Helped
Use Isolation Forest to aggregate layer-wise scores instead of Power MeansText OOD detection on LOFTER · LOFTERAUROC: 0.82 -> 0.92Helped
Aggregate all layer and class scores together instead of aggregating class-wise and taking the minimum (ablation)Layer-wise score aggregation · LOFTERAUROC: 0.92 -> 0.83Hurt
Aggregate all layer and class scores together instead of aggregating class-wise and taking the minimum (ablation)Layer-wise score aggregation · LOFTERFPR: 0.21 -> 0.36Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SST2 IMDB 20Newsgroups TREC-10 TREC-50 Massive Banking77 RTE MNLI HINT3 CLINC GoEmotions

Benchmarks: LOFTER

Metrics: AUROC FPR at 95% TPR AUPR-IN AUPR-OUT Detection error

Baselines: Maximum Softmax Probability Energy score Last layer Logits PW (Power means aggregation) Mean/Median score aggregation

Builds on: Mahalanobis distance OOD detection Integrated Rank-Weighted depth maximum cosine similarity OOD detection Power means feature aggregation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy