Many search and inference methods keep a population of points, called particles, and move them together. Examples include particle swarms for global optimization and Stein variational gradient descent for approximating a Bayesian posterior; the second is a deterministic sampler in which particles follow the gradient of the log-density and push each other apart. These methods share a failure mode. The particles bunch together too early. In optimization this traps the search in a local optimum. In inference it badly underestimates uncertainty. The usual fixes add a repulsion or noise term whose strength is a fixed hyperparameter. If the strength is too low, the particles still collapse. If it is too high, they drift and lose precision. A swarm with divergence-based repulsion, for example, does 2x–8x better on multimodal functions but can no longer reach machine precision on a simple bowl. The standard escape from collapse in inference is to add more particles, roughly in proportion to dimension. That brings back the computational cost that particle methods were meant to avoid.
We propose to replace the fixed strength with a feedback signal that costs essentially nothing to compute. Integration by parts gives a simple fact: for any smooth target density $p$ whose tails vanish, and any coordinate $j$, the average of $(x_j - c_j)\,\partial_j \log p(x)$ under $p$ equals $-1$, for every constant $c_j$. The particles already evaluate the score $\nabla \log p$ at each step. So we can check, coordinate by coordinate, whether their spread matches this identity. A collapsed cloud gives a value well below 1 in magnitude. We use that gap to raise injected noise only when, and only where, collapse is happening. When the spread is right, the noise is switched off, so a unimodal target is not penalized.
Core Claim
A cheap moment condition from Stein's identity can stand in for both of the things practitioners currently pay for: grid-searching the noise or repulsion strength, and scaling particle count with dimension. Driving the noise temperature of noisy Stein dynamics by this signal should have three effects. It should keep particle variance correct at fixed, small particle counts as dimension grows. It should match a grid-tuned fixed temperature without the tuning. It should also remove the unimodal precision penalty that fixed repulsion causes when the same dynamics are used for optimization.
The diagnostic for coordinate $j$ at step $t$ is
$$ r_j^{(t)} = -\frac{1}{n}\sum_{i=1}^{n}\big(x_{ij}^{(t)} - \bar{x}_j^{(t)}\big)\,\partial_j \log p\big(x_i^{(t)}\big), $$
where $x_{ij}^{(t)}$ is coordinate $j$ of particle $i$, $\bar{x}_j^{(t)}$ is the particle mean, and $n$ is the number of particles. At the target, $r_j$ equals 1 in expectation. For a standard Gaussian target with particle variance $s^2$, $r_j \approx s^2$, so it directly reads off the variance shortfall that Understanding the Variance Collapse of SVGD in High Dimensions proves scales like $n/d$.
The controller updates a per-coordinate (or per-block) noise level multiplicatively:
$$ \log \lambda_j^{(t+1)} = \log \lambda_j^{(t)} + \eta\,\big(1 - \tilde{r}_j^{(t)}\big), $$
Here $\tilde{r}_j$ is a running average of $r_j$ and $\eta$ is a small step size. This is the one remaining knob, and its scale does not depend on the problem, because the setpoint is always 1. Averaged over coordinates, the diagnostic's sampling noise shrinks like $1/\sqrt{nd}$, since it is a mean of $nd$ roughly independent terms. The global version is therefore reliable even with very few particles in high dimension.
Where This Sits
The proposal builds on three lines of work.
The first motivates it by explaining collapse. Understanding the Variance Collapse of SVGD in High Dimensions traces collapse to a self-reinforcing bias in the deterministic driving force. It proposes Damped SVGD, which shrinks this bias by a fixed factor that has no guarantee for non-Gaussian targets. We do not change the deterministic update. Instead we measure its effect and correct for it.
The second supplies the mechanism. Long-time asymptotics of noisy SVGD outside the population limit injects Langevin-type noise of temperature $\lambda$ into SVGD. It shows that the target becomes the unique stationary distribution, so noise does not bias the limit. It also reports that $\lambda$ is delicate to tune: too much gives a slow random walk, too little permits clumping. We keep its dynamics and replace its fixed $\lambda$ with feedback. Because adaptive temperatures can break stationarity, the controller uses diminishing adaptation, letting $\eta$ decay so that it eventually settles.
The third constrains the design. Divergence-Guided Particle Swarm Optimization shows that fixed repulsion improves multimodal search but hurts unimodal precision and adds two sensitive hyperparameters. That trade-off is the target we aim to remove in the optimization setting. ELBOing Stein avoids collapse in a different way, by turning each particle into a Gaussian component; its 5 components beat 256 SVGD particles. It pays a higher per-step cost and remains sensitive to kernel bandwidth. We treat it as a competing answer to the same question rather than a component.
We also borrow from GAD-PVI, which adapts particle weights and momentum but still uses hand-set rates. Its reported numbers serve as benchmark anchors.
We are explicit about what the diagnostic does not do. It detects spread that is too narrow within the region the particles occupy. It cannot see a mode that no particle has visited. Covering modes still depends on the repulsive interaction and, in optimization, on the schedule for the inverse temperature $\beta$.
Research Program
The work has four parts.
Inference. We implement the controller on top of noisy SVGD in two variants. A global variant uses one $\lambda$ for all coordinates. A per-coordinate variant uses a vector $\lambda$. The added cost is $O(nd)$ per step, against SVGD's existing $O(n^2 d)$, so it is negligible.
Theory. On Gaussian targets in the proportional regime analyzed by Ba et al., we derive the fixed point of the controlled dynamics. We check whether it attains correct marginal variance at a constant ratio $d/n$, which is the regime where plain SVGD's variance goes to zero.
Optimization. We carry the method over by sampling a Gibbs measure $p_\beta \propto \exp(-\beta f)$ for an objective $f$. Here the identity says that the average of $(x_j - c_j)\,\partial_j f$ should equal $1/\beta$. On a quadratic bowl the controller therefore asks only for the thermal spread $1/(2\beta)$, which shrinks to zero as $\beta$ grows. This is exactly where fixed repulsion fails.
Exploratory probe. As a scientific side question raised by the cold posterior literature, we test on CIFAR-10 whether calibrated particle spread at temperature $T = 1$ narrows the gap that Data augmentation in BNNs and the cold posterior effect found persists even with exact augmentation likelihoods. Nothing in the main claim depends on this probe.
Baselines
Naive reference. The do-nothing reference is plain SVGD at the same particle count and step size. It shows the size of the collapse being corrected. Its known behavior is that variance decays toward zero as dimension grows at fixed $n$.
Strongest competitor: tuned fixed temperature. The strongest competitor is noisy SVGD with $\lambda$ chosen by grid search, from Long-time asymptotics of noisy SVGD. It uses identical dynamics, so it isolates exactly what feedback adds. That paper reports a dimension-averaged marginal variance of about 1.0 up to $d = 100$ on a standard Gaussian. We give it a grid of at least eight temperatures, select per task on a held-out metric, and report both its best and median results along with the total compute the grid consumed. Our method gets one run per seed with $\eta$ fixed across all tasks. Beating this baseline means one of two things. Either we match its best grid point at a fraction of the total compute, or we exceed it where a single fixed $\lambda$ cannot serve all coordinates. The anisotropic and funnel targets are designed to test the second case.
Other particle methods. Damped SVGD from Ba et al. is run with its shrinkage factor tuned on the same grid budget.
ELBOing Stein with 5 Gaussian components is the strongest structurally different answer. It is compared at equal wall-clock time, not equal particle count, because its steps cost more.
GAD-PVI provides published reference points. On LIDAR it reports a Wasserstein-2 distance of 0.1274 against 0.1570 for standard particle variational inference. On UCI Concrete it reports an RMSE of 6.047. We rerun it under our protocol rather than quoting across setups.
Optimization baselines. We compare against canonical swarm optimization and the divergence-guided swarm, which reports 2x–8x gains over the canonical version on Pinter, Ackley and Levy and slightly worse results on the unimodal suite. We also run the same noisy Stein dynamics at the time-averaged temperature that our controller ended at.
Key ablations. Three ablations isolate the ingredient. The first is the time-averaged fixed temperature just described. If it does as well as the controller, adaptation itself contributes nothing. The second is a shuffled-feedback controller, in which the diagnostic of a different coordinate drives each $\lambda_j$; this tests whether the signal matters beyond adding noise of the right overall size. The third compares the global and per-coordinate controllers.
Why not just…?
Why not just grid-search the noise temperature, as the noisy SVGD paper does? This is the most serious alternative. On isotropic Gaussians a tuned fixed $\lambda$ already reaches the correct variance, so on that benchmark we expect at best a tie. The case for feedback rests on two claims that the experiments test directly. The first is cost: a grid multiplies compute by its size. The second is heterogeneity: one scalar cannot be right both in the neck and in the bell of Neal's funnel, or along stiff and flat directions of an anisotropic Gaussian. If the tuned fixed temperature matches the per-coordinate controller on the funnel and anisotropic targets, the contribution shrinks to "removes a grid search." We would report it as exactly that.
Why not just run independent Langevin chains, which Ba et al. show do not collapse because they use independent samples? Independent chains cost $O(nd)$, involve no interaction, and are unbiased in the limit, so they are a real threat on unimodal targets. The noisy SVGD paper reports that pure Langevin dynamics fail to explore the funnel's thin neck where noisy Stein dynamics succeed. That suggests interaction helps with difficult geometry and with mixing across modes. We run independent Langevin chains at equal gradient evaluations on every benchmark. If they win on the Gaussian mixtures and the funnel, interaction is not worth its cost and the controller is solving the wrong problem.
Why not just use more particles, or Gaussian-mixture particles? Raising $n$ in proportion to $d$ is what Ba et al.'s $n/d$ result prescribes. Under the $O(n^2 d)$ pairwise cost that becomes cubic in dimension, which is the computational burden we are trying to remove. Mixture particles from ELBOing Stein are the more credible version of this alternative, since 5 components beat 256 point particles. They pay per-step overhead and remain sensitive to kernel bandwidth. The equal-wall-clock comparison decides which approach is better at a given budget.
Why not just anneal the noise on a fixed schedule? Both Ba et al. and ELBOing Stein report that annealed SVGD still collapses as dimension grows, because an open-loop schedule cannot respond to the dimension-dependent shortfall. The time-averaged fixed-temperature ablation further tests whether any non-adaptive choice suffices.
Proposed Experiments and Decisive Checks
Variance scaling. We first track dimension-averaged marginal variance on standard and anisotropic Gaussians for $d$ from 10 to 1000, with particle counts fixed at 20 and 50. This pushes an order of magnitude past the $d = 100$ reported for noisy SVGD. The decisive check is whether the controlled method holds variance near the truth at $n = 20$, $d = 1000$ with a single $\eta$. Over the same range, plain SVGD should collapse, and the tuned fixed temperature should either hold or require retuning as $d$ changes.
Hard geometry. Second, on Neal's funnel and the 10-dimensional Gaussian mixtures from GAD-PVI, we report Wasserstein-2 distance and marginal variance of the neck coordinate. Our method is predicted to win only if a scalar temperature cannot serve all coordinates.
Bayesian regression benchmarks. Third, on LIDAR and the UCI regression suite (Concrete, kin8nm, RedWine), we report Wasserstein-2 where ground truth exists, plus RMSE and negative log-likelihood. We use the GAD-PVI numbers above as external anchors and rerun all methods under a shared protocol with ten seeds.
Optimization. Fourth, on the 21-function multimodal suite and the 15-function unimodal suite used by the divergence-guided swarm, at $D \in \{10, 30, 50\}$, we report final error and run-to-run standard deviation at equal function and gradient evaluations. The decisive check is two-sided. The controlled method must reach canonical-level precision on Sphere and the other unimodal functions, which divergence-guided repulsion cannot. It must also retain most of the multimodal gain.
Cold posterior probe. Finally, as the exploratory probe, we run controlled versus plain particle approximations of a small CIFAR-10 network posterior at $T = 1$, measuring accuracy and negative log-likelihood against tempered runs at $T = 0.01$. A null result here would be informative: it would indicate that the cold posterior effect is not an artifact of variance collapse in the inference method.
Cost accounting. Throughout, we report wall-clock time and gradient evaluations, so that every claimed improvement in accuracy is stated alongside what it cost.
References
- Understanding the Variance Collapse of SVGD in High Dimensions
- Long-time asymptotics of noisy SVGD outside the population limit
- Divergence-Guided Particle Swarm Optimization
- ELBOing Stein: Variational Bayes with Stein Mixture Inference
- GAD-PVI: A General Accelerated Dynamic-Weight Particle-Based Variational Inference Framework
- Data augmentation in Bayesian neural networks and the cold posterior effect