Architectural Universality of Neural Tangent Kernel Training Dynamics

Total Page:16

File Type:pdf, Size:1020Kb

Architectural Universality of Neural Tangent Kernel Training Dynamics Tensor Programs IIb: Architectural Universality of Neural Tangent Kernel Training Dynamics Greg Yang 1 * Etai Littwin 2 * Abstract In (Yang, 2020a), the NTKINIT property was proven to hold Yang(2020a) recently showed that the Neural for standard architectures, meaning any composition of Tangent Kernel (NTK) at initialization has an MLPs, recurrent neural networks (RNN), LSTMs (Hochre- infinite-width limit for a large class of architec- iter & Schmidhuber, 1997), gated recurrent unit (GRU) tures including modern staples such as ResNet (Cho et al., 2014), convolutions (Fukushima, 1980; 1975; and Transformers. However, their analysis does Lecun et al., 1998; 2000; Rumelhart et al., 1986), residual not apply to training. Here, we show the same neu- connections (He et al., 2016; Huang et al., 2017), batch ral networks (in the so-called NTK parametriza- normalization (Ioffe & Szegedy, 2015), graph neural net- tion) during training follow a kernel gradient de- works (Bruna et al., 2014; Defferrard et al., 2016; Duvenaud scent dynamics in function space, where the ker- et al., 2015; Henaff et al., 2015; Kipf & Welling, 2017) nel is the infinite-width NTK. This completes the and attention (Bahdanau et al., 2015; Vaswani et al., 2017), proof of the architectural universality of NTK along with arbitrary weight sharing between components. behavior. To achieve this result, we apply the Ten- More generally, it holds for any architecture expressible sor Programs technique: Write the entire SGD in a so-called Tensor Program (Yang, 2019b;a; 2020a;b), dynamics inside a Tensor Program and analyze of which the standard architectures are a subset. However, it via the Master Theorem. To facilitate this their reasoning is limited to initialization only. proof, we develop a graphical notation for Tensor A statement is architecturally universal if it holds for any Programs. See the full version of our paper at reasonable neural architecture. This is an informal property, arxiv.org/abs/2105.03703. but here we will formalize it by taking reasonable to be “expressable in Tensor Programs.” By the expressiveness 1. Introduction of such programs (Yang, 2019a; 2020a), architectural uni- versality is a fairly robust notion that covers present (and, (Jacot et al., 2018)’s pioneering work showed that a multi- we expect, future) architectures comprehensively. In this layer perceptron (MLP) trained by gradient descent (GD) terminology, (Yang, 2020a) showed that NTKINIT is archi- evolves like a linear model. This spurred a flurry of research tecturally universal. papers using this insight to tackle the core questions in deep learning theory, from optimization to generalization in both finite and infinite width regimes. (Jacot et al., 2018)’s Our Contribution We show the architectural universality argument consists of two observations: of the entire NTK theory by proving NTKTRAIN for the NTKINIT For the output of a network f(ξ; w) with parame- same architectures discussed above, including all standard ters w given example ξ,(Jacot et al., 2018) identified architectures. In the process, we introduce a new graphical the kernel K(ξ; ξ¯) = hrf(ξ; w); rf(ξ;¯ w)i, known as form of Tensor Programs that is both required in our proofs the Neural Tangent Kernel (NTK). They showed that if and useful for the pedagogy of Tensor Programs. f is parametrized and initialized appropriately, then K ˚ converges to a deterministic kernel K as the width of The Tensor Program Series This paper follows (Yang, the network tends to infinity. 2019b;a; 2020a;b; Yang & Hu, 2020) in the series. While NTKTRAIN As the infinitely wide network is trained by we number this paper “IIb” right after (Yang, 2020a), we gradient descent, the NTK remains frozen in its ini- actually need the complete theoretical foundation developed tial state, and the network evolves by kernel gradient in III (Yang, 2020b). See Footnote 21 for more details. descent with kernel K˚. 2. Background *Equal contribution 1Microsoft Research 2Apple Research. Cor- respondence to: Greg Yang <[email protected]>, Etai Let f(ξ; w) 2 denote the (scalar) output of a neural net- Littwin <[email protected]>. R work parameterized by w, given example ξ. To understand Proceedings of the 38 th International Conference on Machine how the output changes with a slight change in the network Learning, PMLR 139, 2021. Copyright 2021 by the author(s). Architectural Universality of Neural Tangent Kernel Training Dynamics parameters w0 − δw, we may naively expand the network these insights systematically via the notion of paths so as to function using the first order Taylor expansion around a base apply to any architecture expressible by a Tensor Program. point w0: We will illustrate 1) through examples in Section 3 and 2) through figures in Section 5.1. f(ξ; w0 − δw) − f(ξ; w0) ≈ hrwf(ξ; w0); δwi: (1) Under the SGD algorithm, the weight update δw is given by Setup and Notations In this paper, we will consider the ^ ^ ^ the gradient δw = −ηχ(ξ)rwf(ξ; w0) where χ(ξ) is the architecture (including depth), data, and training time to be loss derivative, ξ^ is a sample from the training set, and η is fixed as width n ! 1.3 We describe common notations the learning rate. Plugging into Eq. (1), we get: used in the remainder of the paper. For simplicity, we will consider SGD with batch size 1 and learning rate η (often f(ξ; w − δw) − f(ξ; w ) ≈ −ηχ(ξ^)K(ξ; ξ^): 4 0 0 (2) set to 1 WLOG). We use ξt to denote the input and Lt to denote the loss function (absorbing the label) at step t. where K(ξ; ξ^) = hr f(ξ; w ); r f(ξ^; w )i is the NTK. w 0 w 0 More generally, subscript t on any symbol means time t. The NTK theory of infinitely wide neural networks as first However, for brevity, we abuse notation and shorthand f proposed by (Jacot et al., 2018) boils down to the the fol- t for f (ξ ), and, for any (pre-)activation x, x for x (ξ ).5 lowing observations: When the width of f tend to infinity, t t t t t We will also write χ for the loss derivative L0 (f ). For any the NTK K converges to a fixed kernel K˚ at random ini- t p t t vector x(ξ) we define δx (ξ) def nx (ξ) − x (ξ) tialization, independent of the specific instantiation of the t+1 = t+1 t def p @f(ξ) weights, and remains frozen during the optimization pro- and dx(ξ) = n @x(ξ) . We will track the evolution of f on ~ 6 ~ cess. Eq. (2) then gives an accurate description of the output an arbitrary input ξ. Similar to above, we shorthand x~t; ft ˚ ~ evolution with if we substitue K with K. The seemingly for xt(ξ); ft(~x). complex optimization trajectory of SGD therefore reduce to the convex trajectory of kernel gradient descent with a 3. Motivating Examples time-independent kernel K˚. Consider the output of the network f 2 RD on the full The purpose of this section is to illustrate our key ideas via training dataset. As shown in (Jacot et al., 2018), when the simple, intuitive examples without diving into the specifics L2 loss is used the evolution of the output ft at time t under of Tensor Programs. In the process, we will gain insight continuous time GD (i.e. gradient flow) takes a simple form: into how randomness from initialization propagates over the course of training. As these examples intend to provide the ? −ηK˚t ? ft − f = e (f0 − f ): reader with the proper intuition, we use informal arguments alone and relegate all formal statements to the appendix. where K˚ 2 D×D is the full NTK matrix evaluated on the R For brevity, we will gloss over minor details or routine training data, f ? is the label function, and f is the output 0 calculations, but interested readers can see Appendix A for at initialization. Hence, provided K˚ is full rank, as t ! 1 ? these omissions. we have that ft ! f , and the network can fit the training data perfectly. Key Idea It turns out that the random initialization and the Previous Approaches vs Ours A common theme in overparametrization of weights cause each (pre-)activation vector x (ξ) 2 n, its gradient dx (ξ) 2 n, and its showing NTKTRAIN for MLP is to derive high-probability t R t R δx (ξ) 2 n t bounds on the deviation of the NTK K from its initial value (scaled) change t R every time step to have throughout after training (e.g. Allen-Zhu et al.(2018); Du et al.(2018); roughly iid coordinates, not just initially but training 7 Zou et al.(2018)). 1 Obtaining these bounds usually requires . Then, as we shall demonstrate through the ex- developing ad hoc methods on a per-architecture basis, hin- amples below, to track the evolution of the neural network dering the scalability of the method to other settings. In the function, it suffices to track the evolution of the coordinate x(ξ) dx(ξ) δx(ξ) Zx(ξ) Zdx(ξ) present work we take a more holistic approach, leveraging distributions of , , . We write , , Zδx(ξ) 2 R for the random variables corresponding to such the recently developed Tensor Programs framework (Yang, 8 2019b;a; 2020a;b). It consists of two layers of arguments: coordinate distributions. 1) The bottom layer analyzes how the distribution of (pre- 3They will affect the rate of convergence to the infinite-width )activations change throughout the course of training; this limit, but since we are only concerned with whether convergence occurs, they do not appear in our theorem statements here.
Recommended publications
  • Neural Tangent Generalization Attacks
    Neural Tangent Generalization Attacks Chia-Hung Yuan 1 Shan-Hung Wu 1 Abstract data. They may not want their data being used to train a mass surveillance model or music generator that violates The remarkable performance achieved by Deep their policies or business interests. In fact, there has been Neural Networks (DNNs) in many applications is an increasing amount of lawsuits between data owners and followed by the rising concern about data privacy machine-learning companies recently (Vincent, 2019; Burt, and security. Since DNNs usually require large 2020; Conklin, 2020). The growing concern about data pri- datasets to train, many practitioners scrape data vacy and security gives rise to a question: is it possible to from external sources such as the Internet. How- prevent a DNN model from learning on given data? ever, an external data owner may not be willing to let this happen, causing legal or ethical issues. Generalization attacks are one way to reach this goal. Given In this paper, we study the generalization attacks a dataset, an attacker perturbs a certain amount of data with against DNNs, where an attacker aims to slightly the aim of spoiling the DNN training process such that modify training data in order to spoil the training a trained network lacks generalizability. Meanwhile, the process such that a trained network lacks gener- perturbations should be slight enough so legitimate users alizability. These attacks can be performed by can still consume the data normally. These attacks can data owners and protect data from unexpected use. be performed by data owners to protect their data from However, there is currently no efficient generaliza- unexpected use.
    [Show full text]
  • Wide Neural Networks of Any Depth Evolve As Linear Models Under Gradient Descent
    Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descent Jaehoon Lee∗, Lechao Xiao∗, Samuel S. Schoenholz, Yasaman Bahri Roman Novak, Jascha Sohl-Dickstein, Jeffrey Pennington Google Brain {jaehlee, xlc, schsam, yasamanb, romann, jaschasd, jpennin}@google.com Abstract A longstanding goal in deep learning research has been to precisely characterize training and generalization. However, the often complex loss landscapes of neural networks have made a theory of learning dynamics elusive. In this work, we show that for wide neural networks the learning dynamics simplify considerably and that, in the infinite width limit, they are governed by a linear model obtained from the first-order Taylor expansion of the network around its initial parameters. Fur- thermore, mirroring the correspondence between wide Bayesian neural networks and Gaussian processes, gradient-based training of wide neural networks with a squared loss produces test set predictions drawn from a Gaussian process with a particular compositional kernel. While these theoretical results are only exact in the infinite width limit, we nevertheless find excellent empirical agreement between the predictions of the original network and those of the linearized version even for finite practically-sized networks. This agreement is robust across different architectures, optimization methods, and loss functions. 1 Introduction Machine learning models based on deep neural networks have achieved unprecedented performance across a wide range of tasks [1, 2, 3]. Typically, these models are regarded as complex systems for which many types of theoretical analyses are intractable. Moreover, characterizing the gradient-based training dynamics of these models is challenging owing to the typically high-dimensional non-convex loss surfaces governing the optimization.
    [Show full text]
  • Scaling Limits of Wide Neural Networks with Weight Sharing: Gaussian Process Behavior, Gradient Independence, and Neural Tangent Kernel Derivation
    Scaling Limits of Wide Neural Networks with Weight Sharing: Gaussian Process Behavior, Gradient Independence, and Neural Tangent Kernel Derivation Greg Yang 1 Abstract Several recent trends in machine learning theory and practice, from the design of state-of-the-art Gaussian Process to the convergence analysis of deep neural nets (DNNs) under stochastic gradient descent (SGD), have found it fruitful to study wide random neural networks. Central to these approaches are certain scaling limits of such networks. We unify these results by introducing a notion of a straightline tensor program that can express most neural network computations, and we characterize its scaling limit when its tensors are large and randomized. From our framework follows 1. the convergence of random neural networks to Gaussian processes for architectures such as recurrent neural networks, convolutional neural networks, residual networks, attention, and any combination thereof, with or without batch normalization; 2. conditions under which the gradient independence assumption – that weights in backpropagation can be assumed to be independent from weights in the forward pass – leads to correct computation of gradient dynamics, and corrections when it does not; 3. the convergence of the Neural Tangent Kernel, a recently proposed kernel used to predict training dynamics of neural networks under gradient descent, at initialization for all architectures in (1) without batch normalization. Mathematically, our framework is general enough to rederive classical random matrix results such as the semicircle and the Marchenko-Pastur laws, as well as recent results in neural network Jacobian singular values. We hope our work opens a way toward design of even stronger Gaussian Processes, initialization schemes to avoid gradient explosion/vanishing, and deeper understanding of SGD dynamics in modern architectures.
    [Show full text]
  • The Neural Tangent Kernel in High Dimensions: Triple Descent and a Multi-Scale Theory of Generalization
    The Neural Tangent Kernel in High Dimensions: Triple Descent and a Multi-Scale Theory of Generalization Ben Adlam * y 1 Jeffrey Pennington * 1 Abstract Classical regime Abundant parameterization Superabundant parameterization Modern deep learning models employ consider- ably more parameters than required to fit the train- Loss Deterministic ing data. Whereas conventional statistical wisdom NTK Linear suggests such models should drastically overfit, scaling scaling Quadratic in practice these models generalize remarkably pm pm 2 well. An emerging paradigm for describing this Trainable parameters unexpected behavior is in terms of a double de- scent curve, in which increasing a model’s ca- Figure 1. An illustration of multi-scale generalization phenomena pacity causes its test error to first decrease, then for neural networks and related kernel methods. The classical U-shaped under- and over-fitting curve is shown on the far left. increase to a maximum near the interpolation After a peak near the interpolation threshold, when the number threshold, and then decrease again in the over- of parameters p equals the number of samples m, the test loss de- parameterized regime. Recent efforts to explain creases again, a phenomenon known as double descent. On the far this phenomenon theoretically have focused on right is the limit when p ! 1, which is described by the Neural simple settings, such as linear regression or ker- Tangent Kernel. In this work, we identify a new scale of interest in nel regression with unstructured random features, between these two regimes, namely when p is quadratic in m, and which we argue are too coarse to reveal important show that it exhibits complex non-monotonic behavior, suggesting nuances of actual neural networks.
    [Show full text]
  • Mean-Field Behaviour of Neural Tangent Kernel for Deep Neural
    Mean-field Behaviour of Neural Tangent Kernel for Deep Neural Networks Soufiane Hayou 1 Arnaud Doucet 1 Judith Rousseau 1 Abstract DNNs and how it differs from the actual training of DNNs with Stochastic Gradient Descent. Recent work by Jacot et al.(2018) has shown that training a neural network of any kind, with gradi- Neural Tangent Kernel. Jacot et al.(2018) showed that ent descent in parameter space, is strongly related training a neural network (NN) with GD (Gradient Descent) to kernel gradient descent in function space with in parameter space is equivalent to a GD in a function space respect to the Neural Tangent Kernel (NTK). Lee with respect to the NTK. Du et al.(2019) used a similar et al.(2019) built on this result by establishing approach to prove that full batch GD converges to global that the output of a neural network trained using minima for shallow neural networks, and Karakida et al. gradient descent can be approximated by a linear (2018) linked the Fisher information matrix to the NTK, model for wide networks. In parallel, a recent line studying its spectral distribution for infinite width NN. The of studies (Schoenholz et al., 2017; Hayou et al., infinite width limit for different architectures was studied by 2019) has suggested that a special initialization, Yang(2019), who introduced a tensor formalism that can known as the Edge of Chaos, improves training. express the NN computations. Lee et al.(2019) studied a In this paper, we connect these two concepts by linear approximation of the full batch GD dynamics based quantifying the impact of the initialization and the on the NTK, and gave a method to approximate the NTK for activation function on the NTK when the network different architectures.
    [Show full text]
  • Limiting the Deep Learning Yiping Lu Peking University Deep Learning Is Successful, But…
    LIMITING THE DEEP LEARNING YIPING LU PEKING UNIVERSITY DEEP LEARNING IS SUCCESSFUL, BUT… GPU PHD PHD Professor LARGER THE BETTER? Test error decreasing LARGER THE BETTER? 풑 Why Not Limiting To = +∞ 풏 Test error decreasing TWO LIMITING Width Limit Width Depth Limiting DEPTH LIMITING: ODE [He et al. 2015] [E. 2017] [Haber et al. 2017] [Lu et al. 2017] [Chen et al. 2018] BEYOND FINITE LAYER NEURAL NETWORK Going into infinite layer Differential Equation ALSO THEORETICAL GUARANTEED TRADITIONAL WISDOM IN DEEP LEARNING ? BECOMING HOT NOW… NeurIPS2018 Best Paper Award BRIDGING CONTROL AND LEARNING Neural Network Feedback is the learning loss Optimization BRIDGING CONTROL AND LEARNING Neural Network Interpretability? PDE-Net ICML2018 Feedback is the learning loss Optimization BRIDGING CONTROL AND LEARNING Neural Network Interpretability? PDE-Net ICML2018 Chang B, Meng L, Haber E, et al. Reversible LM-ResNet ICML2018 architectures for arbitrarily deep residual neural networks[C]//Thirty-Second AAAI Conference A better model?DURR ICLR2019 on Artificial Intelligence. 2018. Tao Y, Sun Q, Du Q, et al. Nonlocal Neural Macaroon submitted Networks, Nonlocal Diffusion and Nonlocal Feedback is the Modeling[C]//Advances in Neural Information learning loss Processing Systems. 2018: 496-506. Optimization BRIDGING CONTROL AND LEARNING Neural Network Interpretability? PDE-Net ICML2018 Chang B, Meng L, Haber E, et al. Reversible LM-ResNet ICML2018 architectures for arbitrarily deep residual neural networks[C]//Thirty-Second AAAI Conference A better model?DURR ICLR2019 on Artificial Intelligence. 2018. Tao Y, Sun Q, Du Q, et al. Nonlocal Neural Macaroon submitted Networks, Nonlocal Diffusion and Nonlocal Feedback is the Modeling[C]//Advances in Neural Information learning loss Processing Systems.
    [Show full text]
  • Theory of Deep Learning
    CONTRIBUTORS:RAMANARORA,SANJEEVARORA,JOANBRUNA,NADAVCOHEN,RONG GE,SURIYAGUNASEKAR,CHIJIN,JASONLEE,TENGYUMA,BEHNAMNEYSHABUR,ZHAO SONG,... THEORYOFDEEP LEARNING Contents 1 Basic Setup and some math notions 11 1.1 List of useful math facts 12 1.1.1 Probability tools 12 1.1.2 Singular Value Decomposition 13 2 Basics of Optimization 15 2.1 Gradient descent 15 2.1.1 Formalizing the Taylor Expansion 16 2.1.2 Descent lemma for gradient descent 16 2.2 Stochastic gradient descent 17 2.3 Accelerated Gradient Descent 17 2.4 Local Runtime Analysis of GD 18 2.4.1 Pre-conditioners 19 3 Backpropagation and its Variants 21 3.1 Problem Setup 21 3.1.1 Multivariate Chain Rule 23 3.1.2 Naive feedforward algorithm (not efficient!) 24 3.2 Backpropagation (Linear Time) 24 3.3 Auto-differentiation 25 3.4 Notable Extensions 26 3.4.1 Hessian-vector product in linear time: Pearlmutter’s trick 27 4 4 Basics of generalization theory 29 4.0.1 Occam’s razor formalized for ML 29 4.0.2 Motivation for generalization theory 30 4.1 Some simple bounds on generalization error 30 4.2 Data dependent complexity measures 32 4.2.1 Rademacher Complexity 32 4.2.2 Alternative Interpretation: Ability to correlate with random labels 33 4.3 PAC-Bayes bounds 33 5 Advanced Optimization notions 37 6 Algorithmic Regularization 39 6.1 Linear models in regression: squared loss 40 6.1.1 Geometry induced by updates of local search algorithms 41 6.1.2 Geometry induced by parameterization of model class 44 6.2 Matrix factorization 45 6.3 Linear Models in Classification 45 6.3.1 Gradient Descent
    [Show full text]
  • Wide Neural Networks of Any Depth Evolve As Linear Models Under Gradient Descent
    Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descent Jaehoon Lee⇤, Lechao Xiao⇤, Samuel S. Schoenholz, Yasaman Bahri Roman Novak, Jascha Sohl-Dickstein, Jeffrey Pennington Google Brain {jaehlee, xlc, schsam, yasamanb, romann, jaschasd, jpennin}@google.com Abstract A longstanding goal in deep learning research has been to precisely characterize training and generalization. However, the often complex loss landscapes of neural networks have made a theory of learning dynamics elusive. In this work, we show that for wide neural networks the learning dynamics simplify considerably and that, in the infinite width limit, they are governed by a linear model obtained from the first-order Taylor expansion of the network around its initial parameters. Fur- thermore, mirroring the correspondence between wide Bayesian neural networks and Gaussian processes, gradient-based training of wide neural networks with a squared loss produces test set predictions drawn from a Gaussian process with a particular compositional kernel. While these theoretical results are only exact in the infinite width limit, we nevertheless find excellent empirical agreement between the predictions of the original network and those of the linearized version even for finite practically-sized networks. This agreement is robust across different architectures, optimization methods, and loss functions. 1 Introduction Machine learning models based on deep neural networks have achieved unprecedented performance across a wide range of tasks [1, 2, 3]. Typically, these models are regarded as complex systems for which many types of theoretical analyses are intractable. Moreover, characterizing the gradient-based training dynamics of these models is challenging owing to the typically high-dimensional non-convex loss surfaces governing the optimization.
    [Show full text]
  • When and Why the Tangent Kernel Is Constant
    On the linearity of large non-linear models: when and why the tangent kernel is constant Chaoyue Liu∗ Libin Zhuy Mikhail Belkinz Abstract The goal of this work is to shed light on the remarkable phenomenon of transition to linearity of certain neural networks as their width approaches infinity. We show that the transition to linearity of the model and, equivalently, constancy of the (neural) tangent kernel (NTK) result from the scaling properties of the norm of the Hessian matrix of the network as a function of the network width. We present a general framework for understanding the constancy of the tangent kernel via Hessian scaling applicable to the standard classes of neural networks. Our analysis provides a new perspective on the phenomenon of constant tangent kernel, which is different from the widely accepted “lazy training”. Furthermore, we show that the transition to linearity is not a general property of wide neural networks and does not hold when the last layer of the network is non-linear. It is also not necessary for successful optimization by gradient descent. 1 Introduction As the width of certain non-linear neural networks increases, they become linear functions of their parameters. This remarkable property of large models was first identified in [12] where it was stated in terms of the constancy of the (neural) tangent kernel during the training process. More precisely, consider a neural network or, generally, a machine learning model f(w; x), which takes x as input and has w as its (trainable) parameters. Its tangent kernel K(x;z)(w) is defined as follows: T d K(x;z)(w) := rwf(w; x) rwf(w; z); for fixed inputs x; z 2 R : (1) The key finding of [12] was the fact that for some wide neural networks the kernel K(x;z)(w) is a constant function of the weight w during training.
    [Show full text]
  • Avoiding Kernel Fixed Points: Computing with ELU and GELU Infinite Networks
    The Thirty-Fifth AAAI Conference on Artificial Intelligence (AAAI-21) Avoiding Kernel Fixed Points: Computing with ELU and GELU Infinite Networks Russell Tsuchida,12 Tim Pearce,3 Chris van der Heide,2 Fred Roosta,24 Marcus Gallagher2 1CSIRO, 2The University of Queensland, 3University of Cambridge, 4International Computer Science Institute f(x ) = p1 P U (W>x )+V Abstract 1 n i=1 i fi e1 b, where is an activa- > > Analysing and computing with Gaussian processes arising tion function and xe1 = (x1 ; 1) . The covariance between from infinitely wide neural networks has recently seen a any two outputs is resurgence in popularity. Despite this, many explicit covari- (1) ance functions of networks with activation functions used in k (x1; x2) n n modern networks remain unknown. Furthermore, while the h X X i kernels of deep networks can be computed iteratively, theo- E > > 2 = Vi (Wfi xe1) Vj (Wfj xe2) +σb retical understanding of deep kernels is lacking, particularly i=1 j=1 with respect to fixed-point dynamics. Firstly, we derive the h i 2 E > > 2 covariance functions of multi-layer perceptrons (MLPs) with = σw (Wf1 xe1) (Wf1 xe2) + σb : exponential linear units (ELU) and Gaussian error linear units (GELU) and evaluate the performance of the limiting Gaus- The expectation over d + 1 random variables reduces sian processes on some benchmarks. Secondly, and more gen- to an expectation over 2 random variables, W>x and erally, we analyse the fixed-point dynamics of iterated ker- f1 e1 > nels corresponding to a broad range of activation functions. Wf1 xe2.
    [Show full text]
  • On the Neural Tangent Kernel of Equilibrium Models
    Under review as a conference paper at ICLR 2021 ON THE NEURAL TANGENT KERNEL OF EQUILIBRIUM MODELS Anonymous authors Paper under double-blind review ABSTRACT Existing analyses of the neural tangent kernel (NTK) for infinite-depth networks show that the kernel typically becomes degenerate as the number of layers grows. This raises the question of how to apply such methods to practical “infinite depth” architectures such as the recently-proposed deep equilibrium (DEQ) model, which directly computes the infinite-depth limit of a weight-tied network via root- finding. In this work, we show that because of the input injection component of these networks, DEQ models have non-degenerate NTKs even in the infinite depth limit. Furthermore, we show that these kernels themselves can be computed by an analogous root-finding problem as in traditional DEQs, and highlight meth- ods for computing the NTK for both fully-connected and convolutional variants. We evaluate these models empirically, showing they match or improve upon the performance of existing regularized NTK methods. 1 INTRODUCTION Recent works empirically observe that as the depth of a weight-tied input-injected network increases, its output tends to converge to a fixed point. Motivated by this phenomenon, DEQ models were proposed to effectively represent an “infinite depth” network by root-finding. A natural question to ask is, what will DEQs become if their widths also go to infinity? It is well-known that at certain random initialization, neural networks of various structures converge to Gaussian processes as their widths go to infinity (Neal, 1996; Lee et al., 2017; Yang, 2019; Matthews et al., 2018; Novak et al., 2018; Garriga-Alonso et al., 2018).
    [Show full text]
  • The Surprising Simplicity of the Early-Time Learning Dynamics of Neural Networks
    The Surprising Simplicity of the Early-Time Learning Dynamics of Neural Networks Wei Hu∗ Lechao Xiaoy Ben Adlamz Jeffrey Penningtonx Abstract Modern neural networks are often regarded as complex black-box functions whose behavior is difficult to understand owing to their nonlinear dependence on the data and the nonconvexity in their loss landscapes. In this work, we show that these common perceptions can be completely false in the early phase of learning. In particular, we formally prove that, for a class of well-behaved input distributions, the early-time learning dynamics of a two-layer fully-connected neural network can be mimicked by training a simple linear model on the inputs. We additionally argue that this surprising simplicity can persist in networks with more layers and with convolutional architecture, which we verify empirically. Key to our analysis is to bound the spectral norm of the difference between the Neural Tangent Kernel (NTK) at initialization and an affine transform of the data kernel; however, unlike many previous results utilizing the NTK, we do not require the network to have disproportionately large width, and the network is allowed to escape the kernel regime later in training. 1 Introduction Modern deep learning models are enormously complex function approximators, with many state- of-the-art architectures employing millions or even billions of trainable parameters [Radford et al., 2019, Adiwardana et al., 2020]. While the raw parameter count provides only a crude approximation of a model’s capacity, more sophisticated metrics such as those based on PAC-Bayes [McAllester, 1999, Dziugaite and Roy, 2017, Neyshabur et al., 2017b], VC dimension [Vapnik and Chervonenkis, 1971], and parameter norms [Bartlett et al., 2017, Neyshabur et al., 2017a] also suggest that modern architectures have very large capacity.
    [Show full text]