cs.LGFeb 26, 2026

NNiT: Width-Agnostic Neural Network Generation with Structurally Aligned Weight Spaces

Authors: Jiwoo Kim, Swarajh Mehta, Hao-Lun Hsu, Hyunwoo Ryu, Yudong Liu, Miroslav Pajic

Organizations: Department of Electrical and Computer Engineering, Duke University, NC, USA · Department of Computer Science, Duke University, NC, USA · Computer Science & Artificial Intelligence Laboratory, Massachusetts Institute of Technology, MA, USA

Abstract

Generative modeling of neural network parameters is often tied to architectures because standard parameter representations rely on known weight-matrix dimensions. Generation is further complicated by permutation symmetries that allow networks to model similar input-output functions while having widely different, unaligned parameterizations. In this work, we introduce Neural Network Diffusion Transformers (NNiTs), which generate weights in a width-agnostic manner by tokenizing weight matrices into patches and modeling them as locally structured fields. We establish that Graph HyperNetworks (GHNs) with a convolutional neural network (CNN) decoder structurally align the weight space, creating the local correlation necessary for patch-based processing. Focusing on Multilayer Perceptrons (MLPs), where permutation symmetry is especially apparent, NNiTs generate fully functional networks across a range of architectures. Our approach jointly models discrete architecture tokens and continuous weight patches within a single sequence model. On ManiSkill3 robotics tasks, NNiT achieves >85%>85\% success on architecture topologies unseen during training, while baseline approaches fail to generalize; the same pipeline also generalizes to MNIST classification beyond the robotic control setting.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Permutation-Equivariant Flow Matching for Alignment-Free Neural Weight Generation

    Sep 26, 2026Arkadi Piven, Yam Eitan, Guy Bar-Shalom +5Flow MatchingEquivariant Neural Networks

  2. Modeling and Understanding Neural Weights of Humanoid Policies with Diffusion

    Oct 14, 2026Huixuan Cheng, Bike Zhang, Shankar Sastry +1Generative ModelingHumanoid Robot Control

  3. A Survey of Weight Space Learning: Understanding, Representation, and Generation

    Mar 10, 2026Xiaolong Han, Zehong Wang, Bo Zhao +8Weight-Space Analysis