We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cond-mat

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Machine Learning

Title: Critical Initialization of Wide and Deep Neural Networks through Partial Jacobians: General Theory and Applications

Abstract: Deep neural networks are notorious for defying theoretical treatment. However, when the number of parameters in each layer tends to infinity, the network function is a Gaussian process (GP) and quantitatively predictive description is possible. Gaussian approximation allows one to formulate criteria for selecting hyperparameters, such as variances of weights and biases, as well as the learning rate. These criteria rely on the notion of criticality defined for deep neural networks. In this work we describe a new practical way to diagnose criticality. We introduce \emph{partial Jacobians} of a network, defined as derivatives of preactivations in layer $l$ with respect to preactivations in layer $l_0\leq l$. We derive recurrence relations for the norms of partial Jacobians and utilize these relations to analyze criticality of deep fully connected neural networks with LayerNorm and/or residual connections. We derive and implement a simple and cheap numerical test that allows one to select optimal initialization for a broad class of deep neural networks; containing fully connected, convolutional and normalization layers. Using these tools we show quantitatively that proper stacking of the LayerNorm (applied to preactivations) and residual connections leads to an architecture that is critical for any initialization. Finally, we apply our methods to analyze ResNet and MLP-Mixer architectures; demonstrating the everywhere-critical regime.
Comments: Accepted (spotlight) at NeurIPS2023. Additional ResNet results. 42 pages, 12 figures
Subjects: Machine Learning (cs.LG); Disordered Systems and Neural Networks (cond-mat.dis-nn); High Energy Physics - Theory (hep-th); Machine Learning (stat.ML)
Cite as: arXiv:2111.12143 [cs.LG]
  (or arXiv:2111.12143v4 [cs.LG] for this version)

Submission history

From: Darshil Doshi [view email]
[v1] Tue, 23 Nov 2021 20:31:42 GMT (760kb,D)
[v2] Tue, 30 Nov 2021 20:58:19 GMT (760kb,D)
[v3] Thu, 27 Jan 2022 01:11:39 GMT (5732kb,D)
[v4] Thu, 5 Oct 2023 22:44:08 GMT (1884kb,D)

Link back to: arXiv, form interface, contact.