Part II: Diffusion Models for Earth Observation
case study: pixel labels for wood pallets
pallets are hard to label by hand, and easy to confuse with other classes such as solar panels
goal: training data with exact pixel labels for rare classes
case study: pixel labels for wood pallets
goal: training data with exact pixel labels for rare classes
the idea: generated images, labelled by construction
metadata ccity, pixel size,land use, …sample imagesx ~ p(x | c)add 3D assetse.g. wood palletsimage + pixel labelstraining pairs
metadata c
city Raleigh
GSD 20 cm
land use urban
roof cover 20%
conditional density
samples x ~ p(x | c)
c = 3 (RGB) … 12 (multispectral)
GSD = ground sample distance:
the ground size of one pixel
1024 × 1024 pixels
≈ 205 m × 205 m
20 cm per pixel
160 × 160 pixels
= 32 m × 32 m
every pixel: 3 to 12 numbers
metadata c
city Bordeaux
GSD 15 cm
land use urban
roof cover 20%
conditional density
samples x ~ p(x | c)
c = 3 (RGB) … 12 (multispectral)
GSD = ground sample distance:
the ground size of one pixel
classical Bayesian inference: from parameters to data, and back
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
example: a planet passing in front of its star dims the light we receive
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
example: a planet passing in front of its star dims the light we receive
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
example: a planet passing in front of its star dims the light we receive
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
example: a planet passing in front of its star dims the light we receive
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
transit model
θ = depth δ, width w, mid-time t₀: three numbers
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
transit model
light curve
likelihood: each point is Gaussian around the curve, with fixed width σ
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
transit model
light curve
maximum likelihood: the θ whose curve keeps the points in the band
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
transit model
light curve
posterior p(θ | x)
each MCMC step proposes θ, evaluates p(x | θ) p(θ), then moves or stays
classical Bayesian modelling: write down how the data is generated, then fit θ
parameters θ
simulator f(θ)
data x
likelihood p(x | θ)
time
brightness
transit model
light curve
posterior p(θ | x)
after burn-in, θ ~ p(θ | x): every curve is one posterior sample
parameters θ
simulator f(θ)
image x
likelihood p(x | θ)
posterior p(θ | x)
No mechanistic forward model: can not write down f(θ) for an EO image
classical Bayesiangenerative ML model
want: the parameters: new data
modelsimulator , few interpretable θneural network fit to samples
methodsMCMC over θGMMs, GANs, VAEs, normalising flows,
autoregressive, diffusion
both generative: ML fits a far more flexible function class
Gaussian mixture, 10 components
…and samples from it
…and samples from it
this logo:
one 1024 × 1024 × c image:
High-dimensional and irregular: classical density estimators break
Rossky, Doll & Friedman (1978) · Besag (1994) · Roberts & Tweedie (1996)
Langevin dynamics: a Markov chain whose samples follow
score function: points uphill in density
step size
fresh Gaussian noise, every step
small steps ε, many iterations: the chain's samples follow p(x)
Rossky, Doll & Friedman (1978) · Besag (1994) · Roberts & Tweedie (1996)
Langevin dynamics: a Markov chain whose samples follow
MCMC needs p itself; Langevin needs only its gradient, the score
Rossky, Doll & Friedman (1978) · Besag (1994) · Roberts & Tweedie (1996)
target density p(x) + Langevin particles
histogram of the particles
…but how do we learn the score?
Vincent (2010), “A Connection Between Score Matching and Denoising Autoencoders”
…but how do we learn the score?
Vincent (2010), “A Connection Between Score Matching and Denoising Autoencoders”
…but how do we learn the score?
learns , the score of the noised data: for small σ
denoising: learn to point from x̃ back to the data
one target per noisy sample: back to the x it came from
averaging over every x behind each x̃ gives the score of the noised data
…but Langevin starts from noise: exactly where the score is unknown
large σ: noisy samples cover the space.
small σ: the score keeps the detail
Song & Ermon (2019)
annealed Langevin: a few Langevin steps at each σ, large to small
flow matching: join noise samples with data points with a straight line
along each line the velocity is constant: ε − x₀, the regression target
a time-dependent vector field that carries noise (t = 1) to data (t = 0)
the forward process: a fixed formula, nothing is learned
Anderson (1982) · Song et al. (2021) · Gao et al. (2024)
two samplers, from noise to data: the same density at every t
the noising itself, forward in time:
stochastic (reverse SDE)
deterministic (ODE)
full score and fresh noise, or half the score and no noise
network output
the network's output at each particle: where it moves next
network output
known: the noise schedule
learned: the score
it splits exactly: a known part plus the learned part
with fresh noise: reverse SDE
without: ODE
the same network, with fresh noise (SDE) or without (ODE)
Rombach et al. (2022) · Yao et al. (2025) · Leng et al. (2025)
so far: what the network learns. Now: where it runs, and what it is
image x512 × 512 × 3VAE encoderlatent z64 × 64 × 32denoiser vθ(zₜ, t, c)transformerVAE decoder100–200 steps
diffusion runs in the VAE’s latent space: 8× smaller per side, 6× fewer numbers
a good latent space is smooth and semantic: diffusion trains much faster on it
ESA, Copernicus programme
Sentinel-2
500 nm1000 nm1500 nm2000 nmvisiblered edge, near-infraredshort-wave infrared
two satellites: the same place approx. every 5 days
13 bands from 443 to 2190 nm: visible, red edge, near- and short-wave infrared
free and open since 2015
pixel size10 m20 m60 m
the same fields in three band combinations
true colour
near-infrared
short-wave infrared
near-infrared: growing crops light up, fields that look alike in true colour separate
short-wave infrared: bare soil stands out
12 numbers per pixel: too many for an RGB autoencoder
Lehmann et al. (2026), EO-VAE · Xiong et al. (2024), DOFA
Specialised EO autoencoder: takes any band set
bandsλ₁ … λₙinput layerweights from λFLUX.2 encoderpretrainedlatentone spaceFLUX.2 decoderpretrainedoutput layerweights from λ
a small network (hypernetwork) turns each band's wavelength into the weights of the first and last layer
any sensor, any band set, one latent space: Sentinel-2's 12 bands, radar, …
from the logo to images
every point stands for one image: , not
from the logo to images
three random points of the logo, three real aerial images
from the logo to images
along the data: only real images
from the logo to images
off the data: , noisier further away
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
one token: 16 × 16 px = 3.2 m, about a car
a patch of the autoencoder's latent
Raleigh, 20 cm per pixel: a 32 × 32 grid of tokens
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
autoencoder
linear layer
each token is a vector: the transformer works in
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
lined up row by row: one sequence (9 of 1,024 shown)
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
each token carries its position (row, column)
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
metadata:
Raleigh, 20 cm,
urban, …
attention: every token reads from all the others
Peebles & Xie (2023)
the denoiser is a transformer: images become patch tokens
metadata:
Raleigh, 20 cm,
urban, …
layer 27, real weights: most from cars and a crosswalk
inside our 680 M model: where three tokens look
query token
a car
a roof
trees
layer 13 of 34
stays in its neighbourhood: about 70 % within 3 × 3 tokens
layer 27 of 34
searches the tile for similar content (own 3 × 3 hidden)
some layers act like a convolution, others search the whole tile
Peebles & Xie (2023)
the denoiser is a transformer: it sees the tile as tokens
t is no token: it scales and shifts every block
noisy tokens in, one velocity per token out:
Peebles & Xie (2023)
the denoiser is a transformer: it sees the tile as tokens
: the network's guess of the clean tile
Su et al. (2021), RoPE · Reed et al. (2023), Scale-MAE
GSD-aware positions: metres, not pixels
5 tokens at 15 cm per pixel = 12 m
5 tokens at 25 cm per pixel = 20 m
attention ignores where tokens are: each token is given its (row, column)
with RoPE, attention depends only on the offset between two tokens
ours: offsets in metres: (row, column) × , g = pixel size
equal metres → equal offset: attention sees physical distance
from noise to a tile: South Bend, 15 cm per pixel, urban, 20 % roof cover
the network's current guess of the clean tile,
coarse to fine: the layout is set early, the details come last
now industrial, 30 % roof cover
the network's current guess of the clean tile
other conditions: halls and parking instead of houses and gardens
real or generated?
generated
real
South Bend, 15 cm per pixel, urban · zoomed: 19.2 m across
bloopers: where the model still gets it wrong
markings everywhere
solar panels with holes
pipes and tanks melt together
industrial: Strasbourg · Washington DC · A Coruña, 15–20 cm per pixel
Case study
generating labelled data, together with 3D
1 · generate a tile: Indianapolis, 15 cm per pixel, industrial
generated by our model, 77 m across
2 · find where pallets can go
placement area: the open yard in front of the loading docks
3 · render pallets into the tile in 3D
procedural 3D: pallets rendered into the generated tile
and every pallet pixel comes labelled
pixel labels
image
an image with exact labels, for the class the customer needs
and every pallet pixel comes labelled
pixel labels
image
an image with exact labels, for the class the customer needs
and every pallet pixel comes labelled
pixel labels
image
an image with exact labels, for the class the customer needs
take-aways
diffusion learns the score of noisy data by denoising; sampling follows it from noise to data
flow matching: the same model with straight paths; SDE or ODE is a choice of sampler
it runs in a latent space, and how that space is structured decides how fast it trains
Earth observation adds its own axes: many bands, pixel sizes from 15 cm to 10 m
Backup
SDE and ODE: one density, many dynamics
from an SDE to its density: one small step for many particles
driftptpt+Δt
drift: every particle moves by
the density is carried along:
noise: every particle gets a random kick
the density is blurred:
add the two: (Fokker–Planck)
Song et al. (2021)
from the SDE to the ODE: rewrite the noise term as a drift
SDE
density of xt (Fokker–Planck)
identity
so
ODE
a continuity equation: the ODE has the SDE’s at every t
Albergo & Vanden-Eijnden (2023)
from the ODE back to SDEs: add Langevin dynamics
ODE
Langevin at fixed t
sum
check
one ODE, a whole family of SDEs: the noise level η is a free choice
Anderson (1982) · Song, Meng & Ermon (2021) · Karras et al. (2022)
samplers are points on this family (time runs backwards)
in practice
probability-flow ODEDDIM · rectified-flow Euler / Heun
partial LangevinDDIM’s η · EDM’s churn
reverse-time SDEDDPM
stochastic vs deterministic is a choice of sampler, not of model
a rectified-flow model sampled stochastically, without retraining
path
from v
step t → t − Δt
η = 0: the Euler sampler we use. η > 0: Langevin correction on every step
identical at every single t, different as processes
ODESDE
noise → imagedeterministic, invertiblerandom
reversingpath by path: integrate backwardsin distribution: reverse-time SDE
likelihoodexact, change of variablesvia the ODE
score errorsaccumulate along the pathpartly corrected by Langevin
stepsfew, if paths are straightmore: noise needs small steps
they differ in the joint statistics of a path: and together
Liu et al. (2023) · Lipman et al. (2023)
the density does not fix the dynamics
probability flow: one of many velocity fields for the same
flow matching with a Gaussian path learns exactly this one
reflow keeps the endpoints but changes in between: straighter paths
flow matching
after one reflow
straight paths: a single Euler step is enough
Goodfellow et al. 2014 · Kingma & Welling 2014 · Rezende & Mohamed 2015 · van den Oord et al. 2016 · Kingma & Gao 2023
what it fitslog p(x) of a sample?what goes wrong
GANmin-max game: generator vs discriminator (≈ Jensen–Shannon), no likelihood✗ no densityunstable training, mode collapse (misses parts of the data)
VAEthe ELBO: a lower bound on log p(x), reconstruction − KL✓ the bound onlyblurry samples (the decoder averages)
normalising
flow
the exact log-likelihood, by change of variables✓ exact, one passinvertible layers only: restricted, costly
autoregressivethe exact log-likelihood, token by token: p(x) = ∏ p(xᵢ | x<ᵢ)✓ exact, one passneeds discrete tokens: a learned codebook for images is not trivial; slow, token-by-token sampling
diffusion,
flow matching
denoising regression = a weighted ELBO✓ exact, via the ODE (slow)slow sampling: 100–200 network evaluations
Rossky, Doll & Friedman (1978) · Besag (1994) · Roberts & Tweedie (1996)
target density p(x) + Langevin particles
histogram of the particles
without noise it is gradient ascent: everything collapses onto one mode
Yao et al. (2025) · Leng et al. (2025) · Zheng et al. (2025)
in practice: the FLUX.2 autoencoder
32 channels, regularised towards semantic features (VA-VAE, REPA-E)
ours: diffusion converges faster in FLUX.2 latents than in our from-scratch VAEs
but frozen semantic encoders (RAE) reconstruct poorly: 18.8 dB vs 31.5 dB PSNR. A plausible roof is not enough if its edge moves
GSD-aware RoPE: the test so far
GSD-RoPEcontrol
setupcontinue our 680 M model from update 737,808, switch on over 1,000 updates, +100 k updatesmatched control
probe loss0.88350.8832
FD in DOFA features14.6715.40
FD in Panopticon features77.1976.20
nextGSD-RoPE + decoder-feature loss, 500 k updatessubmitted 30 Oct
FD: like FID, but in the features of DOFA or Panopticon, two Earth-observation foundation models. Lower is better. Scored at 847,808 vs 837,808 updates: not step-matched
no measurable gain yet: work in progress
Yu et al. (2025) · Wang et al. (2026) · Chefer et al. (2026)
the same idea inside the denoiser
projector≈ targetdenoiser blocks
REPAa pretrained vision model (DINOv2): SiT-XL trains over 17.5× faster
SRA2the clean VAE latent: no external model
Self-Flowan EMA teacher that sees cleaner tokens
guiding the denoiser’s features speeds up training
Lipman et al. (2023) · Liu et al. (2023) · Esser et al. (2024)
flow matching sees the same noisy images as diffusion, rescaled
diffusion
flow matching
rescaled
predict one, get all three
train on the velocity, read out the noise or the score
Rombach et al. (2022) · Yao et al. (2025) · Leng et al. (2025) · Kouzelis et al. (2025)
a good latent space: easy to decode, easy to learn
the tensionmore latent channels reconstruct better, but diffusion then needs bigger models and longer training
smootha KL term keeps the latents close to a Gaussian: nearby latents decode to similar images
semanticalign the latents with a pretrained vision model (VA-VAE, REPA-E)
equivarianta scaled or rotated image gives a scaled or rotated latent (EQ-VAE)
structure in the latent space makes diffusion train faster
Ronneberger et al. (2015) · Peebles & Xie (2023)
UNet
skip connections →
convolutions: each layer sees a small neighbourhood
down- and upsampling, skips carry the detail
attention only at the coarse levels
diffusion transformer
the same block, N times
the image is cut into tokens
every layer: attention between all tokens
scales predictably: more compute, better samples
the field has moved almost entirely to transformers
Vaswani et al. (2017)
querywhat token i is looking for
keywhat token j can be found by
valuewhat token j passes on
convolution: 3 × 3 neighbours
attention: all tokens + metadata
every pair of tokens: 1,024 tokens → 1 M scores per head and layer
two conditions side by side: South Bend, 15 cm per pixel
urban, 20 % roof cover
industrial, 30 % roof cover
each panel: the network's current guess of the clean tile,
coarse to fine: the layout is set early, the details come last
network output
known: the noise schedule
learned: the score
known + learned, tip to tail, is the network's arrow
network output
known: the noise schedule
learned: the score
arrows drawn at (1 − t) × their size
near noise the two parts almost cancel; their sum is small
case study, step 2: how the placement area is found
intersect two segmentations, then score where stacks fit
References (1/3)
Langevin dynamics
Rossky, Doll & Friedman (1978), Brownian Dynamics as Smart Monte Carlo Simulation
Besag (1994), Comments on “Representations of Knowledge in Complex Systems” by Grenander & Miller
Roberts & Tweedie (1996), Exponential Convergence of Langevin Distributions and Their Discrete Approximations
Vincent (2010), A Connection Between Score Matching and Denoising Autoencoders
Song & Ermon (2019), Generative Modeling by Estimating Gradients of the Data Distribution
Diffusion
Anderson (1982), Reverse-Time Diffusion Equation Models
Ho, Jain & Abbeel (2020), Denoising Diffusion Probabilistic Models
Song et al. (2021), Score-Based Generative Modeling through Stochastic Differential Equations
Song, Meng & Ermon (2021), Denoising Diffusion Implicit Models
Karras et al. (2022), Elucidating the Design Space of Diffusion-Based Generative Models
Ho & Salimans (2022), Classifier-Free Diffusion Guidance
Kingma & Gao (2023), Understanding Diffusion Objectives as the ELBO with Simple Data Augmentation
References (2/3)
Flow matching
Chen et al. (2018), Neural Ordinary Differential Equations
Lipman et al. (2023), Flow Matching for Generative Modeling
Liu, Gong & Liu (2023), Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow
Albergo & Vanden-Eijnden (2023), Building Normalizing Flows with Stochastic Interpolants
Esser et al. (2024), Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
Gao et al. (2024), Diffusion Meets Flow Matching: Two Sides of the Same Coin (blog post)
Other generative models
Goodfellow et al. (2014), Generative Adversarial Nets
Kingma & Welling (2014), Auto-Encoding Variational Bayes
Rezende & Mohamed (2015), Variational Inference with Normalizing Flows
van den Oord et al. (2016), Pixel Recurrent Neural Networks
Ronneberger et al. (2015), U-Net: Convolutional Networks for Biomedical Image Segmentation
Vaswani et al. (2017), Attention Is All You Need
Su et al. (2021), RoFormer: Enhanced Transformer with Rotary Position Embedding
Peebles & Xie (2023), Scalable Diffusion Models with Transformers
References (3/3)
Latent space
Rombach et al. (2022), High-Resolution Image Synthesis with Latent Diffusion Models
Yao et al. (2025), Reconstruction vs. Generation: Taming Optimization Dilemma in Latent Diffusion Models
Leng et al. (2025), REPA-E: Unlocking VAE for End-to-End Tuning with Latent Diffusion Transformers
Kouzelis et al. (2025), EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling
Zheng et al. (2025), Diffusion Transformers with Representation Autoencoders
Earth observation
Reed et al. (2023), Scale-MAE: A Scale-Aware Masked Autoencoder for Multiscale Geospatial Representation Learning
Xiong et al. (2024), Neural Plasticity-Inspired Multimodal Foundation Model for Earth Observation (DOFA)
Lehmann et al. (2026), EO-VAE: Towards a Multi-sensor Tokenizer for Earth Observation Data
Yu et al. (2025), Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think
Wang et al. (2026), SRA 2: Variational Autoencoder Self-Representation Alignment for Efficient Diffusion Training
Chefer et al. (2026), Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis