Generative Modeling of Weights: Generalization or Memorization?

Boya Zeng, Yida Yin, Zhiqiu Xu, Zhuang Liu
6/9/2025
cs.LGcs.CV

Official code: boyazeng/weight_memorization (23 stars, last commit 2026-04-09).

Abstract

Generative models have recently been explored for synthesizing neural network weights. These approaches take neural network checkpoints as training data and aim to generate high-performing weights during inference. In this work, we examine four representative, well-known methods on their ability to generate novel model weights, i.e., weights that are different from the checkpoints seen during training. Contrary to claims in prior work, we find that these methods synthesize weights largely by memorization: they produce either replicas, or, at best, simple interpolations of the training checkpoints. Moreover, they fail to outperform simple baselines, such as adding noise to the weights or taking a simple weight ensemble, in obtaining different and simultaneously high-performing models. Our further analysis suggests that this memorization might result from limited data, overparameterized models, and the underuse of structural priors specific to weight data. These findings highlight the need for more careful design and rigorous evaluation of generative models when applied to new domains. Our code is available at https://github.com/boyazeng/weight_memorization.

View on arXivView PDF

Code Implementations(1)

Code release for "Generative Modeling of Weights: Generalization or Memorization?"

230C++, ShellMay 24, 20256 months ago

Similar Papers

Cite this paper

@article{zeng2025generative,
  title  = {Generative Modeling of Weights: Generalization or Memorization?},
  author = {Boya Zeng and Yida Yin and Zhiqiu Xu and Zhuang Liu},
  year   = {2025},
  eprint = {2506.07998},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07998v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07998.svg)](https://codeofpaper.com/paper/2506.07998)

Discussion