A Bayesian Approach to OOD Robustness in Image Classification

Prakhar Kaushik, Adam Kortylewski, Alan L. Yuille
2/9/2026

No official code found. Best implementation: toshi2k2/CompnetDA (3 stars, last commit 2024-11-05).

Abstract

An important and unsolved problem in computer vision is to ensure that the algorithms are robust to changes in image domains. We address this problem in the scenario where we only have access to images from the target domains. Motivated by the challenges of the OOD-CV [45] benchmark where we encounter real world Out-of-Domain (OOD) nuisances and occlusion, we introduce a novel Bayesian approach to OOD robustness for object classification. Our work extends Compositional Neural Networks (CompNets), which have been shown to be robust to occlusion but degrade badly when tested on OOD data. We exploit the fact that CompNets contain a generative head defined over feature vectors represented by von Mises-Fisher (vMF) kernels, which correspond roughly to object parts, and can be learned without supervision. We obverse that some vMF kernels are similar between different domains, while others are not. This enables us to learn a transitional dictionary of vMF kernels that are intermediate between the source and target domains and train the generative model on this dictionary using the annotations on the source domain, followed by iterative refinement. This approach, termed Unsupervised Generative Transition (UGT), performs very well in OOD scenarios even when occlusion is present. UGT is evaluated on different OOD benchmarks including the OOD-CV dataset, several popular datasets (e.g., ImageNet-C [9]), artificial image corruptions (including adding occluders), and synthetic-to-real domain transfer, and does well in all scenarios.

View on arXivView PDF

Code Implementations(1)

toshi2k2/CompnetDACommunity100%

Domain Adaptation with Compostional Networks

30Python, Jupyter NotebookSep 9, 20211 years ago

Similar Papers

Cite this paper

@article{kaushik2026bayesian,
  title  = {A Bayesian Approach to OOD Robustness in Image Classification},
  author = {Prakhar Kaushik and Adam Kortylewski and Alan L. Yuille},
  year   = {2026},
  eprint = {2403.07277},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.07277},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.07277.svg)](https://codeofpaper.com/paper/2403.07277)

Discussion