← All 16 Stations STATION 05 · EXP 5 THERMO COMPUTING LAB sampler running in your browser

The clamped Ising denoiser

A Markov random field with clamped observation nodes and a latent Ising prior. Gibbs sampling over the latent layer smooths noise while keeping structural edges. The field below is live — corrupt it, then watch the sampler pull the signal back out of the noise.

The field, live

44 × 32 spins · Gibbs sampler
Hidden signal
ground truth
—
Observed
clamped nodes y
—
Latent layer
Ising prior x
—
Observed error
—
Latent error
—
Noise removed
—

Controls

Hamiltonian knobs
Hidden signal
22%
Share of clamped spins flipped away from the signal. Changing it re-corrupts the field.
1.00
The latent prior. Higher J smooths harder — too high and real edges melt.
0.80
How hard each latent spin is pulled toward its clamped observation.
1.00
Cold (high β) freezes the field early; warm keeps it exploring.
Mark error pixels
Latent spins that still disagree with the signal, in rust.

Live readouts

this browser · your settings
Latent error
—
vs. hidden signal
Noise removed
—
relative to observed
Sweeps
0
full passes over the field
Spin flips
0
accepted this run
Energy / spin
—
Hamiltonian of the latent layer
Magnetisation
—
mean latent spin ⟨x⟩
Sampler running. Watch isolated flipped spins get outvoted by their neighbours.

These six numbers are the live demo running on this page with your slider settings — they are not the benchmark figures on the right.

Published benchmark

Exp 5 · ledger
22.07% 4.97% Pixel error, noisy observation to denoised output. simulated benchmark result, results may vary (not customer results)
77.5%
noise reduction
simulated benchmark result, results may vary (not customer results)
0.583s
run time
simulated benchmark result, results may vary (not customer results)

Recorded for Experiment 5 in the thermo-lab ledger. The demo on this page re-implements the same model at interactive size, so its numbers will differ.

Error vs. sweeps

live trace
0%error · sweeps →45%
latent error observed error (fixed)
Coupling term −J Σ xᵢxⱼ
—
rewards neighbours that agree
Clamp term −κ Σ xᵢyᵢ
—
rewards fidelity to the observation

How it works

Markov random field
01 · CLAMP

Observations are pinned

The noisy image enters as observation nodes y, clamped — fixed for the whole run. They are evidence, never updated.

02 · PRIOR

Latent spins prefer company

Behind them sits a latent Ising layer x. Its prior rewards neighbours that agree, which is what “smooth” means here — except at real edges, where the evidence is strong on both sides.

03 · SAMPLE

Gibbs sweeps settle it

Each sweep revisits every latent spin and re-draws it from its conditional distribution. Isolated noise flips get outvoted; structural edges survive because whole neighbourhoods back them.

P(xi = +1 | rest) = σ( 2β · ( J·Σj∼i xj + κ·yi ) )

The probability of a latent spin pointing up, given its four neighbours and its clamped observation. The three sliders on this page are exactly the J, κ and β in this equation.

Run it yourself

thrml-bench · exp 5
$ uv run thrml-bench run --exp 5
# reproduces the published benchmark for this station

The command runs the full Experiment 5 benchmark — the clamped Ising denoiser — and reports the noise-to-error figures published above.