Skip to content

Trading Width for Depth: Exact and Approximate Serialization of Shallow Neural Networks into Deep Narrow Networks, with an Extension to Convolutional Architectures

Julian Stier

cs.AI

Abstract

We study how a trained shallow and wide neural network can be transformed into a deeper and narrower network that computes the same function, either exactly or up to a prescribed uniform error~ε\varepsilon. The construction partitions the NN hidden units of the shallow network into LL blocks, evaluates one block per layer of the deep network, carries the input forward through dedicated channels and accumulates the partial output sums in further channels. For the ReLU activation the transformation is exact on all of Rd\R^d and yields width ⌈N/L⌉+2d+2K\lceil N/L\rceil+2d+2K, where dd and KK are the input and output dimensions. We transfer the theory to convolutional neural networks. The development culminates in a quantitative theorem for convolutional networks with smooth activations, in which an additional mask channel removes a boundary obstruction caused by zero padding and all constants are independent of the image resolution. Numerical experiments on synthetic data confirm exactness for ReLU networks, the predicted δ2δ^2 convergence rate for tanh⁡\tanh networks, and preserved classification accuracy.

Create a lesson

Metadata

Categories
cs.AI, cs.LG, cs.NE