SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.07082 · ICCV · 2025

On the Generalization of Representation Uncertainty in Earth Observation

Gustau Camps-Valls, Xiao Zhu, Spyros Kondylatos, Ioannis Papoutsis, Dimitrios Michail, Nikolaos Bountos

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.07082.json · badge: /api/ran/2503.07082.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Orion-AI-Lab/EOUncertaintyGeneralization community
Papers with Code archive
6 ran · 5 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
calc_cpa Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("3ef3a1509ec04964")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.stats import rankdata

# Create simple 1D arrays for response and predictor
response = np.array([1.2, 2.5, 3.1, 4.8, 5.3])
predictor = np.array([1.1, 2.3, 3.2, 4.9, 5.1])

ARGS = {
    "response": response,
    "predictor": predictor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
closest_representations Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("259672369c6291e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (2,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from scipy.stats import mode

torch.manual_seed(0)

# Create small feature tensor (batch_size=2, feature_dim=4)
features = np.random.randn(2, 4).astype(np.float32)

# Create target labels tensor (batch_size=2)
targets = np.array([0, 1], dtype=np.int64)

ARGS = {
    'features': features,
    'targets': targets,
    'mode': 'faiss',
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
faiss, numpy, scipy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
distribution_of_classes Ran
ran; our contract draft was wrong, not the code
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("f16d29d1bdfbe0ed")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes an array and reshapes it, then applies bincount along axis 1
# It needs:
# 1. array: a numpy array with at least 2 dimensions
# 2. num_classes: an integer specifying the number of classes for bincount

# Create a small 2D array with integer values (class indices)
# Shape: (2, 4) - batch of 2, with 4 elements each
array = np.array([
    [0, 1, 2, 1],
    [1, 2, 0, 2]
], dtype=np.int32)

# Number of classes
num_classes = 3

ARGS = {
    "array": array,
    "num_classes": num_classes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
entropy Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from mkirchhof/url
pointer only · get_code("888c1a93e404a608")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hellinger_distance Ran
ran, honoured the contract we drafted
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("d4ce2c9f726afea6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# hellinger_distance expects two probability distributions P and Q
# It computes sqrt(0.5 * sum((sqrt(P) - sqrt(Q))^2)) over the last axis
# P and Q should be numpy arrays of probabilities (non-negative, typically sum to 1)
# Using batch size 2 and dimension 4 for the probability space

np.random.seed(0)

# Create two batches of probability distributions
# Shape: (2, 4) - 2 samples, each with 4 probability values
P = np.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.25, 0.25, 0.25, 0.25]
], dtype=np.float32)

Q = np.array([
    [0.2, 0.3, 0.2, 0.3],
    [0.1, 0.2, 0.3, 0.4]
], dtype=np.float32)

ARGS = {
    "P": P,
    "Q": Q
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
multilabel_patching Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("37abf15c4f5600d9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (2, 2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Test case 1: multilabel similarity type
batch_size = 2
rows = 4
cols = 3
k = 2
num_classes = 5

batch_array_multilabel = np.random.randint(0, num_classes, size=(batch_size, rows, cols))

ARGS = {
    'batch_array': batch_array_multilabel,
    'k': k,
    'similarity_type': 'multilabel',
    'num_classes': num_classes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pct_cropped_has_bigger_uncertainty Ran
ran; our contract draft was wrong, not the code
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("ebcfe038649bf920")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small uncertainty tensors
# unc_orig: uncertainty values for original images (batch_size=2)
unc_orig = torch.tensor([0.1, 0.3], dtype=torch.float32)

# unc_cropped: uncertainty values for cropped images (batch_size=2)
# Some values larger than unc_orig, some smaller, to test the comparison
unc_cropped = torch.tensor([0.2, 0.2], dtype=torch.float32)

ARGS = {
    "unc_orig": unc_orig,
    "unc_cropped": unc_cropped,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
EmbeddingTensor Not yet run
unverified (harvested, no recorded run)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("b4a3ec832192b915")
How it ran

no invocation recorded.

compute_entropy Not yet run
unverified (harvested, no recorded run)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("d20673febf1cc6cb")
How it ran

no invocation recorded.

entropy_dispersion Not yet run
unverified (harvested, no recorded run)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("1e8a01d04c2b7218")
How it ran

no invocation recorded.

inference Not yet run
unverified (harvested, no recorded run)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("76a3c9aaab826c3c")
How it ran

no invocation recorded.

recall_at_one Not yet run
unverified (harvested, no recorded run)
Orion-AI-Lab/EOUncertaintyGeneralization/inference/infere_uncertainties.py
code served (permissive licence) · get_code("1842fb099630c47c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
entropy
brick of this paper's assembly: metric
1 other paper
1 dated earlier
2307.03810 (2023-07)
URL: A Representation Learning Benchmark for Transferable Uncertainty Estimates

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advances in Computer Vision have introduced the concept of pretrained representation uncertainty, enabling zero-shot uncertainty estimation. This holds significant potential for Earth Observation (EO), where trustworthiness is critical, yet the complexity of EO data poses challenges to uncertainty-aware methods. In this work, we investigate the generalization of representation uncertainty in EO, considering the domain's unique semantic characteristics. We pretrain uncertainties on large EO datasets and propose an evaluation framework to assess their zeroshot performance in multi-label classification and segmentation EO tasks. Our findings reveal that, unlike uncertainties pretrained on natural images, EO-pretraining exhibits strong generalization across unseen EO domains, geographic locations, and target granularities, while maintaining sensitivity to variations in ground sampling distance. We demonstrate the practical utility of pretrained uncertainties showcasing their alignment with task-specific uncertainties in downstream tasks, their sensitivity to realworld EO image noise, and their ability to generate spatial uncertainty estimates out-of-the-box. Initiating the discussion on representation uncertainty in EO, our study provides insights into its strengths and limitations, paving the way for future research in the field. Code and weights are available at: https://github.com/Orion-AI-Lab/EOUncertaintyGeneralization.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.07082")
get_code_for_paper("2503.07082")
have("2503.07082")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.07082.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.07082.svg)](https://syntology.ai/paper/2503.07082)

Connect an agent — have() is free.