atlas

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

Out-of-Distribution Detection by Leveraging Between-Layer Transformation Smoothness

ICLR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Provable and feature-based OOD detection · 2 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 BLOOD, a white-box OOD detector for Transformers that scores inputs by the smoothness (squared Frobenius norm of the between-layer Jacobian, estimated stochastically) of intermediate representation transformations, requiring only model weights.

Problem

OOD detection for pre-trained Transformers when training data is unavailable and training cannot be modified (white-box setting), as is typical for third-party models.

Approach

ID inputs undergo smoother between-layer representation transformations than OOD inputs; BLOOD quantifies this via the squared Frobenius norm of the Jacobian between layers, with an unbiased Hutchinson-style estimator using forward-mode Jacobian-vector products.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the last-layer score instead of averaging scores across all layers (ablation)BLOOD on text OOD detection · SST-2, Subjectivity, AG-News, and TREC vs OBWAUROC (%): 50.56 -> 72.83; 52.02 -> 74.66; 77.46 -> 61.95; 69.63 -> 95.30; 74.36 -> 78.11; 74.10 -> 77.41; 65.67 -> 80.28; 97.48 ->Mixed
Use BLOOD_L instead of the strongest reported baselineBLOOD · SST-2, Subjectivity, AG-News, TREC, BigPatent, AmazonReviews, MovieGenre, and 20NewsGroups vs OBWAUROC (%): 72.83 vs 85.36; 74.66 vs 93.47; 61.95 vs 82.63; 95.30 vs 96.87; 89.53 vs 97.35; 93.20 vs 98.35; 85.23 vs 95.12; 72.02 vsMixed
Simplify BigPatent, AmazonReviews, and MovieGenre to two classesBLOOD_L · BP/BP2, AR/AR2, and MG/MG2 vs OBWAUROC (%): 79.66; 88.20; 84.78; 71.71; 90.67; 91.41Mixed
Use BLOOD_L for semantic rather than background shift detectionBLOOD · 20NewsGroups semantic shift and SST-2/Yelp background shiftAUROC (%): 61.61; 62.49; 62.70; 59.35Mixed
Learn layer weights using a validation set and logistic regressionBLOOD open-box · SST, SUBJ, AGN, TREC, BP, AR, MG, and NGAUROC (%): 73.94; 82.98; 81.39; 91.73; 93.47; 96.25; 92.46; 89.97; 77.67; 77.30; 82.76; 98.73; 96.54; 91.97; 90.92; 85.19Helped

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 Subjectivity AG News TREC BigPatent AmazonReviews MovieGenre 20NewsGroups One Billion Word Benchmark Yelp Reviews CIFAR-10 CIFAR-100

Benchmarks: SST-2 Subjectivity AG News TREC BigPatent AmazonReviews MovieGenre 20NewsGroups One Billion Word Benchmark Yelp Reviews CIFAR-10 vs SVHN CIFAR-100 vs SVHN

Metrics: AUROC AUPR-IN FPR@95TPR CLES

Baselines: MSP ENT EGY MC GRAD ASH ReAct ENSM TEMP MD

Builds on: Monte-Carlo dropout Mahalanobis distance Hutchinson's trick energy-based OOD detection ReAct

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