Skip to main content
QUICK REVIEW

[Paper Review] Disentangling feature and lazy learning in deep neural networks: an empirical study.

Mario Geiger, Stefano Spigler|arXiv (Cornell University)|Jan 1, 2019
Gaussian Processes and Bayesian InferenceComputer Science14 references11 citations
TL;DR

This paper empirically investigates the transition between lazy and feature learning regimes in deep neural networks by varying the scaling of last-layer weights as $\alpha / \sqrt{h}$, showing that feature learning outperforms lazy learning in both fully-connected and convolutional setups, with performance differences diminishing at large width $h$, while initial condition fluctuations scale as $1/\sqrt{h}$, enabling performance gains via width or ensemble averaging.

ABSTRACT

Two distinct limits for deep learning as the net width $h o\infty$ have been proposed, depending on how the weights of the last layer scale with $h$. In the lazy-learning regime, the dynamics becomes linear in the weights and is described by a Neural Tangent Kernel $\Theta$. By contrast, in the feature-learning regime, the dynamics can be expressed in terms of the density distribution of the weights. Understanding which regime describes accurately practical architectures and which one leads to better performance remains a challenge. We answer these questions and produce new characterizations of these regimes for the MNIST data set, by considering deep nets $f$ whose last layer of weights scales as $\frac{\alpha}{\sqrt{h}}$ at initialization, where $\alpha$ is a parameter we vary. We performed systematic experiments on two setups (A) fully-connected Softplus momentum full batch and (B) convolutional ReLU momentum stochastic. We find that (1) $\alpha^*=\frac{1}{\sqrt{h}}$ separates the two regimes. (2) for (A) and (B) feature learning outperforms lazy learning, a difference in performance that decreases with $h$ and becomes hardly detectable asymptotically for (A) but is very significant for (B). (3) In both regimes, the fluctuations $\delta f$ induced by initial conditions on the learned function follow $\delta f\sim1/\sqrt{h}$, leading to a performance that increases with $h$. This improvement can be instead obtained at intermediate $h$ values by ensemble averaging different networks. (4) In the feature regime there exists a time scale $t_1\sim\alpha\sqrt{h}$, such that for $t\ll t_1$ the dynamics is linear. At $t\sim t_1$, the output has grown by a magnitude $\sqrt{h}$ and the changes of the tangent kernel $\|\Delta\Theta\|$ become significant. Ultimately, it follows $\|\Delta\Theta\|\sim(\sqrt{h}\alpha)^{-a}$ for ReLU and Softplus activation, with $a<2$ & $a o2$ when depth grows.

Motivation & Objective

  • To identify the critical scaling $\alpha^*$ that separates lazy and feature learning regimes in deep networks.
  • To compare the generalization performance of lazy and feature learning across different architectures (fully-connected and convolutional) on MNIST.
  • To analyze how initial condition fluctuations affect learned functions and how width $h$ influences model performance.
  • To characterize the time evolution of the tangent kernel $\Theta$ and its changes $\|\Delta\Theta\|$ in the feature regime.

Proposed method

  • Systematic experiments on two setups: (A) fully-connected Softplus with momentum and full-batch training, and (B) convolutional ReLU with momentum and stochastic training.
  • Varying the initial weight scaling of the last layer as $\alpha / \sqrt{h}$ to probe the transition between lazy and feature learning regimes.
  • Analyzing the dynamics of the network output and the evolution of the Neural Tangent Kernel $\Theta$ over training time.
  • Measuring the sensitivity of the learned function to initial conditions via $\delta f$, and relating it to width $h$.
  • Deriving the time scale $t_1 \sim \alpha\sqrt{h}$ at which the network transitions from linear to nonlinear dynamics.
  • Quantifying the asymptotic behavior of $\|\Delta\Theta\|$ as $\sim (\sqrt{h}\alpha)^{-a}$ for ReLU and Softplus, with $a < 2$ and $a \to 2$ as depth increases.

Experimental results

Research questions

  • RQ1What value of $\alpha$ separates the lazy and feature learning regimes in deep networks with increasing width $h$?
  • RQ2Does feature learning consistently outperform lazy learning across different network architectures and training setups?
  • RQ3How do fluctuations in the learned function due to initial conditions scale with network width $h$?
  • RQ4What is the time scale $t_1$ at which nonlinear dynamics emerge in the feature regime, and how does it depend on $\alpha$ and $h$?
  • RQ5How does the change in the tangent kernel $\|\Delta\Theta\|$ evolve over time, and what is its asymptotic scaling?

Key findings

  • The critical scaling $\alpha^* = 1/\sqrt{h}$ separates the lazy and feature learning regimes, marking the transition point between linear and nonlinear dynamics.
  • Feature learning outperforms lazy learning in both setups (A) and (B), with the performance gap decreasing asymptotically with increasing width $h$, and remaining significant in the convolutional setup (B).
  • Initial condition fluctuations $\delta f$ scale as $1/\sqrt{h}$ in both regimes, implying that performance improves with width, and this improvement can be replicated at intermediate widths via ensemble averaging.
  • A time scale $t_1 \sim \alpha\sqrt{h}$ marks the onset of nonlinear dynamics, after which the output grows by a factor of $\sqrt{h}$ and $\|\Delta\Theta\|$ becomes significant.
  • The magnitude of tangent kernel changes $\|\Delta\Theta\|$ asymptotically scales as $\sim (\sqrt{h}\alpha)^{-a}$ for ReLU and Softplus, with $a < 2$, and $a \to 2$ as depth increases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.