Manuscript Offprint

arXiv:2609.02373

Percolation Dynamics in Optimization : Variance Cascades and Discrete Scale Invariance

Sai Niranjan Ramachandran, Suvrit Sra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

We study the dynamics of Stochastic Gradient Descent (SGD), which is known to steer deep neural networks toward invariant sets that correspond to simpler subnetworks. How this steering unfolds over time remains poorly understood. We answer this by modeling the stochastic gradient flow (SGF) as a percolation process, in which architectural symmetries force subnetworks to merge in discrete simultaneous blocks rather than one at a time. These structural transitions register as variance spikes in a macroscopic order parameter, echoing physical phase transitions. We further show this trapping mechanism and its associated scaling cascade extend to Adam and AdamW under an explicit heavy-tailed noise model.

SGD collapses deep neural networks toward sparse, low-rank representations generated by architectural symmetry. We show how this collapse progresses over time, and that the mechanism extends to Adam and AdamW.

1 Introduction

Unlike classical statistical learning deep learning systems rely on a complex interaction between the dataset, architecture, and choice of optimizer. Furthermore, they are known to achieve strong generalization without explicit regularization, a phenomenon attributed to implicit biases introduced during training. Recent work has established that Stochastic Gradient Descent (SGD) is a central source of this implicit bias collapsing networks onto invariant sets that behave like much simpler subnetworks [Wei et al., 2008, Chen et al., 2023], however the dynamics by which these invariant sets are reached are poorly understood.

This gap limits our ability to mechanically explain anomalous training behaviors. Delayed generalization in transformer networks, known as grokking [Power et al., 2022, Liu et al., 2022], is one example. A network may memorize the training data perfectly, but it only discovers a generalizing solution after thousands of epochs, challenging the classical view of smooth optimization. Similar patterns can also be seen in exact deep linear networks [Saxe et al., 2013] and task shifts [Goodfellow et al., 2013, Kirkpatrick et al., 2017]. This suggests that the topological structure of these dynamics contains crucial information about how optimization progresses.

To chart this evolution, we describe the optimization continuously with a stochastic differential equation (SDE) that records how parameters drift and diffuse over time [Li et al., 2017]. Architectural symmetries produce invariant sets which draw parameter trajectories [Chen et al., 2023]. Independent parameters entering these sets come together and fuse into equivalence classes, and the converging weights collide and merge, folding the parameter space into a simpler topology in the settings we

  • School of Computation, Information and Technology, Technical University of Munich, Germany † Munich Center for Machine Learning (MCML)

examine [Naitzat et al., 2020]. We represent this dynamics as a percolation process where isolated components link and fuse, potentially causing sudden macroscopic transitions [Achlioptas et al., 2009, Chen et al., 2014]. We develop this framework for SGD, where the mechanism is cleanest to state and prove, but most large-scale training uses adaptive optimizers; we show the same trapping mechanism and cascade structure extend to Adam and AdamW under an explicit heavy-tailed noise model, and use this extension to justify the AdamW-trained grokking experiment in Section 6.

Building on this percolation framework, our contributions are as follows,

  1. Percolation Model of Topological Condensation: We construct a framework that maps stochastic gradient flow near invariant sets onto a graph that tracks merges and splits (Reeb graph), which is then renormalized into a percolation process. Architectural symmetries cause discrete, simultaneous block-merges instead of continuous edge attachment, and we determine the precise condition under which this discontinuity survives as the network grows large, rather than being a finite-size artifact that vanishes in that limit. We also show that the trapping mechanism extends to Adam and AdamW under a heavy-tailed noise model.

  2. Variance Divergence and Topological Cascades: We use relative variance across training trajectories to isolate discrete microtransitions, and derive that multi-body block-merges yield Discrete Scale Invariance (DSI) [Sornette, 1998], shaping the phase transition into a geometrically scaling cascade.

  3. Empirical Observations: We test this framework across environments and largely confirm the predicted cascade structure. In toy models, we track parameters clustering under shifting data distributions. We examine tabular classification on UCI datasets, vision benchmarks, and grokking in Transformers on modular arithmetic.

References (100)

  • Explosive percolation in random networks
  • Comparing dynamics: Deep neural networks versus glassy systems
  • Implicit regularization for deep neural networks driven by an ornstein-uhlenbeck like process
  • Stochastic gradient descent performs variational inference, converges to limit cycles for deep networks
  • Stochastic collapse: How gradient noise attracts SGD dynamics towards simpler subnetworks
  • Anomalous diffusion dynamics of learning in deep neural networks (opens arXiv in a new tab)
  • Microtransition cascades to percolation
  • Geometry of the loss landscape in overparameterized neural networks: Symmetries and invariances
  • Dropout neural network training viewed from a percolation perspective (opens arXiv in a new tab)
  • Topological persistence and simplification
  • *Random perturbations of dynamical systems*
  • The jamming transition as a paradigm to understand the loss landscape of deep neural networks
  • An empirical investigation of catastrophic forgetting in gradient-based neural networks (opens arXiv in a new tab)
  • Shape matters: Understanding the implicit bias of the noise covariance
  • Loss landscape degeneracy and stagewise development in transformers
  • The low-rank simplicity bias in deep networks
  • Scaling Laws for Neural Language Models
  • *Brownian Motion and Stochastic Calculus*, volume 113 of *Graduate Texts in Mathematics*
  • Kingma and Jimmy Ba
  • *Proceedings of the national academy of sciences*, 114 (13):3521–3526, 2017
  • The limiting dynamics of SGD: Modified loss, phase-space oscillations, and anomalous diffusion
  • Neural capacitance: A new perspective of neural network selection via edge dynamics (opens arXiv in a new tab)
  • What happens after sgd reaches zero loss? -a mathematical framework
  • Towards understanding grokking: An effective theory of representation learning
  • Decoupled weight decay regularization
  • Phase diagram for two-layer ReLU neural networks at infinite-width limit
  • Stochastic gradient descent as approximate bayesian inference
  • Logarithmic landscape and power-law escape rate of SGD. In *International Conference on Machine Learning*, pages 15959–15978
  • Implicit bias of the step size in linear diagonal neural networks
  • Topology of data in deep learning
  • Progress measures for grokking via mechanistic interpretability
  • Oppenheim and Ronald W. Schafer
  • *Probability, Random Variables, and Stochastic Processes*
  • Grokking: Generalization beyond overfitting on small algorithmic datasets
  • Trees to flows and back: Unifying decision trees and diffusion models
  • *Continuous martingales and Brownian motion*, volume 293
  • Explosive percolation is continuous
  • *Stable Non-Gaussian Random Processes: Stochastic Models with Infinite Variance*
  • Exact solutions to the nonlinear dynamics of learning in deep linear neural networks
  • The pitfalls of simplicity bias in neural networks
  • *Introduction to Percolation Theory*
  • The slingshot mechanism: An empirical study of adaptive optimizers and the grokking phenomenon (opens arXiv in a new tab)
  • Dynamics of learning near singularities in layered networks
  • Deep learning is singular, and that’s good
  • Why are adaptive methods good for attention models? In *Advances in Neural Information Processing Systems*, volume 33, 2020
  • Towards understanding the condensation of neural networks at initial training
  • Phase diagram of initial condensation for two-layer neural networks (opens arXiv in a new tab)
  • SGD with a constant large learning rate can converge to local maxima
  • 36 F Extended Empirical Validation Across Diverse Datasets and Architectures 37 F.1 Methodological Extensions for Empirical Regimes
  • We then formally define invariant sets for these continuous processes and prove that affine invariant sets in SGD strictly translate to SGF. We adapt this section from Chen et al. [2023]
  • This discrete step functions as the Euler-Maruyama discretization of the following continuous-time Itô Stochastic Differential Equation (SDE), which we formally denote as Stochastic Gradient Flow (SGF):
  • Conversely, the network architecture, training dataset, and loss topology completely dictate the geometric shape $D_s(\theta)$
  • Applying the triangle inequality reveals that the corresponding gradient $\nabla \bar{\ell}(\cdot; x_i, y_i)$ operates as $2L$-Lipschitz continuous and remains bounded by $2L$ for any index $i \in [N]$
  • Combined with the established Lipschitz drift term, this rigorous continuity guarantees the existence of a unique strong solution to the SDE in Equation A.1
  • Furthermore, because $A$ operates as an invariant set for the original discrete SGD process, the discrete sample gradients perfectly align with the affine subspace
  • We map this directly to the infinitesimal generator $\mathcal{A}$ of the SDE. Applying Itô’s Lemma to the functional $Y_t^{(i)}$ expands the generator as:
  • Thus, $Y_{t\wedge\tau_\epsilon}^{(i)}$ constitutes a non-negative supermartingale
  • We apply Doob's maximal inequality for continuous super-martingales [Revuz and Yor, 1999] to strictly bound the tail probability of the process's supremum:
  • For a subnetwork's transverse process $Y^{(i)}$, define the canonical filtration $\{\mathcal{F}_t\}_{t\geq 0}$
  • We define two decoupled subnetworks $\theta^{(i)}$ and $\theta^{(j)}$ as exhibiting $t$-tail equivalence if they map to the exact same invariant manifold $A$, and their probability laws evaluate identically when strictly restricted to the tail $\sigma$-algebra $\mathcal{F}_{\geq t}$
  • Trajectories often experience variance and outward drift
  • Equivalently, this measures the strict joint survival of the trajectories:
  • We structurally bound the individual escape events by deploying the local supermartingale dynamics established in Theorem 3.3
  • We apply Doob's maximal inequality for continuous supermartingales [Revuz and Yor, 1999] to strictly bound the tail probability of the process's supremum:
  • We define two subnetworks as structurally equivalent when their transverse drifts vanish sufficiently to drive the joint link probability to certainty, effectively recovering $t$-tail equivalence but strictly localized to the invariant set $A$
  • By Lemma B.8, as the expected transverse distances continuously approach zero $(\mathbb{E}[Y_t]\to 0)$, the supermartingale dynamics mechanically force the maximal bound to shrink, causing the marginal escape probabilities $\mathbb{P}(\tau_\epsilon<\infty\mid \mathcal{F}_t)$ to completely vanish
  • The Reeb graph $\mathcal{R}$ dynamically maps the structural phase transitions of the SDE via two strict topological mechanisms:
  • The quotient map shatters the unified equivalence class, forcing the node to abruptly split into decoupled branches on $\mathcal{R}$
  • $\mathbb{E}[Y_t^{(i)} + Y_t^{(j)} \mid \mathcal{F}_t] \to 0$
  • The adjacency function updates to $e_{ij} = 1$ in $G_t^\epsilon$
  • This physical exit guarantees the spatial stopping time:
  • } \max \left( Y_s^{(i)}, Y_s^{(j)} \right) \geq \epsilon \implies \tau_\epsilon \leq t.$$
  • The quotient map forcibly disjoins the previously unified equivalence class $[[i]_t \cap [j]_t = \emptyset)$, partitioning the trajectory into a critical split vertex $v \in \mathcal{R}$ with out-degree $(v) \geq 2$
  • Under stochastic gradient dynamics, these subspaces become stochastically attractive and trap the learning trajectory
  • [Chen et al., 2023]
  • By definition, $Q\theta = \theta$
  • The normal bundle is globally flat
  • However, continuous Brownian noise injects transient fragmentations (edges breaking) and condensations (edges forming) across the critical basin boundary $\epsilon$, natively violating strict monotonicity
  • The topological edge $e_{ij}$ physically exists when the trajectory resides within the boundary $\epsilon$
  • Thus, the rate of topological change simplifies to the negative boundary flux, $\frac{d}{dt}\mathcal{P}_e(t) = -J(\epsilon,t)$
  • One-dimensional stationary diffusions globally satisfy conservation of current [Gardiner, 2009], forcing $J_{ss}(y) = 0$ for all $y$
  • Microscopic fluctuations vanish ($J_{ss}(\epsilon) = 0$), mapping the deterministic contraction of the variance ($\dot{\sigma}(t) < 0$) directly to a strictly positive edge formation rate ($\frac{d}{dt} \mathcal{P}_e(t) > 0$)
  • By Lemma C.7, the probability current vanishes at the boundary ($J_{ss}(\epsilon) = 0$), ensuring that fast-scale fragmentations and condensations form a stationary process whose time-average over a coarse-graining window vanishes identically
  • By Lemma C.8, the macroscopic decay $\mathbb{E}[Y_\tau] \to 0$ provides a strictly monotonic contraction $(\hat{\sigma}(t) < 0)$, converting transient boundary crossings into permanent topological bindings
  • Let $E_{max} = \frac{N(N-1)}{2}$ denote the maximum possible number of symmetric pairwise couplings in the network
  • However, the exact binding of symmetric subnetworks forces discontinuous structural jumps
  • The simultaneous binding of $n$ disconnected components of size $i$ instantaneously merges them into a single component of size $ni$
  • Whether $\Delta\mathcal{O}(p)$ remains bounded away from 0 as $N \to \infty$ is governed by the scaling of $i$ with $N$; see Corollary C.18
  • $i(N)/N \to c \in (0,1]$ as $N \to \infty$, then $\Delta\mathcal{O}(p) \to (n-1)c > 0$: the jump is a genuine discontinuity that survives the thermodynamic limit
  • the number of merging components is bounded independently of $N$, then $\Delta\mathcal{O}(p) = O(1/N) \to 0$: the jump vanishes as $N \to \infty$, and the transition is asymptotically continuous
  • Riordan and Warnke [2011] show that all Achlioptas processes in which an edge is chosen competitively among a bounded number of candidates at each step have continuous phase transitions in the thermodynamic limit, contrary to earlier numerical claims of discontinuity [Achlioptas et al., 2009]
  • Define the relative variance $R_v(p)$ of the order parameter $\mathcal{O}(p)$ over the ensemble of stochastic trajectories as the variance normalized by the squared expectation:
  • We formally define these sharp, sub-critical peaks as *microtransitions*, which strictly precede the critical global connectivity threshold $p_c$
  • We model the ensemble distribution as a mixture of two states with values $\mathcal{O}_1$ and $\mathcal{O}_2 = \mathcal{O}_1 + \Delta\mathcal{O}$, weighted by probabilities $1-w$ and $w$ respectively
  • This creates a localized, divergent peak in $R_v(p)$ that explicitly flags the discrete topological microtransition
  • New edges are drawn uniformly, resulting in smooth transitions of the form $C_1 \to C_1 + 1$
  • The $S_n$-symmetry intrinsically binds the $n$ indistinguishable path measures simultaneously into the shared invariant set
  • The infinitesimal generators of these scaling transformations form a continuous Lie algebra, enforcing continuous translation symmetry in logarithmic space ($\ln x \to \ln x + \ln \lambda$)
  • The system ceases to be scale-invariant for arbitrary continuous factors, preserving self-similarity only under a discrete geometric sequence of preferred magnification ratios
  • This is the same ensemble already invoked in the bimodal-coexistence argument of Theorem C.21, a single trajectory is discrete, the ensemble mean is smooth, and the two descriptions are consistent because they describe different objects

Couldn't load all references. Reload the page to try again.