Skip to main content
QUICK REVIEW

[Paper Review] AUTO: Adaptive Outlier Optimization for Test-Time OOD Detection

Puning Yang, Jian Liang|arXiv (Cornell University)|Mar 22, 2023
Domain Adaptation and Few-Shot LearningComputer Science4 citations
TL;DR

This paper proposes AUTO, a test-time OOD detection method that adaptively optimizes deep networks using unlabeled online test data to improve out-of-distribution detection. By combining an in-out-aware filter, a dynamic ID memory bank, and a semantically-consistent objective, AUTO mitigates catastrophic forgetting and achieves state-of-the-art performance on CIFAR-10, CIFAR-100, and ImageNet benchmarks while preserving in-distribution accuracy.

ABSTRACT

Out-of-distribution (OOD) detection aims to detect test samples that do not fall into any training in-distribution (ID) classes. Prior efforts focus on regularizing models with ID data only, largely underperforming counterparts that utilize auxiliary outliers. However, data safety and privacy make it infeasible to collect task-specific outliers in advance for different scenarios. Besides, using task-irrelevant outliers leads to inferior OOD detection performance. To address the above issue, we present a new setup called test-time OOD detection, which allows the deployed model to utilize real OOD data from the unlabeled data stream during testing. We propose Adaptive Outlier Optimization (AUTO) which allows for continuous adaptation of the OOD detector. Specifically, AUTO consists of three key components: 1) an in-out-aware filter to selectively annotate test samples with pseudo-ID and pseudo-OOD and ingeniously trigger the updating process while encountering each pseudo-OOD sample; 2) a dynamic-updated memory to overcome the catastrophic forgetting led by frequent parameter updates; 3) a prediction-aligning objective to calibrate the rough OOD objective during testing. Extensive experiments show that AUTO significantly improves OOD detection performance over state-of-the-art methods. Besides, evaluations on complicated scenarios (e.g. multi-OOD, time-series OOD) also conduct the superiority of AUTO.

Motivation & Objective

  • To address the limitations of existing OOD detection methods that rely on static auxiliary outliers with distribution gaps and limited coverage.
  • To propose a practical test-time OOD detection paradigm that leverages unlabeled online test data without training-time modifications.
  • To overcome catastrophic forgetting during test-time optimization by preserving in-distribution performance while enhancing OOD detection.
  • To develop a method that dynamically identifies and learns from pseudo-ID and pseudo-OOD samples in real time during inference.

Proposed method

  • An in-out-aware filter is trained on in-distribution data to distinguish between pseudo-ID and pseudo-OOD samples during test-time inference.
  • A dynamic ID memory bank stores one representative sample per class, which is used to fine-tune the model and maintain in-distribution accuracy.
  • Pseudo-OOD samples are used to update the model in real time, with optimization guided by a semantically-consistent objective that aligns predictions with the original model.
  • The semantically-consistent objective minimizes the discrepancy between the original model’s and the updated model’s predictions on ID samples, preventing performance degradation.
  • The method employs a weighted loss combining OOD detection loss and the semantic consistency loss, with hyperparameters tuned for optimal trade-off.
  • The framework is applied iteratively during inference, allowing continuous adaptation to incoming test data with controlled optimization frequency.

Experimental results

Research questions

  • RQ1Can test-time optimization using unlabeled online data significantly improve OOD detection performance without compromising in-distribution accuracy?
  • RQ2How can catastrophic forgetting be mitigated when updating a model on-the-fly with test-time data?
  • RQ3What components are essential for effective and stable test-time adaptation in OOD detection?
  • RQ4How does the choice of hyperparameters like λ₂ and φ affect the balance between OOD detection and ID classification?
  • RQ5To what extent does the size and composition of the ID memory bank influence model performance?

Key findings

  • AUTO achieves an AUROC of 97.36 on CIFAR-100 with ResNet-34, outperforming prior methods by a large margin.
  • On the Places365 benchmark, AUTO achieves an FPR95 of 46.27 and AUROC of 89.67, demonstrating strong generalization on complex OOD data.
  • Using only 100 initial ID samples for statistics estimation reduces computation cost by 99% while maintaining near-optimal performance.
  • The ablation study confirms that both the dynamic ID memory bank and the semantically-consistent objective are essential for maintaining ID accuracy.
  • Setting T=2 iterations per OOD sample provides the best trade-off between performance and inference speed, with diminishing returns beyond two iterations.
  • The method remains robust even when the test set contains up to 90% OOD data, showing strong adaptability to varying data distributions.

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.