Introduction
Diffusion Probabilistic Models (DPMs) have revolutionized image generation, yet they frequently struggle with structural and numerical consistency—most notably the "finger problem" where hands are generated with incorrect counts. This paper identifies this phenomenon as counting hallucinations: instances where a model fails to replicate the inherent numerical rules of its training data despite high perceptual quality. While existing metrics like Fréchet Inception Distance (FID) focus on visual quality, they remain largely blind to these logical failures.
The CountHalluSet Benchmark
To systematically quantify these errors, the authors introduce CountHalluSet, a suite of three datasets with increasing morphological complexity:
- ToyShape: Simple geometric shapes (triangles, squares, pentagons).
- SimObject: Photorealistic 3D-rendered objects (apples, clocks, cups).
- RealHand: 5,050 real-world hand images, each containing exactly five fingers.
The benchmark distinguishes between "facts in counting" (ground truth distributions) and "factual violations" (hallucinations), such as generating two triangles when the training data only ever contains one per category.
Methodology
The researchers propose a rigorous evaluation pipeline to measure the Counting Hallucination Rate (CHR). For complex datasets like RealHand, a two-stage automated process is employed.
First, a Counting-Ready Indicator (based on MaxViT) filters out non-counting failures—images too distorted or blurry to be evaluated. Second, a Counting Model (e.g., YOLO-12) identifies and counts specific features like fingertips.
To mitigate these hallucinations, the paper introduces Joint-Diffusion Models (JDM). Unlike standard DPMs that only model pixels, JDM learns to generate images and their structural skeletons (segmentation masks) simultaneously in a shared latent space. This structural "scaffolding" forces the model to respect topological constraints during the denoising process.
Key Insights and Results
The study reveals several counter-intuitive findings regarding modern sampling techniques:
- The FID Blind Spot: There is nearly zero correlation between FID scores and counting accuracy. A model can achieve a "better" FID while hallucinating more objects.
- The Sampling Paradox: In the RealHand dataset, increasing sampling steps often increases the CHR. The authors hypothesize that excessive steps may cause the model to overfit to local noise, manifesting as extra digits.
- Solver Performance: Advanced ODE solvers (e.g., DPM-Solver-2) often produce higher hallucination rates than simple ancestral sampling (DDPM), which serves as a practical lower bound for counting errors.
- JDM Efficacy: On RealHand, JDM reduced the CHR from 14.5% to 10.5% and significantly decreased non-counting failures from 10.6% to 2.3%.
Conclusion
Counting hallucinations represent a fundamental architectural challenge for diffusion models. While Joint-Diffusion Models offer a promising path toward numerical accuracy by incorporating structural constraints, they currently face a trade-off between factual correctness and perceptual crispness. Future research must address how to scale these constraints to large-scale foundation models without sacrificing visual quality.
Summary updated