Skip to main content
QUICK REVIEW

[Paper Review] Feed Two Birds with One Scone: Exploiting Wild Data for Both Out-of-Distribution Generalization and Detection

Haoyue Bai, Gregory Canal|arXiv (Cornell University)|Jun 15, 2023
Anomaly Detection Techniques and ApplicationsComputer Science7 citations
TL;DR

Scone proposes a margin-based framework that uses unlabeled wild data containing both covariate-shifted and semantic-OOD samples to jointly improve OOD generalization and OOD detection. It outperforms baselines on CIFAR-10/ MNIST-style setups, including WOODS.

ABSTRACT

Modern machine learning models deployed in the wild can encounter both covariate and semantic shifts, giving rise to the problems of out-of-distribution (OOD) generalization and OOD detection respectively. While both problems have received significant research attention lately, they have been pursued independently. This may not be surprising, since the two tasks have seemingly conflicting goals. This paper provides a new unified approach that is capable of simultaneously generalizing to covariate shifts while robustly detecting semantic shifts. We propose a margin-based learning framework that exploits freely available unlabeled data in the wild that captures the environmental test-time OOD distributions under both covariate and semantic shifts. We show both empirically and theoretically that the proposed margin constraint is the key to achieving both OOD generalization and detection. Extensive experiments show the superiority of our framework, outperforming competitive baselines that specialize in either OOD generalization or OOD detection. Code is publicly available at https://github.com/deeplearning-wisc/scone.

Motivation & Objective

  • Motivate a unified framework for handling both covariate shifts (OOD generalization) and semantic shifts (OOD detection) in open-world deployments.
  • Leverage unlabeled wild data that mix in-distribution, covariate-OOD, and semantic-OOD samples to train a robust classifier and a reliable detector.
  • Develop a margin-based energy framework that explicitly enforces a margin on ID data to improve generalization to covariate shifts while maintaining detection of semantic OOD.

Proposed method

  • Model wild data as a three-way mixture: P_wild = (1-π_c-π_s) P_in + π_c P_out^covariate + π_s P_out^semantic.
  • Train a shared parameterized energy-based classifier f_θ and OOD detector g_θ to maximize ID accuracy and OOD detection while leveraging unlabeled wild samples.
  • Introduce an energy margin η that imposes E_θ(x) ≤ η for ID samples and constrain its violation on ID to α, solved via Augmented Lagrangian optimization.
  • Replace 0/1 losses with smooth surrogates (sigmoid-based losses) for tractable optimization in neural networks.
  • Generalize prior WOODS by enforcing a negative energy margin (η < 0), which pushes the decision boundary to improve covariate-OOD generalization.
  • Provide theoretical insight showing that if covariate-shifted points are close to ID points in feature space, appropriate η leads to correct classification of covariate-OOD data.],
  • research_questionsBrazil?
  • research_questions:[

Experimental results

Research questions

  • RQ11. Can a unified framework using wild unlabeled data simultaneously improve OOD generalization under covariate shifts and OOD detection for semantic shifts?
  • RQ22. Does introducing a negative energy margin η improve OOD generalization to covariate-OOD data without sacrificing ID accuracy?
  • RQ33. How does Scone compare to WOODS and other baselines on benchmark tasks involving CIFAR-10, CIFAR-10-C, and semantic OOD datasets?
  • RQ44. How robust is the method across varying mixing proportions of covariate and semantic OOD in the wild data?

Key findings

  • Scone achieves substantial gains in OOD generalization, improving CIFAR-10 OOD accuracy from 52.76% (WOODS) to 84.69%.
  • Scone maintains competitive ID accuracy, with minimal loss compared to baselines.
  • Scone delivers strong OOD detection performance, outperforming post-hoc detectors in several settings (e.g., SVHN semantic OOD case).
  • Energy margin η is pivotal; more negative η yields larger OOD accuracy gains with a manageable trade-off in detection metrics.
  • Compared to WOODS, Scone remains robust as the covariate shift proportion π_c increases in wild data.
  • In MNIST-style experiments, Scone reaches 96.51% OOD accuracy and 99.99% AUROC on the given setup, surpassing WOODS.
  • Overall, Scone outperforms methods specialized only in OOD generalization or OOD detection across multiple benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.