Generalization of Diffusion Models Arises with a Balanced Representation Space

Zekai Zhang, Xiao Li, Xiang Li, Lianghe Shi, Meng Wu +2 more
12/24/2025
cs.LGcs.CV

No official code found. Best implementation: la0ka1/diffusion-gen-from-rep (7 stars, last commit 2026-04-29).

Abstract

Diffusion models excel at generating high-quality, diverse samples, yet they risk memorizing training data when overfit to the training objective. We analyze the distinctions between memorization and generalization in diffusion models through the lens of representation learning. By investigating a two-layer ReLU denoising autoencoder (DAE), we prove that (i) memorization corresponds to the model storing raw training samples in the learned weights for encoding and decoding, yielding localized "spiky" representations, whereas (ii) generalization arises when the model captures local data statistics, producing "balanced" representations. Furthermore, we validate these theoretical findings on real-world unconditional and text-to-image diffusion models, demonstrating that the same representation structures emerge in deep generative models with significant practical implications. Building on these insights, we propose a representation-based method for detecting memorization and a training-free editing technique that allows precise control via representation steering. Together, our results highlight that learning good representations is central to novel and meaningful generative modeling.

View on arXivView PDF

Code Implementations(1)

Official repository for ICLR 2026 paper: "Generalization of Diffusion Models Arises with a Balanced Representation Space"

70Python, Jupyter NotebookFeb 10, 20265 months ago

Similar Papers

Cite this paper

@article{zhang2025generalization,
  title  = {Generalization of Diffusion Models Arises with a Balanced Representation Space},
  author = {Zekai Zhang and Xiao Li and Xiang Li and Lianghe Shi and Meng Wu and Molei Tao and Qing Qu},
  year   = {2025},
  eprint = {2512.20963},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.20963v1}
}

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/2512.20963.svg)](https://codeofpaper.com/paper/2512.20963)

Discussion