Learning and Generating in Neural Weight Space

This direction is merged into another direction: permutation invariance (permutation symmetry), architecture-specific weight generation. Its last version stays readable and citable here.

Version 1 of 133 papers38 conceptsfrozen 2026-10-04

Traditionally, deep learning treats neural network weights as variables to be optimized. We start with a random initialization and use Stochastic Gradient Descent (SGD) to slowly nudge these parameters toward a configuration that minimizes a loss function. However, a growing body of research suggests a more radical perspective: treating neural network weights as data that can be analyzed, transformed, and even generated by other models.

This field, often called Weight Space Learning, aims to build "metanetworks" that understand the manifold of functional neural parameters. If successful, this approach allows us to bypass expensive training loops, predict a model's performance just by "looking" at its weights, and instantly adapt agents to new tasks.

The Weight Space Manifold and Its Symmetries

The primary challenge in processing weights is that they do not behave like pixels in an image or words in a sentence. Neural networks possess inherent symmetries—most notably permutation symmetry. In a standard multilayer perceptron (MLP), you can swap the positions of two neurons in a hidden layer (and their corresponding incoming and outgoing weights) without changing the network's output function.

If a metanetwork treats weights as a simple flat vector, it must learn these symmetries from scratch, which is computationally inefficient. To solve this, Allan Zhou and colleagues introduced Universal Neural Functionals (UNFs) Universal Neural Functionals, a framework that automatically constructs permutation-equivariant models for any architecture. By respecting these symmetries, UNFs can process the weight spaces of complex models like RNNs and Transformers more effectively than architecture-specific baselines.

Beyond permutations, weights also exhibit scaling symmetries (e.g., in ReLU networks, multiplying one layer's weights by a constant and dividing the next layer's weights by the same constant leaves the output unchanged). Ioannis Kalogeropoulos and Yannis Panagakis developed Scale Equivariant Graph Metanetworks Scale Equivariant Graph Metanetworks to bake these scaling invariances directly into the metanetwork architecture, significantly improving the ability to predict the behavior of trained models.

Generating Weights: From SGD to Diffusion

If we can understand the distribution of "good" weights, can we sample from it directly? This would turn model training into a generative task.

Recent work has applied diffusion models—the same technology behind image generators—to the parameter space. Kai Wang and Yang You introduced Recurrent Diffusion for Large-Scale Parameter Generation (RPG) Scaling Up Parameter Generation: A Recurrent Diffusion Approach, which can synthesize hundreds of millions of parameters on a single GPU. By combining recurrent modeling to capture global correlations with a diffusion process, RPG produces models that perform nearly as well as those trained via SGD but are generated in a fraction of the time.

This generative approach is particularly powerful for robotics. Yongyuan Liang and Huazhe Xu developed Make-An-Agent Make-An-Agent: A Generalizable Policy Network Generator with Behavior-Prompted Diffusion, which uses a conditional diffusion model to generate policy weights from a single demonstration. Instead of fine-tuning a robot for hours, the system "dreams up" the necessary weights to perform a new task instantly.

Hyper-representations: Reading the Mind of a Model

Beyond generation, weight space learning allows us to extract "hyper-representations"—compact embeddings that capture the essence of what a model has learned. Konstantin Schürholt demonstrated that these embeddings can accurately predict a model's generalization gap or hyperparameters without ever running the model on a test set Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic Prediction.

This capability extends to heterogeneous architectures. For instance, Francesco Ballerini and Samuele Salti created a framework that can "read" the weights of diverse Neural Radiance Field (NeRF) architectures Weight Space Representation Learning on Diverse NeRF Architectures. Their system can identify that a model represents a "chair" regardless of whether that model is an MLP or a complex hash table, effectively creating an architecture-agnostic understanding of learned functions.

Decoupling Architecture from Parameters

A recurring theme in this research is the desire to break the rigid link between a model's structure and its weights. Bryan A. Plummer and Kate Saenko proposed Shapeshifter Networks (SSNs) Shapeshifter Networks: Decoupling Layers from Parameters for Scalable and Effective Deep Learning, which allow a network to be implemented with an arbitrary number of parameters by automating weight sharing across different layer sizes.

Similarly, Jiwoo Kim and colleagues developed NNiT NNiT: Width-Agnostic Neural Network Generation with Structurally Aligned Weight Spaces, which treats weight matrices as spatially correlated "patches." This allows the generator to scale to different network widths as if it were a resolution-scaling problem, enabling the synthesis of functional weights for architectures the generator has never seen before.

The Path Toward Universal Weight Processors

The ultimate goal of this research direction is a universal weight space processor: a foundation model that can take any neural network as input and refine, adapt, or analyze it. While current methods like SANE Model Zoo Dataset Samples for Scalable Weight Space Learning by Konstantin Schürholt and Damian Borth are beginning to scale these ideas to large models like ResNet-101, the field is still grappling with how to bridge disparate model families (e.g., transferring knowledge from a CNN's weights to a Transformer's weights).

As we move away from viewing weights as static numbers and toward viewing them as a rich, structured data modality, the process of "learning" may shift from gradient-based optimization to generative inference in the weight space.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_learning_and_generating_in_neural_weight_7387ff75,
  title = {Learning and Generating in Neural Weight Space},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/learning-and-generating-in-neural-weight-space/rdr_7387ff75a80c4771a48b5f84b3017746},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-02},
}

This exact version (version 1, frozen text):

@misc{lacuna_learning_and_generating_in_neural_weight_7387ff75_v1,
  title = {Learning and Generating in Neural Weight Space},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/learning-and-generating-in-neural-weight-space/rdr_7387ff75a80c4771a48b5f84b3017746/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-02},
}