NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distribution Shifts at Scale: Out-of-distribution Detection in Earth Observation

Burak Ekim, Girmaw Abebe Tadesse, Caleb Robinson, Gilles Quentin Hacheme, Michael Schmitt, Rahul Dodhia, Juan M. Lavista Ferres

Introduction

Deep learning models are notoriously overconfident, often producing high-certainty predictions on data they have never encountered. This phenomenon leads to "silent failures" in production environments. In Earth Observation (EO), where models trained on specific geographic regions (e.g., European agricultural landscapes) are frequently deployed globally (e.g., sub-Saharan Africa), these distribution shifts are a constant challenge.

To address this, researchers from Microsoft AI for Good and the University of the Bundeswehr Munich introduced TARDIS (Test-time Addressing of Distribution Shifts at Scale). TARDIS is a lightweight, post-hoc method designed to detect when geospatial models encounter out-of-distribution (OOD) data without requiring labeled OOD samples during the initial training phase.

Methodology

The core innovation of TARDIS lies in its generation of surrogate distribution labels. Unlike traditional methods that may require model retraining or access to known OOD data for hyperparameter tuning, TARDIS operates as a "plug-and-play" guardrail. The process is executed in four distinct steps:

  1. Sampling: The method utilizes a set of known In-Distribution (ID) samples and a set of unlabeled "WILD" samples collected from the deployment environment.
  2. Feature Extraction: Both ID and WILD samples are passed through a frozen, pre-trained model to extract internal activations (features) from a specific layer.
  3. Surrogate Labeling: TARDIS clusters the combined feature space. For each cluster, it calculates the ratio of ID samples. If a cluster is predominantly composed of ID samples, all WILD samples within it are labeled "surrogate ID"; otherwise, they are labeled "surrogate OOD."
  4. Binary Classification: A simple binary classifier (e.g., Logistic Regression) is trained on these surrogate labels to act as a real-time OOD detector.
The four-step TARDIS workflow: sampling, feature extraction, surrogate labeling, and binary classifier fitting.

Experimental Setup and Datasets

The authors evaluated TARDIS across 17 experimental setups using three primary datasets:

  • EuroSAT: Used to test spatial shifts (West vs. East Europe) and semantic shifts (withholding specific land-cover classes).
  • xBD: A dataset for building damage assessment, providing complex covariate shifts across various natural disasters (floods, earthquakes, wildfires) in diverse geographies.
  • Fields of the World (FTW): A large-scale agricultural field segmentation dataset used for real-world global deployment testing across 24 regions.

Results and Discussion

TARDIS demonstrated near-oracle performance, matching the accuracy of classifiers trained with perfect knowledge of OOD labels in 13 out of 17 test cases. It proved competitive with state-of-the-art post-hoc methods like ReAct and NAP while maintaining the primary model's original accuracy.

Key insights from the study include:

  • Activation Patterns: OOD samples trigger distinct internal neural patterns. TARDIS successfully exploits these "fingerprints" without requiring network retraining.
  • Classifier Synergy: The addition of the binary classifier (Step 4) significantly boosts performance over simple clustering, increasing AUROC from 79% to 97% in specific experiments.
  • Scalability: The method is highly efficient, processing a standard satellite image patch in approximately 0.003 seconds. This allowed the researchers to screen the entire continent of Africa for OOD samples in under four hours on a single GPU.

When deployed on the global FTW dataset, TARDIS effectively flagged arid biomes and polar regions as OOD, highlighting the training bias of the base model toward temperate environments.

Global deployment of TARDIS on the Fields of the World dataset, highlighting OOD detection in arid and polar regions.

Conclusion

TARDIS offers a robust, scalable solution for monitoring distribution shifts in Earth Observation. While it requires a sufficient amount of unlabeled WILD data for initial clustering, its stability across diverse datasets makes it a practical tool for real-world deployment. Future research may explore density-based clustering methods to improve outlier handling and investigate automated model fine-tuning triggered by OOD detection signals.

Summary updated

BibTeX
@inproceedings{ekim2025distribution,
  author = {Burak Ekim and Girmaw Abebe Tadesse and Caleb Robinson and Gilles Quentin Hacheme and Michael Schmitt and Rahul Dodhia and Juan M. Lavista Ferres},
  title = {{Distribution Shifts at Scale: Out-of-distribution Detection in Earth Observation}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure