Does Clustering Cause Stagnation? A Within-Particle Panel Test for Swarm Repulsion

Search methods that keep a population of candidate solutions, such as particle swarms and population-based training, are known to fail by "premature convergence": every candidate crowds around one mediocre solution and the search stops. The usual fix is to push candidates apart. That fix rests on a causal story nobody has tested directly. The story says that losing diversity at one moment causes progress to stall later. The reverse story is just as plausible: progress stalls first, selection then copies the stalled leader, and diversity collapses as a symptom. A third possibility is that particles which started in good regions both stay apart and keep improving, so the two quantities are correlated without either driving the other. We propose to separate these stories using cross-lagged panel modeling, a tool from longitudinal psychology. It is a regression over repeated measurements of the same units that asks whether X at one time predicts the change in Y at the next, after accounting for Y's own persistence and for each unit's fixed baseline. Here the units are individual particles and the measurement times are blocks of iterations.

The concrete payoff is an explanation of, and a candidate fix for, a documented failure. Divergence-Guided Particle Swarm Optimization (DPSO) adds a repulsive velocity that pushes a particle away when its personal best nears the swarm's best. It reports 2x to 8x gains on multimodal functions but worse results on the unimodal Sphere, where plain PSO reaches near machine precision. Our hypothesis is that the within-particle effect of closeness-to-leader on subsequent improvement changes sign with the landscape. It should be positive in a single basin, where crowding is how convergence happens, and negative in a trap, where crowding is entrapment. If that holds, repulsion should be switched on exactly when the estimated effect turns negative.

Core Claim

Stated plainly, the claim has two parts. First, a random-intercept cross-lagged panel model fitted to particle trajectories will show that the lagged effect of a particle's proximity to the global best on its own next-window improvement is reliably negative on multimodal landscapes and positive on unimodal ones. The model separates each particle's stable "luck" from its moment-to-moment state. The reverse path, from stalled improvement to subsequent crowding, will be present on both kinds of landscape. If this is right, it means diversity loss is a leading cause only on rugged landscapes and a mere consequence on smooth ones, which is why unconditional repulsion hurts on smooth landscapes. Second, gating DPSO's repulsion on the online sign of that within-particle coefficient will keep DPSO's multimodal gains while recovering plain PSO's unimodal precision.

The second claim is the riskier one. The note is structured so that the first, diagnostic claim stands on its own if a cheaper gate turns out to match the panel-based one.

Model

For particle $i$ in window $t$, let $D_{it}$ be the log distance from its personal best to the swarm's global best, and $G_{it}$ be the log improvement of its personal-best fitness during the window. Following the random-intercept formulation used in Mediating Role of Internet Use in Cognitive-Depressive Pathways, that paper split stable between-person differences from within-person fluctuations in a nine-thousand-person cohort. We write each observation as a window mean, plus a particle-specific constant, plus a within-particle deviation: $D_{it} = \mu_t + \kappa_i + d_{it}$ and $G_{it} = \nu_t + \omega_i + g_{it}$. The deviations then follow

$$d_{i,t+1} = \alpha\, d_{it} + \beta\, g_{it} + u_{i,t+1}, \qquad g_{i,t+1} = \gamma\, g_{it} + \delta\, d_{it} + v_{i,t+1},$$

where $\alpha,\gamma$ are persistence (autoregressive) coefficients, $\beta$ is the path from stalled progress to later crowding, and $\delta$ is the path from crowding to later progress. The hypothesis is $\delta<0$ on multimodal functions and $\delta>0$ on unimodal ones. A moderated version, in the spirit of Lin et al., lets $\delta$ depend on a landscape descriptor. That study found that the dominant direction between phone addiction and bedtime procrastination flipped between high- and low-stress groups. Mutual age-varying influences of binge drinking and cannabis use showed that cross-lagged effects can reverse sign over a developmental span. This motivates allowing $\delta$ to drift across the run instead of assuming one value.

Research Program

The first stage is purely diagnostic. We run plain PSO and DPSO on the 36-function suite used by DPSO (15 unimodal, 21 multimodal, dimensions 10, 30 and 50). We log every particle at every iteration and aggregate into windows of $k$ iterations.

Lag length is a known weak point of cross-lagged models: a window that is too long or too short relative to the real dynamics can hide or inflate effects. We therefore estimate the model at several values of $k$ and report how $\delta$ varies with $k$, rather than picking one.

We fit three model variants and compare them. The full random-intercept model is fitted by maximum likelihood across many independent runs. The classical model without random intercepts is the second variant. A pooled lagged correlation is the third. The comparison shows what each layer of control changes; a sign flip between the classical and random-intercept models would itself be a finding about "seed luck."

An important confound is specific to optimizers. Part of $\beta$ is mechanical, because the velocity update pulls a particle toward the global best regardless of its progress. We handle this by also running PSO with the social coefficient reduced. This tells us how much of $\beta$ comes from the attraction term itself.

The second stage turns $\delta$ into a controller. Within a single run there are only a few dozen particles and a handful of recent windows. Full maximum likelihood is therefore too slow and unstable online. We use a sliding window of five windows instead. Within it, we demean each particle's series to approximate the random intercept, regress next-window improvement on current improvement and current proximity, and take the sign and confidence of the proximity coefficient. Short demeaned dynamic panels are biased, so we calibrate the gate's threshold offline on held-out functions rather than at zero. The gated algorithm multiplies DPSO's repulsion strength $c_3$ by a smooth function of this estimate. Repulsion is off when crowding is helping and at full strength when crowding predicts stalling.

The third stage is a small transfer check on population-based training. Here the units are agents, $D$ is hyperparameter-space distance to the current elite, and $G$ is reward gain per evolution step. Multiple-Frequencies Population-Based Training attributed long-horizon PBT collapse to greedy selection and "luck propagation." It reports Humanoid interquartile-mean rewards of 23,793 for its method, 16,171 for standard PBT and 17,713 for random search at one billion steps. It never tested whether diversity loss precedes or follows the plateau. We run only the diagnostic here, on cheaper Brax tasks such as Hopper and Ant (Brax), because reproducing billion-step runs is outside our budget. The exploit step mechanically copies losers onto winners, so the stalled-progress-to-crowding path $\beta$ is partly built in. We therefore measure $\beta$ only on agents that were not overwritten in the window.

Relation to Prior Work

Several papers motivate the gap by acting on an untested causal assumption. DPSO assumes clustering causes entrapment. Regularized evolutionary population-based training switches selection to novelty on a fixed schedule and reports 92.79% versus 91.53% on CIFAR-10 with ResNet-32. CALM wipes the population when best fitness stalls, an intervention that is reactive by design. None of them measures which way the influence runs.

Other papers constrain the design. DPSO's own unimodal result rules out unconditional repulsion as the endpoint. The diversity mechanisms in Exploiting Strategy-Space Diversity for Batch Bayesian Optimization operate per batch and have no time dimension.

The closest methodological neighbor is TLCCSP, which uses time-lagged cross-correlations to improve forecasting. It controls for neither autoregression nor unit-level intercepts, and it does not touch optimization. We reuse the estimation logic of the psychology papers, such as the two-wave model in Longitudinal relationships among problematic mobile phone use…. What is new here is the claim that particles are a valid panel and that the within-unit lagged coefficient is a usable control signal.

Baselines

The naive reference is standard PSO with the same swarm size, iteration budget and inertia and acceleration settings as DPSO. Its role is to establish the unimodal ceiling. DPSO reports PSO reaching near machine precision on Sphere, and the gated method must match that to count as fixing the unimodal penalty.

The strongest existing method is DPSO itself with its default $c_3=1.0$, run from the authors' description on the same functions and seeds. Its reported numbers are 2x to 8x improvement over PSO on Pinter, Ackley and Levy, a 5x reduction in standard deviation on Griewank, and 15–25% wall-clock overhead. Beating it means two things together. On multimodal functions, the gated method must be statistically indistinguishable or better in median final error across 50 seeds. On unimodal functions, it must be significantly better and within an order of magnitude of plain PSO. In our report, every DPSO comparison will be against our own rerun. The 2x–8x figures are a reference to check that our reimplementation is faithful, not a target we compare against directly.

To be fair, every gated variant and every baseline that has tunable parameters gets the same tuning budget on a disjoint calibration subset of functions. This covers DPSO's $c_3$ and bandwidth, the gate threshold, and the stagnation trigger's patience. We report wall-clock time alongside final error, because the online regression adds cost on top of DPSO's.

Three cheaper gates serve as competitors to the panel signal. The first switches repulsion on after $m$ windows without global-best improvement, a CALM-style trigger. The second uses the lagged correlation between proximity and next-window improvement, with no autoregressive term and no particle demeaning. The third uses the classical cross-lagged regression without the per-particle demeaning step. The last two are the ablations that isolate the proposal's key ingredient. If the within-particle model does not beat the lagged correlation and the classical regression, then the "random intercept" story adds nothing to control, whatever it shows diagnostically.

For population-based training, the comparison is diagnostic only. We report whether the sign of $\delta$ differs between runs that later collapse and runs that do not. MF-PBT's 23,793 interquartile-mean reward on Humanoid is cited as context, not as a target.

Why not just…?

Why not just use a lagged correlation or a Granger-style test on the swarm-average diversity and fitness curves? This is the most serious alternative, because a regression on swarm averages is close to a cross-lagged model with one unit. The difference is that a swarm average cannot separate particles that are stably good from particles whose current crowding is hurting them. That separation is exactly what the random-intercept work showed matters in human panels (Mediating Role of Internet Use…). The ablation against the pooled lagged-correlation gate settles this for control. If that gate performs as well, we will report that the within-particle structure is real but not needed for the controller.

Why not just trigger repulsion when progress stalls? CALM's stagnation trigger works in its setting, reaching a 0.00% gap on one bin-packing scale, but it fires only after stalling has happened. Our hypothesis predicts that $\delta$ turns negative several windows before the global best stops improving. We test this directly by measuring the lead time between the two signals on multimodal functions. If there is no lead, the stagnation gate is the better and cheaper choice, and we will say so.

Why not just gate repulsion on a landscape feature such as fitness variance among particles? This is a real threat. If ruggedness alone predicts when repulsion helps, the panel model is redundant. We include a variance-gated DPSO tuned on the same budget. In the moderated analysis, we also test whether $\delta$ carries information beyond the variance moderator. The panel signal earns its place only if it adds predictive value for the benefit of repulsion after controlling for variance.

Why not just tune or anneal $c_3$? Annealing assumes that exploration should decrease monotonically over a run. Allowing $\delta$ to drift is meant to catch the case where a swarm escapes one basin and enters another, so that repulsion becomes useful again late in the run. We include a linear anneal of $c_3$ as an additional baseline. Functions with deceptive late basins, such as Eggholder, are where the two approaches should differ.

Decisive Checks

The diagnostic claim fails if the within-particle $\delta$ has the same sign on unimodal and multimodal functions. It also fails if the sign is unstable across window lengths $k$, or if most of the effect disappears once the random intercepts are added, which would mean seed luck explains the original correlation.

The control claim fails if the gated method cannot recover plain PSO's Sphere precision while keeping DPSO-level multimodal error. It also fails, as a reason for using the panel model, if the lagged-correlation gate or the variance gate matches it.

A positive outcome on both claims would give the first measured answer to whether diversity collapse is a cause or a symptom of premature convergence. It would also give the answer per landscape type, and provide a principled rule for when to push particles apart.