PID-controlled Langevin Dynamics for Faster Sampling of Generative Models
Hongyi Chen, Jianhai Shu, Jingtao Ding, Yong Li, Xiao-Ping Zhang
TL;DR
This work introduces PID-controlled Langevin Dynamics (PIDLD), a training-free method that accelerates Langevin-based sampling by treating energy gradients as feedback signals and incorporating gradient history (integral) and gradient tendency (derivative). It is a drop-in replacement for standard Langevin steps, compatible with any LD-based sampler and preserving convergence with a decaying integral gain. Across image-generation and reasoning tasks, PIDLD delivers higher sample quality with far fewer steps, achieving substantial speedups (e.g., at least 10× under low NFEs) without retraining. By importing control-theoretic principles into stochastic sampling, PIDLD broadens the practical applicability of EBMs and SGMs for efficiency-critical applications.
Abstract
Langevin dynamics sampling suffers from extremely low generation speed, fundamentally limited by numerous fine-grained iterations to converge to the target distribution. We introduce PID-controlled Langevin Dynamics (PIDLD), a novel sampling acceleration algorithm that reinterprets the sampling process using control-theoretic principles. By treating energy gradients as feedback signals, PIDLD combines historical gradients (the integral term) and gradient trends (the derivative term) to efficiently traverse energy landscapes and adaptively stabilize, thereby significantly reducing the number of iterations required to produce high-quality samples. Our approach requires no additional training, datasets, or prior information, making it immediately integrable with any Langevin-based method. Extensive experiments across image generation and reasoning tasks demonstrate that PIDLD achieves higher quality with fewer steps, making Langevin-based generative models more practical for efficiency-critical applications. The implementation can be found at \href{https://github.com/tsinghua-fib-lab/PIDLD}{https://github.com/tsinghua-fib-lab/PIDLD}.
