CoDEx: Combining Domain Expertise for Spatial Generalization in Satellite Image Analysis

Abhishek Kuriyal, Elliot Vincent, Mathieu Aubry, Loïc Landrieu · DOI

Introduction

Earth observation models face a significant challenge known as "spatial domain shift." Because the physical world varies dramatically across climates, architectures, and ecosystems, a model trained to identify forests in Europe may fail when applied to the Amazon. Standard deep learning approaches typically attempt to learn a single, globally invariant model. However, these "one-size-fits-all" solutions often overfit to their training regions or lose the nuance required for specific local features.

CoDEx (COmbining Domain EXperts) proposes a shift in perspective: instead of forcing invariance, it embraces regional diversity by training a committee of specialized experts and learning how to intelligently aggregate their predictions for unseen locations.

The CoDEx Framework

The CoDEx framework operates in two distinct training stages designed to achieve robust domain generalization without requiring data from the target region during training.

1. Multi-Domain Expert Training

The system utilizes a shared "backbone" feature extractor connected to multiple "heads," with each head corresponding to a specific geographic domain in the training set. To prevent these experts from becoming overly isolated, the authors introduce a learnable affinity matrix. This matrix automatically discovers visual similarities between domains and enforces a consistency loss, encouraging similar domains to produce aligned predictions. Unlike previous methods that relied on manual metadata like GPS coordinates, CoDEx learns these relationships directly from the image data.

The CoDEx training architecture (c) compared to standard baseline (a) and simple multi-model (b) approaches.

2. Domain Expert Selection

Once the experts are trained and frozen, a selection module ($h_{select}$) is trained. This module analyzes an input image and predicts which experts are likely to be the most accurate for that specific scene. At inference time, when the model encounters a brand-new part of the world, the selection module assigns weights to the experts, and their predictions are blended into a final output. This process is entirely data-driven and does not require geographic coordinates.

Experimental Evaluation

The authors evaluated CoDEx across four diverse satellite datasets covering three distinct tasks:

  • Semantic Segmentation: DynamicEarthNet and MUDS (labeling pixels as water, agriculture, etc.).
  • Change Detection: OSCD-3ch (identifying changes between two timestamps).
  • Image Classification: FMoW (identifying land use, such as airports or hospitals).

To ensure a rigorous test of spatial generalization, the researchers implemented custom "spatial splits," ensuring that test regions were geographically distinct from any regions seen during training.

Key Results

CoDEx consistently outperformed both standard baselines and state-of-the-art domain generalization methods across all tested benchmarks.

Quantitative performance comparison across four datasets, showing CoDEx (ours) consistently exceeding baseline performance.
  • DynamicEarthNet: Achieved 39.1 mIoU, surpassing the baseline (37.5) and the previous state-of-the-art method, D³G (38.7).
  • FMoW: Reached 53.9% accuracy, a significant improvement over the baseline (51.6%) and even outperforming some "Domain Adaptation" methods that had the advantage of seeing target-domain data during training.
  • Efficiency: Despite the multi-head architecture, the computational overhead is minimal. For a dataset with 55 domains, CoDEx adds only about 6% to inference time compared to a standard single-head model.

Conclusion and Future Work

CoDEx demonstrates that collaboration between specialized experts is a more effective strategy for global satellite analysis than seeking a single invariant model. While the framework sets a new state-of-the-art, a gap remains between current performance and the "Oracle" limit (the theoretical maximum if the perfect expert were chosen for every image). Future research may focus on more sophisticated aggregation techniques or the integration of large-scale foundation models to further refine expert selection.

Summary updated

BibTeX
@inproceedings{kuriyal2025codex,
  author = {Abhishek Kuriyal and Elliot Vincent and Mathieu Aubry and Loïc Landrieu},
  title = {{CoDEx: Combining Domain Expertise for Spatial Generalization in Satellite Image Analysis}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure