TL;DR
The paper introduces Instruction-Guided Parameter Generation (IGPG), a novel framework that uses a VQ-VAE and an autoregressive transformer to generate neural network weights directly from task instructions and architecture specifications. By treating neural network parameters as sequences of discrete tokens, IGPG ensures inter-layer coherence and scales efficiently to large, diverse architectures, matching or exceeding the performance of traditional initialization and diffusion-based weight-generation methods.
What Problem Does This Paper Address?
Adapting deep learning models to new tasks typically requires manual architecture selection and expensive fine-tuning. Recently, researchers have explored generative hyper-representation learning—essentially training generative models to output the actual weight parameters of a neural network.
However, existing parameter generation methods (mostly based on diffusion models) face severe bottlenecks:
- Scalability: They struggle to generate parameters for large, modern architectures.
- Rigidity: They cannot easily handle networks of varying depths or configurations.
- Inter-layer Incoherence: They often generate chunks of weights independently, ignoring the complex, sequential dependencies between layers.
This paper tackles these limitations by proposing a unified, flexible framework capable of generating coherent weights across diverse tasks and architectures on demand.
Methods
IGPG approaches parameter generation by combining vector quantization with autoregressive sequence modeling, a pipeline reminiscent of modern text-to-image models like VQGAN.
The method consists of three main steps:
- Parameter Tokenization (VQ-VAE): Neural network weights and biases are flattened and split into fixed-size chunks. A Gumbel-VQ-VAE encodes these continuous weight chunks into discrete tokens from a learned codebook.
- Multimodal Conditioning: The model conditions its generation on two inputs:
- Task Representations: A balanced subset of a dataset is embedded using a CLIP image encoder and mean-pooled to capture task semantics.
- Architecture Specifications: Textual descriptions of the target network architecture are processed using LLaMA-3-Instruct to create architectural embeddings.
- Autoregressive Generation (Transformer Prior): A GPT-2 style transformer is trained to predict the sequence of weight tokens based on the task and architecture embeddings.
To handle large architectures whose tokenized weights exceed the transformer's context window, the authors introduce a chunk-wise autoregressive generation strategy, allowing the model to sequentially compose weights for arbitrarily large networks.
Datasets
The authors evaluated IGPG across several diverse setups:
- Tiny Model Zoo: A benchmark dataset containing compact CNNs trained on MNIST, SVHN, CIFAR-10, and STL-10.
- Meta-Album: A multi-domain meta-dataset consisting of 30 diverse image datasets used to evaluate cross-dataset transfer learning.
- Public GitHub Repositories: 19 diverse pretrained vision models (including ResNet, ShuffleNet, MobileNet, VGG, and RepVGG) ranging from 0.27M to 27M parameters.
- LoRA Benchmarks: Standard vision datasets (Oxford-IIIT Pets, Stanford Cars, CIFAR-10, EuroSAT, DTD, FGVC Aircraft) used to test the generation of low-rank adaptation (LoRA) parameters.
Key Insights and Ideas
- Weights as a Language: By discretizing continuous weights into tokens, the authors successfully apply standard autoregressive language modeling techniques to neural network parameters.
- Autoregression Enforces Coherence: Generating weights layer-by-layer (or chunk-by-chunk) sequentially allows the model to condition deeper layers on the exact structure of earlier layers, solving the disjointed generation problem of diffusion models.
- Cross-Architecture Generalization: Because the model conditions on text-based architecture descriptions, it can successfully interpolate and generate weights for network configurations it has never seen during training.
Key Results
- Zero-Shot & Fine-Tuning Performance: On the Tiny Model Zoo, IGPG achieved competitive zero-shot performance and matched the rapid convergence of state-of-the-art diffusion-based weight generators (D2NWG).
- Out-of-Distribution Generalization: When tested on unseen ResNet variants, IGPG significantly outperformed random initialization and models pretrained on CIFAR-100, achieving up to 64% accuracy on ResNet-20 without any fine-tuning.
- High Fidelity: IGPG-generated weights showed a near-perfect Pearson correlation ($r \ge 0.999$) with original pretrained weights across diverse architectures on both CIFAR-10 and CIFAR-100.
- LoRA Parameter Generation: IGPG successfully learned the distribution of LoRA modules, delivering up to a 10% downstream performance improvement compared to baseline parameter-efficient fine-tuning methods.
Limitations and Future Work
The primary limitation acknowledged by the authors is IGPG's reliance on a large, diverse dataset of pretrained models for training, which currently lacks a comprehensive, standardized public repository.
Additionally, while the framework scales well via chunking, directly prompting pure chat-based LLMs (like LLaMA-3.2) to output these codebooks without extensive fine-tuning remains a challenge, as they struggle with long sequence generation and token consistency. Future work will focus on improving direct parameter generation using advanced chat model architectures.
Summary updated