Towards Understanding Text Hallucination of Diffusion Models via Local Generation Bias
Rui Lu, Runzhe Wang, Kaifeng Lyu, Xitai Jiang, Gao Huang, Mengdi Wang
TL;DR
This work identifies a local generation bias in score-based diffusion models as a key source of text-like hallucinations. By introducing the Local Dependency Ratio ($LDR$), the authors quantify how denoising networks rely on localized input regions, often treating symbol generation as nearly independent across tokens. They support this with empirical evidence from synthetic text-like distributions and a theoretical analysis on hypercube-structured data, showing that high $LDR$ emerges early in training and can persist, driving hallucinations even in architectures with global receptive fields. The study also connects these observations to optimization dynamics via a two-layer ReLU model, illustrating how training biases can inhibit learning of global structure, with implications for real-world text and multimodal generation. Overall, the work provides a diagnostic, mechanistic, and theoretical framework for understanding and potentially mitigating hallucinations in diffusion models.
Abstract
Score-based diffusion models have achieved incredible performance in generating realistic images, audio, and video data. While these models produce high-quality samples with impressive details, they often introduce unrealistic artifacts, such as distorted fingers or hallucinated texts with no meaning. This paper focuses on textual hallucinations, where diffusion models correctly generate individual symbols but assemble them in a nonsensical manner. Through experimental probing, we consistently observe that such phenomenon is attributed it to the network's local generation bias. Denoising networks tend to produce outputs that rely heavily on highly correlated local regions, particularly when different dimensions of the data distribution are nearly pairwise independent. This behavior leads to a generation process that decomposes the global distribution into separate, independent distributions for each symbol, ultimately failing to capture the global structure, including underlying grammar. Intriguingly, this bias persists across various denoising network architectures including MLP and transformers which have the structure to model global dependency. These findings also provide insights into understanding other types of hallucinations, extending beyond text, as a result of implicit biases in the denoising models. Additionally, we theoretically analyze the training dynamics for a specific case involving a two-layer MLP learning parity points on a hypercube, offering an explanation of its underlying mechanism.
