SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.07890 · ICCV · 2025

Can Generative Geospatial Diffusion Models Excel as Discriminative Geospatial Foundation Models?

K Leuven, Xue Yang, Ziyang Gong, Kth, Yuru Jia, Valerio Marsocci, Maarten Vergauwen, Andrea Nascetti

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 3 no recorded run), measured 2026-11-23; 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.07890.json · badge: /api/ran/2503.07890.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
yurujaja/SatDiFuser canonical (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
FunctionStatusWhere it lives
get_datasets Ran
ran on a synthesized input
yurujaja/SatDiFuser/datasets/utils.py
code served (permissive licence) · get_code("5b44e5acce4c8e5c")
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 tuple. The image it ran in was not recorded. If your copy returns the same type 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 importlib
from unittest.mock import MagicMock, patch
import sys

torch.manual_seed(0)

# Create a minimal config class with dataset_name attribute
class MinimalConfig:
    def __init__(self, dataset_name):
        self.dataset_name = dataset_name

# Create mock dataset classes for each registry entry
class MockEuroSAT:
    @staticmethod
    def get_splits(cfg):
        # Return tuple of (train, val, test) datasets
        train_data = [
            (torch.randn(3, 4), torch.tensor(0)),
            (torch.randn(3, 4), torch.tensor(1))
        ]
        val_data = [
            (torch.randn(3, 4), torch.tensor(0))
        ]
        test_data = [
            (torch.randn(3, 4), torch.tensor(1))
        ]
        return (train_data, val_data, test_data)

class MockBigEarthNet:
    @staticmethod
    def get_splits(cfg):
        return ([], [], [])

class MockNZCattle:
    @staticmethod
    def get_splits(cfg):
        return ([], [], [])

class MockChesaPeake:
    @staticmethod
    def get_splits(cfg):
        return ([], [], [])

class MockCashewPlant:
    @staticmethod
    def get_splits(cfg):
        return ([], [], [])

# Create mock modules
mock_m_eurosat = MagicMock()
mock_m_eurosat.EuroSAT = MockEuroSAT

mock_m_bigearthnet = MagicMock()
mock_m_bigearthnet.BigEarthNet = MockBigEarthNet

mock_m_nz_cattle = MagicMock()
mock_m_nz_cattle.NZCattle = MockNZCattle

mock_m_chesapeake = MagicMock()
mock_m_chesapeake.ChesaPeake = MockChesaPeake

mock_m_cashew_plant = MagicMock()
mock_m_cashew_plant.CashewPlant = MockCashewPlant

# Patch importlib.import_module to return our mock modules
def mock_import_module(name):
    module_map = {
        'datasets.m_eurosat': mock_m_eurosat,
        'datasets.m_bigearthnet': mock_m_bigearthnet,
        'datasets.m_nz_cattle': mock_m_nz_cattle,
        'datasets.m_chesapeake': mock_m_chesapeake,
        'datasets.m_cashew_plant': mock_m_cashew_plant,
    }
    if name in module_map:
        return module_map[name]
    raise ImportError(f"No module named '{name}'")

# Apply the patch globally
original_import = importlib.import_module
importlib.import_module = mock_import_module

# Create a valid config with a dataset_name from the registry
cfg = MinimalConfig(dataset_name='meurosat')

ARGS = {
    'cfg': cfg
}
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 tuple — a tuple output has no array shape of its own; none is stated
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
get_norm Ran
ran; our contract draft was wrong, not the code
yurujaja/SatDiFuser/archs/detectron2/resnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Junyi42/geoaware-sc, is pointer only (licence: NONE) · get_code("56e01a00f6319825")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Junyi42/geoaware-sc, and GitHub detected no licence in that repository when it was checked. 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.

get_tokens_embedding Ran
ran on a synthesized input
yurujaja/SatDiFuser/archs/ldm_extractor.py
code served (permissive licence) · get_code("c30bf7b59ab2a4c7")
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 tuple. The image it ran in was not recorded. If your copy returns the same type 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)

class MockCLIPTokenizer:
    def __init__(self):
        self.model_max_length = 77
    
    def __call__(self, prompt, padding=None, max_length=None, truncation=None, return_tensors=None, return_overflowing_tokens=None):
        batch_size = 2
        seq_length = max_length if max_length else 77
        
        class TokenizerOutput:
            def __init__(self, input_ids):
                self.input_ids = input_ids
        
        input_ids = torch.randint(0, 49408, (batch_size, seq_length))
        return TokenizerOutput(input_ids)

class MockCLIPModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding_dim = 5
        self.linear = nn.Linear(49408, self.embedding_dim)
    
    def forward(self, input_ids):
        batch_size = input_ids.shape[0]
        seq_length = input_ids.shape[1]
        embeddings = torch.randn(batch_size, seq_length, self.embedding_dim)
        return (embeddings, None)

clip_tokenizer = MockCLIPTokenizer()
clip_model = MockCLIPModel()
device = 'cpu'
prompt = "a cat sitting on a mat"

ARGS = {
    'clip_tokenizer': clip_tokenizer,
    'clip': clip_model,
    'device': device,
    'prompt': prompt
}
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 tuple — a tuple output has no array shape of its own; none is stated
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
get_dataset_class Not yet run
unverified (harvested, no recorded run)
yurujaja/SatDiFuser/datasets/utils.py
code served (permissive licence) · get_code("f8a38c7742f140a1")
How it ran

no invocation recorded.

get_named_modules_with_suffix Not yet run
unverified (harvested, no recorded run)
yurujaja/SatDiFuser/archs/ldm_extractor.py
code served (permissive licence) · get_code("616857aa9ad58210")
How it ran

no invocation recorded.

get_xt_next Not yet run
unverified (harvested, no recorded run)
yurujaja/SatDiFuser/archs/ldm_extractor.py
code served (permissive licence) · get_code("944c9c79ccf549e4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 5 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
get_norm 1 other paper
1 dated earlier
2311.17034 (2023-11)
Telling Left from Right: Identifying Geometry-Aware Semantic Correspondence

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

Self-supervised learning (SSL) has revolutionized representation learning in Remote Sensing (RS), advancing Geospatial Foundation Models (GFMs) to leverage vast unlabeled satellite imagery for diverse downstream tasks. Currently, GFMs primarily employ objectives like contrastive learning or masked image modeling, owing to their proven success in learning transferable representations. However, generative diffusion models, which demonstrate the potential to capture multi-grained semantics essential for RS tasks during image generation, remain underexplored for discriminative applications. This prompts the question: can generative diffusion models also excel and serve as GFMs with sufficient discriminative power? In this work, we answer this question with SatDiFuser, a framework that transforms a diffusionbased generative geospatial foundation model into a powerful pretraining tool for discriminative RS. By systematically analyzing multi-stage, noise-dependent diffusion features, we develop three fusion strategies to effectively leverage these diverse representations. Extensive experiments on remote sensing benchmarks show that SatDi-Fuser outperforms state-of-the-art GFMs, achieving gains of up to +5.7% mIoU in semantic segmentation and +7.9% F1-score in classification, demonstrating the capacity of diffusion-based generative foundation models to rival or exceed discriminative GFMs. The source code is available at: https://github.com/yurujaja/SatDiFuser.

For agents

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

get_harvested_code_for_paper("2503.07890")
get_code_for_paper("2503.07890")
have("2503.07890")

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

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

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

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

Connect an agent — have() is free.