Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shaping

James Martens, Andy Ballard, Guillaume Desjardins, Grzegorz Swirszcz, Valentin Dalibard, Jascha Sohl-Dickstein, Samuel S. SchoenholzarXiv 2021

Introduction

Modern deep learning architectures are heavily reliant on specific structural components to ensure trainability. Skip connections, popularized by ResNets, and normalization layers, such as Batch Normalization, have become standard requirements for training networks of significant depth. Without these "crutches," deep networks typically suffer from vanishing or exploding gradients, leading to a total failure of the learning process.

While effective, these components introduce significant complexity. They entangle a model's expressivity with its optimization properties and obscure the theoretical understanding of how information flows through deep layers. This paper introduces Deep Kernel Shaping (DKS), a mathematically rigorous framework designed to decouple trainability from architecture. DKS enables the rapid training of "vanilla" feedforward networks—those without skip connections or normalization layers—at speeds comparable to state-of-the-art ResNets.

The Challenge: Geometric Degeneration

The primary obstacle to training deep plain networks is the degeneration of the network's internal representations. Using a theoretical framework known as Q/C map analysis, the authors track how the scale (Q) and cosine similarity (C) of input data points evolve as they propagate through the network.

In standard deep architectures, the C-map tends to degenerate as depth increases. This means that distinct input data points either collapse into a single point (losing all discriminative information) or explode into random noise. When this geometric information is destroyed at initialization, gradient-based optimization becomes impossible. Historically, skip connections and Batch Normalization have served as accidental "kernel shapers" that mitigate this degeneration.

Deep Kernel Shaping (DKS)

DKS provides a deliberate, mathematical approach to preserving geometric information without altering the model class. The method consists of three primary interventions:

  1. Activation Function Transformations: This is the central innovation of DKS. Standard activation functions $\phi(x)$ are transformed into $\gamma(\phi(\alpha x + \beta) + \delta)$, where $\alpha, \beta, \gamma,$ and $\delta$ are learned scalar shifts and scales. This transformation forces the initialization-time kernel to remain "well-behaved" regardless of depth.
  2. Orthogonal Delta Initialization: A specialized initialization scheme for weights that ensures stable variance and preserves the isometry of the layers.
  3. Per-Location Normalization (PLN): A pre-processing step applied to input data to ensure uniform starting scales across the spatial dimensions.

By applying these techniques, the authors demonstrate that the specific choice of nonlinearity (e.g., ReLU, tanh, sigmoid) becomes secondary to the geometric shaping of the kernel.

Experimental Performance

The authors evaluated DKS on large-scale benchmarks, including ImageNet and CIFAR-10, with remarkable results:

  • Speed Parity with ResNets: Using DKS, a 101-layer skip-free, normalization-free network was trained on ImageNet. When paired with advanced second-order optimizers like K-FAC or Shampoo, these vanilla networks matched the training speed of standard ResNet-101 models.
  • Extreme Depth: On CIFAR-10, the researchers successfully trained a 250-layer skip-free Wide-ResNet, a feat previously considered impossible for plain architectures.
  • Activation Versatility: DKS proved effective across 12 different activation functions, including traditionally difficult ones like the logistic sigmoid and tanh.

The Role of the Optimizer

A key finding of the research is that while DKS solves the initialization problem, the optimization landscape of deep skip-free networks remains challenging. While DKS networks significantly outperform baseline plain networks when using standard SGD, they still fall short of ResNet speeds. Achieving true speed parity requires second-order optimizers. This suggests that skip connections provide a "smoothing" effect on the loss landscape during training that initialization alone cannot fully replicate.

Limitations and Future Outlook

Despite its success in enabling deep plain networks, DKS faces several hurdles:

  • Generalization: DKS networks currently exhibit a slight decrease in test accuracy compared to ResNets, primarily due to increased overfitting.
  • Architectural Constraints: The current mathematical framework does not yet support multiplicative units, such as the self-attention mechanisms found in Transformers, or recurrent structures (RNNs).
  • Complexity of Optimizers: The reliance on K-FAC or Shampoo adds computational overhead and implementation complexity compared to simple SGD.

In conclusion, Deep Kernel Shaping represents a significant step toward a more fundamental understanding of deep learning. By proving that skip connections and normalization are not strictly necessary for depth, DKS opens the door for new architectural designs driven by problem-specific logic rather than optimization constraints.

Summary updated

BibTeX
@misc{martens2021rapid,
  author = {James Martens and Andy Ballard and Guillaume Desjardins and Grzegorz Swirszcz and Valentin Dalibard and Jascha Sohl-Dickstein and Samuel S. Schoenholz},
  title = {{Rapid training of deep neural networks without skip connections or normalization layers using Deep Kernel Shaping}},
  year = {2021},
  eprint = {2110.01765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.01765},
}
Figure