NNiT: Width-Agnostic Neural Network Generation with Structurally Aligned Weight Spaces
Abstract
Lay Summary
Modern AI systems run on neural networks whose behavior is set by numerous weights, which are normally fixed through slow, expensive training. An alternative is to build a second AI that generates these weights directly. The obstacle is that existing weight-generators are locked to a fixed layer width: they can often be made deeper, but changing how wide the layers are makes them fail. This happens because the same network can be written in countless reshuffled ways, so the weights look like structureless noise, and because prior methods flatten each network into a fixed-length list of numbers whose length is tied to one specific width. Our key finding is that Graph HyperNetworks (GHNs) — models that generate other networks' weights — naturally lay those weights out in a consistent structure instead of the usual scrambled mess. Because the weights are already aligned, our model, NNiT, can generate them directly. And because NNiT's generation process is not tied to any fixed network width, it generalizes to unseen widths, producing fully working robot-control and digit-recognition networks where previous approaches collapse.