Can a Language Model Learn to Generate Neural Network Weights?

A new paper proposes treating neural network parameters as a discrete sequence that can be modeled autoregressively. The method quantizes pretrained weights into tokens and trains a generator conditioned on task instructions.

From Weights to Tokens

Neural network parameters live in continuous space. Gradient descent moves them through that space. The authors ask whether a different representation could let a model learn the distribution of good parameters across many tasks and architectures. They choose a vector quantized variational autoencoder. The VQ-VAE compresses each weight tensor into a sequence of discrete codes. A codebook of fixed size replaces floating point values with integers. The paper does not state the codebook size. The encoder maps pretrained weights to token sequences. The decoder maps token sequences back to weight tensors. Reconstruction error exists. The authors note that quantization introduces approximation but argue the discrete representation enables autoregressive modeling.

This discrete bottleneck is the key design choice. It trades exact weight recovery for the ability to model parameter distributions with sequence models. The VQ-VAE is trained on a corpus of pretrained checkpoints. Its codebook learns a shared vocabulary of weight patterns. The paper does not specify how many checkpoints or which architectures populate that corpus.

The Autoregressive Generator

A transformer decoder receives the token sequence. The prefix carries a description of the target task or architecture. The model predicts the next token. Training maximizes likelihood of the quantized weight sequences given their prefixes. At inference the generator produces tokens autoregressively. The VQ-VAE decoder turns those tokens into a full parameter set. The resulting network can be used directly or fine tuned. The approach is called Instruction Guided Parameter Generation. The generator sees diverse architectures during training. The paper does not list the specific architectures. The prefix conditioning is the only mechanism that ties generation to a desired configuration.

No hypernetwork-style weight prediction heads appear. No iterative refinement loops. The entire parameter tensor emerges from a single left-to-right pass. Sequence length scales with parameter count. The paper does not state maximum sequence length or context window. It does not discuss compute requirements for training the generator.

What the Experiments Show

Three evaluation settings appear. In distribution generation measures how well the method reproduces weights for tasks and architectures seen during training. Cross dataset transfer tests whether generated weights help on held out datasets. Cross architecture tests whether generated weights help on unseen architectural configurations. The method achieves competitive performance on in distribution generation. On held out datasets and architectures the generated weights serve as useful initializations. Downstream performance after adaptation improves over random initialization. The paper does not report absolute accuracy numbers. It does not compare against hypernetworks or other weight generation baselines by name. The gains are described as improvements over random initialization after adaptation.

Where the Approach Stops

The VQ-VAE bottleneck limits fidelity. The paper does not quantify the reconstruction error in parameter space. The autoregressive generator must model long sequences. Training requires a collection of pretrained models. The paper does not describe how that collection was assembled or how many models it contains. The prefix conditioning mechanism is not detailed. The paper does not address whether the method scales to large language model parameter counts. The journal reference lists Transactions on Machine Learning Research 2026. The submission date is 19 Nov 2026. The file size is 90 KB.

The sources this article was written from

  • "arXiv:2611.25538v1
    https://arxiv.org/abs/2611.25538v1"

Read next