Abstract
The Langevin Dynamics (LD), which aims to sample from a probability distribution using its score function, has been widely used for analyzing and developing score-based generative modeling algorithms. While the convergence behavior of LD in sampling from a uni-modal distribution has been extensively studied in the literature, the analysis of LD under a mixture distribution with distinct modes remains underexplored in the literature. In this work, we analyze LD in sampling from a mixture distribution and theoretically study its convergence properties. Our theoretical results indicate that for general mixture distributions of sub-Gaussian components, LD could fail in finding all the components within a sub-exponential number of steps in the data dimension. Following our result on the complexity of LD in sampling from high-dimensional variables, we propose Chained Langevin Dynamics (Chained-LD), which divides the data vector into patches of smaller sizes and generates every patch sequentially conditioned on the previous patches. Our theoretical analysis of Chained-LD indicates its faster convergence speed to the components of a mixture distribution. We present the results of several numerical experiments on synthetic and real image datasets, validating our theoretical results on the iteration complexities of sample generation from mixture distributions using the vanilla and chained LD algorithms.
Introduction
Score-based generative models and diffusion models rely on Langevin Dynamics (LD) to produce high-quality samples. While the theoretical properties of LD are well-understood for unimodal distributions, real-world data is typically multimodal. In high-dimensional spaces, these modes are often separated by vast regions of near-zero probability, making it difficult for local search algorithms like LD to explore the full distribution.
The Failure of Vanilla Langevin Dynamics
Standard LD often fails to capture all modes of a mixture distribution as the dimensionality increases. This is because the sampler can easily get trapped in a single mode, requiring an impractical amount of time to jump between distant high-density regions. This phenomenon is a manifestation of the "curse of dimensionality" in sampling.
As shown in Figure 1, while LD works well in low dimensions, it suffers from significant mode collapse in higher dimensions ($d=10$), failing to recover the underlying mixture structure.
The "Zeroth Mode" Trap
A key theoretical insight of this work is the identification of the "zeroth mode" trap. In many mixture distributions, a low-density, high-variance mode (Mode 0) can surround other high-density modes. The score function in the low-density regions is dominated by this surrounding mode, effectively leading the sampler away from the actual target components. This surrounding mode acts as a barrier, masking the signal from the other modes.
Chained Langevin Dynamics (Chained-LD)
To overcome these limitations, we propose Chained Langevin Dynamics (Chained-LD). Instead of updating all $d$ variables simultaneously, Chained-LD leverages the chain rule of probability to decompose the sampling task into a sequence of lower-dimensional problems. The algorithm divides the data vector into patches of size $Q$ and samples them sequentially:
$P(\mathbf{x}) = P(\mathbf{x}^{(1)})P(\mathbf{x}^{(2)}|\mathbf{x}^{(1)})\dots P(\mathbf{x}^{(d/Q)}|\mathbf{x}^{(1)}, \dots, \mathbf{x}^{(d/Q-1)})$
By focusing on small, constant-sized patches, Chained-LD effectively reduces the "search volume" from exponential to polynomial, achieving a convergence time of $O(\frac{d^3}{\epsilon^2} \log \frac{d^3}{\epsilon^2})$. We also introduce Chained-ALD, which incorporates annealing to further improve performance on complex datasets.
Experimental Validation
We validated Chained-LD on synthetic Gaussian Mixture Models (GMMs) and real-world image datasets like MNIST and Fashion-MNIST. In 100-dimensional synthetic experiments, vanilla LD failed to find all modes after 1,000,000 steps, whereas Chained-LD succeeded in just 1,000 steps. On image mixture tasks involving original and flipped images, Chained-LD successfully generated a diverse set of samples reflecting the true distribution, while standard annealed LD remained stuck in a single mode.
Conclusion
Vanilla Langevin Dynamics faces significant hurdles when sampling from high-dimensional mixture distributions. Chained-LD provides a theoretically grounded and practically effective solution by decomposing the global sampling problem into a sequence of manageable conditional tasks, successfully breaking the curse of dimensionality.
Summary updated