CVJul 3, 2024

FlowCon: Out-of-Distribution Detection using Flow-Based Contrastive Learning

arXiv:2407.03489v25 citationsh-index: 3Has Code
AI Analysis

This addresses the critical need for reliable OOD detection in real-world deep learning applications, though it appears incremental as it builds on existing density-based and contrastive learning approaches.

The paper tackled the problem of out-of-distribution detection in deep learning by introducing FlowCon, a method combining normalizing flow with supervised contrastive learning, which showed enhanced performance on vision datasets like CIFAR-10 and CIFAR-100.

Identifying Out-of-distribution (OOD) data is becoming increasingly critical as the real-world applications of deep learning methods expand. Post-hoc methods modify softmax scores fine-tuned on outlier data or leverage intermediate feature layers to identify distinctive patterns between In-Distribution (ID) and OOD samples. Other methods focus on employing diverse OOD samples to learn discrepancies between ID and OOD. These techniques, however, are typically dependent on the quality of the outlier samples assumed. Density-based methods explicitly model class-conditioned distributions but this requires long training time or retraining the classifier. To tackle these issues, we introduce \textit{FlowCon}, a new density-based OOD detection technique. Our main innovation lies in efficiently combining the properties of normalizing flow with supervised contrastive learning, ensuring robust representation learning with tractable density estimation. Empirical evaluation shows the enhanced performance of our method across common vision datasets such as CIFAR-10 and CIFAR-100 pretrained on ResNet18 and WideResNet classifiers. We also perform quantitative analysis using likelihood plots and qualitative visualization using UMAP embeddings and demonstrate the robustness of the proposed method under various OOD contexts. Code will be open-sourced post decision.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes