Research map / Label-efficient and robust learning / OOD and anomaly detection
Contrastive Out-of-Distribution Detection for Pretrained Transformers
Read the paperPlace an idea next to itCheck your own paper ↗
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
- 1,463 improved
- 27 no clear effect
- 20 mixed
- 31 hurt
- Beyond Looking Up, Try Looking Around: Harmonizing Global Structure and Local Consistency in Optimal Transport for Short Text Clustering ICML 2026 · add contrastive learning · SearchSnippets · ACC: 56.65 -> 80.12Improved
- SleepLM: Natural-Language Intelligence for Human Sleep ICML 2026 · add contrastive objective to captioning (CoCa vs Cap) · sleep event IoU · IoU: 29.2 -> 27.4Hurt
- LIMSSR: LLM-Driven Sequence-to-Score Reasoning under Training-Time Incomplete Multimodal Observations ICML 2026 · add contrastive loss L_con · FS1000 average · Spearman correlation: 0.759 -> 0.789Improved
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 changed | Where | Measured | Effect |
|---|---|---|---|
| replace MSP scoring with Mahalanobis distance | RoBERTa-large without contrastive loss · OOD detection avg | AUROC / FAR95: 94.1 / 35.0 -> 98.5 / 7.3 | Improved |
| add margin-based contrastive loss | RoBERTa-large + Maha · OOD detection avg | FAR95: 7.3 -> 1.7 | Improved |
| add margin-based contrastive loss | RoBERTa-large + MSP · OOD detection avg | AUROC / FAR95: 94.1 / 35.0 -> 93.0 / 33.7 | Mixed |
| add supervised contrastive loss (ablation) | RoBERTa-large + MSP · OOD detection avg | AUROC / FAR95: 94.1 / 35.0 -> 90.4 / 46.3 | Hurt |
| add supervised contrastive loss (ablation) | RoBERTa-large + Maha · OOD detection avg | AUROC / FAR95: 98.5 / 7.3 -> 98.3 / 10.5 | No clear effect |
| add margin-based contrastive loss | RoBERTa-large · main-task accuracy (SST2) | accuracy: 96.4 -> 96.3 | No clear effect |
| use L1 or cosine distance instead of L2 in margin loss (ablation) | RoBERTa-large + Maha · OOD detection avg | AUROC / FAR95: L2 99.4 / 1.7; L1 99.3 / 2.8; cosine 99.2 / 3.0 | No clear effect |
| use margin loss instead of supervised loss, both with cosine distance (ablation) | RoBERTa-large · OOD detection avg | AUROC / FAR95: L_scl + Cosine 97.7 / 13.0 -> L_margin + Cosine 99.0 / 3.8 | Improved |
| add margin loss for novel class detection | RoBERTa-large + Maha · TREC-10 novel class | FAR95: 56.1 -> 61.3 | Hurt |
| add margin loss for novel class detection | RoBERTa-large + Maha · 20NG novel class | AUROC / FAR95: 77.2 / 74.1 -> 78.5 / 72.7 | Improved |
| add margin loss to other encoders | BERT-base · OOD detection avg | AUROC / FAR95: 95.7 / 21.5 -> 98.4 / 8.1 | Improved |
| use larger encoder (large instead of base) (ablation) | BERT / RoBERTa + Maha · OOD detection avg | AUROC: BERT 95.7 -> 97.7; RoBERTa 98.4 -> 98.5 | Improved |
Closest papers by meaning
- Provable Discriminative Hyperspherical Embedding for Out-of-Distribution Detection (AAAI 2025 · similarity 0.87)
- Out-of-Distribution Detection by Leveraging Between-Layer Transformation Smoothness (ICLR 2024 · similarity 0.87)
- Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection (NeurIPS 2025 · similarity 0.86)
- Learning to Shape In-distribution Feature Space for Out-of-distribution Detection (NeurIPS 2024 · similarity 0.86)
- The Best of Both Worlds: On the Dilemma of Out-of-distribution Detection (NeurIPS 2024 · similarity 0.86)
- Adaptive Multi-prompt Contrastive Network for Few-shot Out-of-distribution Detection (ICML 2025 · similarity 0.86)
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.
