Tensor Programs IVb: Adaptive Optimization in the Infinite-Width Limit

Greg Yang, Etai Littwin

Chapter 1 Introduction

While historically the deep learning theory literature has by-and-large (carelessly in hindsight) identified “infinite-width neural networks” with “neural tangent kernel” or “gaussian process” , by now we understand these are just particular kinds of infinite-width limit with simple mathematics. Indeed, there also exists a “feature learning regime” with much more complex mathematics but also all the actually desired properties of a neural network . Yang & Hu precisely characterized this so-called Dynamical Dichotomy: there is no other regime that can happen for MLPs trained by SGD in finite time.

In practice, of course, most neural networks of importance are trained by adaptive optimizers like Adam . Can new phenomenon arise in the infinite-width limit of adaptive optimizers? For example, if one invokes the (not-quite-correct) intuition that neural network trained with small learning rate exhibits kernel behavior, then one might suppose that these optimizers may adaptively enforce large effective learning rates. This prevents kernel behavior and may even “supercharge” feature learning.

But it turns out there’s nothing special about adaptive optimizers in this regard. Essentially the exact dichotomy of feature learning vs kernel regime plays out for any adaptive optimizer. This means there is also a “neural tangent kernel” limit for any adaptive optimizer, where the network evolution can be captured solely by some kind of evolution equation in the function space — albeit no longer a linear equation. This also means that “maximal update” parametrization can be defined for e.g., Adam, that maximizes feature learning in a suitable sense. Indeed, already contained an intuitive derivation of this μ\muP for Adam, and showed it preserves optimal hyperparameters as ones scales the width of a model (e.g., Transformer ). Part of this work serves to fill the gap in ’s theoretical foundations.

To achieve this result, we leverage the Tensor Programs framework: express the adaptive optimization of a network in any parametrization in a Tensor Program, and invoke the Master Theorem to take the infinite-width limit of the whole computation, obtaining in particular the limit at the end of training.

Yet, there is one problem: no previous Tensor Program language can express adaptive optimization! The main issue is the expression of the entrywise “normalization” of the gradient done by the optimizer: For example, in the first step of training, Adam essentially just takes the sign of the gradient; while previous Tensor Program languages like \textscNetsor⊤\textsc{Netsor}\top can express this operation for the input and output weights, they cannot do so for the hidden weights.More generally, \textscNetsor⊤\textsc{Netsor}\top can only express this for vector-like (1 dimension tends to infinity) parameters but not matrix-like (2 dimensions).

We prove the Master Theorem for \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top (i.e., how to take the infinite width limit for any \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program), for both the classical Gaussian case (where matrices are sampled from Gaussians) as well as the general non-Gaussian case, following the strategy of .

The Tensor Programs series is known for architecturally universal results — results that hold for all “natural deep learning architectures”, past and future. For example, established the architectural universality of Neural Network-Gaussian Process (NNGP) Correspondence, established the same for the Neural Network-Tangent Kernel Correspondence, and likewise for Free Independence Principle. Yet, ’s theoretical development of maximal update parametrization only focused on multi-layer perceptrons.with a brief discussion of defining μ\muP for any architecture in the appendix, but nothing about its limit; did a thorough empirical investigation of muP for a variety of architectures but nothing theoretical

Here we write down the μ\mu-limit (as well as the neural tangent limit) for any architecture and any adaptive optimizer. The key innovation here is the definition of what “any architecture” means, while the proofs follow essentially the MLP examples.

Prior works did not write down the μ\mu-limits for all “natural” architectures mainly because the Tensor Programs notation was not efficient enough to deal with this arbitrary complexity. The mundane looking but vital innovation of this work is a new set of Tensor Programs notations that enables concise expression of all of the above: the bra-ket (aka Dirac) notation, borrowed from quantum physics. For readers familiar with prior Tensor Programs papers, in short:

The expectation inner product becomes notably succinct in the new notation, which also enables much more efficient expressions of the nonlinear outer product that is at the center of adaptive optimization.

We formalize a general notion of adaptive optimization in deep learning, called entrywise updates — the property that gradients are processed entrywise — satisfied by common optimizers like SGD and Adam .

We define the neural tangent and maximal update parametrizations for entrywise optimizers and derive their infinite-width limits. While we focus on MLPs in most of this paper for pedagogical purposes, we eventually write down the limits for any “reasonable” architecture.

More generally, like , we identify all “natural” infinite-width limits in this setting and dichotomize them into feature learning vs a nonlinear version of kernel regime. The maximal update limit remains the “optimal” feature learning limit for all entrywise optimizers.

All of the above results are made possible by a new version of Tensor Program, called \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top, that can express the adaptive updates using the new instruction of nonlinear outer product. This forms the bulk of the technical advances made in this work.

Even so, the most vital contribution of this work is perhaps introducing the bra-ket notation to drastically simplify expressions and calculations common in Tensor Programs.

The infinite-width limits of adaptive optimizers take the headline for this paper and may be what piques readers’ interest in the near term. But the new Tensor Program and the new notation will likely have longer lasting impact, pushing forward our fundamental knowledge of large neural network behavior and lowering the translation tax between how this knowledge is stored on paper and in our heads.

In a way, this work gathers and generalizes all previous results in the Tensor Programs series about infinite-width limits: 2.9.19 generalizes the architecturally universal Neural Network-Gaussian Process correspondence and Neural Network-Tangent Kernel correspondence ; the new Tensor Program, \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top (2.6.1), generalizes the \textscNetsor⊤+\textsc{Netsor}\top^{+} of ; its Master Theorem (2.6.10) holds for both Gaussian and non-Gaussian matrices, generalizing ; the Dynamical Dichotomy for entrywise updates (2.8.20) generalizes that for SGD ; our μ\mu-limit equations generalize those of for SGD and, for the first time, we even write down the general μ\mu-limit equations for any architecture (2.9.25).

1 Related Work

Here we briefly overview past works on infinite-width neural networks, but we recommend the reader to refer to [45, Sec 2] for a more comprehensive review. A large body of literature exists on both the kernel (NTK) limit and the mean field limit for 2-layer neural network . Various papers describe the kernel and feature learning regimes more generally without taking an infinite-width limit. describes the “lazy training” regime in arbitrary differentiable programs, and is controlled by a single parameter α\alpha which scales the output. It is shown that when α\alpha is large, the weight need only move slightly to fit the training data, and network essentially performs kernel learning. Many papers view the kernel and feature learning regimes as learning in different timescales, explicitly incorporating the time dependence in the infinite-width limit, and others derive finite width corrections to the NTK for finite width networks . In this paper, as in , we consider training time to be constant, and take only the width to infinity.

Tensor Programs, first introduced in and expanded upon in , were developed as a theoretical framework to analyze the infinite-width limits of any architecture expressible in a simple formal language, in an attempt to unify the per-architecture analysis prevalent in the literature . defined a natural space of neural network parametrizations (abc-parametrizations), and classified all resulting infinite-width limits into two possible catagories: 1) the kernel regime, in which the neural network function evolves as a linear model, and 2) the feature learning regime, in which the representations change and adapt to data over the course of training. The μ\mu parametrization was then identified as the “optimal” parametrization for arbitrary architectures in which all layers learn features, and was later heuristically extended to adaptive optimizers .

Adaptive optimizers and their variants were developed to accelerate learning by adapting the learning rate on a per parameter basis, and currently is a critical component of large scale pretraining of transformer models . No previous work has developed their theory for infinite-width neural network, but a concurrent work has derived the infinite-width NTK for SignSGD in the batch-size 1 setting (which is not equivalent to the general batch-size setting).

2 Notations

One of the the key innovations of this work is a set of much cleaner notations to express ideas in Tensor Programs. While this sizeable section may be off-putting to some readers, it’s better to explain the notation sooner than later. We recommend skimming until the end of the Outer Product subsection and then move on, coming back to read other parts when necessary.

2.1 The Tensor Program Ansatz: Representing Vectors via Random Variables

As we will see, as width becomes large, the entries of the (pre-)activation vectors and their gradients will become roughly iid (just like in the SGD case), both at initialization (which is easy to see) and training (which is harder to see). Hence any such vector’s behavior can be tracked via a random variable that reflects the distribution of its entries. While we call this the “Tensor Program Ansatz”, it is a completely rigorous calculus as seen below in Section 2.6 (as well as in previous papers in the Tensor Programs series for SGD).

Furthermore, this notation cleanly handles the multi-vector case when x=(x1,…,xk)\bm{x}=(x^{1},\ldots,x^{k}) is an n×kn\times k matrix where kk is fixed as n→∞n\to\infty:

⟨x\hstretch0.7\talloblongy⟩\langle\bm{x}\hstretch{0.7}{\talloblong}\bm{y}\rangle represents the limit of x⊤y/n\bm{x}^{\top}\bm{y}/n.Note that later, we will consider x\bm{x} of shape n×k1×⋯×krn\times k_{1}\times\cdots\times k_{r}, in which case \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}\bm{x}\rangle and ⟨x\hstretch0.7\talloblong\langle\bm{x}\hstretch{0.7}{\talloblong} both have shape k1×⋯×krk_{1}\times\cdots\times k_{r}, and ⟨x\hstretch0.7\talloblongx⟩\langle\bm{x}\hstretch{0.7}{\talloblong}\bm{x}\rangle has shape k1×⋯×kr×k1×⋯×krk_{1}\times\cdots\times k_{r}\times k_{1}\times\cdots\times k_{r}.

Because we will often need to multiply a ket with a diagonal matrix, we introduce a shorthand:

if x\bm{x} is n×kn\times k and χ\bm{\chi} is a kk-dimensional vector.

Likewise, if both x\bm{x} and y\bm{y} have shape n×kn\times k, the expression

which corresponds to the limit of 1nw⊤xy⊤\frac{1}{n}\bm{w}^{\top}\bm{x}\bm{y}^{\top}. This definition of \hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}\bm{x}\rangle\langle\bm{y}\hstretch{0.7}{\talloblong} makes the expressions

unambiguous (since any way of ordering the operations give the same answer).

where \left(\hstretch{0.7}{\talloblong}y^{1}\rangle^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}},\ldots,\hstretch{0.7}{\talloblong}y^{k}\rangle^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}},\hstretch{0.7}{\talloblong}\bm{z}\rangle^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}}\right) is an iid copy of (\hstretch0.7\talloblongy1⟩,…,\hstretch0.7\talloblongyk⟩,\hstretch0.7\talloblongz⟩)\left(\hstretch{0.7}{\talloblong}y^{1}\rangle,\ldots,\hstretch{0.7}{\talloblong}y^{k}\rangle,\hstretch{0.7}{\talloblong}\bm{z}\rangle\right) independent from \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}\bm{x}\rangle and the expectation is taken only over the former. This is just like, in the finite nn case,

where ⊗\otimes denotes outer product of vectors and expectation is taken over everything.

Note ϕ(\hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblong)\phi(\hstretch{0.7}{\talloblong}\bm{x}\rangle\langle\bm{y}\hstretch{0.7}{\talloblong}) is not the image of the operator \hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}\bm{x}\rangle\langle\bm{y}\hstretch{0.7}{\talloblong} under ϕ\phi in the continuous function calculus of operators, but rather a “coordinatewise application” of ϕ\phi. For example, if ϕ(t)=t2\phi(t)=t^{2}, then ϕ(\hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblong)\phi(\hstretch{0.7}{\talloblong}x\rangle\langle y\hstretch{0.7}{\talloblong}) is not \hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblongx⟩⟨y\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}x\rangle\langle y\hstretch{0.7}{\talloblong}x\rangle\langle y\hstretch{0.7}{\talloblong}, the latter being what typically “squaring an operator” means, but rather \hstretch0.7\talloblongx⟩2⟨y\hstretch0.7\talloblong2=\hstretch0.7\talloblongx⊙x⟩⟨y⊙y\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}x\rangle^{2}\langle y\hstretch{0.7}{\talloblong}^{2}=\hstretch{0.7}{\talloblong}x\odot x\rangle\langle y\odot y\hstretch{0.7}{\talloblong}.

In later applications, when ϕ\phi is an update function (such as QtQ_{t} in Eq. 2.1), this will be clear from context. For example, the bar notation in \hstretch0.7\talloblongdhtl⟩χt⟨xtl−1\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}d\bm{h}^{l}_{t}\rangle{}_{\bm{\chi}_{t}}\langle\bm{x}^{l-1}_{t}\hstretch{0.7}{\talloblong}} abbreviates QtlQ^{l}_{t} where l,tl,t are the same as in dhtld\bm{h}^{l}_{t} inside. Then we use the much lighter “bar” notation

In contrast to the cases above, when an expression involves only kets (or bras), then the usual calculus of kets as random variables or vectors apply, e.g., \hstretch0.7\talloblongx⟩⊙\hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}\bm{x}\rangle\odot\hstretch{0.7}{\talloblong}\bm{y}\rangle is just the random vector formed from entrywise product of \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}\bm{x}\rangle and \hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}\bm{y}\rangle.From readers with quantum mechanics background, beware that \hstretch0.7\talloblongx⟩\hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}x\rangle\hstretch{0.7}{\talloblong}y\rangle in our context is the product of random variables \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}x\rangle and \hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}y\rangle, which is not equal to their “tensor product” (which would be written \hstretch{0.7}{\talloblong}x\rangle\hstretch{0.7}{\talloblong}y\rangle^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}}).

For readers familiar with the Tensor Programs papers, this new “bra-ket” notation (aka Dirac notation) relates to the old Z∙Z^{\bullet} notation by

2.2 IID Copies

2.3 Big-O Notation

Following previous papers of the Tensor Programs series, we adopt the following semantics of big-O notation, which concerns the “typical size” of entries of a tensor rather than the norm of the tensor (as is the more common usage of big-O notation). Therefore, the reader must internalize this notation sooner rather than later to avoid confusion.

Given a sequence x={x(n)}n=1∞\bm{x}=\{\bm{x}(n)\}_{n=1}^{\infty} of random tensors, where x(n)\bm{x}(n) can have different shapes for different nn, we write x=Θ(n−a)\bm{x}=\Theta(n^{-a}) and say x\bm{x} has coordinates (or entries) of size Θ(n−a)\Theta(n^{-a}) if there exist constants A,B>0A,B>0 such that almost surely,Here “almost surely” is with respect to the probability of the entire sequence x\bm{x}. for sufficiently large nn,

where #x(n)\#\bm{x}(n) is the number of entries in x(n)\bm{x}(n). We make similar definitions for O(n−a)O(n^{-a}) and Ω(n−a)\Omega(n^{-a}).

Note the constants A,BA,B can depend on everything except nn; in concrete contexts below, such constants can, for example, depend on neural network architecture, training time, optimizer, etc, but just not width.

Most often, x\bm{x} will have “approximately iid” coordinates, so the notation x=Θ(n−a)\bm{x}=\Theta(n^{-a}) can be interpreted intuitively to say x\bm{x} has coordinates of “empirical standard deviation” Θ(n−a)\Theta(n^{-a}), which justifies the name.

Chapter 2 Exposition of Main Results

Here we explain our main results while later chapters will prove them. We begin by isolating a concept that captures most of adaptive optimizers, namely entrywise optimizers (Section 2.1), which forms the focus of this work. By considering how to scale the learning rate, initialization, and multipliers (a so-called abcd-parametrization), we catalogue all natural ways of taking infinite-width limits (Section 2.2). We study the archetypical examples, the (canonical generalizations of) neural tangent (NT) (Section 2.4) and the maximal update (μ\mu) (Sections 2.5 and LABEL:{sec:deepmaximalupdate}) parametrizations, and describe their infinite-width limits. More generally, we classify all possible limits of abcd-parametrizations (Section 2.8): while most parametrizations are degenerate in one way or another, the rest can be divided into the feature learning and the operator regimes, the latter being the nonlinear counterpart of kernel regime. The μ\mu and NT limits are respectively the “maximal” elements of each regime in that all parameters contribute to the function evolution. Nevertheless, like in the SGD case, all operator regime limits, including the NT limit, do not learn features and trivialize transfer learning. While all of the above stars the MLP as the instructional architecture, finally we write down the NT and μ\mu limits for any architecture (Section 2.9).

Underlying these results is the new Tensor Program language, \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top, that expresses the so-called nonlinear outer products (Section 2.6). We formulate the algorithm, aka the Master Theorem, to compute the infinite-width limit of any \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program. New techniques, such as new notions of equivalence of random vectors, are needed to prove the Master Theorem; we overview the proof in Section 2.11 before giving it in full in Chapter 4.

What does one mean by adaptive optimization? Both SGD and Adam, prototypical optimizers in deep learning, have entrywise updates, where parameter updates take the form of a function of the current and/or past gradients. This turns out to be a concept that captures most of adaptive optimizers.

where mm and vv are both functions of the past gradients g0,…,gtg_{0},\ldots,g_{t} and ϵ>0\epsilon>0 is there for numerical stability. For example, in Adam , mm and vv are respectively the exponential moving averages of them and their squares, resulting in the following unwieldy expression:

where β1,β2\beta_{1},\beta_{2} are Adam’s momentum hyperameters. We can also consider a simpler “memoryless” version of this, namely SignSGD :

We will also write memoryful and nonstationary for the opposite of memoryless and stationary. In this sense, SGD and SignSGD are both memoryless and stationary but Adam is neither. We will always present the memoryless stationary versions of our theorems first, as they carry across the main ideas. The full version (i.e., memoryful nonstationary) will always be a straightforward modification, though often requiring more notations.

Many other optimizers are covered by this entrywise update framework Eq. 2.1, including RMSProp, Adagrad, Adadelta, NAdam, Adamax, etc . However, some other ingredients of “adaptive” optimization, such as gradient clipping, weight decay, or momentum factoring as in Adafactor , are not directly covered. Nevertheless, using our new extension of Tensor Programs discussed in Section 2.6, it is straightforward to derive and classify the infinite-width limits including such ingredients, and we do so in Section 2.10. Such theorems will be by-and-large the same as what we have here (e.g., Dynamical Dichotomy 2.8.20 still holds), but the definitions of neural tangent and maximal update parametrizations (2.4.1,2.5.1) can change, as well as, e.g., the equations characterizing feature learning. See [47, Sec B.3] for further intuitive discussions.

If QtQ_{t} in Eq. 2.1 is nonlinear, then \textscNetsor⊤+\textsc{Netsor}\top^{+}, the most advanced version of Tensor Programs before this work, is unable to express Eq. 2.1 for hidden weights of a network (weight matrices where both dimensions tend to infinity). In this work, we extend \textscNetsor⊤\textsc{Netsor}\top to \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top that can express it and develop its Master Theorem.

2 abcd-Parametrizations

In this work, we consider how such optimization should be parametrized wrt the width of a neural network, generalizing the the abc-parametrization of .

We parametrize each weight as Wl=n−alwlW^{l}=n^{-a_{l}}w^{l} for actual trainable parameter wlw^{l}

We initialize each wαβl∼N(0,n−2bl)w_{\alpha\beta}^{l}\sim\mathcal{N}(0,n^{-2b_{l}})

The learning rate is ηn−cl\eta n^{-c_{l}} for some width-independent η\eta

The gradients of wlw^{l} are multiplied by ndln^{d_{l}} before being processed by QtlQ^{l}_{t}: i.e., the update at time tt is

where gs,s=0,…,tg_{s},s=0,\ldots,t, are the gradients of wlw^{l} at time ss and QtlQ^{l}_{t} is applied entrywise.

A simple example is the “standard parametrization” that is the default for, e.g., PyTorch, where nothing scales with width other than the initialization.

The standard abcd-parametrization (SP) is defined by

In 2.2.1, beyond the obvious addition of scaling exponent dld_{l}, compared to abc-parametrization of , we also now have layer dependent clc_{l}. This is without loss of generality, because of the redundancy in al,bl,cla_{l},b_{l},c_{l}, as shown in [45, Eq 5]. This takes the more general form as follows for abcd-parametrization:

In the case of SGD (i.e., when Qtl(g0,…,gt)=gtQ^{l}_{t}(g_{0},\ldots,g_{t})=g_{t}), an abcd-parametrization reduces to an abc-parametrization with the mapping

As in , our concern here is the correct way to scale with width. In practice, there should be tunable hyperparameters in front of the powers of nn in 2.2.1, as investigated in .

In the idealized case of Adam and similar adaptive optimizers where the ϵ\epsilon in Eq. 2.2 is 0, QtlQ^{l}_{t} is degree-0 homogeneous and dld_{l} itself is redundant. When ϵ>0\epsilon>0, this is no longer true. But the almost homogeneity yields an alterative but equivalent way to define dld_{l}: instead of gsg_{s} being multiplied by ndln^{d_{l}}, we let ϵ\epsilon be multiplied by n−dln^{-d_{l}}.

If one sets the global learning rate for SP (2.2.2) to its largest stable value, then for SGD, SP is in the kernel regime . But for SignSGD and Adam, assuming perfect scale invariance, SP’s largest stable learning rate is Θ(1/n)\Theta(1/n), so that with this setting (i.e., setting cl=1c_{l}=1 for every ll), SP is actually in the feature learning regime. The reader is not expected to understand the underlying reasoning at this point, but the claim above can be derived by calculating r=0r=0 from 2.8.5 and invoking 2.8.12 and 2.8.19. This difference in default scaling may be a contributing factor to the success of Adam compared to SGD.

3 Setup

Here we set up the notation and conventions regarding the data, (pre)activations, and training of the network as well as the main technical assumptions for our rigorous results.

While considered only the batch-size-1 case to simplify notation, here, because of our notational advance, we can afford to consider the following more general setting.

Furthermore, we can implement train-test split via εt\varepsilon_{t}: For example, ξ\bm{\xi} can be split into two parts, ξ=(ξtrain,ξtest)\bm{\xi}=(\bm{\xi}^{train},\bm{\xi}^{test}) such that εt\varepsilon_{t} is always 0 on the ξtest\bm{\xi}^{test}. Then the evolution of ft\bm{f}_{t} can track the evolution of function values on the test set due to changes from the training set.

The εt\varepsilon_{t} framework more generally covers settings like reinforcement and online learning where the error signal is not obtained from just a simple loss function.

For all rigorous results in this work, we will consider the following smoothness assumption. This is sufficient for deriving the NTK and μ\muP limits but more assumptions, stated later, are required for Dynamical Dichotomy, i.e., the classification of abcd-parametrizations.

This is a very weak assumption satisfied by typical loss functions (e.g., MSE or cross entropy), update functions (e.g., SGD or Adamspecifically, Adam in the form Eq. 2.2 with ϵ>0\epsilon>0), and nonlinearities (e.g., tanh or gelu). The notable exception here is that relu itself is not covered because its derivative has a discontinuity. But this is a common technicality not treated in the theoretical literature. Nevertheless, we expect all theorems in this work should apply to relu as well and can be proven rigorously in the future.

With this setup in mind, we next describe the two prototypical infinite-width limits, the neural tangent and maximal update limits, for nonlinear entrywise updates before completely classifying the space of abcd-parametrization.

4 Neural Tangent

The “classical” neural tangent (abc-)parametrization (NTP) can be generalized easily to an abcd-parametrization using the intuition that the input to any nonlinear update function should be Θ(1)\Theta(1) (we won’t go through this calculation here but c.f. 2.8.8 and LABEL:{lemma:faithfulconditionsinit}). After defining this generalization next, we adapt the well-known continuous-time heuristic for deriving the NTK limit to the nonlinear updates case (Eq. 2.7), before writing down a succinct expression of the infinite-width limit made possible by our new bra-ket notation (Eqs. 2.8 and 2.9).

The neural tangent abcd-parametrization (NTP) is defined (modulo Eq. 2.5) by

Reducing to abc-parametrization in the SGD case via Eq. 2.6 (i.e., subtracting the last 2 rows), we recover exactly the classical NTP [45, Table 1].

4.1 Continuous Time Intuition

where Lt=L(ft)\mathcal{L}_{t}=\mathcal{L}(\bm{f}_{t}) and L\mathcal{L} is the loss function. For a general (memoryless stationary) update function QQ, this just becomesTechnically, we should include terms involving dld_{l} from 2.2.1 in Eq. 2.7, but for simplicity, let’s just assume that QQ is temporarily redefined to have already included them

Now we turn to make this intuition rigorous.

4.2 Infinite-Width Limit

where the “bar” notation abbreviates application of QQ as in Eq. 1.2.

As an example, when QQ is identity, the “bar” can be removed, and KQ\mathcal{K}_{Q} reduces to the linear operator represented by the NTK:Again, χ\bm{\chi} is a row vector. In prior works, it’s usually treated as a column vector in which case one would write KχK\bm{\chi} instead.

As another example, consider Q=sign⁡Q=\operatorname{sign} (Eq. SignSGD\mathtt{SignSGD} with ϵ=0\epsilon=0). If the batch size is 1, i.e., χ\bm{\chi} is nonzero on exactly one input, say ξb,b∈[M]\xi^{b},b\in[\mathcal{M}], then Eq. 2.8 is linear in sign⁡(χ)\operatorname{sign}(\bm{\chi}) because sign⁡(xy)=sign⁡(x)sign⁡(y)\operatorname{sign}(xy)=\operatorname{sign}(x)\operatorname{sign}(y). Thus,

for each a∈[M]a\in[\mathcal{M}]. This expression was concurrently derived in . However, when batch size is larger than 1, KQ(χ)\mathcal{K}_{Q}(\bm{\chi}) is no longer linear in sign⁡(χ)\operatorname{sign}(\bm{\chi}) generally, and there is no simplification like this. In particular, in the continuous time gradient flow setting, SignSGD with a large batch size is not equivalent to that with batch size 1 but very small learning rate, in contrast to SGD.

We can now state the generalized Neural Tangent limit for memoryless stationary updates. In particular, this covers SGD and SignSGD (Eq. SignSGD\mathtt{SignSGD}).

Consider any training routine (2.3.1) with memoryless stationary update function QQ (2.1.1). Adopt 2.3.2. Then

The proof can be found in Section 3.3. Note, as in the SGD case, f˚t\mathring{f}_{t} is deterministic conditioned on f˚0\mathring{f}_{0}. We remind the reader that Eq. 2.9 simultaneously covers full batch, mini-batch, train-test split, and other schemes by changing εt\varepsilon_{t}, as discussed under 2.3.1. This will be the same for all theorems in this work.

The memoryless stationary condition allowed a clean mathematical formulation of the NT limit. But we can remove it easily at the cost of some more notation.

where \hstretch0.7\talloblongdhl⟩χ≤t⟨xl−1\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}d\bm{h}^{l}\rangle{}_{\bm{\chi}_{\leq t}}\langle\bm{x}^{l-1}\hstretch{0.7}{\talloblong}} is shorthand for Qtl(\hstretch0.7\talloblongdhl⟩χ0⟨xl−1\hstretch0.7\talloblong,…,\hstretch0.7\talloblongdhl⟩χt⟨xl−1\hstretch0.7\talloblong)Q^{l}_{t}\left(\hstretch{0.7}{\talloblong}d\bm{h}^{l}\rangle{}_{\bm{\chi}_{0}}\langle\bm{x}^{l-1}\hstretch{0.7}{\talloblong},\ldots,\hstretch{0.7}{\talloblong}d\bm{h}^{l}\rangle{}_{\bm{\chi}_{t}}\langle\bm{x}^{l-1}\hstretch{0.7}{\talloblong}\right).

With this in mind, the following theorem yields the NT limit of Adam (Eq. Adam\mathtt{Adam}) as a corollary.

If the update functions Q\bm{Q} are memoryless but not necessarily stationary, then 2.4.7 holds with Eq. 2.9 replaced by

For general Q\bm{Q}, not necessarily memoryless, 2.4.7 holds with Eq. 2.9 replaced by

The proof is a straightforward adaptation of the proof of 2.4.7 in Section 3.3.

4.3 Lack of Feature Learning

Just as for the SGD case, the neural tangent limit cannot learn features, for example, in the sense that the feature kernel (the Gram matrix of the input representations) does not evolve during training (2.8.19). Likewise, pretraining is futile in this limit as finetuning it would be no different than finetuning a randomly initialized network (2.8.22). Nevertheless, the NT limit is “maximal” among all nondegenerate limits without feature learning in that all other limits are just given by a neural tangent operator that involves a subsum of Eq. 2.8 (2.8.21).

5 Maximal Update

As for NTP, the “classical” maximal update (abc-)parametrization can be generalized easily to an abcd-parametrization using the intuition that the input to any nonlinear update function should be Θ(1)\Theta(1) (c.f. 2.8.8 and LABEL:{lemma:faithfulconditionsinit}). After defining this generalization next, we study its limit for shallow MLP. The deep case will have to wait until we develop the new Tensor Program theory in the next section.

The maximal update abcd-parametrization (μ\muP) is defined (modulo Eq. 2.5) by

If we assume that the Adam update function (Eq. Adam\mathtt{Adam}) is perfectly scale-invariant, then the dld_{l} row can be dropped, yielding [47, Table 8] regarding Adam LR scaling.

To recover the abc version of μ\muP in [45, Table 1] for SGD, just apply Eq. 2.5 to the l=1,L+1l=1,L+1 columns with θ=\nicefrac−12\theta=\nicefrac{{-1}}{{2}} and then apply Eq. 2.6 (i.e., subtracting the last 2 rows).

5.1 Shallow Infinite-Width Limit

We focus on the shallow case first because its μ\mu-limit is fairly easy to describe. We shall cover the general case after we describe the outer product tensor program \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top in Section 2.6. Adopt the following leaner notation:

Consider any training routine (2.3.1) with memoryless stationary update function QQ (2.1.1). Adopt 2.3.2. As n→∞n\to\infty, ft\bm{f}_{t} for the network in Eq. 2.13 converges almost surely to some f˚t\mathring{\bm{f}}_{t} for every tt, which is recursively defined from t=0t=0 by the following dynamics:

where the bar notation (Eq. 1.2) abbreviates application of QQ and ⋅\cdot denotes dot product.

Again, one can note that if QQ is identity, then we recover the SGD equations from [45, Theorem 6.1].

The proof of 2.5.2 is given in Section 3.2. This can be adapted straightforwardly to cover the nonstationary or memoryful cases:

If Q\bm{Q} is memoryless but not stationary, then 2.5.2 holds if the bar in Eq. 2.15 (resp. Eq. 2.14) is interpreted as Qt2Q^{2}_{t} (resp. Qt1Q^{1}_{t}).

If Q\bm{Q} is not memoryless, then 2.5.2 holds if Eqs. 2.15 and 2.14 are replaced with

2.5.2 and 2.5.3 also hold if the output dimension is greater than 1, in which case the equations should be interpreted slightly differently; see Eq. 2.35.

As mentioned above, the gradient processing done by entrywise optimizers in general cannot be expressed previously by even the most expressive Tensor Program language. Here we fix this issue by adding “nonlinear outer products” to Tensor Programs. Like in previous works, we algebraically construct such programs’ limit objects (“kets”, in our new notation) and link them to the analytic properties of vectors in the corresponding programs via a Master Theorem. Unlike previous works, we also construct the limits of matrices, which are operators on kets. This is purely a conceptual change, but this perspective helps express the deep μ\mu-limit much more efficiently than possible before.

choose a matrix W∈WW\in\mathcal{W} and vector x∈xx\in\bm{x}, and append to x\bm{x} the vector

where xγ\bm{x}_{\gamma} is the γ\gammath row in x\bm{x} as a matrix and ∣x∣|\bm{x}| is the number of vectors in x\bm{x}. We call r+1r+1 the order of ψ\psi in this context.

Note that while 2.6.1 doesn’t directly give an instruction to transform scalars into scalars (in contrast to MatMul and OuterNonlin that transforms vectors into vectors), this can be done by combining instructions.

Think of ψ\psi as a function that ignores vector arguments and depend only on scalars, and use it in OuterNonlin to create the vector whose entries are identically equal to ψ(c)\psi(\bm{c}). Applying Avg to this vector gives the desired result. ∎

6.2 Setups

We are interested in the behavior of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top programs in two typical settings:

AssumeCompared to , we have WLOG simplified the setup by assuming 1) σW=1\sigma_{W}=1 for every WW, 2) Zx0=\hstretch0.7\talloblongx0⟩=N(0,I)Z^{\bm{x}^{0}}=\hstretch{0.7}{\talloblong}\bm{x}^{0}\rangle=\mathcal{N}(0,I), and 3) θ˚=0\mathring{\theta}=0 for every θ∈c0\theta\in\bm{c}^{0}. This is WLOG because σW\sigma_{W}, θ˚\mathring{\theta}, and the mean and covariance of \hstretch0.7\talloblongx0⟩\hstretch{0.7}{\talloblong}\bm{x}^{0}\rangle can all be absorbed into OuterNonlin via the appropriate linear functions.

Every entry of every W∈WW\in\mathcal{W} is sampled iid from N(0,1/n)\mathcal{N}(0,1/n).

Every entry of every initial vector x∈x0x\in\bm{x}^{0} is sampled iid from N(0,1)\mathcal{N}(0,1).

The initial scalars c0\bm{c}^{0} converge almost surely to 0.

All functions ψ\psi used in OuterNonlin are pseudo-Lipschitz.

Assume the same as 2.6.3 but replace 1) and 4) with

there exists a sequence ν3,ν4,…>0\nu_{3},\nu_{4},\ldots>0 such that all matrices have independent entriesFor all of our results, it does not matter how the matrices for different nn are correlated, e.g., whether they are independent or the matrices are all upper left submatrix of fixed infinite iid matrix. This is because our proof only depends on how moments of vectors behave with nn, which does not care about such inter-nn correlations. drawn from distributions with zero mean, variance n−1n^{-1}, and all higher kkth moment bounded by νkn−k/2\nu_{k}n^{-k/2}; andInitial vectors are still sampled from N(0,1)\mathcal{N}(0,1), as in .

We further require initial scalars c0\bm{c}^{0} to have moments of all orders bounded in nn.But the moments do not need to be bounded as a function of the order.

While 2.6.4 allows more general distributions for matrix entries, its nonlinearities need to have more smoothness than 2.6.3. See for more discussions on these setups.

6.3 Limit Objects

As before, when the width nn of the program goes to infinity, one can infer how the program behaves via a calculus of random variables. We define them below via the new ket notation instead of the earlier ZZ notation.

We recursively define the random variable \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}x\rangle (called a ket) for each vector xx and deterministic number θ˚\mathring{\theta} for each scalar θ\theta in the program. For a vector WxWx produced by MatMul, we also define random variables \hstretch0.7\talloblongWx⟩ ⁣^ \hstretch{0.7}{\talloblong}Wx\hat{\rangle\mkern-3.0mu}\mkern 3.0mu and \hstretch0.7\talloblongWx⟩ ⁣˙ \hstretch{0.7}{\talloblong}Wx\dot{\rangle\mkern-3.0mu}\mkern 3.0mu (called hat-ket and dot-ket respectively) such that \hstretch0.7\talloblongWx⟩=\hstretch0.7\talloblongWx⟩ ⁣^ +\hstretch0.7\talloblongWx⟩ ⁣˙ \hstretch{0.7}{\talloblong}Wx\rangle=\hstretch{0.7}{\talloblong}Wx\hat{\rangle\mkern-3.0mu}\mkern 3.0mu+\hstretch{0.7}{\talloblong}Wx\dot{\rangle\mkern-3.0mu}\mkern 3.0mu. Their recursive definitions are given below.

If xx is generated by OuterNonlin as in Eq. 2.17, then

Every dot-ket is a linear combination of previous kets, expressed by the following equation

Eq. 2.19 is the same equation [45, Zdot] but formulated much more succinctly in the bra-ket notation:

The bra ⟨∇W⊤x\hstretch0.7\talloblong\langle\nabla_{W^{\top}\bm{x}}\hstretch{0.7}{\talloblong} is really the “dual” of   ⁣⟨^W⊤x\hstretch0.7\talloblong\mkern 3.0mu\hat{\mkern-3.0mu\langle}W^{\top}\bm{x}\hstretch{0.7}{\talloblong} in the sense thatBut note this identity only holds when x\bm{x} contains all vectors zz where \hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}y\rangle depends on \hstretch0.7\talloblongW⊤z⟩ ⁣^ \hstretch{0.7}{\talloblong}W^{\top}z\hat{\rangle\mkern-3.0mu}\mkern 3.0mu.

This follows from Stein’s lemma. In the language of Riemannian geometry, if we think of ⟨x\hstretch0.7\talloblongx⟩\langle\bm{x}\hstretch{0.7}{\talloblong}\bm{x}\rangle as a metric tensor in a Riemannian manifold, then ⟨∇W⊤x\hstretch0.7\talloblong\langle\nabla_{W^{\top}\bm{x}}\hstretch{0.7}{\talloblong} is obtained from   ⁣⟨^W⊤x\hstretch0.7\talloblong\mkern 3.0mu\hat{\mkern-3.0mu\langle}W^{\top}\bm{x}\hstretch{0.7}{\talloblong} by “lowering the index.” Thus, a more appropriate notation for ⟨∇W⊤x\hstretch0.7\talloblong\langle\nabla_{W^{\top}\bm{x}}\hstretch{0.7}{\talloblong} is perhaps

However, this “duality” is not essential for understanding this paper, so we keep the more intuitive notation ⟨∇W⊤x\hstretch0.7\talloblong\langle\nabla_{W^{\top}\bm{x}}\hstretch{0.7}{\talloblong} instead.

Let WW be an initial matrix in a \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program. We define \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} to be the linear operator on kets To be rigorous, we need to specify the “Hilbert space” of kets. This is somewhat pedantic and not crucial to the key points of this paper, but the Hilbert space can be constructed as follows: Let σ(π)\sigma(\pi) be the σ\sigma-algebra generated by the kets of the program π\pi. Let \Sigma(\pi)\mathrel{\raisebox{-1.29167pt}{\mathbin{\overset{\text{{def}}}{=}}}}\bigcup_{\pi^{\prime}\supseteq\pi}\sigma(\pi) be the union (more precisely, the direct limit) of σ(π′)\sigma(\pi^{\prime}) over all programs π′\pi^{\prime} extending π\pi. Then the Hilbert space in question is the L2L^{2} space of random variables over the Σ\Sigma of our program. that acts by

Any linear operator that is equal to \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} for some initial matrix WW is called an initial operator. A set of initial operators is called independent if their corresponding initial matrices are distinct.i.e., independently sampled in 2.6.3 or 2.6.4.

We have already seen an example of a linear operator on kets: expressions like \hstretch0.7\talloblongy⟩χ⟨z\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}y\rangle{}_{\chi}\langle z\hstretch{0.7}{\talloblong}}. 2.6.7 puts \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} in the same space as \hstretch0.7\talloblongy⟩χ⟨z\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}y\rangle{}_{\chi}\langle z\hstretch{0.7}{\talloblong}}. This allows us to add them in the sequel, which simplifies the presentation of the μ\mu-limit.

We can immediately see a few properties of \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} by considering the counterpart when nn is finite.

For any initial matrix WW, the operator \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} is bounded.i.e., there exists real number L>0L>0 such that for any ket \hstretch0.7\talloblongx⟩\hstretch{0.7}{\talloblong}x\rangle, ⟨Wx\hstretch0.7\talloblongWx⟩≤L⟨x\hstretch0.7\talloblongx⟩\langle Wx\hstretch{0.7}{\talloblong}Wx\rangle\leq L\langle x\hstretch{0.7}{\talloblong}x\rangle.

This follows from the classical operator norm tail bounds on iid random matrices (see, e.g., ), which passes to the limit via 2.6.10 below. ∎

For any initial matrix, the operator \hstretch0.7\talloblongW⊤\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W^{\top}\hstretch{0.7}{\talloblong} is the adjoint“adjoint” in the sense of Hilbert space operators; see Footnote 24. of the operator \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong}.

i.e., \hstretch0.7\talloblongW⊤\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W^{\top}\hstretch{0.7}{\talloblong} is the adjoint of \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong}. ∎

6.4 The Master Theorem

Our key foundational result is that the Master Theorem of earlier Tensor Programs generalizes to \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top programs. This underlies all of our theorems about adaptive optimization.

Consider a \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program with (Gaussian) 2.6.3 or (non-Gaussian) 2.6.4. Then, as n→∞n\to\infty, its scalars c\bm{c} satisfy

7 Maximal Update for Deep MLP

In this section we describe the infinite-width limit of μ\muP for arbitrarily deep MLP. The main difference here compared to the shallow case (Section 2.5.1) is the presence of n×nn\times n iid matrices in the middle of the network, which behaves like initial operators (2.6.7) in the limit.

Consider any training routine (2.3.1) with memoryless stationary update function QQ (2.1.1). Adopt 2.3.2. As n→∞n\to\infty, ft\bm{f}_{t} converges almost surely to some f˚t\mathring{\bm{f}}_{t} for every tt, which is recursively defined from t=0t=0 by the following dynamics: We remind the reader that, in μ\muP (2.5.1), wtL+1w_{t}^{L+1} is the output layer weights normalized so that wtL+1w_{t}^{L+1} has Θ(1)\Theta(1)-sized entries (whereas WtL+1=1nwtL+1W_{t}^{L+1}=\frac{1}{n}w_{t}^{L+1}). The same point applies to wt1w_{t}^{1} (but Wt1=wt1W_{t}^{1}=w_{t}^{1}). We use lower case ww for input and output weights while upper case WW for other layers to emphasize that the former are vector-like parameters (one dimension going to ∞\infty) while others are matrix-like (two dimensions going to ∞\infty).

(Initialization) \hstretch0.7\talloblongW02\hstretch0.7\talloblong,…,\hstretch0.7\talloblongW0L\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W^{2}_{0}\hstretch{0.7}{\talloblong},\ldots,\hstretch{0.7}{\talloblong}W^{L}_{0}\hstretch{0.7}{\talloblong} are independent initial operators (2.6.7), and

One can check that when L=1L=1, we recover 2.5.2.

Here, Eq. 2.21 uses the operator semantics discussed in and below 2.6.7 to cleanly express the parameter update. When unwinded, Eq. 2.21 is equivalent to

The proof of 2.7.1 and 2.5.2 can be found in Section 3.2.

Observe that all of the equations above are essentially the “ket” versions of what one does in a finite network. This holds for general architectures: the μ\mu-limit can always be obtained straightforwardly transcribing the tensor operations in a finite network to their counterparts acting on kets in the infinite-width limit. See 2.9.25. In this sense, μ\muP is the most natural parametrization.

As before, the general case without stationarity or memorylessness is straightforward given 2.7.1, albeit with some more notation.

If Q\bm{Q} is memoryless but not stationary, then 2.7.1 holds if the bars in Eqs. 2.21, 2.20 and 2.22 are interpreted as QtlQ^{l}_{t} (where ll is the same as the layer index appearing in Wt+1lW^{l}_{t+1} or wt+1lw^{l}_{t+1} on the LHS).

If Q\bm{Q} is not memoryless, then 2.7.1 holds if Eqs. 2.21, 2.20 and 2.22 are replaced with

2.5.2 and 2.5.3 also hold if the output dimension is greater than 1, but the equations need to be interpreted slightly differently. See Eq. 2.35.

For SGD, showed μ\muP is the unique stable parametrization where every weight matrix is updated maximally [45, Defn 5.2] and the output weight matrix is also initialized maximally [45, Defn 5.4]. These definitions still make sense here and this statement holds as well if “stable” is replaced with “stable and faithful” (2.8.7, 2.8.8).

8 Dynamical Dichotomy: The Classification of abcd-Parametrizations

In this section, we characterize the infinite-width limits of all possible abcd-parametrizations under reasonable assumptions of the optimizer and network nonlinearity, generalizing the work done for SGD in . First, we filter out the uninteresting limits: the unstable (training blows up), the trivial (training gets stuck at initialization), and the unfaithful (the update functions Q\bm{Q} and/or nonlinearities ϕ\phi are trivialized). We sort all other limits into a Dynamical Dichotomy (2.8.20) between feature learning and operator regimes (the latter being the nonlinear version of kernel regime in the SGD case). The μ\mu and NT limits are respectively their archetypes (indeed, the maximal parametrizations in these regimes (LABEL:{rem:maximality})). Like in the SGD case, this dichotomy is not tautological: it implies certain network training dynamics cannot be the infinite-width limit of any abcd-parametrization (2.8.24). Likewise, pretraining is still futile in the operator regime even with adaptive optimizers (2.8.22).

Our results here hold for not only memoryless stationary but also memoryful nonstationary updates.

For proving the Dynamical Dichotomy Theorem for entrywise updates, we will make the following technical assumptions. Roughly speaking, we will focus only on “relu-like” nonlinearities and sign-preserving update functions with mild smoothness.

ϕ\phi and ϕ′\phi^{\prime} are nonnegative and pseudo-Lispchitz.

QtlQ^{l}_{t} is pseudo-Lipschitz for all l,tl,t, and Q0lQ^{l}_{0} preserves sign for all ll.

As in , the pseudo-Lipschitzness of ϕ,ϕ′,Qtl\phi,\phi^{\prime},Q^{l}_{t} are sufficient for letting us use our new Master Theorem (2.6.10) to take the limits of any parametrization, get the operator limits, and prove their properties. Any assumptions beyond such is required only for proving that r=0r=0 implies feature learning (3.1.3). In particular, the reason we only require Q0lQ^{l}_{0} to preserve signs (instead of for all tt) is because we will only need to show that features evolve in the first step.

8.2 Size of Feature Learning

In , the number rr of an abc-parametrization measures how much the features change over training. We adapt its definition to abcd-parametrizations.

Morally, in any “reasonable” abcd-parametrization (in the sense of stable (2.8.7) and faithful (2.8.8) discussed below), we have ΔWtlxtl−1=Θ(n−rl)\Delta W_{t}^{l}\bm{x}_{t}^{l-1}=\Theta(n^{-r_{l}}) and ΔxtL=Θ(n−r)\Delta\bm{x}_{t}^{L}=\Theta(n^{-r}), where Δ∙t=∙t−∙0\Delta\bullet_{t}=\bullet_{t}-\bullet_{0} is the cumulative change of ∙t\bullet_{t}. Concretely, for NTP and μ\muP we have, for all l∈[1,L]l\in[1,L],

The reader should sanity check that rlr_{l} and rr are invariant to the symmetry in Eq. 2.5.

Ostensibly, 2.8.5 is different from and much simpler than [45, Defn 3.2] for abc-parametrizations. But, in fact, they are equivalent for stable and faithful abcd-parametrizations (under the reduction Eq. 2.6 to abc-parametrizations). The comparative simplicity of 2.8.5 is also due to the faithfulness.

8.3 Stability and Faithfulness

We will only care about any parametrization satisfying two basic properties: 1) does not blow up during at initialization or during training as width →∞\to\infty and 2) does not trivialize the update functions QtlQ_{t}^{l}. The former property is known as stability and has already been studied in for SGD. The latter is specific to nonlinear entrywise updates, and we will call this the faithful property. By “trivialize,” we mean that the input to QtlQ_{t}^{l} is either i) too small and thus linearizing QtlQ_{t}^{l} around the origin or ii) too large and only depends on QtlQ_{t}^{l}’s behavior “around infinity”. Both scenarios ignore the bulk of QtlQ_{t}^{l}’s values as a function. If such behaviors are actually desired, then one can change QtlQ^{l}_{t} to such effects. For example, the linearizing behavior in case i) can be implemented by choosing a linear QtlQ_{t}^{l} and modifying cl,dlc_{l},d_{l} appropriately so that the input to QtlQ_{t}^{l} has constant typical size (wrt width).

Recall from Section 1.2.3 the entry-wise semantics of big-O notation. We formalize the stability and faithfulness properties below.

We say an abcd-parametrization of an LL-hidden layer MLP is

stable during training if for any training routine, any time t≥0t\geq 0, l∈[L]l\in[L], we have

We say the parametrization is stable if it is stable both at initialization and during training.

We say an abcd-parametrization is faithful at time tt if the input to QtlQ_{{}_{t}}^{l} is Θ(1)\Theta(1) for every l∈[L]l\in[L]. We also say it is faithful at initialization if this is true at t=0t=0.

The condition h0l,x0l=Θ(1)\bm{h}_{0}^{l},\bm{x}_{0}^{l}=\Theta(1) in Eq. 2.24 is in truth more of a “faithfulness to ϕ\phi” condition than just stability (which would strictly speaking be more like O(1)O(1) than Θ(1)\Theta(1)). But we never need to distinguish these notions, so following , we will keep the definition as is.

Adopt 2.8.2. An abcd-parametrization is stable at initialization iff

This condition is the same as [45, Thm H.6(1)]. For example, SP, NTP, and μ\muP are all stable at initialization. In this situation, some easy calculation shows that, at initialization, the last layer gradients have entry size Θ(n−aL+1)\Theta(n^{-a_{L+1}}) and while all other layers’ gradients have entry size Θ(n−al−aL+1−bL+1)\Theta(n^{-a_{l}-a_{L+1}-b_{L+1}}). Hence,

In Lemma 2.8.10, the abcd-parametrization is furthermore faithful at initialization iff

For example, NTP and μ\muP are faithful at initialization but SP (2.2.2) is not (but if Q\bm{Q} is scale invariant then SP is equivalent to a faithful parametrization).

Adopt 2.8.2. Suppose, at initialization, an abcd-parametrization is both faithful and stable. Then it remains so for all t≥1t\geq 1 iff

In words: 1) rl≥0r_{l}\geq 0 for all l∈[L]l\in[L] ensures the features do not blow up, while 2) rL+1≥0r_{L+1}\geq 0 and aL+1+bL+1+r≥1a_{L+1}+b_{L+1}+r\geq 1 resp. ensure that WtL+1xtL,W0L+1ΔxtL=O(1)W_{t}^{L+1}\bm{x}_{t}^{L},W_{0}^{L+1}\Delta\bm{x}_{t}^{L}=O(1), so ft\bm{f}_{t} does not blow up;Recall Δ∙t=∙t−∙0\Delta\bullet_{t}=\bullet_{t}-\bullet_{0} is the cumulative change of ∙t\bullet_{t}. finally, 3) bL+1≤cL+1b_{L+1}\leq c_{L+1} ensures that WL+1W^{L+1} does not change scale after updates, since otherwise the dld_{l} in Eq. 2.26 is no longer faithful.

One can check that 2.8.12 reduces to [45, Thm 3.3] (the stability characterization of abc-parametrizations) plus the additional constraint that WtL+1=O(W0L+1)W^{L+1}_{t}=O(W^{L+1}_{0}) for all tt (which is imposed by bL+1≤cL+1b_{L+1}\leq c_{L+1} in Eq. 2.27). As remarked above, this constraint is due to the faithfulness requirement. But in fact, if we allow dld_{l} to vary during training, then this constraint can be removed and the appropriate version of 2.8.12 would be equivalent to [45, Thm 3.3].

8.4 Nontriviality

Even among stable and faithful parametrizations, we are only interested in nontrivial parametrizations (as in ), where in the infinite width limit the network will not be stuck at initialization during training.

Nontriviality is characterized by a disjunction of equations in al,bl,cla_{l},b_{l},c_{l}, just as for SGD in .

Adopt 2.8.2. A stable and faithful abcd-parametrization is nontrivial iff

This is essentially equivalent to [45, Thm 3.4]. For example, NTP and μ\muP are both nontrivial.

8.5 Feature Learning and Operator Regimes

Finally, we ask: what are the different possible behaviors among the nontrivial, stable, and faithful parametrizations? As in , we will see a dichotomy between feature learning and a nonlinear version of the kernel regime which we call the operator regime.

For memoryless, nonstationary updates, we allow K\mathcal{K} to depend on tt. For general entrywise updates, we make the same definition if for all tt,

Notice that the operator regime is defined solely in the function space, without talking about the internals of the network, in contrast to feature learning.

We say an abcd-parametrization of an LL-hidden layer MLP admits feature learning in the llth layer if there exists some training routine such that

for some t≥0t\geq 0. We say the parametrization admits feature learning if it does so in any layer.

We say the parametrization fixes the llth layer features if for all training routine,

for all t≥0t\geq 0. We say the parametrization fixes all features if it does so in every layer.

We make similar definitions as above replacing feature with prefeature and xl\bm{x}^{l} with hl\bm{h}^{l}.

We say an abcd-parametrization of an LL-hidden layer MLP evolves the llth layer feature kernel if there exists some training routine such that

for some t≥0t\geq 0. We say the parametrization evolves feature kernels if it does so in any layer.

We say the parametrization fixes the llth layer feature kernel if for all training routine,

for all t≥0t\geq 0. We say the parametrization fixes all feature kernels if it does so in every layer.

We make similar definitions as above replacing feature with prefeature and xlx^{l} with hlh^{l}.

8.6 Classification of abcd-Parametrizations

The classification of abcd-parametrizations is similar to that of abc-parametrizations [45, Thm H.13]. We remind the reader that this holds for not only memoryless stationary but more generally memoryful nonstationary updates.

Adopt 2.8.2. Consider a nontrivial, stable, and faithful abcd-parametrization of an LL-hidden layer MLP. Then

feature kernel evolution in the LLth layer

prefeature kernel evolution in the LLth layer

fixes prefeature kernel in the LLth layer

If there is feature learning or feature kernel evolution or prefeature learning or prefeature kernel evolution in layer ll, then there is feature learning and feature kernel evolution and prefeature learning and prefeature kernel evolution in layers l,…,Ll,\ldots,L.

Consequently, we can generalize Dynamical Dichotomy to (nonlinear) entrywise updates.

A nontrivial, stable, and faithful abcd-parametrization either admits feature learning or is in the operator regime, but not both.

Of course, the canonical examples here are μ\muP in the feature learning regime and NTP in the operator regime. In the SGD case, LABEL:{thm:abcdclassification} and 2.8.20 are equivalent to their counterparts [45, Thm H.13, Cor H.14] other than a minor technical difference as discussed in 2.8.13.

The μ\mu and NT limits are resp. the “maximal” limits in the feature learning and operator regimes, in the sense that all parameter tensors contribute to the function update, and that any other limits in those regimes are just “downgrades” of μ\mu and NT limits by zeroing out the initialization or learning rate of some parameters. See also 2.7.5.

[45, Thm H.17] holds almost verbatim in our case as well, after replacing “stable” with “stable and faithful” and “kernel regime” with “operator regime”: Finetuning any pretrained network in the operator regime would be equivalent to finetuning a randomly initialized network. Thus, pretraining in the operator regime is useless.

In the memoryless stationary case, an operator regime limit resides solely in the function space picture, i.e. ft+1\bm{f}_{t+1} being solely determined by the function values ft\bm{f}_{t} themselves (as opposed to the internal activations of ff as well) along with learning rate η\eta and error signals εt\varepsilon_{t}. However, as in [45, Remark 3.11], this is not true of any feature learning limit because one can construct counterexamples where ft\bm{f}_{t} are close for two infinite-width limits but ft+1\bm{f}_{t+1} are far.

Compared to the kernel regime in the SGD case, the operator regime now allows nonlinear evolution in the function space picture. Nevertheless, in such dynamics, ft+1−ft\bm{f}_{t+1}-\bm{f}_{t} must be linear in η\eta for every tt. Thus, any function space evolution nonlinear in η\eta cannot be the infinite-width limit of any entrywise optimizer.The same holds for any adaptive optimizer with ingredients discussed under Optimizer Coverage of Section 2.1. For example, ft+1−ft=−ηft−η2ft2\bm{f}_{t+1}-\bm{f}_{t}=-\eta\bm{f}_{t}-\eta^{2}\bm{f}_{t}^{2} is not a valid limit.

[45, Sec G] identified a subclass of abc-parametrizations, called uniform parametrizations, where all layers “learn the same amount of features” and the output layer is initialized and updated maximally. This is used in to give an alternative presentation of μ\muP as well as discussion of joint width-depth limit. This notion also makes sense for abcd-parametrizations: For every s∈[0,\nicefrac12]s\in[0,\nicefrac{{1}}{{2}}], there is a unique stable and faithful abcd-parametrization, called UPs such that rl=sr_{l}=s for all l=1,…,Ll=1,\ldots,L and rL+1=1r_{L+1}=1 and aL+1+bL+1=1−sa_{L+1}+b_{L+1}=1-s. For example, UP0 is μ\muP and UP\nicefrac12{}_{\nicefrac{{1}}{{2}}} is NTP.

9 Infinite-Width Limits for Any Architecture

Having written down the infinite-width limits of adaptive optimizers for MLPs, we now turn to general architectures. An astute reader may have already absorbed the key insights from the previous sections and can use them to derive the NT or μ\mu limits for each new architecture in an ad hoc fashion. In contrast, here we describe the algorithm to do this once and for all, uniformly for all “reasonable” architectures. This uniformity of course requires abstraction, which is not conducive to quick comprehension; on the flip side, this algorithm will always be here for someone to fall back to if the ad hoc approach does not work out.

The main work here is not the proofs (which can be easily adapted from the MLP case and so are omitted), but the definitions: What is an architecture? What architecture counts as “reasonable”? How to define abcd-parametrization for any such architecture? What are their infinite-width limits? Answering these questions in the most generality requires careful thought.

As demonstrated in , 2.9.1 covers essentially every architecture in practice: RNNs, residual network, transformers, etc.

In this definition, only the symbolic structure of the program matters; the random sampling of 2.6.3 and 2.6.4 plays no role.

For simplicity, we only considered the case when the notion of “width” is the same throughout the network. Nevertheless, this definition can be easily modified to cover the nonuniform case, but stating it would be much more complex.

In truth, we could have phrased 2.9.1 using \textscNetsor⊤\textsc{Netsor}\top instead of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top, since we do not know of any neural network in the wild that is not \textscNetsor⊤\textsc{Netsor}\top-representable (\textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top is only required for expressing adaptive optimization like Adam). But there is little cost in stating the more general version, which can potentially matter in the future.

also defined a notion of representable functions using \textscNetsor⊤\textsc{Netsor}\top. In comparison, our definition is much more general: Beyond the superficial difference of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top here vs \textscNetsor⊤\textsc{Netsor}\top there, dealt with input and output layer weights in special ways, whereas here we do not, instead opting to uniformly deal with scalar, vector, and matrix parameters. The input and output weights of are vector parameters in this view.

The LL-hidden-layer MLP in Eq. 2.3 has d+1d+1 vector parameters (where dd corresponds to input dimension and 11 corresponds to output dimension) and L−1L-1 matrix parameters. It is represented by the program that generates 1) h1h^{1} using OuterNonlin and hl,l≥2,h^{l},l\geq 2, using MatMul; 2) xlx^{l} using OuterNonlin; and 3) generate function output by summing WL+1⊙xLW^{L+1}\odot x^{L} (so we can take x1x^{1} in 2.9.1 to be WL+1⊙xLW^{L+1}\odot x^{L}).

9.2 abcd-Parametrization for Any Architecture

We parametrize WW as W=n−aWwW=n^{-a_{W}}w for actual trainable parameter ww;

We initialize each entry of ww iid from N(0,n−2bW)\mathcal{N}(0,n^{-2b_{W}});

The learning rate is ηn−cW\eta n^{-c_{W}} for some width-independent η\eta;

The gradients of ww are multiplied by ndWn^{d_{W}} before being processed by QtWQ^{W}_{t}: i.e., the update at time tt is

where gs,s=0,…,tg_{s},s=0,\ldots,t, are the gradients of ww at time ss and QtWQ^{W}_{t} is applied entrywise;

As always, we are only concerned with scaling with nn here, but there can be a tunable constant hyperparameter in front of every power of nn in 2.2.1.

The random initialization in 2.9.7 is always mean-zero. For some applications, such as layernorm/batchnorm weights WW (that is initialized as all 1s), this may seem insufficient. However, one can just refactor the parameter: For this particular example, we can refactor W=1+W′W=1+W^{\prime} where W′W^{\prime} is the initial vector of the program π\pi. W′W^{\prime} can then be initialized as N(0,σn−2bW′)\mathcal{N}(0,\sigma n^{-2b_{W^{\prime}}}) for some tunable constant hyperparameter σ\sigma (which is set to 0 by practitioners typically).

NTP and μ\muP naturally generalize to general representable architectures.

In comparison to their counterparts for MLP, the NTP and μ\muP above consider scalar parameters (which are not present in the MLP in Eq. 2.3). Otherwise, 2.4.1 can be recovered from 2.9.11 by mapping the columns [2,L][2,L] to “matrix,” 11 to “vector,” and L+1L+1 to “vector” but with the value of aa taken from the “out” column. 2.5.1 can be recovered likewise from 2.9.12.

Before we formulate their limits, we need to discuss how to construct the “backpropagation” of an arbtrary of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program.This has been constructed previously for \textscNetsor⊤\textsc{Netsor}\top programs in .

9.3 Interlude: Backpropagation and Total Programs

Consider any \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program π\pi and a vector xx in π\pi. Then π\pi’s backpropagation program wrt xx is an extension of π\pi defined by constructing the following objects on top of π\pi: (Intuitively, one should interpret dxy=n∂⟨xα⟩α∂yd^{x}y=n\frac{\partial\langle x_{\alpha}\rangle_{\alpha}}{\partial y} if yy is a vector and dxc=∂⟨xα⟩α∂cd^{x}c=\frac{\partial\langle x_{\alpha}\rangle_{\alpha}}{\partial c} if cc is a scalar.)

For any MatMul instruction z:=Wyz:=Wy in π\pi, we construct dx∣zy:=W⊤dxzd^{x|z}y:=W^{\top}d^{x}z (via another MatMul)

Suppose y=⟨ψ(x;xβ1;⋯ ;xβr;c)⟩β1⋯βry=\langle\psi(\bm{x};\bm{x}_{\beta_{1}};\cdots;\bm{x}_{\beta_{r}};\bm{c})\rangle_{\beta_{1}\cdots\beta_{r}}. For each i=0,…,ri=0,\ldots,r, let

Finally, for every vector or scalar yy in π\pi other than xx,

where uu ranges over all vector or scalar in π\pi whose construction used yy.If this sum is empty, then the RHS is set to 0.

The subprogramThe notion of subprogram is formally defined in [44, Defn I.1]. Roughly it means a contiguous subset of instructions in the program. constructing all of these new objects is denoted dxπd^{x}\pi (so that the backpropagation program is π∣dxπ\pi|d^{x}\pi).

Recall ([44, Defn I.1]) that “∣|” (as in “π∣π′\pi|\pi^{\prime}”) signifies the concatenation of programs.

If r=0r=0 in OuterNonlin (i.e., we just have a Nonlin+ instruction), then the formulas simplify to

Consider a representable architecture ff with representation (π,x1,…,xe)(\pi,x^{1},\ldots,x^{e}). Gather all of π\pi’s backpropagation programs wrt xix^{i} into a single (large) program:

whose initial data are the jj scalars, kk vectors, and ll matrices corresponding to Tn\mathcal{T}_{n} in 2.9.1; they are shared among all subprograms dπ(ξi)\bm{d}\pi(\xi^{i}). We call dπ\bm{d}\bm{\pi} the total program of ff.

9.4 Training Setup

Assume εt\varepsilon_{t} and QtΘQ^{\Theta}_{t} for all Θ,t\Theta,t are pseudo-Lipschitz and all nonlinearities used in the representing program has pseudo-Lipschitz derivatives.

9.5 Neural Tangent Limit

where the “bar” notation abbreviates application of QQ as in Eq. 1.2 and all kets and bras are evaluated in dπ\bm{d}\bm{\pi} (2.9.16) via 2.6.5. To interpret these formulas, we need to tell you two things:

1) Ranges of arguments. Here, WW ranges over all matrix parameters and vv over all vector parameters of ff, and all kets are calculated from dπ\bm{d}\bm{\pi} by sampling matrix parameters from N(0,1/n)\mathcal{N}(0,1/n) and vector parameters from N(0,1)\mathcal{N}(0,1).Again, we can insert hyperparameters like σW\sigma_{W} and σv\sigma_{v}, but for simplicity we omit them here. The sum in Eq. 2.32 sums over all vectors h,z,g,yh,z,g,y in π\pi satisfying h=Wzh=Wz and g=Wyg=Wy (potentially h=gh=g and z=yz=y).

Consider a representable architecture ff with representation (π,x1,…,xe)(\pi,x^{1},\ldots,x^{e}) and any training routine in NTP (2.9.11) with memoryless stationary update function QQ. Adopt 2.9.17. Further assume

⟨1\hstretch0.7\talloblongxi(ξ)⟩=0\langle 1\hstretch{0.7}{\talloblong}x^{i}(\xi)\rangle=0 for every input ξ\xi and output index i∈[e]i\in[e] at initialization.More precisely, the ket \hstretch0.7\talloblongxi(ξ)⟩\hstretch{0.7}{\talloblong}x^{i}(\xi)\rangle is evaluated in dπ\bm{d}\bm{\pi} (2.9.16) via 2.6.5.

Recall ft\bm{f}_{t} denotes the function after tt steps of updates from random initialization. Then

Note Simple GIA Check may not be satisfied in general architectures, so that we cannot necessarily calculate kets like \hstretch0.7\talloblongdh⟩\hstretch{0.7}{\talloblong}\bm{d}\bm{h}\rangle by assuming matrix parameters and their transposes are independent (even if no transposes occur in π\pi), e.g., ignoring \hstretch0.7\talloblongdh⟩ ⁣˙ \hstretch{0.7}{\talloblong}\bm{d}\bm{h}\dot{\rangle\mkern-3.0mu}\mkern 3.0mu in our calculations. Nevertheless, 2.9.19 still holds if one calculates \hstretch0.7\talloblongdh⟩\hstretch{0.7}{\talloblong}\bm{d}\bm{h}\rangle correctly using the rules of 2.6.5.

Assumption 39 (x\bm{x} being mean zero) in 2.9.19 is obviously necessary for us to arrive at a Gaussian Process limit at initialization. Assumption 1 is also necessary for two reasons: 1) at initialization, random initialization of scalar parameters would make the initial process a mixture of Gaussian processes (or a GP conditioned on the values of scalar parameters). Even if the scalar parameters are deterministic, the gradient wrt scalar parameters will also be a random process (possibly correlated to the process of the function) at initialization. 2) Function space picture (c.f. 2.8.23 and [45, Remark 3.11]) would no longer hold: One cannot track the evolution of the f˚t\mathring{f}_{t} solely by knowing what it is at time t=0t=0. Instead, one would need to track the values of the scalar parameters and their gradients as well. So in a sense we will have a “function space + scalar parameters” picture. The complete evolution of f˚t\mathring{f}_{t} can then be described by a) the joint process of the function output, scalar parameters, and their gradients at initialization, together with b) an evolution equation involving how they evolve given their previous values in time. This is similar to .

As before, with some more notation we can write down the NT limit for any representable architecture.

where \hstretch0.7\talloblongdh⟩χ≤t⟨z\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}\bm{d}\bm{h}\rangle{}_{\bm{\chi}_{\leq t}}\langle\bm{z}\hstretch{0.7}{\talloblong}} is shorthand for QtW(\hstretch0.7\talloblongdh⟩χ0⟨z\hstretch0.7\talloblong,…,\hstretch0.7\talloblongdh⟩χt⟨z\hstretch0.7\talloblong)Q^{W}_{t}\left(\hstretch{0.7}{\talloblong}\bm{d}\bm{h}\rangle{}_{\bm{\chi}_{0}}\langle\bm{z}\hstretch{0.7}{\talloblong},\ldots,\hstretch{0.7}{\talloblong}\bm{d}\bm{h}\rangle{}_{\bm{\chi}_{t}}\langle\bm{z}\hstretch{0.7}{\talloblong}\right) and \hstretch0.7\talloblongdv⟩⋅χ≤t‾\overline{\hstretch{0.7}{\talloblong}\bm{d}\bm{v}\rangle\cdot\bm{\chi}_{\leq t}} is shorthand for Qtv(\hstretch0.7\talloblongdv⟩⋅χ0,…,\hstretch0.7\talloblongdv⟩⋅χt)Q^{v}_{t}\left(\hstretch{0.7}{\talloblong}\bm{d}\bm{v}\rangle\cdot\bm{\chi}_{0},\ldots,\hstretch{0.7}{\talloblong}\bm{d}\bm{v}\rangle\cdot\bm{\chi}_{t}\right)

With this in mind, the following theorem yields the NT limit of Adam (Eq. Adam\mathtt{Adam}) as a corollary.

If the update functions Q\bm{Q} are memoryless but not necessarily stationary, then 2.9.19 holds with Eq. 2.36 replaced by

For general Q\bm{Q}, not necessarily memoryless, 2.9.19 holds with Eq. 2.36 replaced by

9.6 Maximal Update Limit

Given a representable architecture, the representing program describes the symbolic procedure for computing the output of the network given an assignment of the input and parameters to concrete values. This procedure is well defined for any network width (by construction). Naturally, it remains well defined as explicitly spelled out below even when we “pass to the infinite-width limit.” In short, 2.9.24 specifies what it means for a program to compute something given an assignment of the input and parameters to concrete infinite-width limits (e.g., kets and operators).

For any program π\pi and a vector yy in π\pi, \hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}y\rangle can be thought of as a function, defined via 2.6.5, of {\hstretch0.7\talloblongW\hstretch0.7\talloblong}W,{\hstretch0.7\talloblongv⟩}v,{c˚}c\{\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong}\}_{W},\{\hstretch{0.7}{\talloblong}v\rangle\}_{v},\{\mathring{c}\}_{c} where W,v,cW,v,c range over the initial matrices, vectors, and scalars respectively. Consider an assignment Θ\Theta that assigns an operator Θ{W}{\Theta\{W\}} to each initial matrix WW, ket Θ{v}{\Theta\{v\}} to each initial vector vv, and a deterministic number Θ{c}\Theta\{c\} to each initial scalar cc. Then we write

for \hstretch0.7\talloblongx⟩χ˚⟨y\hstretch0.7\talloblong,\hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}x\rangle{}_{\mathring{\bm{\chi}}}\langle y\hstretch{0.7}{\talloblong},\hstretch{0.7}{\talloblong}y\rangle, ⟨y\hstretch0.7\talloblongz⟩\langle y\hstretch{0.7}{\talloblong}z\rangle and θ˚\mathring{\theta} computed using this assignment (i.e., swapping out \hstretch0.7\talloblongW\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W\hstretch{0.7}{\talloblong} for Θ{W}\Theta\{W\}, \hstretch0.7\talloblongv⟩\hstretch{0.7}{\talloblong}v\rangle for Θ{v}\Theta\{v\}, and c˚\mathring{c} for Θ{c}\Theta\{c\}).

where we write \hstretch0.7\talloblongΘ{W}\hstretch0.7\talloblong=Θ{W}\hstretch{0.7}{\talloblong}\Theta\{W\}\hstretch{0.7}{\talloblong}=\Theta\{W\} for each initial matrix WW, \hstretch0.7\talloblongΘ{v}⟩=Θ{v}\hstretch{0.7}{\talloblong}\Theta\{v\}\rangle=\Theta\{v\} for each initial vector vv, and Θ{c˚}=Θ{c}\Theta\{\mathring{c}\}=\Theta\{c\} for each initial scalar cc.so that \hstretch0.7\talloblongΘ{∙}\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}\Theta\{\bullet\}\hstretch{0.7}{\talloblong} and \hstretch0.7\talloblongΘ{∙}⟩\hstretch{0.7}{\talloblong}\Theta\{\bullet\}\rangle are just redundant affirmations of the “shape” of Θ{∙}\Theta\{\bullet\}, rather than saying Θ{∙}\Theta\{\bullet\} is some object in some program and \hstretch0.7\talloblongΘ{∙}\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}\Theta\{\bullet\}\hstretch{0.7}{\talloblong} or \hstretch0.7\talloblongΘ{∙}⟩\hstretch{0.7}{\talloblong}\Theta\{\bullet\}\rangle are their “limits.”

Consider a representable architecture ff with representation (π,x1,…,xe)(\pi,x^{1},\ldots,x^{e}) and any training routine in μ\muP (2.9.12) with memoryless stationary update function QQ. Adopt 2.9.17.

Then for each t≥0t\geq 0, ft\bm{f}_{t} converges almost surely to f˚t\mathring{\bm{f}}_{t} computed from the following.

(Forward and Backward Propagation) Let Θt\Theta_{t} be the assignment that assigns \hstretch0.7\talloblongWt\hstretch0.7\talloblong\hstretch{0.7}{\talloblong}W_{t}\hstretch{0.7}{\talloblong} to each matrix parameter WW, \hstretch0.7\talloblongv⟩\hstretch{0.7}{\talloblong}v\rangle to each vector parameter vv, and c˚t\mathring{c}_{t} to each scalar parameter cc.

Here x\bm{x} is the multi-vector consisting of x1,…,xex^{1},\ldots,x^{e} evaluated on all M\mathcal{M} inputs, and all kets and limits are calculated in dπ\bm{d}\bm{\pi} via 2.6.5.

where the tensor operations and summation over h=Wxh=Wx should be interpreted as in 2.9.18.

(Initialization) \{\hstretch{0.7}{\talloblong}W_{0}\hstretch{0.7}{\talloblong}:\text{matrix parameterW}\} is a set of independent initial operators. Additionally,

Here, we used the notation W,v,cW,v,c for matrix, vector, and scalar parameters, in contrast to yy and aa for vector and scalar generated by the program π\pi. The former are exemplified by weights while the latter by (pre)activations.

In the MLP case with program π\pi given in Eq. 2.3, there are no generated scalars, so we can ignore Eq. 2.44. The generated vectors (in dπ\bm{d}\bm{\pi}) are h1,…,hL\bm{h}^{1},\ldots,\bm{h}^{L} and x1,…,xL\bm{x}^{1},\ldots,\bm{x}^{L} as well as their error signals dhl,dxld\bm{h}^{l},d\bm{x}^{l}. So Eq. 2.43 reduces to the 2nd and 3rd rows in 2.7.1(1). Finally, the function output is given by averaging wL+1⊙xLw^{L+1}\odot x^{L}, so the f˚t=Θt{⟨1\hstretch0.7\talloblongx⟩}\mathring{\bm{f}}_{t}=\Theta_{t}\{\langle 1\hstretch{0.7}{\talloblong}\bm{x}\rangle\} in Eq. 2.42 reduces to f˚t=⟨wtL+1\hstretch0.7\talloblongxtL⟩\mathring{\bm{f}}_{t}=\langle w_{t}^{L+1}\hstretch{0.7}{\talloblong}\bm{x}^{L}_{t}\rangle in 2.7.1(1).

As discussed in 2.7.2, μ\muP is in a sense the most natural parametrization because its infinite-width limit is just a direct “ket-translation” of the finite-width computations, no matter the architecture. Compare this with NTP, where the Gaussian process and kernel behaviors can only happen under some relative restrictive conditions, like “no scalar parameters” (2.9.19 and 2.9.21).

In the μ\mu-limit for a general architecture, f˚0\mathring{\bm{f}}_{0} no longer needs to be 0, unlike 2.7.1. For example, if in an MLP with relu activation, the output is given by the average entry of the last layer activation vector, then obviously f˚0\mathring{\bm{f}}_{0} will always be positive.

If Q\bm{Q} is memoryless but not stationary, then 2.9.25 holds if the bars in LABEL:{eqn:muP_op_update_general}, LABEL:{eqn:muP_ket_update_general} and LABEL:{eqn:muP_scalar_update_general} are interpreted as QtW,Qtv,Q^{W}_{t},Q^{v}_{t}, and QtcQ^{c}_{t}.

If Q\bm{Q} is not memoryless, then 2.9.25 holds if LABEL:{eqn:muP_op_update_general}, LABEL:{eqn:muP_ket_update_general} and LABEL:{eqn:muP_scalar_update_general} are replaced with

10 Extensions

Consider the update equation (Eq. 2.4) with decoupled weight decay λ\lambda:We will assume all layers have the same λ\lambda, for simplicity. The generalization to layer-specific λ\lambda is straightforward.

This decoupled weight decay λ\lambda is equivalent to a traditional weight decay value \nicefracληn−cl\nicefrac{{\lambda}}{{\eta n^{-c_{l}}}}. It’s obvious that λ\lambda should be invariant to the width nn: if λ→∞\lambda\to\infty with nn, then 1−λ<01-\lambda<0 eventually; if λ→0\lambda\to 0 with nn, then weight decay has no effect in the limit.

The theory in this section covers AdamW , SGD with weight decay, and so on.

2.7.1 holds with Eqs. 2.20, 2.21 and 2.22 replaced with

With decoupled weight decay λ\lambda, 2.4.7 holds with the update equation Eq. 2.9 replaced by

For memoryless nonstationary updates, interpret the bar as QtlQ_{t}^{l}. For memoryful nonstationary updates, replace the nonlinear outer product with \hstretch0.7\talloblongdh≤sl⟩χ≤s⟨x≤sl−1\hstretch0.7\talloblong‾\overline{\hstretch{0.7}{\talloblong}d\bm{h}^{l}_{\leq s}\rangle{}_{\bm{\chi}_{\leq s}}\langle\bm{x}^{l-1}_{\leq s}\hstretch{0.7}{\talloblong}} (c.f. 2.7.3 for the notation).

Note that when λ=0\lambda=0, hsl\bm{h}^{l}_{s} is invariant to ss as are xsl,dhsl,dxsl\bm{x}^{l}_{s},d\bm{h}^{l}_{s},d\bm{x}^{l}_{s}, and this exponentially weighted sum just reduces to a simple sum and thus to Eq. 2.9.

In the memoryful case, interpreting the bar in 2.10.3 as Eq. Adam\mathtt{Adam} yields the NT limit of AdamW. The limit theorems (2.9.19 and 2.9.23) for general architecture also hold with analogous modifications.

10.2 Update Clipping and Normalization

We now add update clipping or normalization to Eq. 2.50:Traditionally, gradient clipping for SGD clips the norm of the entire gradient (for the whole network). Naively, one would just do this before applying the update function QQ. However, in Adam, for example, this would be meaningless because of Adam’s normalization. For general QQ, the dld_{l} terms can be trivially adjusted according to how the global gradient norm scales. So this notion of clipping or normalization (before QQ) is not very interesting.

if we are doing update normalization, then we set ν←∥Qtl(ndlg0,…,ndlgt)∥\nu\leftarrow\|Q_{t}^{l}(n^{d_{l}}g_{0},\ldots,n^{d_{l}}g_{t})\|;

if we are doing update clipping, then calculate additionally ν←min⁡(ν,θl)\nu\leftarrow\min(\nu,\theta^{l}) where θl\theta^{l} is a threshold hyperparameter for layer ll.

Some recent works normalize the update by the current weight (Frobenius) norm instead of by the update norm. We explore its implications in LABEL:{sec:normbycurrentweightnorm}. For now we focus on the formulation above.

How should the abcd values adjust to update clipping and normalization?

What do the neural tangent and maximal update limits look like?

How should the threshold hyperparameter θl\theta^{l} scale with width nn?

The key intuition is as follows: In all “reasonable” parametrizations (more precisely, faithful ones (2.8.8)), Qtl(ndlg0,…,ndlgt)Q_{t}^{l}(n^{d_{l}}g_{0},\ldots,n^{d_{l}}g_{t}) is entrywise Θ(1)\Theta(1). Thus, its norm ν\nu scales like #entries\sqrt{\#\text{entries}}, as can be verified via the Master Theorem (2.6.10). For example, for the input and output weights of the MLP (Eq. 2.3), this is n\sqrt{n}, while for the hidden weights, this is nn. Therefore, for update clipping, the threshold should be

for some tunable hyperparameter θ0l\theta^{l}_{0} independent of width. Otherwise, either the clipping has no effect (if θl\theta^{l} is larger than this) or ν\nu after update clipping is always equal to the threshold θl\theta^{l} (if θl\theta^{l} is smaller than this).

At the same time, clc_{l} should be el{e_{l}} smaller than if there is no update normalization or clipping (i.e., the learning rate should be larger). Thus, for example,

The NTP with update normalization or clipping is

where update clipping thresholds θl\theta^{l} scale as in Eq. 2.55.

The μ\muP with update normalization or clipping is

where update clipping thresholds θl\theta^{l} scale as in Eq. 2.55.

Likewise, the classification of parametrizations in Section 2.8 hold for update normalization or clipping if we replace all mentions of clc_{l} in Section 2.8 with cl+elc_{l}+e_{l}. For example,

With update clipping or normalization, we redefine

Then xtL−x0L=Θ(n−r)\bm{x}^{L}_{t}-\bm{x}^{L}_{0}=\Theta(n^{-r}) still and it remains that r=\nicefrac12r=\nicefrac{{1}}{{2}} for NTP (2.10.4) and r=0r=0 for μ\muP (2.10.5) with the new definitions above.

For general architectures, there is one ewe_{w} for every parameter tensor ww, and should be set to 0,\nicefrac12,0,\nicefrac{{1}}{{2}}, and 11 respectively for scalar, vector, and matrix parameters. Then the obvious generalization of the above discussion holds.

Similar statements hold for other μ\mu-limit theorems, including those in general architectures.

Now suppose in Eq. 2.54, we normalizd by the current weight norm instead, i.e.,

For simpicity, assume the weight decay λ\lambda is zero; our conclusion will turn out to hold even when this is not the case.

for any tt as n→∞n\to\infty.The fact that ∥wt∥F\|w_{t}\|_{F} is essentially ∥w0∥F\|w_{0}\|_{F} really implies that this is not the right quantity to normalize or clip the update by. For example, other norms (like spectral norm) does not have this property and could be better suited (if we ignore the computational issues for the moment). As another example, if Frobenius norm is desired, we should perhaps want to normalize by ∥Δwt∥F\|\Delta w_{t}\|_{F} instead of ∥wt∥F\|w_{t}\|_{F}. So ν=∥wt−1l∥F=Θ(∥w0l∥F)=Θ(n1−bl)\nu=\|w^{l}_{t-1}\|_{F}=\Theta(\|w^{l}_{0}\|_{F})=\Theta(n^{1-b_{l}}) (in fact, ν/n−bl→1\nu/n^{-b_{l}}\to 1).

In contrast, for the input layer weight W=W1W=W^{1}, we have ΔWt=O(W0)\Delta W_{t}=O(W_{0}) (entrywise and in Frobenius norm) in a stable parametrization. If the parametrization is furthermore faithful (2.8.8), then for W=WL+1W=W^{L+1}, this is true as well (c.f. 2.8.13). So ∥wt1∥F/∥w01∥F\|w^{1}_{t}\|_{F}/\|w^{1}_{0}\|_{F} and ∥wtL+1∥F/∥w0L+1∥F\|w^{L+1}_{t}\|_{F}/\|w^{L+1}_{0}\|_{F} are both Θ(1)\Theta(1) (but ↛1\not\to 1 generally) and ν=Θ(n\nicefrac12−bl)\nu=\Theta(n^{\nicefrac{{1}}{{2}}-b_{l}}) in both cases.

Therefore, if we subtract blb_{l} from ele_{l} in Eq. 2.55, then all discussion above applies. For example, the parametrizations for current weight norm can be obtained by adding the blb_{l} row to the clc_{l} row.

The NTP with update normalization or clipping with current weight norm is the same as 2.10.4.

The μ\muP with update normalization or clipping with current weight norm is

where the clipping thresholds θl\theta^{l} scale as n\nicefrac12n^{\nicefrac{{1}}{{2}}}.

The limit equations for μ\muP in this case is just Eqs. 2.56, 2.57 and 2.58 but with the tilde interpreted as dividing by ⟨wt1\hstretch0.7\talloblongwt1⟩\sqrt{\langle w^{1}_{t}\hstretch{0.7}{\talloblong}w^{1}_{t}\rangle}, 11, and ⟨wtL+1\hstretch0.7\talloblongwtL+1⟩\sqrt{\langle w^{L+1}_{t}\hstretch{0.7}{\talloblong}w^{L+1}_{t}\rangle} respectively. Similar modifications apply to the NT limits.

Likewise, the classification of parametrizations hold if we replace each clc_{l} with cl+el−blc_{l}+e_{l}-b_{l}.

We have assumed that the weight decay λ\lambda is 0 at the beginning. In the general case, define δWt=Wt−(1−λ)Wt−1\delta W_{t}=W_{t}-(1-\lambda)W_{t-1} instead, but the same calculations will yield the same conclusions.

10.3 Second Moment Factoring ala Adafactor

The key observation here is that, even though the factored update function QQ is not entrywise anymore, the update itself is still a nonlinear outer product of dh≤td\bm{h}_{\leq t} and dx≤td\bm{x}_{\leq t} (with some scalars variables inserted in an appropriate \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program), All of our theory in fact holds as-is for this more general kind of update function, since they all factor through the OuterNonlin instruction of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top.

10.4 Future Optimizers

As technology advances, we may get better optimizers of very different forms than we discussed here. But we can quite reasonably expect them to continue to efficiently utilize GPUs, i.e., perform large matrix-multiplies. As such, these optimizers can always be analyzed in a Tensor Program. So the lesson is: as long as one understands Tensor Programs, one can always derive the correct way of scaling an optimizer (with width).

11 Proof Sketch

\textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top programs equipped with their Master Theorem (2.6.10) provide the main tool to all of our rigorous results. For example, to prove the neural tangent or μ\mu limit equations, one can: express the optimization dynamics using a \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program, mechanically compute the kets according to 2.6.5, and apply 2.6.10 to compute the limit (see full proofs in Sections 3.2 and 3.3). What remains is to prove 2.6.10 using a strategy which we now outline.

To prove this core insight, there are two parts.

We show that, in any \textscNetsor⊤\textsc{Netsor}\top program (i.e., a program with no scalar variables and no Tensor operation), VV is dequivalent to V′V^{\prime}. This can be done by re-analyzing the proof of the \textscNetsor⊤\textsc{Netsor}\top Master Theorem in in a fairly straightforward way.

For any \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program π\pi (the subject of our work here), we construct a parallel \textscNetsor⊤\textsc{Netsor}\top program (4.8.1) and show, by induction, that the vectors of the two programs are dequivalent (i.e., distributed exactly the same after subtracting “small” vectors). This parallel program essentially replaces 1) all scalar variables in the original program by their deterministic limits, as computed in 2.6.5(Avg), and 2) all OuterNonlin operations by Nonlin operations, as computed in 2.6.5(OuterNonlin), so that the corresponding vectors of these programs share their kets. Then, by Part 1 above, we will have proven VV dequivalent to V′V^{\prime} for the original \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program π\pi.

Chapter 3 Proofs of Infinite-Width Limits

Here we prove the classificatioon of abcd-parametrizations as well as the NT and μ\mu-limit equations, assuming the \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top Master Theorem (2.6.10).

Here we seek to prove the main claims of Section 2.8: 2.8.19, 2.8.15, and 2.8.12.

The proof is a straightforward modification of the proof of [45, H.13]. The main subtle point is how r=0r=0 implies Item 1 of 2.8.19 (Item 4(a)iii in the proof outline below). The reasoning for this in is very specific to SGD and the activation functions tanh and (smoothed) relu. Here, we adopt a different logic, given in Section 3.1.4 and 3.1.3, based on the “asymptotic relu-ness” of the nonlinearity.

On the other hand, the implication of Item 2 in 2.8.19 by r>0r>0 is similar to , adapted naturally to general QtlQ^{l}_{t} functions, so we omit the full proof here. However, we provide the derivation of the NT limit in Section 2.4, which gives an instructive example of the proof for general operator regime parametrizations.

In the sequel, we provide full details of Items 4(a)i and LABEL:{item:r=0} of the outline below. All other steps in this outline are straightforward adaptations of or easy in a self-contained way.

The characterization of stability at initialization (Lemma 2.8.10) is already proven in [45, Thm H.19]. So assume stability at initialization from here on.

Some simple calculations then verifies the characterization of faithfulness at initialization (Lemma 2.8.11). So assume faithfulness at initialization from here on.Note this effectively fixes dld_{l} given al,bla_{l},b_{l}, so that the abcd-parametrization now has the same degrees of freedom as an abc-parametrization. This is a sanity check for why we can adapt most of the arguments from .

If bL+1>cL+1b_{L+1}>c_{L+1}, then it’s easy to see that we lose faithfulness after 1 step of update (because the input to QtlQ^{l}_{t} is ω(1)\omega(1)).

First, assume that rl≥0r_{l}\geq 0 for all l∈[L+1]l\in[L+1] and aL+1+bL+1+r≥1a_{L+1}+b_{L+1}+r\geq 1. (i.e., we assume Eq. 2.27)

Then we can build a \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program computing the network evolution (which we do in Sections 3.1.1 and 3.1.2). The Master Theorem yields its infinite-width limit, described in Section 3.1.3, which will be obviously stable and faithful (Lemma 3.1.2).

If r>0r>0, then, by adapting the corresponding reasoning in , it’s easy to derive all properties in 2.8.19(2), as well as the validity of 2.8.15 (assuming r>0r>0). We derive the NT limit in Section 3.3 as an example.

If r=0r=0, then the reasoning in cannot be straightforwardly adapted. In Section 3.1.4, using a different method based on “asymptotic relu-ness” of the nonlinearity ϕ\phi (2.8.2), we prove all properties in 2.8.19(1,3,4), the validity of 2.8.15 (assuming r=0r=0), and the fact that we are not in operator regime.

Suppose rl<0r_{l}<0 for some l∈[L]l\in[L], and l∗l^{*} is the smallest such ll. Then the infinite-width limit derived above up to time 1, layer l∗l^{*} shows that Δx1l=ω(1)\Delta\bm{x}^{l}_{1}=\omega(1) for some choice of ξ\bm{\xi} and training routine, so we lose stability.

Otherwise, if aL+1+bL+1+r<1a_{L+1}+b_{L+1}+r<1 or rL+1<0r_{L+1}<0, then the infinite-width limit derived above up to time 1 shows that Δf1=ω(1)\Delta\bm{f}_{1}=\omega(1), so we lose stability as well.

Combining all caseworks, we 1) derive the nontriviality condition 2.8.15; 2) see Eq. 2.27 is necessary for faithfulness and stability as well, proving 2.8.12; and 3) prove 2.8.19.

1.1 Program Setup

In Sections 3.1.1, 3.1.2 and 3.1.3, we implement Item 4(a)i: we construct the Tensor Program that encodes the training of an LL-hidden layer MLP under an abcd-parametrization satisfying Eqs. 2.25, 2.26 and LABEL:{eqn:stable_faithful} and take its infinite-width limit. For the most part, they are straightforward adaptations of [45, Sec. H.3-H.5]; nevertheless, we show full details to demonstrate the usage of the new \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top language and its Master Theorem (2.6.10).

In this section, we first describe the initial matrices, vectors, and scalars of the program, along with necessary notations.

For ease of presentation, we assume the input dimension d=1d=1. The general dd case is a trivial adaptation.

Initial matrices: W02,…,W0LW_{0}^{2},\ldots,W_{0}^{L}, sampled like (W0l)αβ∼N(0,1/n)(W_{0}^{l})_{\alpha\beta}\sim\mathcal{N}(0,1/n).

Initial scalars: We define the following scalars (where we explain the intuition in parenthesis). The reader can skip this part on a first read but come back when referred to.

(nn times the scale of coordinates of ΔWtl\Delta W_{t}^{l}) For l≥2l\geq 2, define

(scale of coordinates of ΔWt1\Delta W_{t}^{1} and Δht1\Delta h_{t}^{1}) Define

(scale of coordinates of ΔWtL+1\Delta W_{t}^{L+1})

(scale of Δhtl\Delta h_{t}^{l} and Δxtl\Delta x_{t}^{l}) For l∈[L]l\in[L], define

Note that θL=n−r\theta_{L}=n^{-r} with rr defined in 2.8.5.

Depending on the the value of aL+1+bL+1a_{L+1}+b_{L+1}, we will also construct the values of ff at initialization as initial scalars. See Section 3.1.2 for an explanation.

Eq. 2.27 implies all of these θ\thetas either converge to 0 or stay constant at 1. This means that, assuming appropriate regularity conditions on the nonlinearities and rank stability, we can apply the Master Theorem (if θ\theta blows up to ∞\infty then we can’t do that).

We use :=:= to more clearly denote assignment happening in the program, as opposed to mathematical equality. To clearly demonstrate the application of OuterNonlin, we will rewrite expressions in the form

This is the order-2 form of Eq. 2.17. We also write

This is the order-1 form of Eq. 2.17. All usages of OuterNonlin in the program below will be through Nonlin1\texttt{Nonlin}^{1} (majority of cases) and Nonlin2\texttt{Nonlin}^{2} (only when weight updates are involved). This program will not use OuterNonlin order higher than 2.

In the program, for each z∈{xl,hl}l\bm{z}\in\{\bm{x}^{l},\bm{h}^{l}\}_{l}, we will construct vectors δzt\delta\bm{z}_{t} to mathematically represent θz−1(zt−zt−1)\theta_{z}^{-1}(\bm{z}_{t}-\bm{z}_{t-1}) (intuition: change in zz scaled to have Θ(1)\Theta(1) coordinates). Similarly, for w∈{WL+1,W1}w\in\{W^{L+1},W^{1}\}, we will construct δwt\delta w_{t} to mathematically represent θw−1(wt−wt−1)\theta_{w}^{-1}(w_{t}-w_{t-1}) (intuition: change in ww scaled to have Θ(1)\Theta(1) coordinates). Then, mathematically, zt=zt−1+θzδzt,wt=wt−1+θwδwt\bm{z}_{t}=\bm{z}_{t-1}+\theta_{z}\delta\bm{z}_{t},w_{t}=w_{t-1}+\theta_{w}\delta w_{t}.

We will also construct dzd\bm{z} to mathematically represent θf−1∇zf\theta_{f}^{-1}\nabla_{\bm{z}}\bm{f} (intuition: gradient ∇zf\nabla_{\bm{z}}\bm{f} scaled to have Θ(1)\Theta(1) coordinates). For weight changes, we have the following identity

Here, the 2nd equality of each block is due to our assumption of Eqs. 2.25, 2.26 and LABEL:{eqn:stable_faithful} (see discussion at the start of this section), which means ndl−alθf=1n^{d_{l}-a_{l}}\theta_{f}=1 for all l≤Ll\leq L above and ndL+1−aL+1=1n^{d_{L+1}-a_{L+1}}=1.

1.2 Program Construction

Here we construct the \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top Program encoding the training of an MLP. We separately describe the first forward and backward passes followed by the later forward and backward passes.

We compute h01:=W01ξ\bm{h}^{1}_{0}:=W^{1}_{0}\bm{\xi} via Nonlin1\texttt{Nonlin}^{1} and then construct the following multi-vectors via Nonlin1\texttt{Nonlin}^{1} and MatMul respectively:

The distribution of W^0L+1\widehat{W}_{0}^{L+1} conditioned on E\mathcal{E} is given by

where x\bm{x} is shorthand for x0L\bm{x}_{0}^{L}, W~0L+1\widetilde{W}_{0}^{L+1} is an iid copy of W^0L+1\widehat{W}_{0}^{L+1}, and Π\Pi is the orthogonal projection into the orthogonal complement of the column space of x\bm{x} (and ∙+⊤\bullet^{+\top} denotes the pseudo-inverse transpose as usual).

By standard formulas for pseudo-inverse and orthogonal projection, we can write

If we further define \bm{\gamma}\mathrel{\raisebox{-1.29167pt}{\mathbin{\overset{\text{{def}}}{=}}}}\bm{x}^{\top}\widetilde{W}_{0}^{L+1}/n, then

Thus, the mathematical conditioning done in Eq. 3.9 is achieved programmatically as follows:

We introduce W~0L+1\widetilde{W}_{0}^{L+1} as an initial vector and c\bm{c} (the value of f0\bm{f}_{0}) as initial scalars

We introduce Σ\bm{\Sigma} as a multi-scalar via Σ:=x⊤x/n\bm{\Sigma}:=\bm{x}^{\top}\bm{x}/n (Nonlin1\texttt{Nonlin}^{1} followed by Avg)

We introduce γ\bm{\gamma} as a multi-scalar via γ:=x⊤W~0L+1/n\bm{\gamma}:=\bm{x}^{\top}\widetilde{W}_{0}^{L+1}/n (Nonlin1\texttt{Nonlin}^{1} followed by Avg)

We replace W^0L+1\widehat{W}_{0}^{L+1} (an initial vector) in the program with (the non-initial vector)

constructed using Nonlin1\texttt{Nonlin}^{1}(x,W~0L+1;Σ,γ,c,θf=1n)(\bm{x},\widetilde{W}_{0}^{L+1};\bm{\Sigma},\bm{\gamma},\bm{c},\theta_{f}=\frac{1}{\sqrt{n}}).recall θf\theta_{f} from Eq. 3.2.

For the above reason, we will assume aL+1+bL+1>1/2a_{L+1}+b_{L+1}>1/2, and remark whenever the case aL+1+bL+1=1/2a_{L+1}+b_{L+1}=1/2 involves subtleties.

where 1M\bm{1}_{\mathcal{M}} is the M\mathcal{M}-dimensional vector of all 1s, recall, dzd\bm{z} mathematically equals θf−1∇zf\theta_{f}^{-1}\nabla_{\bm{z}}f.

The error signal at the output is expressed using Nonlin1\texttt{Nonlin}^{1} followed by Avg as in Lemma 2.6.2.Here, f˚0=0\mathring{\bm{f}}_{0}=0 if aL+1+bL+1>1/2a_{L+1}+b_{L+1}>1/2; otherwise, f0=f˚0\bm{f}_{0}=\mathring{\bm{f}}_{0} is the c\bm{c} we conditioned on in Eq. 3.9.

to represent the (normalized) change in WL+1W^{L+1} due to the first gradient step.

We iteratively define δzt\delta\bm{z}_{t} to mathematically represent θz−1(zt−zt−1)\theta_{z}^{-1}(\bm{z}_{t}-\bm{z}_{t-1}), for z∈{xl,hl}lz\in\{x^{l},h^{l}\}_{l}. Then we eventually set

Likewise, we will define δWtL+1\delta W_{t}^{L+1} so that WtL+1=θfW^0L+1+θL+1(δW1L+1+⋯+δWtL+1)W_{t}^{L+1}=\theta_{f}\widehat{W}_{0}^{L+1}+\theta_{L+1}(\delta W_{1}^{L+1}+\cdots+\delta W_{t}^{L+1}). In the program, we will not directly use WtL+1W_{t}^{L+1} but instead use its normalized version

where θL+1/f=θL+1/θf\theta_{L+1/f}=\theta_{L+1}/\theta_{f}. Mathematically, W^tL+1=θf−1WtL+1\widehat{W}_{t}^{L+1}=\theta_{f}^{-1}W_{t}^{L+1}.

We start with h=h1h=h^{1}: By Eq. 3.7, we have

For higher layers, if for brevity we write h=hlh=h^{l}, x=xl−1x=x^{l-1}, and W=WlW=W^{l}, then h=Wxh=Wx. By Eq. 3.6, we have, mathematically,

Recall θx/h=θh−1θx,θW/h=θh−1θW,θWx/h=θh−1θWθx\theta_{x/h}=\theta_{h}^{-1}\theta_{x},\theta_{W/h}=\theta_{h}^{-1}\theta_{W},\theta_{Wx/h}=\theta_{h}^{-1}\theta_{W}\theta_{x}. We construct

If x=xlx=x^{l}, h=hlh=h^{l}, then x=ϕ(h)x=\phi(h), and (using θx=θh\theta_{x}=\theta_{h} (Eq. 3.1)),

where the function in Nonlin1\texttt{Nonlin}^{1} is precisely the difference quotient for the function ϕ\phi.The pseudo-Lipschitzness of ϕ′\phi^{\prime} assumed in 2.8.2 implies that the nonlinearity (the difference quotient function) represented by Nonlin1\texttt{Nonlin}^{1} here is pseudo-Lipschitz, so that we can ultimately apply our Master Theorem.

We do not construct ft\bm{f}_{t} directly, but rather through scalars δft=ft−ft−1\delta\bm{f}_{t}=\bm{f}_{t}-\bm{f}_{t-1}, so that

Mathematically, δft=θL+1δWtL+1⊤xtL+Wt−1L+1⊤θLδxtL\delta\bm{f}_{t}=\theta_{L+1}\delta W_{t}^{L+1\top}\bm{x}_{t}^{L}+W_{t-1}^{L+1\top}\theta_{L}\delta\bm{x}_{t}^{L}, but we shall write it slightly differently in the program:

where θL+1′=nθL+1,θLf′=nθLθf\theta_{L+1}^{\prime}=n\theta_{L+1},\theta_{Lf}^{\prime}=n\theta_{L}\theta_{f} and W^t−1L+1\widehat{W}_{t-1}^{L+1} is constructed in Eq. 3.10.

(i.e., outer product between the vector W^tL+1\widehat{W}_{t}^{L+1} and the vector 1N\bm{1}_{N}).

For each l=L,…,1l=L,\ldots,1 for dhldh^{l} and l=L,…,2l=L,\ldots,2 for dxl−1dx^{l-1}, we also calculate

Using Lemma 2.6.2, we define the error signal

Finally, we compute the (normalized) change in WL+1W^{L+1} after this update as in Eq. 3.5.

1.3 The Infinite-Width Limit

In this section, we describe the kets (2.6.5) corresponding to the vectors of the program constructed above. According to the Master Theorem, each such vector zz will have roughly iid coordinates distributed like \hstretch0.7\talloblongz⟩\hstretch{0.7}{\talloblong}z\rangle in the large nn limit.

Let θ˚∙\mathring{\theta}_{\bullet} denote the limit of any θ∙\theta_{\bullet} in Section 3.1.1. If pseudostability holds, then θ˚∙\mathring{\theta}_{\bullet} is either 0 or 1, as one can easily verify. We can construct the kets for each vector in the program, as follows.

For the first forward and backward passes, we have,

For l∈[L],x=xl,h=hll\in[L],x=x^{l},h=h^{l}, we have \hstretch0.7\talloblongδxt⟩=Ψ(\hstretch0.7\talloblonght−1⟩,\hstretch0.7\talloblongδht⟩;θ˚h)\hstretch{0.7}{\talloblong}\delta\bm{x}_{t}\rangle=\Psi(\hstretch{0.7}{\talloblong}\bm{h}_{t-1}\rangle,\hstretch{0.7}{\talloblong}\delta\bm{h}_{t}\rangle;\mathring{\theta}_{h}) where Ψ\Psi is the nonlinearity represented by Nonlin1 in Eq. 3.12. If θ˚h=0\mathring{\theta}_{h}=0 (e.g. if r≤l>0r_{\leq l}>0), then

Otherwise, θ˚h=1\mathring{\theta}_{h}=1 (e.g. if r≤l=0r_{\leq l}=0), and

where the bar notation abbreviates Qt−11Q^{1}_{t-1}.

For l≥2,h=hl,x=xl−1,W=Wll\geq 2,h=h^{l},x=x^{l-1},W=W^{l}, we have

As usual, we can decompose \hstretch0.7\talloblongW0δxt⟩\hstretch{0.7}{\talloblong}W_{0}\delta\bm{x}_{t}\rangle by 2.6.5.

where dh<td\bm{h}_{<t} is the multi-vector (dh0,…,dht−1)(d\bm{h}_{0},\ldots,d\bm{h}_{t-1}). Here we simplified \hstretch0.7\talloblongW0δxt⟩ ⁣˙ \hstretch{0.7}{\talloblong}W_{0}\delta\bm{x}_{t}\dot{\rangle\mkern-3.0mu}\mkern 3.0mu because \hstretch0.7\talloblongδxt⟩\hstretch{0.7}{\talloblong}\delta\bm{x}_{t}\rangle only depends on dh<td\bm{h}_{<t} among previous vectors.

(where the bar notation abbreviates Qt−1L+1Q_{t-1}^{L+1}) and

where f˚0=0\mathring{\bm{f}}_{0}=0 if aL+1+bL+1>1/2a_{L+1}+b_{L+1}>1/2 (3.1.1); otherwise (aL+1+bL+1=1/2a_{L+1}+b_{L+1}=1/2), f˚0\mathring{\bm{f}}_{0} equals the value (from the initial NNGP) we conditioned on (as specified in the discussion above 3.1.1).

From this description of the infinite-width limit, it’s clear that the resulting dynamics is both faithful and stable.

Eqs. 2.25, 2.26 and LABEL:{eqn:stable_faithful} imply stability and faithfulness.

1.4 r=0𝑟0r=0 Implies Feature Learning

In this section, we implement Item 4(a)iii of the proof outline.

Adopt 2.8.2. Consider a parametrization satisfying Eqs. 2.25, LABEL:{eqn:faithful_init}, LABEL:{eqn:stable_faithful} and LABEL:{eqn:nontrivial}.For reader’s convenience, these equations are resp. the proposed conditions for stability at init, faithful at init, stable and faithful throughout training, and nontriviality.

If r=0r=0, then the following are true of this parametrization:

feature kernel evolution in the LLth layer

prefeature kernel evolution in the LLth layer

if there is feature learning or feature kernel evolution or prefeature learning or prefeature kernel evolution in layer ll, then there is feature learning and feature kernel evolution and prefeature learning and prefeature kernel evolution in layers l,…,Ll,\ldots,L.

WLOG, assume M=1\mathcal{M}=1 where the sole input is nonzero; our construction will work obviously for general M\mathcal{M} by masking the error signal εt\varepsilon_{t}. Correspondingly, we use notation hlh^{l} instead of hl\bm{h}^{l}, etc.

We will show that as learning rate η→∞\eta\to\infty, ⟨h1l\hstretch0.7\talloblongh1l⟩,⟨x1l\hstretch0.7\talloblongx1l⟩→∞\langle h^{l}_{1}\hstretch{0.7}{\talloblong}h^{l}_{1}\rangle,\langle x^{l}_{1}\hstretch{0.7}{\talloblong}x^{l}_{1}\rangle\to\infty, so that ⟨h1l\hstretch0.7\talloblongh1l⟩≠⟨h0l\hstretch0.7\talloblongh0l⟩\langle h^{l}_{1}\hstretch{0.7}{\talloblong}h^{l}_{1}\rangle\neq\langle h^{l}_{0}\hstretch{0.7}{\talloblong}h^{l}_{0}\rangle and ⟨x1l\hstretch0.7\talloblongx1l⟩≠⟨x0l\hstretch0.7\talloblongx0l⟩\langle x^{l}_{1}\hstretch{0.7}{\talloblong}x^{l}_{1}\rangle\neq\langle x^{l}_{0}\hstretch{0.7}{\talloblong}x^{l}_{0}\rangle for sufficiently large η\eta. This would imply (pre)feature kernel evolution and (pre)feature learning of the parametrization. In addition, we will show that f˚1\mathring{f}_{1} (output of function after 1 step of update) asympotically grows like ηs\eta^{s} for some s>0s>0. If s≠1s\neq 1, then the dynamics cannot satisfy the the operator equation Eq. 2.29, which is linear in η\eta. If s=1s=1, then we can calculate that lim⁡η→∞η−1f˚1≠∂ηf˚1∣η=0\lim_{\eta\to\infty}\eta^{-1}\mathring{f}_{1}\neq\partial_{\eta}\mathring{f}_{1}|_{\eta=0}, so that the update is not perfectly linear in η\eta, violating Eq. 2.29, so we are not in the operator regime. The other claims will also naturally follow over the course of the proof.

This reasoning should work for “generic” activations. However, for concreteness, we impose the conditions of 2.8.2 to be able to easily prove that certain pathological behavior cannot happen where certain inner products vanish, such as ⟨x0l\hstretch0.7\talloblongx1l⟩\langle x^{l}_{0}\hstretch{0.7}{\talloblong}x^{l}_{1}\rangle, allowing this reasoning to become rigorous.

This already implies that \hstretch0.7\talloblongx1L⟩\hstretch{0.7}{\talloblong}x_{1}^{L}\rangle scales like ηeLδ\eta^{e_{L}\delta} and \hstretch0.7\talloblongh1L⟩\hstretch{0.7}{\talloblong}h_{1}^{L}\rangle scales like ηeL\eta^{e_{L}} in η\eta, so the (pre)feature kernel evolves.

By Eq. 2.28, either aL+1+cL+1=1a_{L+1}+c_{L+1}=1 (last update is maximal) or aL+1+bL+1+r=1a_{L+1}+b_{L+1}+r=1 (last layer initialization is maximal).

If the last layer update is maximal, then its contribution to the output has the property

If the last layer initialization is maximal, then its contribution to the output has the property

by Stein’s lemma and Lemma 3.1.5. This means the contribution scales like ηeLδ\eta^{e_{L}\delta} in η\eta.An important role of 2.8.2 is to prevent pathological cases where the above expectations vanish.

Thus, the output of the function scales either like ηeLδ+1\eta^{e_{L}\delta+1} or ηeLδ\eta^{e_{L}\delta}. This means that, if the last layer update is maximal or δ\delta is not among the discrete set of values where eLδ=1e_{L}\delta=1, then f˚1\mathring{f}_{1} does not scale linearly in η\eta.

If the last layer update is not maximal and δ\delta takes one of such values (such as δ=1\delta=1 when rl=0r_{l}=0 for exactly one ll), then one can calculate

which means that f˚1\mathring{f}_{1} is not perfectly linear in η\eta.

In either case, Eq. 2.29 cannot be satisfied.

The above proof (especially the section on “Output scaling”) in fact also yields the following.

If Eq. 2.28 is not satisfied in 3.1.3 (but rr is still 0), then the parametrization is trivial.

The significance of the positivity and sign preservation properties in 2.8.2 is that they allow us to apply the following lemmas in our reasoning.

Again, here sign⁡\operatorname{sign} takes value in {−1,0,1}\{-1,0,1\}.

In the language of kets, this implies: For nonnegative kets \hstretch0.7\talloblongx⟩,\hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}x\rangle,\hstretch{0.7}{\talloblong}y\rangle and any ket \hstretch0.7\talloblongz⟩\hstretch{0.7}{\talloblong}z\rangle,

is 0 almost surely if ⟨x\hstretch0.7\talloblongy⟩=0\langle x\hstretch{0.7}{\talloblong}y\rangle=0 but otherwise satisfies

2 Proof of Maximal Update Limit

In μ\muP (2.5.1), all of the θ˚\mathring{\theta}s in Section 3.1.3 will equal 1. Some straightforward simplifications then lead to 2.5.2 for the shallow case and 2.7.1 for the deep case. (We made some simplification in notation as well: wtL+1w_{t}^{L+1} in 2.7.1 corresponds to W^tL+1\widehat{W}_{t}^{L+1} in Section 3.1.3 and wt1w_{t}^{1} in 2.7.1 corresponds to Wt1W_{t}^{1} in Section 3.1.3)

3 Proof of Neural Tangent Limit

In this section, we prove LABEL:{thm:memorylessNTK} by specializing the limit formula in Section 3.1.3 above for general abcd-parametrizations.

In NTP (2.4.1), all rlr_{l} equal \nicefrac12\nicefrac{{1}}{{2}} (Eq. 2.23). In particular, from Eq. 3.13, we see that

for all ll and all tt. Likewise, from Eq. 3.19, we see that

In addition, plugging in the NTP values of abcd to Eqs. 3.14, LABEL:{eq:Zdelh} and LABEL:{eq:delflimit} gives

To show 2.4.7, we need to calculate δf˚t\delta\mathring{\bm{f}}_{t} and show it equals −ηKQ(χ˚t−1)-\eta\mathcal{K}_{Q}(\mathring{\bm{\chi}}_{t-1}).

There are two contributions to δf˚t\delta\mathring{\bm{f}}_{t} from Eq. 3.25. We first calculate the former. By Eq. 3.18,

(where the bar notation abbreviates Qt−1L+1Q_{t-1}^{L+1}) which matches with the output weight contribution from Eq. 2.8.

To calculate the latter term from Eq. 3.25, we employ the following lemma.

For l=1l=1, this follows trivially from Eq. 3.16. For l∈[2,L]l\in[2,L], by Eq. 3.24,

So it remains to show ⟨dhl\hstretch0.7\talloblongW0lδxtl−1⟩=⟨dhl−1\hstretch0.7\talloblongδhtl−1⟩\langle d\bm{h}^{l}\hstretch{0.7}{\talloblong}W_{0}^{l}\delta\bm{x}_{t}^{l-1}\rangle=\langle d\bm{h}^{l-1}\hstretch{0.7}{\talloblong}\delta\bm{h}_{t}^{l-1}\rangle. But applying Lemma 4.8.3,

which, by Eq. 3.26 and a trivial induction with Lemma 3.3.1, gives

Chapter 4 Proof of Master Theorem

To prove our main foundational theorem 2.6.10, we had an editorial choice: we could bash our way to a proof by repeating (over and over again) analytical arguments involving the likes of Holder and Cauchy-Schwarz, or we could encapsulate them into neat objects with neat properties that then make the underlying algebraic structure more transparent. Even though the writing is more arduous, we chose the latter way, because of this transparency and because it builds a more extensible foundation for future work.extensible in the sense that properties can be used as black-boxes for more advanced theorems. This is definitely a more algebraic style, compared to analysts who tend to open black boxes and constantly tweak the insides. The drawback is perhaps that there can be many long sections building up the underlying structures before the payoff — but that’s the choice we made, and the reader is stuck with it, for better (hopefully) or worse.

Here we just record some basic lemmas that we would use frequently. The reader can skip this on first read and come back when necessary.

Expand the power in the LHS using the multinomial theorem, apply AM-GM to each summand, and finally aggregate using triangle inequality. ∎

By Markov’s inequality, for any ϵ>0\epsilon>0,

By Borel-Cantelli Lemma, almost surely, ∣Xn∣≤ϵ|X_{n}|\leq\epsilon for all large nn. Then, if we pick a sequence {ϵk>0}k\{\epsilon_{k}>0\}_{k} converging to 0, we have that, almost surely, for each kk, ∣Xn∣≤ϵk|X_{n}|\leq\epsilon_{k} for large enough nn — i.e. almost surely, Xn→0X_{n}\to 0. ∎

Furthermore, CpC_{p} can be taken to be Pp(ν1,ν2,…,νp)P_{p}(\nu_{1},\nu_{2},\ldots,\nu_{p}) where

PpP_{p} is a polynomial that depends only on pp.

We recall Moore-Penrose pseudo-inverse and some properties of it.

If AA has real entries, then so does A+A^{+}.

The pseudo-inverse always exists and is unique.

(A⊤)+=(A+)⊤(A^{\top})^{+}=(A^{+})^{\top}, which we denote as A+⊤A^{+\top}.

A+=(A⊤A)+A⊤=A⊤(AA⊤)+A^{+}=(A^{\top}A)^{+}A^{\top}=A^{\top}(AA^{\top})^{+}.

AA+AA^{+} is the orthogonal projector to the column space of AA; I−A+AI-A^{+}A is the orthogonal project to the null space of AA.

If AA has singular value decomposition A=UΛVA=U\Lambda V where UU and VV are orthogonal and Λ\Lambda has the singular values on its diagonal, then A+=V⊤Λ+U⊤A^{+}=V^{\top}\Lambda^{+}U^{\top} where Λ+\Lambda^{+} inverts all nonzero entries of Λ\Lambda.

For any collection of vectors {vi}i=1n\{v_{i}\}_{i=1}^{n} in a Hilbert space, w↦∑i,j=1nvi(Σ+)ij⟨vj,w⟩w\mapsto\sum_{i,j=1}^{n}v_{i}(\Sigma^{+})_{ij}\langle v_{j},w\rangle, where Σij=⟨vi,vj⟩\Sigma_{ij}=\langle v_{i},v_{j}\rangle, is the projection operator to the linear span of {vi}i=1n\{v_{i}\}_{i=1}^{n}.

1.2 Baranyai’s Theorem

The complete hypergraph GrnG^{n}_{r} is a hypergraph containing nn vertices in which every subset of rr vertices forms a hyperedge. A perfect matching of it is a set of \nicefracnr\nicefrac{{n}}{{r}} hyperedges that (thought of as subsets of vertices) partitions the vertices of GrnG^{n}_{r}.

Suppose integer rr divides integer nn. The collection of all (nr)\binom{n}{r} hyperedges in GrnG^{n}_{r} can be partitioned into (nr)rn\binom{n}{r}\frac{r}{n} perfect matchings.

See Fig. 4.1 for a graphical illustration. The hyperedges of GrnG^{n}_{r} are just the rr-element subsets of [n][n]. A version of Baranyai’s Theorem also holds for ordered rr-element subsets, i.e., length-rr sequences of distinct elements of [n][n].

Suppose integer rr divides integer nn. The collection of all n(n−1)⋯(n−r+1)n(n-1)\cdots(n-r+1) length-rr sequences of distinct elements of [n][n] can be partitioned into r(n−1)⋯(n−r+1)r(n-1)\cdots(n-r+1) perfect matchings.

The proof follows from 4.1.5 and symmetrization.

2 Basic Objects and Operations

In this section, we define the basic objects and operations on them recurring in our quest to understand Tensor Programs. In the next, we describe their properties.

2.2 Space of Random Sequences

Prior papers in the Tensor Programs series often talk about objects like scalars, vectors, and matrices whose size varies with a global notion of “width” denoted nn. Formally, each such object is a sequence (of scalars, vectors, or matrices) in nn, but to be intuitive, these works downplay this sequence aspect (for example, by suppressing the dependence on nn notationally).

However, here we need to talk about more complex high order tensors who can contain both dimensions that scale with nn and those that do not. In addition, we will formulate a notion of “vanishing” tensors that is really an asymptotic property as n→∞n\to\infty rather than a nonasymptotic one; this notion turns out to interact cleanly with typical operations like pseudo-Lipschitz nonlinearities that is involved in Tensor Programs. As such, for these reasons, we will be explicit that the objects we play with here are sequences in nn:

So, for example, S0\mathcal{S}^{0} contains all infinite sequences of scalar random variables, and S1\mathcal{S}^{1} contains all infinite sequences of random vectors of linearly increasing size.

We will use Greek letters α,β,…\alpha,\beta,\ldots (with values in [n][n]) to denote indices of an nn-tensor. For higher order nn-tensors in Ss\mathcal{S}^{s}, we also use their bolded counterparts α,β,…{\bm{\alpha}},{\bm{\beta}},\ldots (with values in [n]s[n]^{s}) to denote multi-indices, where (for example) α{\bm{\alpha}} is understood to have components α=(α1,…,αs){\bm{\alpha}}=(\alpha_{1},\ldots,\alpha_{s}). For example, if x∈Ssx\in\mathcal{S}^{s}, then x(n)x(n) has entries {x(n)α1…αs:α1,…,αs∈[n]}={x(n)α:α∈[n]s}\{x(n)_{\alpha_{1}\ldots\alpha_{s}}:\alpha_{1},\ldots,\alpha_{s}\in[n]\}=\{x(n)_{{\bm{\alpha}}}:{\bm{\alpha}}\in[n]^{s}\}. We can also mix single indices and multi-indices, e.g., {x(n)αβ:α∈[n],β∈[n]s−1}\{x(n)_{\alpha{\bm{\beta}}}:\alpha\in[n],{\bm{\beta}}\in[n]^{s-1}\}.

As in prior works, even though we will work with sequences of tensors (x(n))n≥1(x(n))_{n\geq 1}, we will suppress the dependence on nn notationally and talk about xx as if it’s a fixed tensor. So, for example, for an nn-matrix xx, xαβx_{\alpha\beta} refers to the entry x(n)αβx(n)_{\alpha\beta} where the nn is from context.

2.3 Multi-Tensors

In many results we shall discuss, we often talk about lists of nn-tensors, e.g., x1,…,xk∈Ssx^{1},\ldots,x^{k}\in\mathcal{S}^{s}. Going forward, it will be helpful to think of such lists as (a sequence of) a single tensor of shape n×n×⋯×n×kn\times n\times\cdots\times n\times k (or other arrangements of dimensions, as discussed below) for each nn. We generalize this further in the following definition.

More abstractly, we can let V\mathcal{V} be any finite-dimensional Euclidean space, in which case Ss⊗V\mathcal{S}^{s}\otimes\mathcal{V} is the space of sequences of tensors with shape n×⋯×n⏟s\underbrace{n\times\cdots\times n}_{s}, taking values in V\mathcal{V}. However, in this work, we will primarly concern ourselves with the V\mathcal{V} being tensor spaces as in 4.2.2.

In this work, by Euclidean space we mean any finite-dimensional real vector space. We will use notation V\mathcal{V} and its cousins to denote such spaces.

We will always use lower case letters x,y,z,…x,y,z,\ldots to denote nn-tensors (i.e., elements of S∙\mathcal{S}^{\bullet}). On the other hand, we will always use their bolded counterparts x,y,z,…\bm{x},\bm{y},\bm{z},\ldots to denote multi-tensors (i.e., elements of S∙⊗V\mathcal{S}^{\bullet}\otimes\mathcal{V}).

2.4 Constant Tensors

Often we will need to talk about some sequence (in nn) that equals a fixed value, say ϑ\vartheta, for all nn. Then we shall denote this sequence by ϑ\vartheta as well, which should not cause confusion in our contexts.

2.5 IID Tensors

For every integer s≥0s\geq 0, We define the iid operator

2.6 Averaging over n𝑛n

Let V\mathcal{V} be a finite-dimensional Euclidean space, and let x∈Ss+r⊗V\bm{x}\in\mathcal{S}^{s+r}\otimes\mathcal{V} be a multi-tensor. For α∈[n]s,β∈[n]r{\bm{\alpha}}\in[n]^{s},{\bm{\beta}}\in[n]^{r}, we write

for averaging over multi-index β{\bm{\beta}} while fixing multi-index α{\bm{\alpha}}.

This notation can be nested, e.g., ⟨F(⟨xαβ⟩β)⟩α\left\langle F\left(\left\langle\bm{x}_{{\bm{\alpha}}{\bm{\beta}}}\right\rangle_{{\bm{\beta}}}\right)\right\rangle_{{\bm{\alpha}}}for some function FF. When FF is identity, this is obviously just ⟨xγ⟩γ\left\langle\bm{x}_{\bm{\gamma}}\right\rangle_{\bm{\gamma}}.

2.7 Implicit Broadcasting of Nonlinearities on Multi-Tensors

In general, this implicit broadcast rule holds for any nn-tensors or multi-tensors.

More generally, if V′\mathcal{V}^{\prime} is another Euclidean space and ϕ:V→V′\phi:\mathcal{V}\to\mathcal{V}^{\prime}, then ϕ(x)∈Ss⊗V′\phi(\bm{x})\in\mathcal{S}^{s}\otimes\mathcal{V}^{\prime} with yα=ϕ(xα)y_{{\bm{\alpha}}}=\phi(\bm{x}_{{\bm{\alpha}}}).

In other words, the implicit broadcasting lifts ϕ:V→V′\phi:\mathcal{V}\to\mathcal{V}^{\prime} to a function ϕ:Ss⊗V→Ss⊗V′\phi:\mathcal{S}^{s}\otimes\mathcal{V}\to\mathcal{S}^{s}\otimes\mathcal{V}^{\prime} for any s≥0s\geq 0.

2.8 Nonlinear Outer Products

Let V1,…,Vr,V′\mathcal{V}_{1},\ldots,\mathcal{V}_{r},\mathcal{V}^{\prime} be any finite dimensional Euclidean spaces. Suppose ψ:V1⊕⋯⊕Vr→V′\psi:\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{V}_{r}\to\mathcal{V}^{\prime}, where we format ψ\psi’s arguments in blocks ψ(−;−;⋯ ;−)\psi(-;-;\cdots;-), with the ttth block “−-” corresponding to Vt\mathcal{V}_{t}. Then given xt∈Sst⊗Vt\bm{x}^{t}\in\mathcal{S}^{s_{t}}\otimes\mathcal{V}_{t} for t=1,…,rt=1,\ldots,r, we write

for the multi-tensor y\bm{y} in S∑tst⊗V′\mathcal{S}^{\sum_{t}s_{t}}\otimes\mathcal{V}^{\prime} with entries

We call this the ψ\psi-outer product of x1,…,xr\bm{x}^{1},\ldots,\bm{x}^{r}.

Let’s unpack the multi-tensor notation a bit. For example, if xt=(xt1,xt2)\bm{x}^{t}=(x^{t1},x^{t2}) for every t=1,…,rt=1,\ldots,r, then

In other words, arguments in the same block have matching (multi-)indices, while arguments in different blocks have freely varying indices. This in particular generalizes 4.2.11, which applies when there is only one block in ψ\psi. Likewise, the implicit broadcasting in this nonlinear outer product lifts ψ:V1⊕⋯⊕Vr→V′\psi:\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{V}_{r}\to{\cal V}^{\prime} to a function ψ:Ss1⊗V1⊕⋯⊕Ssr⊗Vr→S∑isi⊗V′\psi:\mathcal{S}^{s_{1}}\otimes\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{S}^{s_{r}}\otimes\mathcal{V}_{r}\to\mathcal{S}^{\sum_{i}s_{i}}\otimes{\cal V}^{\prime}.

We isolate the case when ψ:V1⊕⋯⊕Vr→V′\psi:\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{V}_{r}\to\mathcal{V}^{\prime} is the identity function with V′=V1⊕⋯⊕Vr\mathcal{V}^{\prime}=\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{V}_{r}.

(x1;⋯ ;xr)(\bm{x}^{1};\cdots;\bm{x}^{r}) is called the semicolon product of x1,…,xr\bm{x}^{1},\ldots,\bm{x}^{r}. It has entries

The importance of this operation is that: for any ψ\psi, the ψ\psi-outer product is just the composition of the semicolon product followed by application of ψ\psi as in 4.2.11.

This fact simplifies the proofs involving nonlinear outer products.

In light of 4.2.12, this is now interpreted as a ψ\psi-outer product of the multi-vector x=(x1,…,xk)\bm{x}=(x^{1},\ldots,x^{k}) and the multi-scalar θ=(θ1,…,θl)\bm{\theta}=(\theta^{1},\ldots,\theta^{l}).

3 Vanishing and Bounded Moments

In this work, we will especially focus on x\bm{x} where each entry of x(n)\bm{x}(n) has “typical size O(1)O(1)” as n→∞n\to\infty. We formalize this “typical size O(1)O(1)” criterion as follows.

We say a multi-tensor x\bm{x} is entrywise moment-bounded, or just moment-bounded for short, if the following holds: for every integer p≥1p\geq 1

Unpacking the big-O notation, x\bm{x} is moment-bounded iff, for every integer p≥1p\geq 1 and every ϵ>0\epsilon>0, we have

Intuitively, if one thinks of the entries xα\bm{x}_{{\bm{\alpha}}} as samples from a distribution D\mathcal{D}, then ⟨∥xα∥pp⟩α\left\langle\|\bm{x}_{{\bm{\alpha}}}\|_{p}^{p}\right\rangle_{{\bm{\alpha}}} is the (empirical) ppth moment of D\mathcal{D}. Thus, moment-boundedness just means that D\mathcal{D} has bounded empirical moments of every order (ignoring logarithmic factors), i.e., samples from D\mathcal{D} has typical size O(1)O(1).

First, one can note the following trivial property that is useful for simplifying proofs.

x=(x1,…,xk)\bm{x}=(x^{1},\ldots,x^{k}) is moment-bounded iff each of its components x1,…,xkx^{1},\ldots,x^{k} is moment-bounded.

A related property holds for “components along nn”:

Moment-boundedness is closed under applications of polynomially bounded functions: in short,

ψ(x)\psi(\bm{x}) is moment-bounded if x\bm{x} is, and

more generally, ψ(x1;⋯ ;xr)\psi(\bm{x}^{1};\cdots;\bm{x}^{r}) is moment-bounded if x1,…,xr\bm{x}^{1},\ldots,\bm{x}^{r} are.

By polynomially-boundedness of ψ\psi, for any q>0q>0, there are C,pC,p such that, for any zt∈Vt,t=1,…,r\bm{z}^{t}\in\mathcal{V}_{t},t=1,\ldots,r, we have

as well. Since qq and ϵ\epsilon are arbitrary in this argument, this shows ψ(x1;⋯ ;xr)\psi(\bm{x}^{1};\cdots;\bm{x}^{r}) is moment-bounded. ∎

3.2 Vanishing Multi-Tensors

A mentioned above, a notion of “vanishing” will play a central role in what follows:

We say a multi-tensors x\bm{x} is entrywise vanishing, or just vanishing for short, if

Unpacking the big-O notation, x\bm{x} is vanishing iff, for every ϵ>0\epsilon>0,

At first, using the same intuition as above, one may think of vanishing tensors as those whose entries have typical size O(1/n)O(1/\sqrt{n}).

But notice that “vanishing” is defined only via L2L^{2} norm, while “moment-bounded” is defined via every LpL^{p} norm. This is an important technical distinction. The primary purpose of this distinction is that when xx is an nn-vector and WW is an iid matrix with (for example) N(0,1/n)\mathcal{N}(0,1/n) entries,

This is because of the well-known almost sure operator-norm bounds on such iid matrices WW. If we defined “vanishing” based on other LpL^{p} norm as well, then we cannot make the same statement as it will be much more difficult to control the LpL^{p} norm of WxWx.

We summarize these intuitions succinctly as follows (because they are important to understand sooner than later):

Like for moment-boundedness, the “vanishing” property is reducible to components, which makes proofs a bit simpler.

x=(x1,…,xk)\bm{x}=(x^{1},\ldots,x^{k}) is vanishing iff each of its components x1,…,xkx^{1},\ldots,x^{k} is vanishing.

Let x∈S0s⊗V\bm{x}\in\mathcal{S}_{0}^{s}\otimes\mathcal{V} for Euclidean space V\mathcal{V}. Whenever s=0,1s=0,1 or else p<2ss−1p<\frac{2s}{s-1}, we have

For clarity, we prove the claim for x∈S0sx\in\mathcal{S}_{0}^{s}; the generalization to x∈S0s⊗V\bm{x}\in\mathcal{S}_{0}^{s}\otimes\mathcal{V} follows from this case componentwise.

By LpL^{p} norm inequalities, for all p≥2p\geq 2,

When s=0s=0 or 1 or when p<2ss−1p<\frac{2s}{s-1}, we have s⋅2p>s−1s\cdot\frac{2}{p}>s-1, so that, for any sufficiently small δ>0\delta>0,

But since xx is vanishing, the RHS goes to 0 almost surely, and therefore so does KK. We thus have

The following yields a sufficient condition for vanishing that is often easier to show than directly showing vanishing itself. Roughly speaking, it says an nn-tensor is vanishing if every entry looks like O(1/n)O(1/\sqrt{n}) as measured by every power mean expectation.

for all p,εp,\varepsilon and nn, then vv is vanishing.

WLOG we assume s=1s=1, since the general case follows by unrolling vv into a (giant) vector.

3.3 Equivalence Modulo Vanishing Multi-Tensors

Let x,y\bm{x},\bm{y} be multi-tensors of the same shape. We say x\bm{x} is equivalent to y\bm{y}, written x≡y\bm{x}\equiv\bm{y}, if x−y\bm{x}-\bm{y} is vanishing.

Since our writing convention suppresses nn, this notation may be ambiguous: To disambiguate, the equivalence x≡y\bm{x}\equiv\bm{y} is a notion between multi-tensors as sequences, i.e., it should be read as {x(n)}n≡{y(n)}n\{\bm{x}(n)\}_{n}\equiv\{\bm{y}(n)\}_{n}, NOT as a sequence of equivalences x(n)≡y(n)\bm{x}(n)\equiv\bm{y}(n), one for each nn.

The x,y\bm{x},\bm{y} here will all have Θ(1)\Theta(1)-sized entries in our applications. By the discussion above regarding vanishing multi-tensors, x≡y\bm{x}\equiv\bm{y} just means that x\bm{x} and y\bm{y} have roughly the same entries. But note that, as vectors, matrices, or tensors, x\bm{x} can definitely differ from y\bm{y} nontrivially in norm, because e.g., a vanishing vector can have Θ(1)\Theta(1) norm.

We first note a trivial but useful property.

(x1,…,xk)≡(y1,…,yk)(x^{1},\ldots,x^{k})\equiv(y^{1},\ldots,y^{k}) iff x1≡y1,…x^{1}\equiv y^{1},\ldots, and xk≡ykx^{k}\equiv y^{k}.

Equivalence is preserved under most operations, as summarized below:

“smooth” mapping ϕ\phi: (4.3.11 and 4.3.12)

For example, if x≡y\bm{x}\equiv\bm{y} are both moment-bounded, then ϕ(x)≡ϕ(y)\phi(\bm{x})\equiv\phi(\bm{y}). This holds more generally for “smooth” nonlinear outer products.

If x≡y\bm{x}\equiv\bm{y}, then ⟨xαβ⟩β≡⟨yαβ⟩β\langle\bm{x}_{{\bm{\alpha}}{\bm{\beta}}}\rangle_{{\bm{\beta}}}\equiv\langle\bm{y}_{{\bm{\alpha}}{\bm{\beta}}}\rangle_{{\bm{\beta}}}

multiplication by operator-norm-bounded matrices: (4.3.14)

If x≡yx\equiv y are nn-vectors and WW is an nn-matrix that almost surely has bounded operator norm, then Wx≡WyWx\equiv Wy. This holds in particular for WW having iid, zero-mean entries of size Θ(1/n)\Theta(1/\sqrt{n}).

Note that this holds for the semicolon product (i.e., when ψ\psi is identity and V′=V1⊕⋯⊕Vt\mathcal{V}^{\prime}=\mathcal{V}_{1}\oplus\cdots\oplus\mathcal{V}_{t}): If we shorthand Δ=(x1;⋯ ;xr)−(y1;⋯ ;yr)\bm{\Delta}=(\bm{x}^{1};\cdots;\bm{x}^{r})-(\bm{y}^{1};\cdots;\bm{y}^{r}), then

so that, with α=(β1,…,βr){\bm{\alpha}}=({\bm{\beta}}_{1},\ldots,{\bm{\beta}}_{r}),

Then since x1−y1,…,xr−yr\bm{x}^{1}-\bm{y}^{1},\ldots,\bm{x}^{r}-\bm{y}^{r} are all vanishing, so is Δ\bm{\Delta}. Thus, we get (x1;⋯ ;xr)≡(y1;⋯ ;yr)(\bm{x}^{1};\cdots;\bm{x}^{r})\equiv(\bm{y}^{1};\cdots;\bm{y}^{r}).

By the definition of pseudo-Lipschitz, we have

By Holder’s inequality, for any q,r>2q,r>2 such that 2q+2r=1\frac{2}{q}+\frac{2}{r}=1, we have

For any ϵ>0\epsilon>0, we shall choose qq (and consequently rr by the relation 2q+2r=1\frac{2}{q}+\frac{2}{r}=1) barely larger than 2 such that

from which follows n1−ϵ⟨v2u2⟩n^{1-\epsilon}\left\langle v^{2}u^{2}\right\rangle as we wanted. Now, Eq. 4.3 holds for any ϵ>0\epsilon>0 and r>0r>0 because uu is moment-bounded.

For Eq. 4.2, notice Here, the definition of “vanishing” in terms of L2 norm becomes critical, and if we were to define “vanishing” using general Lp norm, then the proof wouldn’t go through.

by standard LpL^{p} norm inequality. We shall choose qq just slightly above 22 so that s(1−2/q)<ϵ/2s(1-2/q)<\epsilon/2. Then 1−ϵ/2+s(1−2/q)<1−δ1-\epsilon/2+s(1-2/q)<1-\delta for some positive δ>0\delta>0 and hence

where the convergence to 0 is because vv is vanishing. ∎

While most nonlinearities we encounter will be pseudo-Lipschitz (globally), occasionally we need to work with the functions that are only locally Lipschitz around some point (for example, the matrix inverse function is locally Lipschitz around a nonsingular matrix). Equivalence to deterministic constant is preserved under locally Lipschitz mapping:

1) ⟨x∙β⟩β,⟨y∙β⟩β\left\langle\bm{x}_{\bullet{\bm{\beta}}}\right\rangle_{{\bm{\beta}}},\left\langle\bm{y}_{\bullet{\bm{\beta}}}\right\rangle_{{\bm{\beta}}} are both moment-bounded;

Note 1) follows easily from Jensen’s inequality. So we shall focus on 2) in the remainder.

Let β′=(β1,…,βs−1)∈[n]s−1{\bm{\beta}}^{\prime}=(\beta_{1},\ldots,\beta_{s-1})\in[n]^{s-1} denote the first s−1s-1 indices. Then, by power-mean inequality, for every β′{\bm{\beta}}^{\prime},

where β{\bm{\beta}} ranges over all [n]s[n]^{s}. Then

where the almost sure convergence is because xx is vanishing. Thus we have ⟨x∙β⟩β\left\langle x_{\bullet\beta}\right\rangle_{\beta} is vanishing, as well. ∎

no matter how WW is correlated with xx and yy.

The first statement is trivial since the definition of “vanishing” only depends on L2L^{2} norm. The second statement follows from well-known operator norm bounds on iid matrices with sub-Gaussian entries. ∎

3.4 Distributional Equivalence (aka Dequivalence)

We will also need the distributional version of equivalence. In the simplest case, we have the following definition.

For any multi-tensor x,y\bm{x},\bm{y} of the same shape, we say x\bm{x} and y\bm{y} are distributionally equivalent, or dequivalent, written

Suppose we have two lists of multi-tensors x1,…,xr\bm{x}^{1},\ldots,\bm{x}^{r} and y1,…,yr\bm{y}^{1},\ldots,\bm{y}^{r}, such that xtx^{t} and yt\bm{y}^{t} have the same shape for every tt, but their shapes can vary with tt. We say (x1,…,xr)\left(\bm{x}^{1},\ldots,\bm{x}^{r}\right) and (y1,…,yr)\left(\bm{y}^{1},\ldots,\bm{y}^{r}\right) are distributionally equivalent, written

This definition is especially necessary for reasoning about the Gaussian conditioning trick inside the induction proof of the Master Theorem.

Finally, we note that, while 4.3.16 seems to be strictly more general than 4.3.15, in fact they are logically equivalent:

For two multi-tensors x,y\bm{x},\bm{y} of the same shape, thought of as sequences {x(n)}n,{y(n)}n\{\bm{x}(n)\}_{n},\{\bm{y}(n)\}_{n}, we may form a new sequence W2(x,y)W_{2}(\bm{x},\bm{y}) of their Wasserstein distances {W2(Dx(n),Dy(n))}n\{W_{2}(\mathcal{D}_{\bm{x}(n)},\mathcal{D}_{\bm{y}(n)})\}_{n}, where W2W_{2}’s underlying metric for each nn is the scaled Euclidean distance d(x,y)=⟨∥xα−yα∥2⟩α,d(\mathbf{x},\mathbf{y})=\sqrt{\langle\|\mathbf{x}_{\bm{\alpha}}-\mathbf{y}_{\bm{\alpha}}\|^{2}\rangle_{\bm{\alpha}}}, and Dx(n),Dy(n)\mathcal{D}_{\bm{x}(n)},\mathcal{D}_{\bm{y}(n)} denote the measures of x(n),y(n)\bm{x}(n),\bm{y}(n). Then,

Conditional dequivalence naturally inherits the basic properties of equivalence. Consider any conditional dequivalence named RR. In summary, conditional dequivalence is preserved under:

multiplication by operator-normed-bounded matrices: (4.3.20)

The formal statements are as follows. The proofs are all trivial given the corresponding statements in Section 4.3.3.

where ⟨x∙β⟩β\left\langle\bm{x}_{\bullet{\bm{\beta}}}\right\rangle_{{\bm{\beta}}} is the multi-tensor x′\bm{x}^{\prime} with entries xα′=⟨xαβ⟩β\bm{x}^{\prime}_{{\bm{\alpha}}}=\left\langle\bm{x}_{{\bm{\alpha}}{\bm{\beta}}}\right\rangle_{{\bm{\beta}}}, and likewise for ⟨y∙β⟩β\left\langle\bm{y}_{\bullet{\bm{\beta}}}\right\rangle_{{\bm{\beta}}}.

4 Getting Equivalence From Distributional Equivalence

Here we discuss several situations, in order of easy to hard, that allow us to “upgrade” dequivalence to equivalence. The most important result (Lemma 4.4.5) in this section reads roughly as follows: If x\bm{x} is iid along the nn-dimensions, then \langle\phi(\bm{x};\bm{x}_{\beta_{1}};\cdots;\bm{x}_{\beta_{r}})\rangle_{{\bm{\beta}}}\equiv\langle\phi(\bm{x};\bm{x}_{\beta_{1}}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}};\cdots;\bm{x}_{\beta_{r}}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle r}\kern 1.0pt\LMpt}}})\rangle_{{\bm{\beta}}} (where, recall, for each ii, \bm{x}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle i}\kern 1.0pt\LMpt}}} is an iid copy of x\bm{x}, such that \bm{x},\bm{x}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}},\ldots,\bm{x}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle r}\kern 1.0pt\LMpt}}} are mutually independent).

In other times, two objects formed from dequivalent ingredients are actually (absolutely) equivalent. This happens typically when we are averaging over many iid things, essentially because of the Law of Large Numbers. The most basic example is:

For example, we will frequently use the following corollary of this:

where the expectation is taken over Z1,…,Zr\bm{Z}^{1},\ldots,\bm{Z}^{r}.

Then for any ξ\xi, ψˉ(ξ;Z1)\bar{\psi}(\xi;\bm{Z}^{1}) has mean zero (over the randomness of Z1\bm{Z}^{1}). Let

Notationally, we have usually written x\bm{x} when we really mean x(n)\bm{x}(n), the nnth element of x\bm{x} as sequence of tensors. This is not ambiguous typically, but here we do want to talk about both semantics. Therefore, in this proof, we will be explicit: for emphasis, we write x[1,∞)={x(n)}n=1∞\bm{x}[1,\infty)=\{x(n)\}_{n=1}^{\infty} for the sequence interpretation and still write just “x\bm{x}” for the nnth element of it (with dependence on nn suppressed as usual).

Now, we will prove yy is vanishing by showing that, with probability 1 on the distribution of x[1,∞)\bm{x}[1,\infty), yy is vanishing conditioned on x[1,∞)\bm{x}[1,\infty).

By Lemma 4.1.3 applied to ψˉ(xα;zβ11)\bar{\psi}(\bm{x}_{{\bm{\alpha}}};\bm{z}_{{\bm{\beta}}_{1}}^{1}) with fixed α{\bm{\alpha}} (using the independence of z1\bm{z}^{1} from x\bm{x}), we have

Because x\bm{x} is moment-bounded, so is ⟨Dp(xα)⟩α∈S0\left\langle D_{p}(\bm{x}_{{\bm{\alpha}}})\right\rangle_{{\bm{\alpha}}}\in\mathcal{S}^{0}, so that, for every ε>0\varepsilon>0,

Thus, for almost every sequence x[1,∞)\bm{x}[1,\infty),

for some constant Cp,ε(x[1,∞))C_{p,\varepsilon}(\bm{x}[1,\infty)) dependent on the whole sequence x[1,∞)\bm{x}[1,\infty). Then

satisfying 4.3.8, implying yy is vanishing conditioned on x[1,∞)\bm{x}[1,\infty). Since this argument holds for every x[1,∞)\bm{x}[1,\infty) and every ε>0\varepsilon>0, we have the desired result. ∎

In the most advanced case, we need Eq. 4.5 to hold even when the x\bm{x} and zi\bm{z}^{i} are strongly correlated. This will turn out to be the most important case, since it forms the induction base for our main theorem.

We in fact don’t need to assume c˚\mathring{c} is deterministic, but doing so simplifies the proof.

Likewise for \langle\psi(\bm{x};\bm{x}_{\beta_{1}}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}};\cdots;\bm{x}_{\beta_{r}}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle r}\kern 1.0pt\LMpt}}};\mathring{\bm{c}})\rangle_{{\bm{\beta}}}.

Intuitively, when all the β1,…,βr\beta_{1},\ldots,\beta_{r} are distinct, then xβ1,…,xβr\bm{x}_{\beta_{1}},\ldots,\bm{x}_{\beta_{r}} are roughly independent as well, but this is obviously not the case when β1,…,βr\beta_{1},\ldots,\beta_{r} are not distinct. However, among all possible values of the tuple (β1,…,βr)(\beta_{1},\ldots,\beta_{r}), the nondistinct ones constitute a minority, vanishing with nn. Therefore, we hope to say that they contribute vanishingly to the sum Eq. 4.7 so as to establish Eq. 4.6.

In the same scenario as Lemma 4.4.5, if s=1s=1, then

(with the expectation taken over \bm{X}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle 1}\kern 1.0pt\LMpt}}};\cdots;\bm{X}^{\mathord{\ThisStyle{\LMpt\kern 1.0pt\LMpt\framebox{\SavedStyle r}\kern 1.0pt\LMpt}}}).

4.1 Proof of Lemma 4.4.5

We assume in the proof that s=1s=1, as the general case is a straightforward modification.

So we can assume WLOG c=c˚\bm{c}=\mathring{c} and furthermore just absorb it into ψ\psi since c˚\mathring{\bm{c}} is deterministic. It remains to show

Note the following properties of Δ\Delta:

By 4.3.8, we just need to show there exist constants CpC_{p} for all integers p≥1p\geq 1 such that

Fix nn and pp. Below, we shall bound each ⟨Δαβ⟩β2p\left\langle\Delta_{\alpha{\bm{\beta}}}\right\rangle_{{\bm{\beta}}}^{2p} individually. By symmetry in α\alpha, we WLOG fix α=n\alpha=n. Let n′n^{\prime} be the largest multiple of rr smaller than nn.

We succinctly overview the core insight here, with more explanation below. There are 3 steps of reasoning:

1. For large nn, ∑βΔαβ\sum_{{\bm{\beta}}}\Delta_{\alpha{\bm{\beta}}} is dominated by the subset sum ∑β∈ΓΔαβ\sum_{{\bm{\beta}}\in\Gamma}\Delta_{\alpha{\bm{\beta}}} where Γ⊆[n′]r\Gamma\subseteq[n^{\prime}]^{r} consists of all β{\bm{\beta}} that do not contain repeating indices (i.e., β1,…,βr\beta_{1},\ldots,\beta_{r} are all distinct). (Note such β{\bm{\beta}} does not contain α\alpha either since α=n>n′\alpha=n>n^{\prime} by assumption).

2. But by Ordered Baranyai’s Theorem (4.1.6), there is a partition of Γ\Gamma into perfect matchings Γ1,Γ2,…\Gamma_{1},\Gamma_{2},\ldots i.e., such that each Γi\Gamma_{i} consists of multi-indices Γi={β1,…,βn′/r}\Gamma_{i}=\{{\bm{\beta}}^{1},\ldots,{\bm{\beta}}^{n^{\prime}/r}\} and β1,…,βn′/r{\bm{\beta}}^{1},\ldots,{\bm{\beta}}^{n^{\prime}/r} partition [n′][n^{\prime}] (i.e., each β∈[n′]\beta\in[n^{\prime}] appear in exactly one of βj{\bm{\beta}}^{j}). For example, if n′=4n^{\prime}=4 and r=2r=2, then Γ={(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)}∪{mirror image}\Gamma=\{(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)\}\cup\{\text{mirror image}\}. This is partitioned into the perfect matchings {(1,2),(3,4)}⊔{(1,3),(2,4)}⊔{(1,4),(2,3)}\{(1,2),(3,4)\}\sqcup\{(1,3),(2,4)\}\sqcup\{(1,4),(2,3)\} along with their mirror images. Back to the general case, we thus have

3. But, conditioned on xα\bm{x}_{\alpha}, each ∑β∈ΓiΔαβ\sum_{{\bm{\beta}}\in\Gamma_{i}}\Delta_{\alpha{\bm{\beta}}} is a sum of independent, mean-zero random variables by 4.4.7. Therefore it has typical size O(n′/r)O(\sqrt{n^{\prime}/r}) which is just O(n)O(\sqrt{n}) because rr is constant. As a result, the whole sum Eq. 4.9 is of order nr−1/2n^{r-1/2} so that

Of the 3 steps above, only 1 and 3 need further explanation. We do so below.

Let R1R_{1} be the set of β{\bm{\beta}} that contains at least one of n′+1,…,nn^{\prime}+1,\ldots,n. Let R2R_{2} be the set of β{\bm{\beta}} that contains repeating indices. Then the complement of Γ\Gamma in [n]r[n]^{r} is a subset of R1∪R2R_{1}\cup R_{2}.

Thus, after multiplying by (n−r)2p(n^{-r})^{2p}, we get

where C=22p−1C=2^{2p-1} (by Lemma 4.1.1). Thus, to show Eq. 4.8, it suffices to show

(for a different set of constants CpC_{p}).

Let ⟨−⟩β∈Γ\left\langle-\right\rangle_{{\bm{\beta}}\in\Gamma} denote average over β∈Γ{\bm{\beta}}\in\Gamma. Recall that, by Ordered Baranyai’s Theorem, we have partitioned Γ\Gamma into Γ1,Γ2,…\Gamma_{1},\Gamma_{2},\ldots where each Γi\Gamma_{i} consists of multi-indices Γi={β1,…,βn′/r}\Gamma_{i}=\{{\bm{\beta}}^{1},\ldots,{\bm{\beta}}^{n^{\prime}/r}\} such that β1,…,βn′/r{\bm{\beta}}^{1},\ldots,{\bm{\beta}}^{n^{\prime}/r} partition [n′][n^{\prime}]. Consequently, for each ii, {Δαβ:β∈Γi}\{\Delta_{\alpha{\bm{\beta}}}:{\bm{\beta}}\in\Gamma_{i}\} is mutually independent conditioned on xα\bm{x}_{\alpha}. We first deduce

5 Matrix Pseudo-Inverse

Apply 4.3.12 to ψ\psi being the matrix pseudo-inverse function, which is locally Lipschitz at any full rank matrix. ∎

Note that nx+⊤n\bm{x}^{+\top} is the correct scaling with nn so that this matrix has Θ(1)\Theta(1) sized entries (it is elucidating to consider the example when k=1k=1 and x\bm{x} is just an nn-vector).

Therefore, since equivalence is preserved under matrix multiplication (which is certainly pseudo-Lipschitz; see 4.3.11), we have

where the first equivalence follows from Eq. 4.11 and 4.3.11, and the last equivalence follows from Lemma 4.4.2. ∎

6 Uniformized Tensor Programs

Here, we “uniformize” different variations of Tensor Programs, in the sense that we squash all the different instructions into a single step. This allows us to streamline the induction in our proofs.

Here each ϕi\phi^{i} is a chosen scalar function with (i−1)(i-1) arguments and WiW^{i} is an n×nn\times n matrix. Each matrix WiW^{i} equals to either some matrix AjA^{j} of the program or its transpose Aj⊤A^{j\top}. The matrices WiW^{i} for different ii can possibly be the same. Thus each program is entirely determined by the data {Aj}j=1L∪{gi}i=1M0∪{ϕi}i=M0+1M\{A^{j}\}_{j=1}^{L}\cup\{g^{i}\}_{i=1}^{M_{0}}\cup\{\phi^{i}\}_{i=M_{0}+1}^{M} along with the correspondence between WiW^{i} and AjA^{j} or Aj⊤A^{j\top}.

This type of program is obviously a subset of \textscNetsor⊤\textsc{Netsor}\top () but it’s also easy to see that they have the same expressive power.

6.2 Uniformized Ne⊗or⊤limit-fromtensor-productNeortop\textsc{Ne}{\otimes}\textsc{or}\top

Here we are tying together the tensor order of ϕi\phi^{i} with the iteration index ii, to simplify the formulation. But note that ϕi\phi^{i} can always ignore all but the first block of inputs, for example, to replicate Eq. 4.13. By the same reasoning as Section 4.6.1, this formulation of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top is equivalent to 2.6.1.

6.3 Setup and Constructions

Every entry of every AlA^{l} is sampled iid from N(0,1/n)\mathcal{N}(0,1/n).

Every entry of every initial vector gig^{i} is sampled iid from N(0,1)\mathcal{N}(0,1).

All nonlinearities ϕi\phi^{i} are pseudo-Lipschitz.

In addition, since both uniformized \textscNetsor⊤\textsc{Netsor}\top and uniformized \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top are subsets of the \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top language, the construction of kets in 2.6.5 make sense for both of them. Finally, in the context of n→∞n\to\infty, we think of the program’s objects as sequences in nn, i.e., Aj∈S2A^{j}\in\mathcal{S}^{2}, gi∈S1g^{i}\in\mathcal{S}^{1}, ci∈S0c^{i}\in\mathcal{S}^{0}.

7 Netsor⊤limit-fromNetsortop\textsc{Netsor}\top Master Theorem, Vectorwise Convergence

Consider a \textscNetsor⊤\textsc{Netsor}\top program in 4.6.1. Consider any collection of vectors y1,…,yky^{1},\ldots,y^{k} in the program. Then they are moment-bounded and

In other words, (y1,…yk)(y^{1},\ldots y^{k}) is distributed like nn iid copies of (\hstretch0.7\talloblongy1⟩,…\hstretch0.7\talloblongyk⟩)(\hstretch{0.7}{\talloblong}y^{1}\rangle,\ldots\hstretch{0.7}{\talloblong}y^{k}\rangle), modulo vanishing vectors. This is a stronger result than , at the cost of assuming faster convergence of initial scalars in 4.6.1.

Let us comment that, in this proof, we do not use the property that equivalence is preserved under iid matrix multiplication 4.3.14 (this property is a crucial reason underlying the definition of “vanishing”), because of \textscNetsor⊤\textsc{Netsor}\top’s rank stability property. This however will be crucial in Section 4.8 to prove the analogous result for \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top.

We recall some terminology from prior works.

A vector is called a G-var if it is an initial vector or generated by MatMul.

We will nontrivially leverage parts of the Master Theorem proof in . Our notation differs from there (hopefully improved for first time readers), but a mapping is provided in Table 4.1. By 4.3.18, it suffices to show this for all G-vars of the program, since other vectors are pseudo-Lipschitz images of G-vars. We furthermore WLOG assume the formulation in Eq. 4.13 and proceed to show this for vectors g1,…,gMg^{1},\ldots,g^{M} (all G-vars in the program).

WLOG, we assume Ω\Omega and Ξ\Xi are both full rank.

Indeed, [44, sec L.5] says that Ξ\Xi (resp. Ω\Omega) is singular iff there are linear dependencies (with constant coefficients) between xix^{i}s (resp. gig^{i}s), which we can get rid of by rewriting the program in the obvious way.Rank stability is a highly nontrivial but technical result of . While seemingly small, it allows us to drastically simplify the proof because we do not have to think about “corner cases” where the rank of a matrix drops suddenly in the limit, which can lead to all kinds of pathological behaviors. Readers interested in full rigor should consult for the proof of this result.

We induct on ii, starting from the base case i=M0i=M_{0}.

This holds by 4.6.1 that the initial vectors are sampled iid.

as well as their moment-boundedness and we shall show

and their moment-boundedness, where the conditional dequivalence can be unpacked into

For brevity, write g\mathrel{\raisebox{-1.29167pt}{\mathbin{\overset{\text{{def}}}{=}}}}g^{i+1},x\mathrel{\raisebox{-1.29167pt}{\mathbin{\overset{\text{{def}}}{=}}}}x^{i+1},W\mathrel{\raisebox{-1.29167pt}{\mathbin{\overset{\text{{def}}}{=}}}}W^{i+1} so that in this notation, by Eq. 4.13, g=Wxg=Wx.

We apply Gaussian conditioning trick to obtain

7.2 Proof Plan

Below, we will give the exact formulas for ω,Π⊥,σ\omega,\Pi^{\perp},\sigma and we will show that

These claims already imply that gg is moment-bounded. Furthermore, applying Eq. 4.17 and 4.3.18 to Eq. 4.19, the above claims imply

7.3 Exact Formulas

Let JJ (resp. J′J^{\prime}) be the set of indices j≤ij\leq i such that Wj=Wi+1W^{j}=W^{i+1} (resp. Wj=Wi+1⊤W^{j}=W^{i+1\top}), so that gj=Wxjg^{j}=Wx^{j} (resp. gj=W⊤xjg^{j}=W^{\top}x^{j}) by construction.

Then, by the same calculations as in , ω,Π⊥,σ\omega,\Pi^{\perp},\sigma have the following exact formulas:

Now we further define g˚\mathring{\bm{g}} to be the matrix with column vectors g˚j\mathring{g}^{j} for all j∈Jj\in J; likewise we define x˚,h˚,y˚\mathring{\bm{x}},\mathring{\bm{h}},\mathring{\bm{y}}. By induction hypothesis (Eq. 4.17), we have

because of 4.3.18 (as this relation is a pseudo-Lipschitz image of Eq. 4.17).

by Eq. 4.23 and Lemma 4.4.3, where the RHS is a deterministic object independent of nn. Likewise,

But both ⟨x\hstretch0.7\talloblongx⟩\langle\bm{x}\hstretch{0.7}{\talloblong}\bm{x}\rangle and ⟨y\hstretch0.7\talloblongy⟩\langle\bm{y}\hstretch{0.7}{\talloblong}\bm{y}\rangle are principal submatrices of Ξ\Xi by construction, so by Sylvester’s Criterion and 4.7.5,

The significance of this is that now we can use Lemma 4.5.3 on x\bm{x} and y\bm{y}.

7.4 Showing 3)

But \hstretch0.7\talloblongz⟩\hstretch{0.7}{\talloblong}z\rangle is independent from \hstretch0.7\talloblongy⟩\hstretch{0.7}{\talloblong}\bm{y}\rangle (because zz is independent from y\bm{y} by construction) and is distributed as N(0,1)\mathcal{N}(0,1), so the ⟨y\hstretch0.7\talloblongz⟩\langle\bm{y}\hstretch{0.7}{\talloblong}z\rangle vanishes. In conclusion,

7.5 Showing 2)

Writing out the definition of σ2\sigma^{2} (Eq. 4.21), we see

where the second line follows by Lemma 4.5.3, and the third line follows by Eq. 4.23 and Lemma 4.4.3.

Note that σ˚2\mathring{\sigma}^{2} is deterministic. By 4.7.5, σ˚2>0\mathring{\sigma}^{2}>0 (because σ˚\mathring{\sigma} is a 1×11\times 1 Schur complement of Ξ\Xi). Then the square root function is locally Lipschitz around σ˚2\mathring{\sigma}^{2}. So by 4.3.12, we get

7.6 Showing 1)

Finally, we can apply the same strategy to show ω=Ex\omega=Ex is equivalent to a linear combination of g˚\mathring{\bm{g}} and y˚\mathring{\bm{y}} with deterministic coefficients, albeit with slightly more calculations.

Then the same deduction as before (involving Lemma 4.4.3 and Lemma 4.5.3) shows

Thus, A,B,CA,B,C, and thus ω\omega are clearly equivalent to linear combinations of (the columns of) g\bm{g} and y\bm{y}. Consequently, ω\omega is also a pseudo-Lipschitz image of g1,…,gig^{1},\ldots,g^{i} because y\bm{y} is. This proves 1).

8 Ne⊗or⊤limit-fromtensor-productNeortop\textsc{Ne}{\otimes}\textsc{or}\top Master Theorem, Vectorwise Convergence

Given an uniformized \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program π\pi (Eq. 4.14), we construct a parallel uniformized \textscNetsor⊤\textsc{Netsor}\top program π‾\underline{\pi}, called the integrated program, as follows. π‾\underline{\pi}’s vectors will be denoted with an underline g‾1,…,g‾M\underline{g}^{1},\ldots,\underline{g}^{M} (which will turn out to be equivalent to their counterparts without underlines).

The initial matrices of π\pi and π‾\underline{\pi} are identical and using the same symbols A1,…,ALA^{1},\ldots,A^{L}.

The initial vectors g‾1,…,g‾M0\underline{g}^{1},\ldots,\underline{g}^{M_{0}} are the same as those of the original program g1,…,gM0g^{1},\ldots,g^{M_{0}}.

Before we prove this, let us remark that Lemma 4.8.2 automatically tells us that identities of kets, such as [44, Lemma L.3], that hold for \textscNetsor⊤\textsc{Netsor}\top programs automatically hold for \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top programs:

For any vectors x,yx,y and matrix WW in a \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program, the following identities hold.

We will induct on ii to show that (g1,…,gi)≡(g‾1,…,g‾i)(g^{1},\ldots,g^{i})\equiv(\underline{g}^{1},\ldots,\underline{g}^{i}). Note that, by 4.3.11, this implies (x1,…,xi+1)≡(x‾1,…,x‾i+1)(x^{1},\ldots,x^{i+1})\equiv(\underline{x}^{1},\ldots,\underline{x}^{i+1}), and by Lemma 4.3.13, this also implies (c1,…,ci+1)≡(c˚1,…,c˚i+1)(c^{1},\ldots,c^{i+1})\equiv(\mathring{c}^{1},\ldots,\mathring{c}^{i+1}).

The base case of i=M0i=M_{0} is trivial since both programs share their initial vectors.

Assuming the induction hypothesis for ii (i.e., (g1,…,gi)≡(g‾1,…,g‾i)(g^{1},\ldots,g^{i})\equiv(\underline{g}^{1},\ldots,\underline{g}^{i})), we shall prove it’s also true for i+1i+1: i.e., we need to show gi+1≡g‾i+1g^{i+1}\equiv\underline{g}^{i+1} in addition.

For brevity, write ϕ=ϕi+1\phi=\phi^{i+1}, ϕ‾=ϕ‾i+1,W=Wi+1\underline{\phi}=\underline{\phi}^{i+1},W=W^{i+1}, x=xi+1x=x^{i+1}. Let g\bm{g} denote (g1,…,gi)(g^{1},\ldots,g^{i}); likewise for g‾\underline{\bm{g}}. Let c\bm{c} denote (c1,…,ci)(c^{1},\ldots,c^{i}) and c˚\mathring{\bm{c}} denote (c˚1,…,c˚i)(\mathring{c}^{1},\ldots,\mathring{c}^{i}). Then since g≡g‾\bm{g}\equiv\underline{\bm{g}} and c≡c˚\bm{c}\equiv\mathring{\bm{c}} by IH, we have by 4.3.11 that

9 Proof of Ne⊗or⊤limit-fromtensor-productNeortop\textsc{Ne}{\otimes}\textsc{or}\top Master Theorem 2.6.10

This will follow from the “uniformly locally Lipschitz” property of \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top programs: For any scalar θ\theta in a program, we can treat θ\theta as a random function θn(c)\theta_{n}(\bm{c}) of initial scalars c\bm{c} (with randomness coming from sampling of initial matrices and vectors) for any finite nn. Then for any c\bm{c}, there is a neighborhood of c\bm{c} and a constant L>0L>0 such that θn\theta_{n} is almost surely Lipschitz for all nn on that neighborhood with Lipschitz constant LL.

This property in particular implies that θn\theta_{n} is equicontinuous over nn almost surely, and thus how fast or slow cn\bm{c}_{n} converges to c˚\mathring{\bm{c}} does not affect the limit lim⁡n→∞θn(cn)\lim_{n\to\infty}\theta_{n}(\bm{c}_{n}).

9.2 Proof of Non-Gaussian Ne⊗or⊤limit-fromtensor-productNeortop\textsc{Ne}{\otimes}\textsc{or}\top Master Theorem

The non-Gaussian \textscNetsor⊤\textsc{Netsor}\top Master Theorem () states that, under 2.6.4, the scalars of the program converge almost surely and in LpL^{p} for every p∈[1,∞)p\in[1,\infty). Our goal here is to adapt its proof to the more general \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top case.

The key technical insight enabling all of this is a bound on the moments of mixed derivatives of a non-Gaussian program’s scalars and vectors against the program’s matrices.

To obtain the non-Gaussian \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top Master Theorem, the main task is to generalize this key technical insight, with which the interpolation trick carries over to our case easily. This is done in Lemmas 4.9.2 and LABEL:{lemma:dc_bound} below, which are useful in their own right beyond this context. The full proof of the non-Gaussian Master Theorem can be then be straightforwardly adapted from .

Consider 2.6.4, but allow the variances of matrix entries to differ from n−1n^{-1} but still bounded above by ν2n−1\nu_{2}n^{-1} for some ν2>0\nu_{2}>0 common to all matrix entries.

Below, we invoke the notion of oblivious constants from [12, Defn I.1]. This is a technical notion needed to finish the proof of the the non-Gaussian Master Theorem, but the first time readers can ignore the comments on oblivious constants.

where constant in the big-O is (p,P)(p,\mathcal{P})-oblivious wrt ψ\psi and the program.

This generalizes [12, Lemma I.3] to \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top.

In the original proof in [12, Sec I], replace ϕ(x1,…,xk)\phi(x^{1},\ldots,x^{k}) with ϕ(x1;⋯ ;xk)\phi(x^{1};\cdots;x^{k}) everywhere. As the original proof essentially factors through arguments about the “supremum” over all indices α∈[n]\alpha\in[n], it can be adapted straightforwardly to the “supremum” over all multi-indices α∈[n]r{\bm{\alpha}}\in[n]^{r}. ∎

Consider a program in 4.9.1. Then for any p≥1p\geq 1, any nonempty multiset P\mathcal{P} of the program’s matrix entries {Wαβ}α,β,W∈W\{W_{\alpha\beta}\}_{\alpha,\beta,W\in\mathcal{W}},, and any scalar cc of the program,

Furthermore, the constant in the big-O is (p,P)(p,\mathcal{P})-oblivious wrt the program.

This generalizes [12, Lemma J.6] to \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top.

Construct the backpropagation program (2.9.14), which is another \textscNe⊗\textscor⊤\textsc{Ne}{\otimes}\textsc{or}\top program. Then proceed as in the proof of [12, Lemma J.6]. ∎

Chapter 5 Experiments

We perform numerical experiments to validate our theory. It is intractable to compute the exact infinite-width limits for general Q\bm{Q}, since the expectations required to evaluate the infinite-width dynamics in both limits do not admit an analytical solution (even for the Neural Tangent Limit). We thus employ Monte Carlo simulations to approximate these expectations.

We approximate the infinite-width training dynamics by estimating the expectations in 2.4.4 and 2.7.3 using Monte Carlo simulations. As the initial loss derivatives are deterministic with zero outputs, the infinite-width dynamics can be estimated without actually constructing a network. To compare the finite and infinite width neural networks’ evolution, we assess the output on random inputs at each iteration. Our results are summarized in Fig. 5.1 and Fig. 5.2. As anticipated, the training dynamics converge to the infinite-width dynamics as the width increases.

Acknowledgements

In alphabetical order, we would like to thank Jeremy Bernstein, Nikhil Ghosh, Dror Ironi, Ariel Landau, Sadhika Malladi, Jamie Simon, and Josh Susskind for providing insightful comments and discussion.

References