Adaptive Width Neural Networks
Federico Errica, Henrik Christiansen, Viktor Zaverkin, Mathias Niepert, Francesco Alesiani
TL;DR
The paper tackles the entrenched practice of fixing layer widths and costly hyper-parameter searches by introducing Adaptive Width Neural Networks (AWNN), which learn unbounded layer widths during training. AWNN jointly optimizes per-layer widths and weights via backpropagation, using a variational objective over latent widths $\boldsymbol{\lambda}$ and neuron weights $\boldsymbol{\theta}$ and a finite truncation $D_\ell$ defined as the $k$-quantile of a monotonically decreasing distribution $f_\ell$. A soft ordering of neuron importance is enforced through a decaying function $f_\ell$ to enable gradual growth and safe post-hoc truncation, while a rescaled initialization (Kaiming+) stabilizes deep AWNN Training. The approach demonstrates comparable or improved performance across tabular, image, text, sequence, and graph tasks, with practical benefits including online compression and the ability to reduce transformer parameter counts by large factors without sacrificing accuracy. These results suggest AWNN as a viable path to reduce hyper-parameter tuning costs for large foundation models and to enable dynamic, task-dependent width adaptation.
Abstract
For almost 70 years, researchers have mostly relied on hyper-parameter tuning to select the width of neural networks' layers. This paper challenges the status quo by introducing an easy-to-use technique to learn an unbounded width of a neural network's layer during training. The technique does not rely on alternate optimization nor hand-crafted gradient heuristics; rather, it jointly optimizes the width and the parameters of each layer via simple backpropagation. We apply the technique to a broad range of data domains such as tables, images, text, sequences, and graphs, showing how the width adapts to the task's difficulty. The method imposes a soft ordering of importance among neurons, by which it also is possible to truncate the trained network at virtually zero cost, achieving a smooth trade-off between performance and compute resources in a structured way. Alternatively, one can dynamically compress the network with no performance degradation. In light of recent foundation models trained on large datasets, believed to require billions of parameters and where hyper-parameter tuning is unfeasible due to humongous training costs, our approach stands as a viable alternative for width learning.
