# The Interplay of Data Structure and Imbalance in the Learning Dynamics of Diffusion Models

*Flavio Nicoletti, Chenxiao Ma, Enrico Ventura, Luca Saglietti, Stefano Sarao Mannelli*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155660) · [OpenReview](https://openreview.net/forum?id=3xmpzYAkAo) · [Open on the map](../papers.html#p155660)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Generative Model Generalization and Memorization](../pgroup/598.md) · Type: theory · Keywords: diffusion models, learning dynamics, class imbalance, variance, Gaussian mixtures, score-based models

## Summary
We develop an analytical framework to study how class variance and imbalance affect learning dynamics in diffusion models, revealing that higher-variance classes are learned first and that imbalance can reverse this ordering, with validation on Fashion MNIST.

## Explained to a 5-year-old
Diffusion models are like computers that learn to create pictures by gradually changing random noise. They learn from many pictures, but some pictures belong to groups that are very different from each other. The researchers found that groups of pictures that have lots of variety (high variance) are learned first. If the groups are not equally represented, the less common groups may be learned later or not at all. This helps us understand why some classes of images may be generated poorly and suggests ways to fix it.

## Explained to a 5-year-old, longer
Imagine a computer program that draws pictures by starting with random dots and slowly making them clearer. It looks at many pictures to learn what a cat, a dog, or a shoe should look like. Some kinds of pictures have a lot of different shapes and colors, while others are more similar. The researchers discovered that the program learns the varied pictures first, before the simpler ones. If there are many more pictures of one kind than another, the less common kind can be learned later. In extreme cases, the rare pictures might not be learned at all while the common ones are perfect. This can cause the program to sometimes draw the rare objects incorrectly or not at all. The study used a simplified version of the program that works like a small robot learning from made-up data. They also tested the ideas on a real picture set called Fashion MNIST, which contains many different clothing items. The findings help us understand why some objects are generated better than others in modern AI art tools. By knowing about variance and imbalance, developers can adjust the learning process to be fairer. This can lead to better and more balanced AI systems that work well for everyone.

## For a technical reader
The paper investigates how the structure of training data and class imbalance affect the learning dynamics of diffusion models, which are generative models that iteratively refine noise into images. Using a high-dimensional analytical framework on a random-features model with Gaussian mixtures, they derive the feature-covariance spectrum to quantify when each class transitions from generalization to memorization. They find that class variance dominates the learning order-high-variance classes are learned first-while centroid geometry plays a secondary role, and sampling imbalance can reverse this ordering, delaying learning of minority classes. Empirical validation on Fashion MNIST with U-Net diffusion models confirms these theoretical predictions, showing that diffusion models can end up memorizing some classes while leaving others under-learned. The work highlights the need to consider data heterogeneity and imbalance when designing or evaluating diffusion models to avoid unintended disparities in generated outputs.

## Problem
How do per-class structural differences and sampling imbalance influence the learning dynamics of diffusion models, and can they cause disparities in memorization?

## Method
We develop a high-dimensional analytical framework for score-based diffusion models, analyzing a random-features model on Gaussian mixtures to derive the feature-covariance spectrum and characterize per-class generalization and memorization times. The framework reveals that class variance primarily determines learning order, while centroid geometry plays a secondary role, and sampling imbalance can reverse this ordering.

## Results
The approach finds that higher-variance classes are learned first, centroid geometry has secondary effect, and sampling imbalance can reverse this ordering, causing minority classes to be learned later, leading to uneven memorization.

## Contributions
We provide a high-dimensional analytical framework for studying class-dependent learning in diffusion models, derive the feature-covariance spectrum for Gaussian mixture data, uncover the hierarchy of class variance and imbalance effects, and empirically validate predictions on Fashion MNIST.

## Limitations and assumptions
The theoretical analysis uses a random-features model on Gaussian mixtures and the empirical validation is restricted to Fashion MNIST, limiting direct applicability to other datasets.

## Research questions this paper is counted under

- [How do diffusion models balance memorization of training data versus genuine generalization to unseen samples?](../q/71.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155660)
