You've seen the hands diffusion models draw. Most of the time they're lifelike—but occasionally a six-fingered hand appears, like a surrealist nightmare. Statistically, the model insists, that hand is no different from others in the training data.
This is structural hallucination: samples that are statistically consistent with training data yet violate underlying structural rules.
Researchers from Warsaw University of Technology and Harvard Medical School offer a fresh perspective in a recent paper:
> Hallucination is not a problem of time but of space. It is not a quirk of some stage of the reverse diffusion process, but a geometric instability on the model-induced manifold.
In other words, diffusion models don't "paint at the wrong time"—they create wrinkles in regions of the manifold that shouldn't exist.
Two Perspectives: Time vs. Space
The most popular prior explanation comes from Aithal et al. (2024): mode interpolation. Diffusion models smoothly interpolate between different training-data modes, and the interpolation path can pass through regions never covered by training data—producing a six-fingered hand between two five-fingered ones. Based on this temporal view, Aithal proposed the Trajectory Variance Filter (TVF), monitoring variance along reverse-diffusion trajectories.
But the Sobieski team asked a more fundamental question: if hallucination is a manifold-geometry problem, can we detect it directly in space?
LID: A Wrinkle Detector on the Manifold
Imagine the data distribution as clay. Real faces, hands, and cats lie on its surface, which has folds, valleys, and bumps. Local Intrinsic Dimension (LID) measures how many independent directions the surface has at a given point. If LID suddenly inflates, the manifold structure has developed a "wrinkle" there.
Mathematically, the generator \(G_\theta\) maps noise space to the data manifold \(M_\theta\). At a point \(x_0\), the Jacobian \(J\) of \(G_\theta\) has \(n\) singular values \(\sigma_1, \sigma_2, \ldots, \sigma_n\). Since the data manifold is low-dimensional, most should be near zero:
The team proves two key propositions:
- Proposition 1: Local manifold instability (LMI) is proportional to the squared Frobenius norm of the Jacobian: \(\text{LMI}(x_1) \approx \beta^2 \|J\|_F^2\)
- Proposition 2: The standard DSM loss is itself an unbiased estimator of LID:
- DG (Discriminator Guidance): a biased discriminator leads to uneven sampling
- AAM (Adaptive Attention Modulation): requires training an anomaly detector; limited generalization
- RODSCAS / RODSSAS: robust-optimization sampling; unstable, sometimes increasing hallucinations
This means diffusion models already learn to estimate LID during training—we just need to read it out.
IQ: Ironing Out the Wrinkles
Intrinsic Quenching (IQ) is a thermodynamics-inspired correction. At certain reverse-diffusion timesteps, the score function is modified to "flatten wrinkles":
Probabilistically, this is equivalent to sampling from a Boltzmann distribution where high-LID samples are exponentially suppressed:
To avoid over-smoothing, IQ uses dynamic filtering: the correction activates only when LID exceeds a threshold \(q\). Stable samples are untouched.
The Numbers: Hallucination Rate Plummets
On 11kHands (hand images, a hallucination hotspot):
| Method | Hallucination Rate (HR) ↓ | Perceived Quality (UP) ↑ | |--------|------|------| | Baseline | 29.3% | 39.8% | | DG | 29.7% | 39.5% | | AAM | 29.3% | 40.6% | | RODSCAS | 25.8% | 40.2% | | IQ | 9.0% | 68.0% |
A 69% reduction in hallucination rate and 71% gain in perceived quality.
On synthetic datasets: MNIST HR fell from 37.3% to 10.2% (−73%), SimpleShapes from 25.8% to 9.4% (−64%), GaussianGrid from 20.2% to 8.9% (−56%). On natural images, FFHQ dropped from 8.2% to 4.2% and AFHQV2 from 6.9% to 5.9%. On the RSNA medical dataset, IQ improved mAP from 0.27 to 0.31 and mROC from 0.85 to 0.86—small numbers with major clinical significance, since hallucinations in medical imaging can mean fabricating bone structures or missing lesions.
Why Baselines Fall Short
Limitations
1. Computational cost: computing Jacobian singular values in high-dimensional image spaces is expensive 2. Threshold selection: \(q\) must be tuned per dataset 3. Structural hallucinations only: semantic-level errors ("a cat driving a car") may not be addressed 4. LID estimation accuracy: Proposition 2 relies on a "sufficiently small timestep \(t\)" assumption
The Bet
The author's wager: LID will become a standard quality-evaluation tool for generative models, like FID and IS. The failure modes of generative models are, at heart, geometric failure modes. If the LID histogram of a batch of samples shifts right—no matter how realistic they look—the model is wrinkling and needs ironing.
Paper Details
| Field | Content | |-------|---------| | Title | Local Intrinsic Dimension Unveils Hallucinations in Diffusion Models | | Authors | Bartlomiej Sobieski, Matthew Tivnan, Dawid Płudowski, Michał Jan Włodarczyk, Pengfei Jin, Przemyslaw Biecek, Quanzheng Li | | Affiliations | Centre for Credible AI, Warsaw University of Technology; University of Warsaw; Massachusetts General Hospital; Harvard Medical School | | arXiv | 2605.05026 | | Date | 2026-05-06 | | Core findings | LID is the main driver of structural hallucinations in diffusion models; DSM loss is an unbiased LID estimator; IQ cuts 11kHands hallucination rate from 29.3% to 9.0% | | Evaluation | 6 datasets (11kHands, FFHQ, AFHQV2, MNIST, SimpleShapes, GaussianGrid) + RSNA medical images; large-scale human annotation |