Neural network loss landscapes have many symmetries, which are preserved by gradient flow but broken by finite-stepsize stochastic gradient descent (SGD). A canonical example of such a symmetry is scale in homogeneous networks: one can scale up the parameters in one layer and down in the next without changing the network output. Previous work has documented cases in which SGD breaks this symmetry in favor of balancing gradient noise or minimizing fluctuations. Here, we show that the solution geometry of undercomplete linear autoencoders instead selects a preferred sign for scale drift: on the PCA solution manifold, SGD favors large decoder weights. This directed scale drift occurs on a slow timescale, and its dynamics admit an analytically-tractable effective description. However, it cannot continue indefinitely: increasing scale eventually drives the dynamics towards a finite-stepsize stability boundary. The resulting solutions are sharper than a balanced baseline in the sense of the maximum eigenvalue of the loss Hessian, but different sharpness measures can move in opposing directions. Thus, undercomplete autoencoders give a concrete illustration of how loss geometry can convert residual gradient noise into directed motion along a manifold of functionally-equivalent solutions.
How does SGD navigate symmetry-induced flat directions in neural network loss landscapes? Previous works have proposed a range of perspectives on this inductive bias, from effective regularizers (Li et al., 2022; Ziyin et al., 2025b) and equilibrium balance conditions (Ziyin et al., 2025a,b), to manifold diffusion (Pashakhanloo and Koulakov, 2023) and sparsifying collapse (Chen et al., 2024). However, it remains unclear what determines the direction and endpoint of SGD motion along continuous symmetry orbits. Here, we study a solvable model—undercomplete linear autoencoders—in which we can give a precise answer to this question in the specific case of scale symmetries. We show that in this setting solution geometry selects a preferred direction for drift along scale-symmetry directions, and solve for its slow dynamics.
Figure 1: (A) Continual minibatch training drives scale imbalance in linear autoencoders. Frobenius norms of decoder and encoder weights, ∥W∥F and ∥U∥F, for contractive and expansive autoencoders, respectively (see App. F and Fig. S1 for additional details). (B) Scale growth in a contractive linear autoencoder for different learning rates ( η) and minibatch size (B). s1=(W⊤W)11 is the dominant scale. Theory predictions are based on Eq. 6. (C) Anisotropic scale growth in a contractive autoencoder. Different scale modes, si=(W⊤W)ii, grow at different rates. Theory predictions are based on Eq. 6. (D-F) Edge of Stability phenomenon driven by imbalancing dynamics. (D) Scale growth and saturation for different modes. (E) Sequential saturation of eigenvalues. (F) Saturation as a function of the inverse of the learning rate and comparison to theory.
2. Undercomplete solution geometry results in directed scale drift
We consider a tractable toy setting: linear autoencoders
f(x)=WUx,(1)
with encoder weights U∈Rk×d and decoder weights W∈Rd×k. We train these models to minimize an L2 reconstruction loss L=21Ex[∥f(x)−x∥2], assuming zero-mean data x∈Rd with covariance Σ=E[xx⊤]. Our focus is on the undercomplete regime k<d, where exact reconstruction is impossible if Σ is of full rank.
These networks have a GL(k) symmetry group that preserves the function output: mapping (W,U)↦(WA,A−1U) for A∈GL(k) leaves f(x) invariant. Under gradient flow, it is well-known that the Noether charge
Q=W⊤W−UU⊤∈Rk×k(2)
corresponding to this symmetry is conserved, i.e., ∂tQ=0 (App. A; Tanaka and Kunin, 2021; Kunin et al., 2021). Q measures imbalances in the incoming and outgoing weights for each latent neuron. In contrast, under SGD with learning rate η and loss L^t=21Ex∼Bt[∥f(x)−x∥2] for a minibatch Bt of size B and covariance Σ^t, Q evolves as
Therefore, SGD will generically break the symmetry, as has been noted in general terms in prior works (Tanaka and Kunin, 2021; Kunin et al., 2021; Ziyin et al., 2025a).
We now specialize to undercomplete autoencoders, for which (3) simplifies substantially. Let Σ have eigenvalues λ1≥λ2≥⋯≥λd≥0 with a strict spectral gap λk>λk+1 separating the k-principal subspace from the remaining directions, and let P∈Rk×d be an orthogonal projection to the principal subspace, with PP⊤=Ik. Then, the global loss minima form the manifold (W,U)=(P⊤A,A−1P) for A∈GL(k); in this sense linear autoencoders learn to implement PCA by projecting their inputs to the principal subspace (Baldi and Hornik, 1989; Kunin et al., 2019; Pashakhanloo, 2025).
We next come to the key geometric fact. On the PCA solution manifold, the residual r=(WU−Id)x for an arbitrary datapoint x lies entirely in the complement of the principal subspace, as Id−WU=Id−PP⊤≡P⊥ projects to the complement. This forces ∇UL^t=0 to be identically zero, while ∇WL^t=−P⊥Σ^tP⊤At−⊤ depends on the product of in- and out-of-subspace fluctuations, and does not vanish (App. A). Thus,
Qt+1−Qt=η2(∇WL^t)⊤(∇WL^t)⪰0(4)
on the PCA solution manifold; Q evolves in a preferred direction within the cone of PSD matrices. This is a directional bias towards decoder-heavy weights, as can be seen by considering the scalar charge q=tr(Q)=∥W∥F2−∥U∥F2 associated with global rescalings (W,U)↦(aW,a−1U) for a>0 (Figure 1A). No noise-balanced equilibrium, where the two terms in (3) cancel on average (Ziyin et al., 2025a), is possible. In contrast, for an expansive autoencoder perfect reconstruction is possible, meaning that there is not a fundamental geometric reason for directed drift (Figure 1A). We now analyze the scale dynamics.
3. Effective scale dynamics
We can derive a simple set of effective dynamics that allow us to predict the anisotropic growth in decoder scale. Under SGD with minibatch size B, changes to the balancing matrix Q accumulate over Tslow∼B/η2 steps, which is slow relative to the Tfast∼1/η steps over which fluctuations away from the solution manifold relax back towards it, as Tfast/Tslow∼η/B≪1 when η is small (see App. C for details). By leveraging this separation of timescales, we show in App. C that the dynamics of the matrix S=A⊤A summarizing the scale degrees of freedom are given in the small-learning-rate limit η↓0 by the flow
∂τS+S−1∂τSS−1=S−1/2CS−1/2,(5)
where C=E[∥x⊥∥2x∥x∥⊤] is defined in terms of x∥=Px and x⊥=(Id−P⊤P)x. If S(τ=0) and C commute, then this matrix differential equation can be solved analytically. Working in a basis where S=diag(s1,…,sk) and C=diag(c1,…,ck), we have the solution
sa(τ)=W[sa(0)2exp(sa(0)2+2caτ)],a∈[k],(6)
where W(⋅) is the principal branch of the Lambert W-function (DLMF). Therefore, we expect anisotropic rates of growth along the different scale directions. In the Gaussian case, we have ca=λa∑j=k+1dλj, i.e., the rate of growth along the a-th direction is determined by the population variance along that direction multiplied by the total variance outside of the principal subspace. The fact that scale drift is driven by the coupling between within-subspace and out-of-subspace directions mirrors Pashakhanloo (2025)'s finding that this same coupling governs the rate of drift along symmetry directions corresponding to rotations rather than re-scalings. This effective model produces excellent agreement with simulations at small but finite stepsize (Figure 1C).
4. Sharpness and the edge of stability
Naively, these effective dynamics suggest that the scales should grow indefinitely. However, this cannot be the case: indefinite scale growth would destabilize the underlying discrete SGD dynamics. In particular, the assumption that the dynamics relax stably back to the PCA manifold will fail if the eigenvalues μ of the population Hessian become too large—that is, if ημ exceeds some threshold κ>0, which for full-batch GD would be exactly equal to 2 (Cohen et al., 2021). For S=diag(s1,…,sk) with ordered entries s1>s2>⋯>sk, we show in Appendix C that the Hessian of the population loss has dangerous modes μ11∥>μ12∥>⋯>μ1k∥ given by μ1a∥=λ1(s1−1+sa) for a∈[k]. Therefore, as the scales increase anisotropically, the curvature along each of these modes will increase until it hits the threshold ημ1a∥=κ at which the underlying discrete dynamics become unstable. Thus, we predict that all scales will eventually saturate at a common value given by sa=κ/ηλ1+O(η). We show that this prediction is consistent with simulations, with κ≃2, in Figure 1D-F.
Consistent with the parameterization-dependence of the Euclidean Hessian (Dinh et al., 2017), not all notions of sharpness increase with scale. Most simply, considering global re-scalings with S=sIk, the Hessian on the PCA manifold has trace tr(H)=sd∑j=1kλj+ks∑j=1dλj, which is minimized at s⋆2=(k1∑j=1kλj)/(d1∑j=1dλj)≥1 (App. B). More strikingly, Andreyev and Beneventano (2025) proposed a measure of “batch sharpness” that they suggest increases up to a threshold over SGD training; we show in Appendix D that this measure is decreasing in global scale on the PCA manifold. Moreover, we can prove that, for Gaussian data and a balanced initialization, their simplified “modified batch sharpness” measure is strictly decreasing under the effective dynamics, even as the population Hessian sharpens.
5. Generalization to homogeneous nonlinear autoencoders
Introducing nonlinear activation functions breaks the GL(k) symmetry of linear autoencoders. For homogeneous activation functions like ReLU, a neuron-wise scaling symmetry remains, with A now being a diagonal matrix with positive diagonal entries rather than a general element of GL(k) (App. E). Our preliminary results suggest that undercomplete ReLU autoencoders show a similar directed drift towards decoder-heavy weights (Fig. S2). We leave an in-depth investigation of the geometric basis for this bias to future work.
6. Discussion
We have shown that undercomplete linear autoencoders trained with SGD display directed scale drift towards decoder-heavy weights. The endpoint of this drift is selected not by an equilibrium statistical mechanism like balancing of gradient noise (Ziyin et al., 2025a), but instead dynamically by the fact that scale drift increases curvature up to the point where the solution would become unstable.
From a broader optimization perspective, this resembles the general phenomenon of progressive sharpening in full-batch gradient descent, which posits that the top eigenvalues of the Hessian increase sequentially over training up to the stability threshold, after which they remain near the edge of stability (Cohen et al., 2021, 2025; Damian et al., 2023). How to precisely define the edge of stability in the stochastic setting remains an active area of research (Andreyev and Beneventano, 2025; Emmanouilidis et al., 2026). What is notable in our setting is the fact that the edge of stability is reached purely through a slow effective drift along a manifold of functionally-equivalent solutions, after the PCA solution manifold is reached. Therefore, progressive sharpening need not reflect continued learning of the function. Whether and how this phenomenology transfers to other optimization settings is an interesting direction for future work.
Acknowledgments
F.P. was supported by the Harvard Center for Brain Science (CBS)-NTT Fellowship Program on the Physics of Intelligence. J.A.Z.-V. and this research were supported by the Office of the Director of the NIH under Award Number DP5OD037354, and additionally by a Junior Fellowship from the Harvard Society of Fellows.
Declaration of LLM Usage
The development of this research did not involve LLMs in its core aspects. However, we used LLMs (OpenAI's Codex) to generate codes for the simulations results presented here. We subsequently checked the generated code and plots.
References
Arseniy Andreyev and Pierfrancesco Beneventano. Edge of stochastic stability: Revisiting the edge of stability for SGD. arXiv, 2025. URL https://arxiv.org/abs/2412.20553.
Feng Chen, Daniel Kunin, Atsushi Yamamura, and Surya Ganguli. Stochastic collapse: how gradient noise attracts SGD dynamics towards simpler subnetworks. Journal of Statistical Mechanics: Theory and Experiment, 2024(10):104023, oct 2024. doi: 10.1088/1742-5468/ad6429. URL https://doi.org/10.1088/1742-5468/ad6429.
Jeremy Cohen, Simran Kaur, Yuanzhi Li, J Zico Kolter, and Ameet Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=jh-rTtvkGeM.
Jeremy Cohen, Alex Damian, Ameet Talwalkar, J Zico Kolter, and Jason D. Lee. Understanding optimization in deep learning with central flows. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=sIE2rI3ZPs.
Alex Damian, Eshaan Nichani, and Jason D. Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=nhKHA59gXz.
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1019–1028. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/dinh17b.html.
DLMF. NIST Digital Library of Mathematical Functions. http://dlmf.nist.gov/, Release 1.1.1 of 2021-03-15, 2021. URL http://dlmf.nist.gov/. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, B. V. Saunders, H. S. Cohl, and M. A. McClain, eds.
Simon Du, Wei Hu, and Jason D Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/file/fe131d7f5a6b38b23cc967316c13dae2-Paper.pdf.
Konstantinos Emmanouilidis, Lachlan MacDonald, Salma Tarmoun, and Rene Vidal. SGD at the edge of stability: Stochastic stabilization with large learning rates. arXiv, 2026. URL https://arxiv.org/abs/2606.30930.
Daniel Kunin, Jonathan Bloom, Aleksandrina Goeva, and Cotton Seed. Loss landscapes of regularized linear autoencoders. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 3560–3569. PMLR, 09–15 Jun 2019. URL https://proceedings.mlr.press/v97/kunin19a.html.
Daniel Kunin, Javier Sagastuy-Brena, Surya Ganguli, Daniel LK Yamins, and Hidenori Tanaka. Neural mechanics: Symmetry and broken conservation laws in deep learning dynamics. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=q8qLAbQBupm.
Harold J. Kushner and G. George Yin. Stochastic Approximation and Recursive Algorithms and Applications. Springer New York, New York, NY, 2003. ISBN 978-0-387-21769-7. doi: 10.1007/0-387-21769. URL https://doi.org/10.1007/0-387-21769.
Zhiyuan Li, Tianhao Wang, and Sanjeev Arora. What happens after SGD reaches zero loss? -a mathematical framework. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=siCt4xZn5Ve.
Farhad Pashakhanloo. Contribution of task-irrelevant stimuli to drift of neural representations. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=jAoqtT58G4.
Farhad Pashakhanloo and Alexei Koulakov. Stochastic gradient descent-induced drift of representation in a two-layer neural network. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 27401–27419. PMLR, 2023. URL https://proceedings.mlr.press/v202/pashakhanloo23a.html.
Hidenori Tanaka and Daniel Kunin. Noether's learning dynamics: Role of symmetry breaking in neural networks. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 25646–25660. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/d76d8deea9c19cc9aaf2237d2bf2f785-Paper.pdf.
Liu Ziyin, Hongchao Li, and Masahito Ueda. Noise balance and stationary distribution of stochastic gradient descent. Phys. Rev. E, 111:065303, Jun 2025a. doi:10.1103/PhysRevE.111.065303. URL https://link.aps.org/doi/10.1103/PhysRevE.111.065303.
Liu Ziyin, Yizhou Xu, and Isaac Chuang. Neural thermodynamics: Entropic forces in deep and universal representation learning. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, Main Conference, pages 56057–56089. Curran Associates, Inc., 2025b. doi: 10.52202/085713-1877. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/51173cf34c5faac9796a47dc2fdd3a71-Paper-Conference.pdf.
Appendix A. Linear autoencoder basics
Here, we give a detailed discussion of the basic setup for linear autoencoders. Recall that the basic model architecture is
f(x)=WUx,(A.1)
where U∈Rk×d and W∈Rd×k. From the definition of the model, we can see that there is a GL(k) symmetry: the function output is invariant under transformations of the weights of the form
(W,U)↦(WA,A−1U),A∈GL(k).(A.2)
Associated with this symmetry is the Noether charge (Kunin et al., 2021; Tanaka and Kunin, 2021)
Q=W⊤W−UU⊤.(A.3)
A.1. Population loss and gradient flow
For a set of data with population covariance E[xx⊤]=Σ, the population reconstruction loss is
Appendix B. Spectrum of the linear autoencoder Hessian
We now derive the Hessian of the linear autoencoder reconstruction loss. This computation largely parallels previous Hessian computations by Baldi and Hornik (1989); Pashakhanloo and Koulakov (2023); Pashakhanloo (2025).
Our general assumption on the data is that
E[x]=0andE[xx⊤]=Σ,
(B.1) where Σ has an orthogonal eigendecomposition
Σ=i=1∑dλivivi⊤,(B.2)
with λ1≥λ2≥⋯≥λd≥0 and vi⊤vj=δij. Without loss of generality, we may assume that the eigenvectors vi are the standard Euclidean basis vectors; we will impose this assumption when convenient. We will also often assume that the eigenvalues satisfy spectral gap conditions of the form λk>λk+1 for some fixed k; this is required for the k-principal subspace to be well-defined.
B.1. Warm-up: Computing the top PC
As a warm-up, consider the case k=1, in which we want to compute the top principal component. Then, the loss is
(B.12) in these coordinates. This means that we can diagonalize the full Hessian by diagonalizing the 2×2 blocks.
The block Hi, which corresponds to fluctuations in the principal subspace, has eigenvalue μi,−=0, corresponding to the scale symmetry and the eigenvector
This allows us to see several things. First, the Hessian is positive-semidefinite only if λi≥λj for all j=i, and positive-definite on the orthogonal complement of the direction corresponding to the scaling symmetry only if λi>λj>0. This is what we expect from the PCA solution.
We now consider the effect of rescaling. First, it is clear that μi,+=λi(s+s−1) is always increased by breaking the scale balance, but it behaves identically irrespective of whether the solution is decoder-heavy or encoder-heavy.
where it takes the value t(s⋆)=2λ~j1/2. From this, we find that μj,+ decreases in s on (0,λ~j−1/2), has a global minimum at s⋆=λ~j−1/2 where it takes value
μj,+s⋆=λ~j−1/2=λi(λ~j1/2+λ~j),
(B.23) and increases on (λ~j−1/2,∞). Analogously, μj,− increases on (0,λ~j−1/2), has a global maximum at s⋆=λ~j−1/2 where it takes value
μj,−s⋆=λ~j−1/2=λi(λ~j1/2−λ~j),(B.24)
and decreases on (λ~j−1/2,∞). This shows that changing the scale has, in general, a rather non-obvious effect on the spectrum of the Hessian, even in this simple case.
We now prove several statements about the ordering of the eigenvalues. To do so, we first derive several preliminary results. Let
μ±(λ)=21[s−1+λs±(s−1+λs)2−4λ(1−λ)](B.25)
be functions defining the normalized eigenvalues, with s>0 fixed and λ∈[0,1]. By inspection, we have μ±(λ)≥0 for all λ∈[0,1].
which is positive on the interval λ∈(0,1) for any s. To show this, consider two cases. First, if the numerator of the fraction inside the square brackets is non-negative, then the result is immediate. If the numerator is negative, then we must have
But, for the numerator to be negative, we must have λ<1/(s2+4), meaning that 2−(s2+4)λ>1, and thus that the desired inequality is in fact satisfied.
Now consider μ−(λ). At the boundaries, we see that
μ−(λ=0)=μ−(λ=1)=0.(B.29)
By differentiating, we find that μ−(λ) has a unique maximum in λ at
λ⋆=s2+42,(B.30)
where it takes value
μ−(λ⋆)=s2+4s.(B.31)
Note that for any s > 0,
s2+4s<s−1,(B.32)
as upon multiplying through by s(s2+4) this is equivalent to the inequality s2<s2+4.
Therefore, assuming that i=1 is the unique maximal eigenvalue, we conclude three things about the functions μ±(λ):μ+(λ) is monotonically increasing, μ−(λ) is non-monotonic, and we have the strict uniform-bound separation
0≤μ−(λ)≤s2+4s<s−1≤μ+(λ′)≤s+s−1(B.33)
for any pair λ,λ′∈[0,1].
With this lemma in hand, we find that for any pair (j,k)∈[d]2 such that λj>λk, the corresponding upper-branch eigenvalues of the Hessian satisfy
μj,+>μk,+.(B.34)
Moreover, we have a strict separation between the two branches: for any pair (j,k) we have that
λ11μj,−≤s2+4s<s−1≤λ11μk,+.(B.35)
However, the lower-branch eigenvalues μj,− are not ordered simply by the corresponding eigenvalues λj of Σ. We remark that this result guarantees strong separation of bands when s<1, but allows the gap to in principle become small when s≫1.
As a result, assuming that i=1 is the index of the maximum eigenvalue, the leading eigenvalue of the Hessian is always μi,+=λi(s+s−1). Thus, the leading eigenvalue is minimized by the balanced solution, and in this sense balancing minimizes sharpness. However, it does not favor imbalance in a particular direction, as it is invariant under s↦1/s. Asymmetric effects on the Hessian therefore must come from lower eigenvalues, which are divided into two non-interlacing bands.
One way to capture the asymmetry is through the trace of the Hessian:
We can then see that the trace is invariant under s↦1/s only if λi=λj for all j, i.e., if all the eigenvalues of Σ are identical. Otherwise, we have the strict inequality
dλi>tr(Σ),(B.39)
which means that the trace of the Hessian increases more as one moves towards a encoder-heavy solution (s<1) as compared to a decoder-heavy solution (s>1). We note that tr(H) is minimized by taking
s⋆=(dλitr(Σ))−1/2≥1;(B.40)
it is decreasing on (0,s⋆) and increasing on (s⋆,∞). This means that in the sense of tr(H), decoder-heavy solutions can be flatter than encoder-heavy solutions or even balanced solutions.
B.2. Hessian spectrum for a general undercomplete linear autoencoder
We now consider a general undercomplete linear autoencoder with k>1. We will find that the Hessian has a similar structure to the k=1 case—being divided into sectors corresponding to within-principal-subspace and out-of-subspace fluctuations.
Recall that the loss, after averaging over some set of examples with E[x]=0 and E[xx⊤]=Σ, is
Now, we specialize to a rank-k undercomplete PCA-type solution, with
W=P⊤A,(B.45)U=A−1P,(B.46)
where A is a general invertible matrix and P∈Rk×d is a projection matrix satisfying PP⊤=Ik. Specifically, we assume that P projects onto the eigenspace spanned by the top k eigenvectors, assuming that it is unique (i.e., that λk>λk+1).
Choose coordinates for the input space such that Σ is diagonal, and then for the latent space such that
P=(Ik0).(B.47)
In these coordinates, decompose the perturbations as
and thus the remaining eigenvalues are determined by the spectrum of the 2k2×2k2 matrix
(A−1Λ+A−⊤⊗IkΛ+A−⊤⊗A⊤A−1Λ+⊗AΛ+⊗A⊤A).(B.72)
We note that we can factorize this matrix as J⊤J, where
J=(Λ+1/2A−⊤⊗IkΛ+1/2⊗A)∈Rk2×2k2.(B.73)
This exposes the fact that H∥ has k2 zero modes, which come from solutions to
δW∥A−1+AδU∥=0,(B.74)
and thus result from the internal symmetry. Noting that
JJ⊤=Λ+1/2(AA⊤)−1Λ+1/2⊗Ik+Λ+⊗AA⊤(B.75)
is positive-definite assuming A is invertible, the non-zero eigenvalues in this sector are determined by the eigenvalues of this k2×k2 matrix.
Therefore, in the end, we find that the eigenvalues of H split into sectors: one k2-dimensional sector determined by the eigenvalues of
Λ+1/2(AA⊤)−1Λ+1/2⊗Ik+Λ+⊗AA⊤,(B.76)
one 2k-dimensional sector determined by the eigenvalues of
(A−1Λ+A−⊤−λjIk−λjIkλjA⊤A)(B.77)
for each j∈{k+1,…,d} (giving d−k sectors in all), and a remaining sector of k2 zero modes. This gives, in all k2+k2+2k(d−k)=2kd eigenvalues, as we expect. We note that, as its lower two blocks commute, we have
upon applying the Weinstein–Aronszajn identity in passing to the third line. This shows that the Hessian on each of these sectors is positive-definite if
λi>λji∈{1,…,k},j∈{k+1,…,d}.(B.81)
We can then compute that, in general, the Hessian has trace
Though the eigenvalues in general depend on A in full detail, there is an important case in which they simplify. Suppose that we fix the positive gauge
A=S1/2,S=diag(s1,…,sk),(B.85)
with
s1≥s2≥⋯≥sk≥1,λ1≥λ2≥⋯≥λk>0.(B.86)
matching the ordering of the eigenvalues. These assumptions will be satisfied in the effective model we derive later. Then, the non-zero eigenvalues in the within-subspace sector are
μab∥=λa(sb+sa1),a,b∈[k],(B.87)
together with the k2 zero modes coming from the internal GL(k) symmetry. For each fixed a,
μa1∥≥μa2∥≥⋯≥μak∥,(B.88)
since
μab∥−μad∥=λa(sb−sd).(B.89)
Moreover, the diagonal is ordered:
μ11∥≥μ22∥≥⋯≥μkk∥,(B.90)
because s↦s+s−1 is increasing on [1,∞).
For the out-of-subspace sector, each pair a≤k<j gives a 2×2 block
Haj⊥=(λa/sa−λj−λjλjsa).(B.91)
Following our analysis in the k = 1 case, its eigenvalues are
Now, as WU=Id, both W and U must have rank d, hence J must have at most d2, a bound which is attained assuming that Σ is full-rank. Then, noting that
JJ⊤=Σ1/2U⊤UΣ1/2⊗Id+Σ⊗WW⊤(B.106)
is then a full-rank d2×d2 matrix, we find that the Hessian has 2kd−d2 zero modes, plus d2 non-zero eigenvalues given by the eigenvalues of JJ⊤. If Σ has zero modes, then they will generate zero modes of JJ⊤.
If we again write the parameters at the optimum as
W=P⊤A(B.107)U=A−1P,(B.108)
where P now satisfies P⊤P=Id, we find that
JJ⊤=Σ1/2P⊤(AA⊤)−1PΣ1/2⊗Id+Σ⊗P⊤AA⊤P.(B.109)
In this case, the Hessian has the generally simple expression
tr(H)=dtr(ΣU⊤U)+tr(Σ)tr(WW⊤).(B.110)
If we consider a gauge in which WW⊤=S and U⊤U=S−1, then this becomes
tr(H)=dtr(ΣS−1)+tr(Σ)tr(S).(B.111)
Further supposing that S and Σ commute, this gives
tr(H)=dj=1∑d(sjλj+λˉsj),(B.112)
where λˉ=d1tr(Σ).
For global re-scalings of the balanced solution, with A=sIk, we have the reduction
JJ⊤=(s+s−1)(Σ⊗Id),(B.113)
showing that in this case all non-zero eigenvalues are invariant under s↦1/s.
Appendix C. Detailed derivation of the effective scale dynamics for PCA
Here, we derive the effective model for scale dynamics that we presented in the main text. The accuracy of the predictions of these effective dynamics rely on two facts, which we prove below: First, that fluctuations normal to the solution manifold contract back to the manifold at a fast timescale tη. Second, that Qt evolves at a slow timescale tη2/B, and on that timescale that we can neglect stochasticity in its evolution. This both justifies the effective model we present in the text, and shows that the PCA solution is locally stable. The fundamental mechanism for this is that, as we showed in Appendix B, the normal component of the Hessian is strictly positive-definite if the solution is a projection to the k-principal subspace, while otherwise it has modes with negative eigenvalue.
In this derivation, we will assume that the batches are i.i.d., and that each is composed of B i.i.d. datapoints. We assume that the data has bounded moments of all orders, i.e., E[∥x∥2p]<∞ for all p>0. Alternatively, we may assume that the data distribution is sub-Gaussian. In practice, we will use Gaussian data in the simulations against which we will compare the model's predictions. We will also assume that the data covariance E[xx⊤]=Σ is diagonal.
Consider a generic point on the solution manifold, with (W,U)=(P⊤A,A−1P). Using the polar decomposition of A, we gauge-fix such that A=S1/2 for S a symmetric PSD matrix. Then, (W,U)=(P⊤S1/2,S−1/2P). Fix a compact subset K of the cone of symmetric positive definite matrices, defined for positive constants C>c>0 by
K={0≺cI⪯S⪯CI},(C.1)
and let
MK={(P⊤A,A−1P):A⊤A∈K}(C.2)
be the corresponding submanifold of the solution manifold. The assumption that S is bounded will technically be required at several points in the proof.
C.1. Fast relaxation of normal fluctuations
We first want to control fluctuations in the normal space. We will do so via a rather abstract and generic derivation, which parallels previous analyses of how SGD behaves near solution manifolds, e.g. by Li et al. (2022); Pashakhanloo and Koulakov (2023); Pashakhanloo (2025).
In a small neighborhood of MK, we can decompose the full parameter vector θt as
θt=mt+ξt,
(C.3) where mt∈MK and ξt∈NmnMK is in the normal space to MK at mn. Let Π be the local projection onto MK, and Π⊥(θ)=θ−Π(θ) the corresponding normal-coordinate map. Thus, ξt=Π⊥(θ).
Write the SGD iteration as
θt+1=θt+δt,(C.4)
where
δt=−η(∇L(θt)+ζt(θt))(C.5)
where ζt(θt) is the SGD noise. Thus, applying Π⊥, we have
has three contributions with distinct origins: the first comes from nonlinear contributions to the population gradient normal to the solution manifold, the second from the variation of the projection PNm away from the manifold, and the third from the expansion of the normal-coordinate map.
We now use this recurrence to argue that fluctuations away from the solution manifold relax rapidly. We do so supposing that the normal Hessian satisfies the uniform bound
Hmt⊥⪰μI(C.17)
for some μ>0, which in the case of interest is true provided that the data has a spectral gap separating the k-principal subspace from the remaining directions (Appendix B). Under this assumption, the stochastic dynamics for ξt are zero-reverting, and rapidly equilibrate.
Given that the noise has covariance of order 1/B, we can see that we should have
∥ξt∥=O(Bη)(C.18)
in probability. If we instead considered a solution not corresponding to the k-principal subspace, the Hessian would not be positive-definite, and the process would not be zero-reverting. This is the basic reason why the PCA solution manifold is locally stable under SGD, while non-principal subspace solutions are locally unstable (Baldi and Hornik, 1989).
To show this carefully, we fix a radius ρ>0, and suppose that ξt lies within that tube, so that the remainder terms in ϵt are controlled. To be precise, let
τρ=inf{t:∥ξt∥≥ρ}(C.19)
be the time of first exit from the tube. Then, using the assumption that the Hessian is uniformly positive-definite and supposing that η is small, there exist constants c,C>0 independent of η and B such that
where the effect of the remainder terms can be absorbed into the constants provided that the tube radius ρ and learning rate η are small enough. This assumes that ∥ζt⊥∥4 is uniformly bounded in expectation, which is satisfied for the datasets of interest given that ξt lies within the tube. Iterating this recurrence, we find that
E[∥ξt+1∥21t+1<τρ]≤e−cηt∥ξ0∥2+CBη,(C.21)
which means that the mean-squared normal displacement is of order η/B after a time on the order of η1logη1. This implies that ∥ξt∥=O(η/B).
We now want to argue that the probability that the exit time τρ will be reached over the order- B/η2 time interval of interest is small. Under the assumption that the data has finite moments of all orders, we can see that we can use the same argument as above to show that
E[∥ξt+1∥2p1t+1<τρ]≤C(Bη)p(C.22)
for any p≥1, after the fast transient of order η1logη1 steps. Let T1 be large enough such that the transient is evaded, and T2 be of order B/η2, i.e., let T2=⌊τB/η2⌋ for some order-one τ. Then, by a union bound and Markov's inequality,
where the constant changes between the last two inequalities, and depends on τ. This goes to zero with η for any p>2, hence the probability of exiting the tube tends to zero. Therefore, we can use the result above for the stopped process to show that the mean-squared displacement of ξt over the interval of interest is o(1).
The important point here is that this relaxation is fast relative to the slow timescale of the evolution of Q. On the manifold, the mean update to Q is of order η2/B, so for an order-one change to accumulate we must wait B/η2 steps. In contrast, we need to wait only 1/η steps for the fluctuations away from the manifold to relax back to the manifold, meaning that the two timescales have a relative separation η/B, which tends to zero as η tends to zero. This shows that the contribution of these fluctuations to the evolution of Q is o(1).
C.2. Stochastic approximation for flow along the manifold
We now leverage the separation of timescales proved above to derive an effective flow describing the slow scale growth. This is essentially a standard exercise in stochastic approximation (Kushner and Yin, 2003). As there is a separation of timescales, we can evaluate the evolution of Qt on the solution manifold and incur only an o(1) error on the relevant timescale. On the manifold, we have Wt⊤(WtUt−Id)=0, which gives the immediate simplification
is a noise term that is independent across timesteps. Assuming that the data has bounded eighth moments, Zt has bounded second moment, where the constant may depend on the batch size B. Thus, assuming that St is bounded (which holds if the solution stays within the submanifold MK), over T∼B/η2 steps, we have
Combining these results, we find that if we take η↓0 while keeping τ=tη2/B to be of order one, the discrete-time dynamics tend in probability to the solution of the corresponding limiting ODE by standard Grönwall-type arguments (Kushner and Yin, 2003). This relies on the fact that Q(S)=S−S−1 is a Lipschitz function of S provided that the solution remains within MK, i.e., that S is uniformly bounded from below and above in Löwner order. Assuming that this condition holds, the limiting dynamics are
dτd(S−S−1)=S−1/2CS−1/2,(C.37)
or, equivalently,
dτdS+S−1dτdSS−1=S−1/2CS−1/2.(C.38)
C.3. Solution assuming co-diagonalizability
Now, we show that the effective dynamics for S can be solved analytically provided that S commutes with C at some reference time, which we define as τ=0 without loss of generality.
We claim that if S and C commute at τ=0 then they do throughout time under the effective dynamics. This follows from the fact that if S commutes with C, then so does dS/dτ. To see this, we write the effective dynamics as
LS(dτdS)=S−1/2CS−1/2,(C.39)
where we define the linear map
LS(X)=X+S−1XS−1.(C.40)
We can see that LS−1 is well-defined for any PSD S, as in vectorized form we can write
vec(LS(X))=(Ik⊗Ik+S−1⊗S−1)vec(X),(C.41)
so we have the explicit formula
vec(LS−1(Y))=(Ik⊗Ik+S−1⊗S−1)−1vec(Y).(C.42)
This allows us to write
dτdS=LS−1(S−1/2CS−1/2).(C.43)
We can now show that LS−1(Y) commutes with C if both S and Y do. If LS(X)=Y for [Y,C]=0, we have
We now want to solve this for si(τ). Multiplying by 2 and exponentiating,
si(τ)2esi(τ)2=si(0)2esi(0)2+2σiτ.(C.50)
Now, recall that the principal branch of the Lambert W function, which we will write simply as W, satisfies (DLMF)
W(z)eW(z)=z.(C.51)
Thus, we have the solution
si(τ)=W[si(0)2exp(si(0)2+2σiτ)],(C.52)
as claimed in the main text. We note that W(x)=logx+loglogx+o(1) as x→∞ (DLMF), so at long times this gives
si(τ)∼2σiτ.(C.53)
For Gaussian data with covariance eigenvalues λ1,…,λk, we have
σi=j=k+1∑dλjλi,(C.54)
which predicts that the growth rates along different PCs are ordered.
We can in fact prove a stronger ordering statement, which we will use later. Suppose we start from a balanced initial condition with si(τ=0)=1. Then, fixing a time τ, let s(λ) solve
where in the last equation we have used the equation that defines s(λ). Therefore, λ/s(λ) is increasing in λ if
s2+2logs−1<2(s2+1),(C.62)
or if
2logs<s2+3.(C.63)
But, as logs<s−1 for all s>0, and as 2(s−1)<s2+3 for all s>0 as it is equivalent to 2s<s2+5, we conclude that this inequality is satisfied. Therefore, for any time τ, we have the ordering
s1(τ)λ1≥s2(τ)λ2≥⋯≥sk(τ)λk.(C.64)
We note also that the specialization of these results to global scale growth is easy to derive. Then, the object of interest is
Making the global scale Ansatz S=sIk, this leads to
dτd(s−s1)=σˉ,(C.66)
where we let
σˉ=k1tr(C).(C.67)
Then, it is easy to see that the same analysis as above leads to
s(τ)=W[s(0)2exp(s(0)2+2σˉτ)].(C.68)
C.4. Why is this a good effective model?
We now return to the question of why this might be a good effective model for scale growth, as it is not the only way to obtain a set of effective dynamics. In particular, suppose we tried to derive an effective model directly from the dynamics of W⊤W. Expanding out the update, we have
Under the same stochastic approximation approach as before, assuming we can neglect fluctuations away from the solution manifold, this would lead to the dynamics
dτdS=S−1/2CS−1/2
(C.71) for S=A⊤A. This again preserves the condition that [S(τ),C]=0, meaning that we can diagonalize to obtain
sidτdsi=σi(C.72)
for each i∈[k]. As
sidτdsi=dτd(21si2),(C.73)
this leads to
si(τ)=si(0)2+2σiτ.(C.74)
Thus, this approach gives the same 2σiτ growth at long times as our previous approach, but its early-time dynamics are different.
Why is this the case, and which result should we prefer? Well, in deriving effective dynamics from the order- η2 update from the dynamics of Q, we used the assumption that we are on the solution manifold only to simplify the update itself. When working with the W⊤W dynamics directly, we used this assumption to argue that the order- η term vanishes and also to simplify the order- η2 term. Thus, we expect the latter effective model to incur errors as a result of fluctuations away from the solution manifold that yield non-zero values of the O(η) update; the two models are affected in similar ways by how those fluctuations change the O(η2) term. This means that we should expect the stochastic approximation from the dynamics of Q to give a better effective model. This is consistent with the fact that we see that the Lambert-W solution matches experiment very closely.
C.5. The edge of stability for the effective model
The effective model as derived above predicts indefinite anisotropic scale growth si(τ)∼2σiτ. However, this cannot be a true property of the underlying discrete-time dynamics, as the maximum eigenvalue of the Hessian of the population loss is scale-dependent, so indefinite growth would destabilize the discrete-time dynamics. 1 For an eigenvalue μi(H) of the Hessian, we recall that the general edge of stability criterion is that ημi(H)≈2, with the threshold being likely somewhat less than 2 for SGD (Cohen et al., 2021; Damian et al., 2023; Andreyev and Beneventano, 2025; Emmanouilidis et al., 2026).
Recall from our analysis in Appendix B that the within-subspace sector Hessian eigenvalues are
μab∥=λa(sb+sa1),a,b∈[k],(C.75)
and that we expect these to be the dangerous modes. We have shown above that the scales satisfy the ordering
siλi≥sjλj(C.76)
if i<j, if we start from a balanced initial condition. Thus, given the ordering results from Appendix B, we conclude that for any a≤c and b≤d, we have
μab∥≥μcd∥.(C.77)
This would also violate the assumption of boundedness of S that we used in the derivation of the effective model, but that technical issue can be resolved by proving the result over fixed time intervals with a bound that grows in time. The destabilization of the SGD dynamics is a more substantial violation of the assumptions.
For a given b, we then have that μab∥≥μcb∥ whenever a≤c, which shows that μ1b∥ is the dangerous mode for each b.
Given the ordering of the scales si, we expect them to sequentially hit the stability threshold. Write the threshold condition as ηλi(H)=κ for some 0<κ≤2. First, s1 will hit a threshold at s1=s1∗ determined by
ηλ1(s1∗+s1∗1)=κ.(C.78)
Subsequently, the lower modes will hit thresholds determined by
ηλ1(s1∗1+sj∗)=κ,j>1,(C.79)
This leads to a common ceiling for all scale directions. To show this very explicitly, let κ~=κ/ηλ1 be the normalized stability threshold, which we assume to be large as we are working at small learning rate. Then, the above conditions state that the scales satisfy
s1∗=κ~−s1∗1andsj∗=κ~−s1∗1,j>1.(C.80)
From this, we can see immediately that we must have all sj∗=s1∗ at the threshold, where by solving the equation for s1∗ we have
sj∗=s1∗=2κ~+κ~2−4=κ~+O(κ~−1),(C.81)
where the asymptotic expansion holds for κ~≫1.
Appendix D. Batch sharpness decreases with scale
Andreyev and Beneventano (2025) proposed that networks trained with minibatch SGD operate near the Edge of Stochastic Stability, defined by when the so-called “batch sharpness” saturates near 2/η. The batch sharpness is defined by
BS=EB[∥∇L^B∥2∇L^B⊤H^B∇L^B](D.1)
where L^B is the loss on minibatch B, and H^B is its Hessian.
In the present setting, consider a minibatch XB∈Rd×B with empirical covariance Σ^B=B1XBXB⊤. Then, we have
We now compute the batch sharpness at a PCA-type solution. Recall that such a solution satisfies
(W,U)=(P⊤A,A−1P)
(D.6) where P∈Rk×d is an orthogonal projection (PP⊤=Ik) and A∈GL(k). Then,
WU−Id=P⊤P−Id=−P⊥(D.7)
is a projection, and moreover one that is annihilated by P. This shows that ∇UL^B=0, while ∇WL^B=−P⊥Σ^BP⊤A−⊤. As before, introduce coordinates for the data matrix
Therefore, we can write the batch sharpness on the PCA solution manifold as
BS=EB[B1tr(KBHB)tr[KB2HB]].(D.14)
Under a global re-scaling AA⊤↦sAA⊤, we have KB↦s−1KB, and thus
BS↦s1BS.(D.15)
Therefore, on the PCA solution manifold the batch sharpness is decreasing in global scale; it is in fact precisely homogeneous of degree -1.
This property is shared by what Andreyev and Beneventano (2025) define as the modified batch sharpness, which amounts to separately averaging the numerator and denominator:
The advantage of considering this quantity is that it can be computed analytically for the Gaussian data model on which we focus. As in Appendix C, work in a basis where the data covariance Σ and the scale matrix S are jointly diagonal. Then, X∥,B and X⊥,B are independent, and thus HB is independent of KB. Then, using the fact that EB[HB]=(∑j=k+1dλj)IB, we find that
MBS=B1EB[tr(KB)]EB[tr(KB2)],(D.17)
as the overall constant of proportionality cancels. Using Isserlis' theorem for Gaussian moments, we find that
Before the edge of stability is reached, we can use the solution of the effective model to study the time evolution of the modified batch sharpness. In fact, we can show that, if we start from a balanced initial condition,
dτdMBS<0(D.22)
along the flow. To show this, we recall from Appendix C that, assuming Gaussian data, the dynamics under the effective model are
dτdsi=σ⊥λisi2+1si,si(0)=1(D.23)
assuming a balanced initial condition, where σ⊥=∑j=k+1dλj is the variance outside the principal subspace. Moreover, we recall that the explicit solution is given implicitly by
As suggested by our definition, our remaining task is to show that Fij>0, as the first sum is clearly positive. Focus on some entry with i<j. We know from Appendix C that if i≤j then
siλi≥sjλj.(D.30)
Therefore,
α=siλiλjsj≥1,(D.31)
in terms of which
Fij=(2α−1)dτdlogsi+(2−α)dτdlogsj.(D.32)
If 1≤α≤2, then both coefficients 2α−1 and 2−α are non-negative, and at least one is strictly positive, so clearly Fij>0. If α>2, then more work is required. Let
ri=dτdlogsi.(D.33)
We claim that if i<j, then ri>21rj; we will prove this below. Given this claim, for any α≥1 we have
To prove the claim that if i<j, then ri>21rj, we start by letting yi=si2, and recall from before that if i<j then yi≥yj≥1. The dynamics of si imply that
ri=σ⊥λiyi+11.(D.35)
At the initial condition τ=0, all of the scales yi=1, so we have ri(τ=0)=21σ⊥λi, meaning that ri≥rj≥0 for any i<j given the eigenvalues are ordered, hence the claim follows trivially. For τ>0, all yj>1, and we can use the explicit solution si2+logsi2−1=2σ⊥λiτ to write σ⊥λi in terms of the solution yi, which leads to
ri=2τ1ϕ(yi)forϕ(y)=y+1y+logy−1.(D.36)
We are then left with a self-contained problem about the scalar function ϕ(y)=y+1y+logy−1, defined for y≥1: we must prove that if x≥y>1, then ϕ(x)>21ϕ(y). By inspection, ϕ(y=1)=0, and moreover ϕ(y)≥0 for all y∈[1,∞). Differentiating, we see that
ϕ′(y)=(1+y)23+y−1−log(y)(D.37)
has a unique zero at y⋆=1/W(e−3), the unique solution to 3+y−1−log(y)=0. From this, we find that ϕ is strictly increasing on [1,y⋆] and strictly decreasing on [y⋆,∞). An elementary lower bound on y⋆ is that y⋆>e3, which holds because ϕ′(e3)=(e3+1)2e−3>0. At the unique global maximum y⋆, we have ϕ(y⋆)=1+W(e−3)≤1+W(1)<2, and from this we see that ϕ(y)<2 for all y. This upper bound also can be directly proved by noting that it is equivalent to the statement that y+logy−1<2y+2, which in turn is equivalent to the obvious inequality logy<y+3.
We can now divide the proof of the desired claim into two cases. If ϕ(x)≥ϕ(y), then we can immediately conclude that ϕ(x)>21ϕ(y) because we know that ϕ(y)≥0 for any y≥1. If instead ϕ(x)<ϕ(y) for x≥y>1, then we must have x>y⋆. Now, as noted before, we know that ϕ(y)<2, so the claim follows if ϕ(x)≥1. We can see that ϕ(x)≥1 is equivalent to the inequality x+logx−1≥x+1, which is in turn equivalent to logx≥2, or x≥e2. But, we know that x>y⋆, and from before that y⋆>e3, which is greater than e2. As a result, we conclude that x>e2 and thus that ϕ(x)≥1, and thus the desired result. This concludes the proof.
Appendix E. Nonlinear autoencoders
As we focus on linear autoencoders, a natural question is whether any of the phenomenology generalizes to nonlinear models.
E.1. Extending the PCA manifold to homogeneous nonlinear models
Consider a general nonlinear autoencoder
fθ,φ(x)=gθ(hφ(x)),(E.1)
where hφ:Rd→Rk and gθ:Rk→Rd are the encoder and decoder, with parameter vectors φ and θ, respectively. We will usually suppress the subscripts, and write simply f, g, and h. Suppose that the model has a scale symmetry, in the sense that its output fθ,φ(x) is invariant for any example x under transformations of the form
(θ,φ)↦(aθ,a−1φ),a>0.(E.2)
If we train the model to minimize an L2 reconstruction loss L=21Ex[∥f(x)−x∥2] via gradient flow ∂tθ=−∇θL, ∂tφ=−∇φL, then it is well-known that the scale symmetry (E.2) means that the corresponding Noether charge
q=∥θ∥2−∥φ∥2(E.3)
is conserved, i.e., ∂tq=0 (Du et al., 2018; Kunin et al., 2021; Tanaka and Kunin, 2021). To see this, note that our assumption that f(x)=g(h(x)) is invariant under transformations (θ,φ)↦(aθ,a−1φ) for a>0 implies that the per-example loss ℓ(x)=21∥f(x)−x∥2 is invariant. This implies that
where the order- η term vanishes identically by (E.4).
We now observe that we can partially extend the PCA solution geometry to these more general nonlinear models. Consider a particular example x. Let its latent encoding be z=h(x), and the residual be r=g(z)−x, such that the reconstruction error is ℓ(x)=21∥r∥2. By the chain rule, the parameter gradients appearing in the update (E.9) for qt are ∇θℓ=(∂g/∂θ)⊤r and ∇φℓ=(∂h/∂φ)⊤(∂g/∂z)⊤r. For an overcomplete autoencoder, perfect reconstruction is possible, leading to r=0 and qt+1=qt. In contrast, for an undercomplete autoencoder with k<d, it is not generally possible to make the residual vanish for an arbitrary example.
Geometrically, we can then decompose the residual r into components normal and tangential to the decoder manifold D={g(z):z∈imh}, which we write as r⊥ and r∥, respectively. By definition, (∂g/∂z)⊤r⊥=0. Thus, the encoder gradient ∇φℓ is sensitive only to r∥, while the decoder gradient ∇θℓ is sensitive to both r∥ and r⊥. Assuming that k≪d, it is possible for the undercomplete autoencoder to make the k-dimensional tangential component r∥ quite small. As a result, as the decoder gradient has an additional contribution from r⊥ relative to the encoder gradient, we expect undercomplete autoen-coders to generically favor decoder-heavy solutions so long as ∥r∥∥≪∥r⊥∥. In the extreme, we can consider what we might refer to as projection-type solutions that have r∥=0; these are in some sense an analog of the PCA solutions in the linear case. On the manifold of such solutions, the imbalance dynamics reduce to
qt+1=qt+η2∥∇θL^t∥2,(E.10)
that is, there is a systematic drift towards larger decoder scales.
E.2. Per-neuron scale symmetries in ReLU autoencoders
In the section above we considered the case in which the GL(k) symmetry of a linear autoencoder is reduced all the way down to a single R>0. However, for a standard ReLU autoencoder
f(x)=Wσ(Ux),(E.11)
where σ(t)=max(0,t) acts elementwise, has a larger symmetry group defined by re-scaling each hidden neuron, in addition to permutation symmetries. The continuous component of the symmetry group is simply the neuron-wise rescalings R>0k, which correspond to (W,U)↦(WA,A−1U) for A=diag(a1,…,ak) a diagonal matrix with positive diagonal elements ai>0 (Du et al., 2018; Tanaka and Kunin, 2021).
A more tractable expression follows by letting wi be the i-th column of W, and ui⊤ be the i-th row of U. Then,
f(x)=i=1∑kwiσ(ui⊤x)(E.12)
and the action of the symmetry group is that, for each i, (wi,ui)↦(aiwi,ai−1ui). This formulation also makes it obvious that there are k Noether charges corresponding to this symmetry:
qi=∥wi∥2−∥ui∥2.(E.13)
The charge related to global rescaling is then simply the sum of these per-neuron charges: q=∑i=1kqi. The proof that these charges are individually conserved under gradient flow parallels the proof for homogeneous rescalings considered above: for any i∈[k],
We show in Figure S2 that, empirically, SGD training leads to decoder-heavy imbalance for these networks.
Appendix F. Experimental details
The simulations were performed with two-layer autoencoders of the form x^=Wϕ(Ux), with zero bias, input dimension n=20, and either a contractive hidden layer k=10<n or an expansive hidden layer k=40>n. The data were generated online from a diagonal Gaussian distribution, x∼N(0,Σ), where Σ=diag(λ1,…,λn) is the covariance eigen-values were geometrically spaced from λ1=12 to λn=0.18 (concretely, λi=λ1(λ1λn)n−1i−1). Training used minibatch SGD with batch size B, learning rate η, mean-squared reconstruction loss, and fresh Gaussian samples at every update. Unless specified, all networks had linear activation ϕ(zi)=zi. The specific parameters for each plot are as follows.
Networks in Figure 1A/Figure S1 and Figure S2 were initialized with i.i.d. zero-mean Gaussian weights with standard deviation 0.01, while the contractive networks in the other plots were initialized at the PCA solution with the identity scale. Specifically, for those networks,
resulting in an initial scale matrix S0=W0⊤W0=Ik.
Figure S1: Continual minibatch training drives scale imbalance in linear autoencoders. (A) Validation loss for contractive and expansive linear autoencoders during online training with random initialization at the onset. (B) Scale imbalance is measured by q=∥W∥F2−∥U∥F2. (C,D) Frobenius norms of decoder and encoder weights, ∥W∥F and ∥U∥F, for contractive and expansive autoencoders, respectively (see §F for experimental details).
Figure S2: Continual minibatch training drives scale imbalance in homogeneous autoencoders. (A) Validation loss for contractive and expansive ReLU autoencoders during online training with random initialization at the onset. (B) Scale imbalance is measured by q as defined in Eq. (E.3). In this case we have a decoder weight matrix W and an encoder weight matrix U, so q=∥W∥F2−∥U∥F2. (C,D) Frobenius norms of decoder and encoder weights, ∥W∥F and ∥U∥F, for expansive and contractive ReLU autoencoders, respectively (see §F for experimental details).