AI Paper Atlas

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

Contrastive Out-of-Distribution Detection for Pretrained Transformers

EMNLP 2021Label-efficient and robust learning › OOD and anomaly detectionapproach: Spurious-aware OOD detection143 citations (OpenAlex)

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
7improved
3no clear effect
2hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

This paper tried a common change: Add a contrastive loss

add margin-based contrastive loss · OOD detection avg · FAR95: 7.3 -> 1.7 Improved

What 1,541 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace MSP scoring with Mahalanobis distanceRoBERTa-large without contrastive loss · OOD detection avgAUROC / FAR95: 94.1 / 35.0 -> 98.5 / 7.3Improved
add margin-based contrastive lossRoBERTa-large + Maha · OOD detection avgFAR95: 7.3 -> 1.7Improved
add margin-based contrastive lossRoBERTa-large + MSP · OOD detection avgAUROC / FAR95: 94.1 / 35.0 -> 93.0 / 33.7Mixed
add supervised contrastive loss (ablation)RoBERTa-large + MSP · OOD detection avgAUROC / FAR95: 94.1 / 35.0 -> 90.4 / 46.3Hurt
add supervised contrastive loss (ablation)RoBERTa-large + Maha · OOD detection avgAUROC / FAR95: 98.5 / 7.3 -> 98.3 / 10.5No clear effect
add margin-based contrastive lossRoBERTa-large · main-task accuracy (SST2)accuracy: 96.4 -> 96.3No clear effect
use L1 or cosine distance instead of L2 in margin loss (ablation)RoBERTa-large + Maha · OOD detection avgAUROC / FAR95: L2 99.4 / 1.7; L1 99.3 / 2.8; cosine 99.2 / 3.0No clear effect
use margin loss instead of supervised loss, both with cosine distance (ablation)RoBERTa-large · OOD detection avgAUROC / FAR95: L_scl + Cosine 97.7 / 13.0 -> L_margin + Cosine 99.0 / 3.8Improved
add margin loss for novel class detectionRoBERTa-large + Maha · TREC-10 novel classFAR95: 56.1 -> 61.3Hurt
add margin loss for novel class detectionRoBERTa-large + Maha · 20NG novel classAUROC / FAR95: 77.2 / 74.1 -> 78.5 / 72.7Improved
add margin loss to other encodersBERT-base · OOD detection avgAUROC / FAR95: 95.7 / 21.5 -> 98.4 / 8.1Improved
use larger encoder (large instead of base) (ablation)BERT / RoBERTa + Maha · OOD detection avgAUROC: BERT 95.7 -> 97.7; RoBERTa 98.4 -> 98.5Improved

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