SGD Learns the Conjugate Kernel Class of the Network

Amit Daniely

Introduction

Despite the massive empirical success of deep learning, our theoretical understanding of why it works has historically lagged behind practice. While it is well-established that deep networks are expressive enough to represent highly complex functions, there has been a distinct lack of mathematical proofs showing that the most common training algorithm—Stochastic Gradient Descent (SGD)—can actually find those functions in a reasonable (polynomial) number of steps for networks deeper than two layers.

Previous theoretical guarantees were often restricted to very shallow, depth-2 networks, specific input distributions (like Gaussian noise), or non-standard algorithms that do not reflect the SGD used in the real world. This paper bridges that gap by providing the first polynomial-time guarantee showing that standard SGD can successfully train "log-depth" neural networks (where depth grows with the logarithm of the input dimension) under arbitrary input distributions.

Methodology: Computation Skeletons

The author builds on a theoretical framework called Computation Skeletons. A skeleton is essentially a blueprint of a network's architecture, represented as a Directed Acyclic Graph (DAG).

Examples of computation skeletons and the generic training algorithm.

From this blueprint, two distinct mathematical objects are derived:

  1. A Neural Network: A "realization" of the skeleton where each node is replaced by a layer of $r$ neurons.
  2. A Conjugate Kernel: A mathematical function (kernel) that describes the similarity between inputs as perceived by the network at its random initialization.

The core of the method involves showing that at the start of training (using standard Xavier initialization), a sufficiently wide network already "contains" an approximation of every function in its corresponding kernel Hilbert space. The paper then proves that when SGD is applied to the whole network, the network stays "close enough" to this initial state such that it converges to a globally competitive solution.

Key Insights and Theoretical Guarantees

  • The Kernel-Network Connection: The foundational insight is that right after random initialization, a neural network acts like a kernel machine. By simply changing the weights of the last layer, the network can approximate any function in the kernel space.
  • SGD as a Global Optimizer: The paper proves that this favorable starting point isn't lost during training. Even though SGD updates all layers (not just the last one), it is guaranteed to find a function that performs as well as the best function in the kernel space.
  • Depth Matters: Unlike previous proofs that stopped at depth-2, this framework handles "log-depth" architectures. This is significant because it covers many practical deep learning scenarios where depth is not just a small constant.
  • Polynomial Time Convergence: For both smooth ($C$-bounded) and ReLU activations, the paper proves that the number of SGD steps ($T$) and the network width ($r$) required to reach an accuracy $\epsilon$ are polynomial in the relevant parameters (norm of the function, $1/\epsilon$, and input dimensions).
  • Universal Learning: The author shows that this "conjugate kernel class" is incredibly rich. A specific corollary establishes that SGD on a large enough network can learn any continuous function, complementing classical "universal approximation" theorems by adding a concrete "learnability" guarantee. It also guarantees the efficient learning of constant-degree polynomials with bounded coefficients.
  • Multiclass Support: These theoretical results extend to multiclass classification using the logistic loss, demonstrating that the theory holds up in standard, competitive settings.

Limitations and Future Directions

While this paper represents a major step forward for deep learning theory, it has a few notable limitations:

  • Large Polynomial Bounds: While the bounds are technically "polynomial" (the gold standard in computer science theory), the exponents involved are quite large. In practice, networks learn much faster than these worst-case theoretical bounds suggest.
  • The "Lazy Training" Regime: This work operates in a regime—often called the Neural Tangent Kernel (NTK) regime—where the weights do not move very far from their initial values. Some researchers argue that "real" deep learning involves more significant feature learning that this specific analysis might not fully capture.
  • Architecture Specifics: While the skeleton framework is general, the specific bounds depend on the complexity of the skeleton. Exploring how more modern components like Residual connections (ResNets) or Attention mechanisms (Transformers) fit into this framework remains an open area for future extension.

Summary updated

BibTeX
@inproceedings{daniely2017sgd,
  author = {Amit Daniely},
  title = {{SGD Learns the Conjugate Kernel Class of the Network}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure