Representation Costs of Linear Neural Networks: Analysis and Design

Zhen Dai, Mina Karzand, Nathan SrebroNeurIPS 2021

Introduction

In deep learning, practitioners frequently rely on $l_2$ regularization (weight decay) or the implicit regularization of Gradient Descent to help models generalize. However, this penalty is applied to the parameters (the weights), whereas the actual behavior we care about is that of the predictor (the function itself).

This paper explores the "representation cost" of linear neural networks—essentially, how penalizing the size of a network's weights translates into a specific type of regularization on the functions it learns. The authors demonstrate that by simply changing a network's architecture (e.g., from fully connected to convolutional), one fundamentally changes the "complexity measure" the model uses to generalize. Furthermore, they provide a blueprint for designing architectures that induce specific, desired regularizers like sparsity or group-norms.

Bridging Parameters and Predictors

The core problem addressed is the gap between parameter-space penalties and function-space preferences. How does a simple penalty on weights turn into a sophisticated preference for certain functions?

This mapping is determined by the parameterization—the architecture of the network. By mathematically characterizing this "representation cost" for linear neural networks, researchers can better understand why certain architectures (like Convolutional Neural Networks) work well and how to design new ones that favor specific mathematical properties, such as sparsity or smoothness.

Methodology: Analysis and Design

The authors focus on linear neural networks, where the mapping from input to output is a linear transformation, but the internal structure (how weights are multiplied) varies. They define the representation cost $R_F(g)$ as the minimum $l_2$ norm of weights required to represent a specific linear function $g$.

Because the paper is theoretical, no empirical datasets (like ImageNet) were used; results are derived through rigorous mathematical proofs. The study follows a two-pronged approach:

  1. Analysis: Deriving the exact mathematical form of the function-space regularizer induced by common architectures (Fully Connected, Diagonal, Convolutional, and Residual networks).
  2. Design: Tackling the "reverse problem." Given a specific regularizer (like the $k$-support norm used in sparse recovery), the authors determine if a linear network can induce it and, if so, what that architecture must look like.

Key Insights

  • Architecture is the Regularizer: The study confirms that the choice of architecture is not just about "capacity" but about defining what a "simple" function looks like. For example, a deeper network doesn't just change the math; it changes the exponent of the induced norm, often leading to "flatter" or more sparse solutions.
  • Symmetry in the Fourier Domain: For CNNs, the representation cost is equivalent to an $l_p$ quasi-norm applied to the Fourier coefficients of the filters. This explains why CNNs have a natural inductive bias toward certain types of spatial patterns.
  • ResNets as Interpolators: Residual Networks (ResNets) effectively interpolate between the representation costs of their different paths. At small scales, they behave like their shallowest component; at large scales, they behave like their deepest.
  • The Limits of Linear Networks: Surprisingly, the authors prove that some popular regularizers, like the Elastic Net (a mix of $l_1$ and $l_2$ penalties) or overlapping group norms, cannot be induced by any standard homogeneous linear neural network. This suggests that non-linearities or specific non-homogeneous structures are required to achieve those specific biases.

Key Results and Architecture Mappings

The paper successfully maps specific architectures to their induced regularizers, effectively creating a lookup table for network design.

Summary of induced complexity measures and their corresponding network architectures.

Some of the primary architecture-to-regularizer mappings include:

  • Fully Connected (depth $d$): Induces the Schatten $2/d$ quasi-norm (a measure of matrix rank/singular values).
  • Diagonal Networks: Induce $l_{2/d}$ quasi-norms, which promote element-wise sparsity.
  • CNNs: Induce $l_{2/d}$ quasi-norms on the Fourier domain.
  • k-Support Norms: The authors designed a new "k-balanced" architecture that specifically induces this norm, which is useful for selecting groups of correlated features.
Examples of designed network architectures, including k-balanced and group networks.

Limitations and Future Work

The most significant limitation of this work is its focus on linear networks. While this constraint allows for exact mathematical solutions, real-world deep learning relies heavily on non-linear activations like ReLU. Analyzing representation costs for non-linear networks remains a major open challenge.

Additionally, much of the theory relies on "homogeneous" mappings (where scaling weights scales the output predictably). While the authors touched on non-homogeneous ResNets, a broader theory for arbitrary non-homogeneous networks is still missing. Future directions include extending this "design" approach to multi-output functions and exploring how these foundational insights carry over to the much more complex function spaces of non-linear models.

Summary updated

BibTeX
@inproceedings{dai2021representation,
  author = {Zhen Dai and Mina Karzand and Nathan Srebro},
  title = {{Representation Costs of Linear Neural Networks: Analysis and Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=3oQyjABdbC8},
}
Figure