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 Hacheme, Michael Schmitt, Rahul Dodhia, Juan M. Lavista Ferres

TL;DR

TARDIS is a lightweight, post-hoc out-of-distribution (OOD) detection method designed to make global Earth Observation models more reliable. By clustering internal model activations of unlabeled test data alongside known training data, it automatically generates surrogate labels to train a highly efficient binary OOD classifier. This approach matches state-of-the-art performance without sacrificing primary task accuracy or requiring labeled OOD data during training.

What Problem Does This Paper Address?

Deep learning models deployed for Earth Observation (EO) tasks—such as mapping crop fields or assessing disaster damage—frequently degrade in performance when applied globally. This happens because of "distribution shifts": variations in geography, seasons, atmospheric conditions (covariate shifts), or entirely new land-cover types (semantic shifts). Crucially, these models are often overconfident in their incorrect predictions, making it dangerous to blindly trust them at scale.

Detecting when data is Out-of-Distribution (OOD) is vital, but existing methods fall short in real-world geospatial applications. Some require access to labeled OOD examples during training (which is unrealistic since we cannot predict every future shift), while others alter the core model's weights, compromising its performance on the main task. Furthermore, "near-distribution" shifts—such as comparing satellite images of the same region across different seasons—are incredibly subtle and notoriously difficult to catch.

Methods

The authors introduce TARDIS (Test-time Addressing of Distribution Shifts at Scale), a post-hoc framework that operates in four distinct steps:

  1. Sampling: Collects a set of known In-Distribution (ID) data and a pool of unlabeled data from an unknown test distribution ("WILD").
  2. Feature Extraction: Passes both sets through the frozen, pre-trained target model and extracts internal activations from an intermediate layer, downsampling them via global max-pooling.
  3. Surrogate Label Assignment: Clusters the combined ID and WILD feature space using $k$-means. If a cluster contains a high proportion of ID samples (above a threshold $T$), all samples in it are labeled as "surrogate ID." Otherwise, they are labeled "surrogate OOD."
  4. Binary Classification: Trains a lightweight binary classifier (Logistic Regression) on these surrogate labels.

During deployment, this binary classifier quickly flags whether new, unseen inputs are ID or OOD based purely on their internal activation patterns.

Figure 2. The proposed framework consists of four key steps: (1) Sampling in-distribution (ID) and WILD samples; (2) Extracting internal activations from a pre-trained model f for both ID and WILD samples; (3) Clustering the combined feature space and labeling WILD samples as surrogate-ID or surrogate-OOD; (4) Fitting a binary classifier g on the labeled feature representations to distinguish between ID and OOD samples. The classifier g , during deployment, flags out-of-distribution inputs.

Datasets

The authors validated TARDIS across 17 experimental setups using three diverse datasets:

  • EuroSAT: A patch-level land-use/land-cover classification dataset (Sentinel-2) used to evaluate spatial splits (West vs. East Europe) and semantic shifts (holding out specific classes).
  • xBD: A high-resolution semantic segmentation dataset for building damage assessment. It provides pre- and post-disaster imagery to test temporal and environmental shifts across different disaster types (e.g., fires, floods, earthquakes).
  • Fields of the World (FTW): A massive, geographically diverse dataset covering agricultural field segmentation across 24 regions globally, used to demonstrate TARDIS's real-world scalability.

Key Insights and Ideas

  • Clustering Alone Isn't Enough: Simply using distance-based clustering to flag OOD samples performs poorly. However, using clustering only to generate surrogate labels, and then training a binary classifier on those labels, drastically improves performance (e.g., boosting ROC AUC from 79% to 97% in the EuroSAT River experiment).
  • Max Pooling Preserves Salient Signals: When downsampling internal activations, global max pooling significantly outperformed average pooling or PCA. This suggests that the most prominent activation values carry the most critical signatures of distribution shifts.
  • Classifier Skewness as a Sanity Check: The authors found that the skewness of the OOD classifier's prediction scores correlates directly with the primary model's performance. Low skewness indicates high uncertainty, serving as an excellent proxy metric to diagnose when a model is struggling in a new region.
Figure 4. Correlation between model performance and OOD score skewness. Low performance of the f model on the FTW test set aligns with low skewness in the OOD classifier g ’s score distribu- tion, suggesting the presence of OOD samples in the test set.

Key Results

  • Near-Oracle Performance: TARDIS achieved performance statistically indistinguishable from an "oracle" classifier (trained on actual ground-truth OOD labels) in 13 out of 17 cases for AUROC and all 17 cases for FPR95.
  • Competitive with State-of-the-Art: TARDIS matched or exceeded top post-hoc methods like ReAct and NAP, but unlike them, it requires zero hyperparameter tuning on proxy OOD datasets and preserves 100% of the base model's original accuracy.
  • Blazing Fast Scalability: Processing a standard $256 \times 256$ satellite patch takes just 0.003 seconds. TARDIS can screen the entire continent of mainland Africa on a single GPU in under 4 hours—a fraction of the time required for full model inference.

Limitations and Future Work

  • WILD Data Requirement: TARDIS assumes access to a non-trivial pool of unlabeled "WILD" samples from the target deployment environment to perform its initial clustering step.
  • Static Clustering: The method requires periodic updates to the clustering space as new data streams in over time.
  • Density Vulnerabilities: The current distance-based clustering approach might struggle with highly variable sample densities or extreme outliers. The authors suggest exploring density-based clustering methods in future iterations to resolve this.

Summary updated

BibTeX
@inproceedings{ekim2025distribution,
  author = {Burak Ekim and Girmaw Abebe Tadesse and Caleb Robinson and Gilles 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