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.
These six numbers are the live demo running on this page with your slider settings — they are not the benchmark figures on the right.
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.
The noisy image enters as observation nodes y, clamped — fixed for the whole run. They are evidence, never updated.
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.
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.
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.
$ uv run thrml-bench run --exp 5
The command runs the full Experiment 5 benchmark — the clamped Ising denoiser — and reports the noise-to-error figures published above.