Neural Network Architecture Beyond Width and Depth

Shijun Zhang, Zuowei Shen, Haizhao Yang

TL;DR

This paper introduces a third dimension to neural network design—height—creating a recursive architecture called Nested Networks (NestNets). By allowing hidden neurons to be activated by sub-networks rather than simple fixed functions, NestNets achieve a "super-approximation" power that theoretically and empirically outperforms standard deep networks with the same number of parameters.

The Limits of Width and Depth

In the world of deep learning, models are typically scaled in two dimensions: width (the number of neurons per layer) and depth (the number of layers). However, theoretical research has shown that standard Rectified Linear Unit (ReLU) networks face a fundamental mathematical limit. For a fixed number of parameters $n$, the best possible approximation error for a smooth function is bounded by $\mathcal{O}(n^{-2/d})$, where $d$ is the input dimension.

As networks approach these theoretical limits, simply adding more layers or neurons yields diminishing returns. To break this bottleneck and overcome the "curse of dimensionality," the authors propose introducing a completely new structural dimension that fundamentally rethinks how neurons interact.

Introducing Nested Networks (NestNets)

The authors propose Nested Networks (NestNets), which introduce a new hyper-parameter called height ($s$).

Comparison of standard networks (a, b) scaled by width and depth, versus Nested Networks (c, d) scaled by height, where each neuron contains a sub-network.
  • Recursive Construction: A NestNet of height $s=1$ is equivalent to a standard neural network. A NestNet of height $s=2$ is a network where each "activation function" is replaced by a small $s=1$ neural network. This nesting process can continue recursively to any height $s$.
  • Parameter Sharing: The brilliance of the NestNet lies in its parameter-sharing scheme. While a NestNet can theoretically be "expanded" into a massive standard network, the sub-networks (acting as activations) are reused across the main network. This allows the model to represent incredibly complex, high-frequency functions using a relatively small set of trainable weights.
  • Mathematical Framework: The paper proves that a height-$s$ NestNet with $\mathcal{O}(n)$ parameters can approximate 1-Lipschitz functions with an error of $\mathcal{O}(n^{-(s+1)/d})$. When $s$ is sufficiently large, this significantly beats the $\mathcal{O}(n^{-2/d})$ limit of standard architectures.

Key Insights

  • Activation as a Learnable Network: Instead of using a fixed, non-trainable function like ReLU or Sigmoid, NestNets treat the activation process as a learnable sub-task. This makes the individual "neurons" exponentially more expressive.
  • Beating the Curse of Dimensionality: The authors demonstrate that if the height $s$ is scaled such that $s+1 \ge d$, the approximation error becomes $\mathcal{O}(n^{-1})$, effectively making the error rate independent of the input dimension $d$.
  • Efficiency through Nesting: By distributing parameters into nested sub-networks, the model can approximate complex functions that a standard network would need exponentially more parameters to match.

Empirical Results

The researchers evaluated NestNets using two primary benchmarks to validate their theoretical claims:

  1. Archimedean Spiral (Synthetic): A binary classification task involving two highly intertwined spirals. This is a notoriously "hard" problem for shallow or poorly configured networks because it requires capturing high-frequency spatial changes.
  2. Result: In experiments with a width of 50 and 4 layers, a standard network achieved 86.6% accuracy. A NestNet with the same base architecture—adding only 10 extra parameters for the sub-network—achieved a near-perfect 99.99% accuracy.
  3. Fashion-MNIST: A standard image classification dataset used to test if the NestNet principle translates to convolutional neural networks (CNNs).
  4. Result: Even with a very simple implementation (replacing standard ReLUs with a tiny 10-parameter sub-network), the NestNet version of a CNN consistently outperformed the standard version in both peak and average test accuracy (e.g., 92.66% vs 92.53%).

Limitations and Future Work

While theoretically powerful, NestNets come with practical trade-offs:

  • Optimization Complexity: Tuning hyper-parameters for nested architectures is challenging. The recursive nature makes the loss landscape potentially more complex to navigate during gradient descent.
  • Training Time: NestNets generally take longer to train than standard networks (e.g., ~4200s vs ~2600s for the width-50 model in their tests). This is due to the computational overhead of evaluating the sub-networks during every forward and backward pass.
  • Scope of Activation Functions: The current theoretical analysis is primarily limited to ReLU networks. Future work will need to explore generalizing these results to other popular activations (like tanh or sigmoid) and different function spaces.

Summary updated

BibTeX
@inproceedings{zhang2022neural,
  author = {Shijun Zhang and Zuowei Shen and Haizhao Yang},
  title = {{Neural Network Architecture Beyond Width and Depth}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=T9ZlXKwo7x},
}
Figure