For almost 70 years, the "width" of a neural network layer—the number of hidden units—has been a static hyperparameter. Practitioners typically find the right width through computationally expensive trial and error, grid searches, or complex Neural Architecture Search (NAS) algorithms. Furthermore, once a model is trained, its size is fixed. Adapting a large model for resource-constrained environments usually requires complex post-processing techniques like pruning or distillation.
As the industry moves toward massive foundation models, the cost of tuning these architectural choices becomes prohibitive. Adaptive Width Neural Networks (AWN) challenge this status quo by introducing an easy-to-use technique to learn an unbounded width for neural network layers dynamically during training. By optimizing the width and parameters jointly via standard backpropagation, AWN allows models to automatically grow or shrink to fit the task's difficulty.
Methodology: Learning Width via Soft Ordering
The core innovation of AWN is a probabilistic framework that treats layer width as a latent variable. Instead of treating all neurons equally, AWN imposes a soft ordering of importance.
The method relies on several key mechanisms:
- Importance Rescaling: Each neuron's activation is multiplied by a scaling factor derived from a monotonically decreasing function. The first neuron is deemed the most "important," with subsequent neurons having progressively less impact on the output.
- Unbounded Width: Using a variational objective (ELBO), AWN jointly optimizes the weights and the width parameters. Because the importance function has infinite support, the network can theoretically grow to any width necessary to minimize the loss.
- Kaiming+ Initialization: Standard initialization schemes (like Kaiming/He) fail in this setup because importance rescaling causes signals to vanish in deep networks. The authors introduce "Kaiming+," a rescaled initialization ensuring the variance of activations remains constant across layers.
- Symmetry Breaking: By ordering neurons by importance, AWN breaks the inherent symmetry of standard Multi-Layer Perceptrons (MLPs). This reduces the "jostling" effect during early training, where symmetric neurons redundantly compete to learn the same features.
Automatic Adaptivity and Zero-Cost Compression
AWN was tested across a massive variety of domains, including synthetic and real-world tabular data, images (MNIST, CIFAR), graphs (NCI1, REDDIT-B), text (Multi30k translation), and sequential data. Across these domains, AWN demonstrated remarkable flexibility.
A standout feature of AWN is that adaptivity is automatic. Harder tasks naturally result in the model learning wider layers without human intervention.
Because neurons are strictly ordered by importance, practitioners can achieve a "free" trade-off between accuracy and compute resources. After training, one can simply truncate the network by chopping off the least important rows or columns of the weight matrices. This dynamic compression allows the network to shrink by over 50% in some cases with virtually zero loss in test accuracy.
Key Results and Efficiency
- Performance Parity and Breakthroughs: Across almost all datasets, AWN achieved accuracy comparable to—and sometimes better than—baselines heavily tuned via grid search. Notably, on the REDDIT-B graph dataset, AWN significantly outperformed previous state-of-the-art results, suggesting that human-chosen widths for Graph Neural Networks have historically been sub-optimal.
- Parameter Efficiency: In Transformer experiments on the Multi30k dataset, the AWN version achieved comparable performance while using 200x fewer parameters in the feed-forward layers compared to a fixed baseline.
- Total Time Efficiency: While a single AWN training run might be slightly slower than a fixed-width run due to architectural adaptation overhead, the total time spent is drastically lower. Practitioners no longer need to run dozens of model variations to find the optimal width.
Limitations and Future Directions
Currently, AWN focuses primarily on MLPs. While MLPs are foundational components of Transformers, GNNs, and CNN classification heads, the principles have not yet been fully extended to convolutional filters (learning the number of channels) or attention heads. Additionally, the authors note that bounded activations (like ReLU6 or Tanh) are important for stability; unbounded activations like standard ReLU can sometimes allow the network to bypass the importance scaling, slowing convergence.
Future work will likely explore the theoretical links between AWN and the Information Bottleneck principle—the concept that a network should be as compact as possible while retaining maximum information about the target. For now, AWN presents a highly viable, efficient alternative to static architectures and expensive hyperparameter tuning.
Summary updated