On Expressivity of Height in Neural Networks

Fenglei Fan, Zeyu Li, Huan Xiong, Tieyong Zeng

Abstract

In this work, beyond width and depth, we augment a neural network with a new dimension called height by intra-linking neurons in the same layer to create an intra-layer hierarchy, which gives rise to the notion of height. We call a neural network characterized by width, depth, and height a 3D network. To put a 3D network in perspective, we theoretically and empirically investigate the expressivity of height. We show via bound estimation and explicit construction that given the same number of neurons and parameters, a 3D ReLU network of width $W$, depth $K$, and height $H$ has greater expressive power than a 2D network of width $H\times W$ and depth $K$, i.e., $\mathcal{O}((2^H-1)W)^K)$ vs $\mathcal{O}((HW)^K)$, in terms of generating more pieces in a piecewise linear function. Next, through approximation rate analysis, we show that by introducing intra-layer links into networks, a ReLU network of width $\mathcal{O}(W)$ and depth $\mathcal{O}(K)$ can approximate polynomials in $[0,1]^d$ with error $\mathcal{O}\left(2^{-2WK}\right)$, which improves $\mathcal{O}\left(W^{-K}\right)$ and $\mathcal{O}\left(2^{-K}\right)$ for fixed width networks. Lastly, numerical experiments on 5 synthetic datasets, 15 tabular datasets, and 3 image benchmarks verify that 3D networks can deliver competitive regression and classification performance.

Introduction

For the past decade, the dominant trend in deep learning has been "the deeper, the better." However, we are approaching a physical ceiling in hardware and an economic ceiling in the cost of training massive models. Standard neural networks are essentially 2D structures defined by width ($W$) and depth ($K$). While Recurrent Neural Networks (RNNs) have used intra-layer links for temporal data, general foundational models largely ignore the potential of connections within the same layer. This research introduces "height" as a third structural dimension, created by adding intra-layer links that establish a hierarchy within a single layer.

Methodology: The 3D Network Architecture

The authors propose a 3D Network architecture. In a standard layer, neurons are independent; in a 3D layer, neurons are organized into "floors." Links connect neurons within these floors (intra-layer links), creating a hierarchy before the data passes to the next depth level.

Comparison of 2D and 3D network architectures showing the addition of the height dimension.

2D-3D Transformation

A systematic way to convert a standard wide layer into a multi-floor 3D layer involves using sparse intra-layer links. These links often use fixed weights (e.g., $\pm 1$) to keep parameter counts low while significantly increasing the network's functional complexity.

The transformation process from a 2D network to a 3D network via the introduction of intra-layer links.

Expressivity and Approximation Theory

The research uses the "number of linear regions" in a piecewise linear function as a metric for expressivity. By explicitly constructing "sawtooth" functions, the authors prove that 3D networks can achieve theoretical upper bounds of approximation.

A key insight is the distinction between the repetition effect (composition of functions in depth) and the gating effect (addition of activation states in height). By embedding neurons within a layer, each state can be leveraged to produce a new breakpoint, leading to an exponential boost in linear regions. This synergy allows the approximation error for polynomials to improve from $\mathcal{O}(W^{-K})$ to $\mathcal{O}(2^{-2WK})$.

Experimental Results

The theory was validated across diverse benchmarks:

  • Regression: On synthetic polynomials, 3D networks reduced Mean Squared Error (MSE) by up to 58% compared to 2D networks with similar parameter counts.
  • Tabular Tasks: In industrial tasks like CWRU fault diagnosis, 3D networks improved test accuracy by 2.04% over standard fully-connected models.
  • Image Classification: A 3D version of ResNet with only 7M parameters achieved comparable performance to a specialized DY-ResNet-10 with 18.6M parameters on ImageNet, demonstrating significant model compression potential.

Conclusion

Introducing height as a structural dimension offers a more efficient way to boost a network's expressive power without simply stacking more layers or widening existing ones. While optimization complexity and optimal architecture search remain areas for future work, 3D networks represent a promising direction for creating more parameter-efficient and powerful deep learning models.

Summary updated

BibTeX
@article{fan2023expressivity,
  author = {Fenglei Fan and Zeyu Li and Huan Xiong and Tieyong Zeng},
  title = {{On Expressivity of Height in Neural Networks}},
  journal = {IEEE Transactions on Artificial Intelligence},
  year = {2023},
}
Figure