arXiv:2611.00503math.DGOct 2026

Manuscript Offprint

arXiv:2611.00503

The Continuum Limit of the Deep Linear Network

Catherine Eva Pfaff, Karen Uhlenbeck

CATHERINE EVA PFAFF AND KAREN UHLENBECK

ABSTRACT. The Deep Linear Network (DLN) is a simple version of a Multilayer Perceptron (MLP) in which the activation function is the identity and the bias vector is the zero vector. We examine the behavior of the model when the number of weight matrices, which is finite in the original model, goes to infinity. We show that a plausible continuum limit is a dimensionally reduced version of the Yang-Mills equation on the torus, revealing an unexpected geometric interpretation of infinite-depth DLNs. While we do not prove this rigorously, it is a very pretty calculation. It also gives some insight into several features of the construction. We note that the choices of boundary conditions on the ends of the discrete series survive better in the continuum limit. Also, the regularizing functional which uses the moment map survives nicely in the continuum limit, whereas the regularizing functional using the size of approximating terms has no sensible limit. This surely is useful information for the choices we make in the finite-dimensional theory, and might also be useful in the more complicated MLP setting.

1. INTRODUCTION

In October 2025 Govind Menon gave a talk to mathematicians on the geometry of a Deep Linear Network (DLN). In MLP language, a DLN is an MLP where each activation function is the identity function and each bias vector is the zero vector. In practice, this means that a DLN operates on its input by applying a product matrix X=WN⋯W1X = W_N \cdots W_1. To read this paper, one does not have to be familiar with the general model.

An interest in DLNs stems from the redundancy of the many choices of the WpW_p leading to the same XX. This redundancy leads to a geometric structure that is both interesting in its own right and can inform training dynamics. Saxe, McClelland, and Ganguli [SMG14] showed that, despite the linearity of the networks themselves, DLNs have nonlinear gradient descent dynamics on weights that depend on the depth of the network. Further, they show that the training dynamics exhibit some of the phenomena observed in nonlinear neural networks. Perhaps even more interestingly for what we do, Arora, Cohen, and Hazan [ACH18] were able to show that increasing depth in a DLN can accelerate gradient descent under certain assumptions.

We explore the continuum limit of this geometric structure here. In particular, Lindsey and Menon's crediting of the Kempf-Ness theorem as an essential tool for studying a DLN brings to mind the application to the heat equation for Yang-Mills on surfaces, which uses an infinite dimensional version of the theorem. Looking at the continuum limit of the DLN, the symmetries are identical in structure to the real and complex gauge changes for Yang-Mills on a Riemann surface. It was somewhat surprising that the theory turned out to be equivalent up to normalization (with a little fiddling of the gauge at the boundary) to a dimensionally reduced Yang-Mills theory from a torus to a circle with an additional reflection to fix the boundary conditions. We note that in [CMV23] Cohen, Menon, and Veraszto also take a continuum limit. However, our work is different from theirs in being focused on the continuum limit of the gauge-theoretic structure and its relationship to dimensionally reduced Yang-Mills theory.

What we indicate in this paper is that a dimensionally reduced Yang-Mills theory on the torus with a reflection is a plausible N→∞N \to \infty limit of the DLN when NN is the number of layers in the network. The result obtains ODE's on the line from the limits of discrete versions. The discrete objects are obtained from continuous ones by identifying the p/Np/N on the line with the index-pp discrete object - the limits as N→∞N \to \infty are then our continuous theory. We believe that a rigorous proof would be pretty straightforward, but lengthy, so we have not included it in this introductory paper.

In all theories which construct algorithms to identify information from new data, the aim in training is to determine the method for finding the best fit given large amounts of training data. Usually this involves a large number of intermediate steps. In the DLN we are starting from, this training flow occurs on Nn×nN n \times n weight matrices Wp∈GL(n,C)W_p \in GL(n, \mathbb{C}). The product X(1)=WNWN−1⋯Wp⋯W1X(1) = W_N W_{N-1} \cdots W_p \cdots W_1 represents the final information we want, and the WpW_p are the intermediate steps. To the uninitiated, this seems quite strange, but rest assured it works. Because only X(1)X(1) involves the final data, we have a geometry for the intermediate WpW_p. We may multiply a WpW_p by an element of GL(n,C)GL(n, \mathbb{C}) on the right as long as we multiply Wp−1W_{p-1} by the inverse of that element. This constructs a large “gauge group” which in this paper we always call the complex gauge group. When we only use unitary matrices, the group we use not only preserves the endpoints, X(1)X(1) on the left and the identity on the right, but turns out to preserve all the geometry we construct. We call this “the gauge group”. It acts exactly like the gauge group in the physics and mathematical Yang-Mills models. We know of no other theory that has such a gauge group, and find this very interesting. The complex gauge group does appear in the study of Yang-Mills on a Riemann surface, which is where the idea for this paper came from.

The direction of the regularizing flow, which uses only the complex gauge group, is added to the more or less usual gradient flow which acts on the X(1)X(1) term. This simplifies the weight matrices WpW_p without affecting the flow on X(1)X(1). The finite theory uses several regularizing flows, which we discuss in detail in Section 4. It turns out that most of them (we don't pretend to know all) flow to the zeros of the moment map for the gauge group actions. Hence the moment map is important in both the discrete and limiting theories. The moment map is reviewed in Section 2 for those who are unfamiliar with symplectic geometry.

We consider two regularizing flows on the Hilbert space of connections. One is the standard Yang-Mills heat flow, arising as the gradient flow of the Yang-Mills functional. This turns out not to have viable boundary conditions when restricted to [0,1][0,1]. The second is a somewhat unusual flow which can be interpreted as a smooth vector field in a Hilbert space of connections.

The outline of the paper is as follows. Section 1 is the introduction. At the end of this section we give some comments on what one might learn about the finite theory from the infinite theory.

Section 2 reviews step by step the geometry for finite NN and derives the continuum limit from the (usual) finite theory. We know the finite theory based on Nn×nN n \times n invertible matrices WpW_p acted on by N−1N-1 matrices GpG_p.

It is not necessary to explain here in detail how the discrete theory limits on a continuous theory, as that is carefully done in Section 2. It won’t hurt to give a few examples. Given the continuous (as smooth as we need) map a ⁣:[0,1]→gl(n,C)a\colon [0,1]\to\mathfrak{gl}(n,\mathbb{C}), we construct the discrete WpW_p by setting Wp=I+1Na(pN)W_p=I+\frac{1}{N}a(\frac{p}{N}). The gauge group is simple. Given g ⁣:[0,1]→GL(n,C)g\colon[0,1]\to GL(n,\mathbb{C}), we set Gp=g(pN)G_p=g(\frac{p}{N}). We then find that, in the limit, the limiting theory from the finite theory has a connection aa, with the standard action by a gauge group element gg on it. We set Xp=X(pN)=WpWp−1⋯W1X_p=X(\frac{p}{N})=W_pW_{p-1}\cdots W_1, which just yields in the limit a section of the trivial bundle that gg and the connection (ddx−a)(\frac{\mathrm{d}}{\mathrm{d}x}-a) act on. The moment map, which is again described later, for the discrete model converges to the moment map (curvature for Yang-Mills!) for the continuous model. Only after we construct the theory do we note which Hilbert spaces are natural in the problem. A comment here is that Yang-Mills theory is beautifully consistent up to dimension 4, so the analysis for the 1-dimensional problem is on the simple side.

The following two theorems (given in Section 2) describe a plausible continuum model and geometry of the continuum limit. We use the notation HkH^{k} for the Sobolev class

Hk:={functions f∣each (weak) derivative f(n) with 0≤n≤k is square integrable}H^k := \{\text{functions } f \mid \text{each (weak) derivative } f^{(n)} \text{ with } 0 \leq n \leq k \text{ is square integrable}\},

where the domain and range vary by circumstance.

Let W:=(W1,…,WN)W := (W_1, \ldots, W_N).

Theorem A (Theorem 2.4). We choose a ⁣:[0,1]→gl(n,C)a\colon[0,1]\to\mathfrak{gl}(n,\mathbb{C}), and X ⁣:[0,1]→GL(n,C)X\colon[0,1]\to GL(n,\mathbb{C}), and a gauge element gg, and find WpW_p, and GpG_p, and XpX_p, as above. As N→∞N\to\infty, (a)−(d)(a)-(d) below are plausible limits.

(a) The continuum limit X:[0,1]→GL(n,C)X: [0,1] \to GL(n,\mathbb{C}) satisfies ddxX=aX\frac{\mathrm{d}}{\mathrm{d}x}X = aX, X(0)=IX(0) = I.

(b) The limiting gauge group G∞:={g:[0,1]→GL(n,C)∣g∈H2,g(0)=g(1)=I}\mathcal{G}^\infty := \{g: [0,1] \to GL(n,\mathbb{C}) \mid g \in H^2, g(0) = g(1) = I\} acts on the connection a from part (a) by

(g,a)↦(ddxg+ga)g−1.(g,a)\mapsto\left(\frac{\mathrm{d}}{\mathrm{d}x}g+g a\right)g^{-1}.

(c) The tangent space at a to the orbit of the limiting gauge group G∞\mathcal{G}^{\infty} is the image of

ddxα−[a,α]forα(0)=α(1)=0.\frac{\mathrm{d}}{\mathrm{d}x}\alpha-[a,\alpha]\quad for\quad\alpha(0)=\alpha(1)=0.

(d) The moment map ω\omega for the action of the unitary gauge group U∞:={g∈G∞∣g(x)∈U(n)\mathcal{U}^{\infty} := \{g \in \mathcal{G}^{\infty} \mid g(x) \in U(n) for all x}x\} is

ω = ddx(a+a∗)−[a,a∗].\omega~=~\frac{\mathrm{d}}{\mathrm{d}x}\left(a+a^{*}\right)-[a,a^{*}].

Theorem A' (Theorem 2.6). The limiting configuration space

A={a ⁣:[0,1]→gl(n,C)∣a∈H1}\mathcal{A}=\{a\colon[0,1]\to\mathfrak{gl}(n,\mathbb{C})\mid a\in H^{1}\}

carries the following structures:

(a) A\mathcal{A} is a linear space, with

⟨a,b⟩  =  ∫01TrRa(x)b(x)∗dx.\langle a,b\rangle\;=\;\int_{0}^{1}\mathrm{T r}_{\mathbb{R}}a(x)b(x)^{*}\mathrm{d}x.

The symplectic structure is ⟨ia,b⟩\langle ia,b\rangle.

(b) The gauge group U∞\mathcal{U}^\infty of unitary matrices in G∞\mathcal{G}^\infty leaves the geometry invariant, whereas G∞\mathcal{G}^\infty leaves only X(0)=IX(0)=I and X(1)X(1) invariant.

(c) The regularizing function ∣∣W∣∣2||W||^2 becomes infinite in the limit.

In Section 3, we describe the relationship between our continuum limit and Yang-Mills on the torus. The Yang-Mills theory on the torus (x,y)(x,y) uses the product connection ((ddx−u),(ddy+ih))\left(\left(\frac{\mathrm{d}}{\mathrm{d}x}-u\right),\left(\frac{\mathrm{d}}{\mathrm{d}y}+ih\right)\right), with uu and ihih skew-Hermitian. Dimension reduction in the yy variable means that uu and ihih do not depend on yy. It does not mean discarding the ihih variable, which is often called the Higgs field in the similar higher dimensional examples in geometry and physics. In our theory, we write the complex connection aa as a=h+ua=h+u (the reason for our weird inclusion of the ii in the original description), where h=12(a+a∗)h=\frac{1}{2}(a+a^*) and u=12(a−a∗)u=\frac{1}{2}(a-a^*). To reduce the problem on the circle to a line, we add the reflection (a(x))∗=a(−x)(a(x))^* = a(-x) and (g(x))∗=(g(−x))−1(g(x))^* = (g(-x))^{-1}. Here we run into problems, as uu behaves badly and the unitary gauge groups are different. We describe how both problems are due to differences in the (unitary) gauge group. In the reflected model, when uu has this jump, there is no difficulty with the flow, but the jump is preserved. In the end this might contain information useful in constructing the numerics for the flows.

The main result of Section 3 is Theorem 3.5. We restate the gist of it here as Theorem B.

Theorem B (Theorem 3.5 abbreviated). With the above identifications, Yang–Mills theory on the torus reduced by setting terms independent of yy to the circle, and further reduced to [0,1][0,1] by the above reflections, is equal to the theory for our infinity limit, with slight modifications in the symmetry groups.

However, when we look at the heat equation for Yang-Mills, we find it difficult to use on the interval [0,1][0,1] without adding extra boundary conditions. This gives us Proposition B', which is Proposition 3.7.

Proposition B'. The usual gradient descent for Yang-Mills is a heat equation, which does not restrict to the interval [0,1] to give a gradient descent on [0,1].

Section 4 treats the gradient flows, first for finite NN, and then for the limit as N→∞N \to \infty. We repeat the calculations for finite NN first as these calculations are more complicated. Two of the gradient flows for the two main regularizing functionals we know about turn out to be the same! In the continuum limit, only one gradient flow survives.

We write the heat equation for Yang-Mills in terms of the dimensionally reduced variables:

Theorem C (Proposition 3.6 and following remarks). In terms of dimensionally reduced variables

ddsh=2[ddx−u,[ddx−u,h]],\frac{\mathrm{d}}{\mathrm{d}s}h=2\left[\frac{\mathrm{d}}{\mathrm{d}x}-u,\left[\frac{\mathrm{d}}{\mathrm{d}x}-u,h\right]\right], ddsu=−2[h,[ddx−u,h]].\frac{\mathrm{d}}{\mathrm{d}s}u=-2\left[h,\left[\frac{\mathrm{d}}{\mathrm{d}x}-u,h\right]\right].

Theorem D (Theorem 4.3, Corollary 4.4). The rescaled limit as N→∞N \to \infty of our first gradient flow, which we will call the group geometric flow, is the dimensionally reduced heat equation from Yang-Mills.

Hence, by Proposition B′B', it is not converging to a flow with viable boundary conditions.

The continuum limit of the second flow was harder to find. Our first attempt turned out to be incorrect. When we did find it, it was quite interesting.

Theorem E (Theorem 4.13, Corollary 4.14). The continuum limit of the linear geometric flow

12ddsa=v−a,\frac{1}{2}\frac{\mathrm{d}}{\mathrm{d}s}a=v-a,

where

v−a=[(ddx−a),τ],τ(0)=τ(1)=0[ddx+a∗,(v+a∗)]=0.\begin{aligned}v-a&=\left[\left(\frac{\mathrm{d}}{\mathrm{d}x}-a\right),\tau\right],\qquad\tau(0)=\tau(1)=0\\&\left[\frac{\mathrm{d}}{\mathrm{d}x}+a^{*},(v+a^{*})\right]=0.\end{aligned}

Here v∈H1v\in H^{1} is smoothly dependent on a∈H1a\in H^{1}, and ddsa\frac{\mathrm{d}}{\mathrm{d}s}a is a smooth vector field on a∈H1a\in H^{1}.

We conjecture (Conjecture 4.12) that the projected flows in the finite-dimensional model converge, as N→∞N\to\infty, to the corresponding projected flows in the continuum model.

Section 5 completes the proof that the conjectured limits of the loss function we aim to minimize and of the regularizing functional behave as we would like them to behave. This is Theorem 5.5. We reformulate this result in less technical language here.

Theorem F (Theorem 5.5 abbreviated). The downward gradient flow for F(a)+νR(a)F(a)+\nu R(a), where F(a)=f(X(a))F(a)=f(X(a)) and R(a)=⟨ω,ω⟩R(a)=\langle\omega,\omega\rangle, is

dads=−(X(x)−1)∗X(1)∗(∇Xf)X(x)∗+νdads,\frac{\mathrm{d}a}{\mathrm{d}s}=-\left(X(x)^{-1}\right)^{*}X(1)^{*}\left(\nabla_{X}f\right)X(x)^{*}+\nu\frac{\mathrm{d}a}{\mathrm{d}s},

where dads\frac{\mathrm{d}a}{\mathrm{d}s} is a downward gradient for ⟨ω,ω⟩\langle\omega,\omega\rangle leaving X(1)X(1) fixed. Then

ddsF(a)=−dF(a)(∇F)=−⟨∇F,∇F⟩,\frac{\mathrm{d}}{\mathrm{d}s}F(a)=-d F(a)\left(\nabla F\right)=-\langle\nabla F,\nabla F\rangle, ddsR(a)=2ν⟨ω,ddsω⟩.\frac{\mathrm{d}}{\mathrm{d}s}R(a)=2\nu\left\langle\omega,\frac{\mathrm{d}}{\mathrm{d}s}\omega\right\rangle.

For the flow described in Theorem E, ddsR(a)=−8ν⟨ω,ω⟩\frac{\mathrm{d}}{\mathrm{d}s}R(a)=-8\nu\langle\omega,\omega\rangle.

We are new to this field, so have little to say about where it is going. The first point is that the norm squared of the moment map survives as a good regularizing functional in the limit. The norm squared of the WpW_p, or any other norm, will only become infinite. Even in the finite case, it seems to make sense numerically to deal with the smaller numbers coming from Ω\Omega rather than the larger numbers coming from XX.

One of the main technical points is in handling the boundary term corresponding to W1W_1 and WNW_N. To use the gradient flow, it is necessary to use a (unitary) gauge symmetry to regularize the boundary conditions. It might be helpful to take this into account when the gradient flows are constructed numerically.

A further point is that any choice of gradient flow for the moment map squared is a good choice for a regularizing flow. This does not seem to be the case for the flows coming from norms of the W=(W1,…,WN)W = (W_1, \ldots, W_N), unless they by accident happen to be gradient flows for the moment map. Hence, we believe the moment map is better to work with than the WW's. Since the gradient flows we use for the norm squared of the WW's are also gradient flows for the norm squared of the moment map, this should be automatic.

We found two regularizing flows associated to the moment map. The first was a heat equation, which is ill posed with the desirable boundary condition on [0,1]. The second one converges. The flows labeled the linear geometric flows in Definition 4.6 are better suited for large N than those labeled the group geometry flows in Definition 4.2. Finally, the description given for points at which the moment map vanishes does not at all carry over to the continuum limit. This should be considered in describing this submanifold.

The relationship with Yang-Mills is reminiscent of the appearance of KdVKdV in many different areas. Material can be found in the papers of Menon, both solely authored and with collaborators. The standard references for gauge theory that we know of are [BM94, DK97]. A more extensive treatment of related aspects of the infinite-depth geometry of deep linear networks appears in the doctoral thesis of Tejas Kotwal [Kot26].

An interesting direction we did not pursue here is understanding how including nonlinear activation functions (and even bias vectors) changes the underlying geometry and training dynamics of the network.

Acknowledgements. The authors are grateful to Govind Menon for introducing the problem and the hospitality of the Institute for Advanced Study, without which this paper would not have come about. The first author is grateful for the opportunity to play an apprentice role in this work. The second author is grateful to Linda Ness for her interest in their work. We thank Tejas Kotwal and Laura Fredrickson for their comments and improvements to our paper. We also acknowledge use of ChatGPT in the revision process.