Papers
Topics
Authors
Recent
Search
2000 character limit reached

CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances

Published 16 Jul 2020 in cs.LG and stat.ML | (2007.08176v2)

Abstract: Novelty detection, i.e., identifying whether a given sample is drawn from outside the training distribution, is essential for reliable machine learning. To this end, there have been many attempts at learning a representation well-suited for novelty detection and designing a score based on such representation. In this paper, we propose a simple, yet effective method named contrasting shifted instances (CSI), inspired by the recent success on contrastive learning of visual representations. Specifically, in addition to contrasting a given sample with other instances as in conventional contrastive learning methods, our training scheme contrasts the sample with distributionally-shifted augmentations of itself. Based on this, we propose a new detection score that is specific to the proposed training scheme. Our experiments demonstrate the superiority of our method under various novelty detection scenarios, including unlabeled one-class, unlabeled multi-class and labeled multi-class settings, with various image benchmark datasets. Code and pre-trained models are available at https://github.com/alinlab/CSI.

Citations (529)

Summary

  • The paper presents the CSI method that employs distributionally shifted augmentations to refine contrastive learning for novelty detection.
  • It reports significant performance boosts, with mean AUROC improvements from 90.1% to 94.3% in one-class CIFAR-10 evaluations.
  • The approach also enhances model calibration by effectively distinguishing in-distribution from out-of-distribution samples.

Analysis of "CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances"

The paper "CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances" addresses the problem of novelty detection through an innovative application of contrastive learning. Novelty detection, essential for reliable machine learning, identifies samples outside the training distribution. The authors propose a novel method, contrasting shifted instances (CSI), inspired by the positive results of contrastive learning in visual representations.

Summary of the Method

The paper introduces the CSI method, which enhances conventional contrastive learning by contrasting samples with distributionally-shifted augmentations of themselves. This methodology deviates from merely contrasting a given sample with other instances. Operating under the principle that augmentations simulating distributional shifts can better prepare the model for novelty detection, this approach redefines the training schema and the associated detection score.

Noteworthy Claims and Results

CSI is demonstrated to outperform existing OOD detection methods in various scenarios. Specifically, it achieves superior performance in unlabeled one-class, unlabeled multi-class, and labeled multi-class settings across multiple benchmark datasets. Notable numerical results are presented for datasets like CIFAR-10, CIFAR-100, and ImageNet-30. For example, CSI improves the mean AUROC from 90.1% to 94.3% for one-class CIFAR-10, showcasing a significant 4.2% enhancement.

Theoretical and Practical Implications

The introduction of distributionally-shifted augmentations offers a significant shift in how contrastive learning can be adapted for novelty detection. By aligning in-distribution samples against transformed variants, the model learns to discern in-distribution from out-of-distribution effectively. This is a contrast to more traditional approaches that might only infer from in-distribution comparisons.

Practically, CSI extends its utility to improve classifier calibration. The framework mitigates overconfidence in predictions for both in- and out-of-distribution samples while maintaining accuracy. This has significant applications in ensuring reliable and robust AI systems, crucial for fields like autonomous driving and medical diagnostics where anomaly detection is vital.

Potential Future Directions

The paper opens avenues for future research in representation learning specialized for OOD detection, highlighting that suitable augmentations can drastically influence performance. Further exploration could refine augmentation strategies and investigate application-specific transformations that could yield even finer distinctions between in- and out-of-distribution samples.

Conclusion

Overall, the paper presents a structured advance in novelty detection by harnessing contrastive learning's capabilities through the innovative approach of shifting transformations. This research sets a new benchmark for OOD detection by integrating theoretically sound and empirically validated methods, expanding the landscape for both academic inquiry and practical deployment in AI systems.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.