WorksComputer Science
The role of injected noise in diffusion model generalization
Abstract
Diffusion models trained on distinct datasets can produce highly similar samples when prompted with the same noise input, suggesting that they learn a generalized data distribution. We investigate the role of noise injected during the sampling process, and show that it plays an important role in making or breaking this strong generalization effect. Based on this finding we investigate the robustness of sample similarity to changes in the injected noise, and find that its impact is largest in the sampling regime where broad structure already exists but the precise identity of the sample is not yet determined.
Introduction
In recent years, generative models have made significant progress, producing results of such high fidelity that they are increasingly difficult to distinguish from the training samples [Harshvardhan et al., 2020, Cao et al., 2024]. The development of diffusion models (DMs) has been instrumental in improving the quality of modern generative models, particularly in domains such as image and video generation [16, 14, 1] (Song and Ermon 2019). This development has also sparked interest in understanding the mechanisms that enable generalization and consistency in DMs. Kadkhodaie et al. [2024] showed that the deep neural networks (DNNs) on which DMs are based are capable of strong generalization. When presented with the same noise vector, two DMs trained on different subsets of training data produce highly similar images. The study found that inductive biases within DNNs are the main regulariser that enables this strong generalization. However, as they used the same injected noise during the diffusion sampling process — i.e. the same starting noise sample and the entire injected noise sequence — it remains unclear exactly which part of the denoising process contributes to strong generalization. Our main findings are summarized in Figure 1. We demonstrate that the injected noise during the central part of the sampling process has a significant impact on consistency, whereas the initial and late parts do not. This finding is consistent with recent accounts of DM dynamics showing that the speciation regime (regime II), but not regimes I or III, exhibit generalization capabilities in DMs [2].

Figure 1. Top: Exemplary denoised sampling trajectories (rows) using different injected noise. Bottom: The sensitivity to changes in the injected noise sequence is significantly higher during regime II than regime I and III (-values show two-sided paired -tests for adjacent intervals, ).
Background
Diffusion sampling algorithms
DMs can be modeled as a neural network parameterizing a vector field along with a diffusion coefficient . The sampling process then simulates the Stochastic Differential Equation (SDE) [9], for :
with being a Wiener process. This SDE transforms an initial Gaussian distribution into a target distribution induced by a training dataset. Many DM sampling algorithms follow this model (using a discrete time approximation) with a core update function based on the Euler-Maruyama method [9]. Here we adapt the sampling method introduced in [10]. We initialize , called the starting noise below. Note that we follow Holderrieth and Erives [ [9] in defining as the starting noise, not a data sample. The update rule is then given by
where determines the step size in the direction predicted by the model and is the diffusion coefficient as per Kadkhodaie and Simoncelli [2020] (See Figure 11 in the Appendix for a typical noise schedule). We call the sequence of independent noise samples injected at each step the injected noise sequence and the intermediate states computed during denoising steps the sampling trajectory . We additionally define the denoised state as the sampling state obtained by performing a denoising step without injecting noise, i.e., with and . We use this state to inspect the direction in which the model guides the sampling trajectory.

Figure 11. The average diffusion coefficient during sampling, computed dynamically according to Kadkhodaie and Simoncelli [ [10]. This coefficient regulates the amount of injected noise based on the Signal-to-Noise-Ratio of the current state.
Related work
Kadkhodaie et al. [2024] identified strong generalization in DNNs that learn nearly the same score function even when trained on non-overlapping datasets. This is true even across different model architectures and sampling strategies [Zhang et al., 2024]. Li et al. [2024] and Wang et al. [2026] found that shared Gaussian statistics of the data splits are an important factor in this effect. Biroli et al. [2024] found that the denoising process in DMs is characterized by three distinct regimes. Brownian motion (regime I) is followed by speciation, where models truly generalize (regime II) and finally collapse (regime III). Memorization is avoided, since the approximate score function, learned by DNNs is smoother than the exact one [2, 6]. Furthermore, an implicit dynamical regularization in the training dynamics of DMs avoids memorization even in highly overparameterized settings [3]. Sahraee-Ardakan et al. [2026] found that the noise level of already encodes , meaning that even when this information is not provided explicitly, DMs are able to infer the phase of the diffusion process.
Experiments
Our experimental setup is based on the experiments by Kadkhodaie et al. [2024]. For all experiments, we explicitly generate the sequence of injected noise and pass it to the solver. Instead of a dynamic Signal-to-Noise-Ratio stopping criterion, we use a fixed to be able to compare the sampling trajectories more easily. We performed all experiments using the pretrained models provided by Kadkhodaie et al. [2024] to maximize reproducibility, i.e. we used a UNet network with 7.6M parameters trained on downsampled images from the CelebA dataset [13]. Additional experiments on our own models are provided in Appendix § 6.2. The metric for assessing distance between generated samples is the cosine similarity, following Kadkhodaie et al. [2024]. All experiments were repeated for 100 independent trials to ensure statistical significance.
Importance of the injected noise sequence
In the first experiment we aimed to quantify the impact of starting noise compared to injected noise. In the literature, the input to DDPM sampling typically consists solely of the starting noise. However, as introduced above, we also consider the injected noise sequence as a second input variable to the diffusion process. In the results (see Figure 2) average cosine similarity is 0.91 when using the same injected noise and 0.02 otherwise, whereas it is 0.93 and 0.89 when using the same and different starting noise but same injected noise, respectively. This demonstrates that as long as the injected noise sequence is shared results will reliably be consistent with each other even across different models and starting noise.

Figure 2. Left: Evaluating the impact of pretrained model, starting noise and injected noise sequence. Generated images are reliably robust against changes in starting noise and which pretrained model is used for sampling. The injected noise sequence has the largest impact in determining the final image. Exemplary images for one trial are shown. Right: To quantitatively asses consistency we report the average cosine similarity for configurations sharing/not-sharing the injected noise sequence. Configurations sharing the injected noise sequence produce highly consistent images, whereas using different noise sequences leads to substantially different results.
Investigating consistency during sampling
The previous experiments demonstrated that the injected noise sequence is key to achieving consistency. Next, we investigated where along the sampling process this consistency emerges. To do so, we generated two different sampling trajectories, using different starting noise and models, and compared the similarity of their sampling trajectories and denoised states . We performed this once with a shared injected noise sequence and once with different injected noise sequences. When we used the same injected noise sequence, the cosine similarity between intermediate states quickly increased to nearly 1.0 in around 20 denoising steps (see Figure 3 Left). The picture changes dramatically where the sequence was not shared. In this case, the intermediate states did not produce consistent results, as was observed in the first experiment (see Figure 3 Right). However, an interesting observation is that even when not injecting the same noise the models still pulled states in similar directions, with showing high similarity during the initial 50 steps, consistent with regime I (see Figure 1). This experiment demonstrates that consistency is already present in the early stages of the sampling process and shows that the increase in similarity is not linear.

Figure 3. Left: Cosine similarity between intermediate states quickly rose in the beginning of the sampling process. After 10% denoising steps it reached , staying high until sampling finished. The model could already determine the direction early on, indicated by high similarity in the beginning for . Right: When the injected noise sequence was not shared the consistency stayed at during sampling. However for similarity was initially high and then quickly dropped as sampling continued. We attribute this to the model producing general coarse face features early on.
Relating to dynamical regimes
Finally, we explored the different dynamical regimes [2] by inspecting sampling trajectories of multiple samples that do not share injected noise. In early time-steps images appear more similar before crossing the speciation boundary, consisting of very coarse features akin to mean faces (see Figure 1). This observation exactly aligns with the results described above, where even samples with independent injected noise produced similar outputs during the first 50 steps or 20% of the process (see Figure 3 Right). In a similar way, we can look qualitatively for the collapse phase (see Figure 1), where after around 200 steps samples already look remarkably similar to the final image and for most only small changes occur, aligning with the concept of regime III. To verify these qualitative observations, we performed another experiment investigating the robustness of the injected noise sequence to changes in different regimes. Given that in regime I, having even entirely different injected noise produced similar model outputs (see Figure 3 Right, Figure 1), we expected the final samples to be robust to changes in this area. For regime II we expected less robustness as this phase of the sampling process is most crucial in determining which sample is generated. Finally, regime III was expected to have an increased robustness, as the process would already have locked in on the most important features of the sample. To test this we replaced sections of the injected noise sequence with different noise in one of five sections. Note that we chose to use five equally sized sections to ensure the magnitude of the change was consistent across the 5 steps. The results show the expected behavior of increased robustness in the first 20% (regime I) and the last 20% (regime III) (see Figure 1).
Conclusion
DMs exhibit strong generalization properties, whereby different models trained on disjoint datasets can produce highly consistent samples in response to the same sampling noise [11] (Zhang et al. 2024). Here, we demonstrate that this result is even more robust by analyzing the sensitivity to noise during the different stages of the sampling process. We found that the precise injected noise sequences most strongly influenced the generated samples during regime II of the sampling process — the regime previously identified as strongly determining the generalization capabilities of DMs. In contrast, starting noise had only a minor effect on generated samples, which is consistent with the role of the initial dynamic regime identified in Biroli et al. [2] (though see [Zhang et al., 2024] when different deterministic samplers are used). In summary, our results further illuminate the robustness and consistency of strong generalization in diffusion models.
Acknowledgments
David Kappel was partly funded by the Ministry of Culture and Science of the State of North Rhine-Westphalia under project SAIL (NW21-059A).
Appendix
The appendix contains additional experiments that extend and complement the results presented in the main paper. We first ran our experiments in a setup with a different model architecture, dataset, and sampling algorithm, providing evidence that the observed behavior is not fully dependent on the original experimental setup. We then investigated the effect of changing the initialization of the sampling process, switching from the setting of pure Gaussian noise to instead considering initial states with increasing amounts of signal from a dataset image. Together, these experiments provide further insight into the generality of the observed robustness and into how the starting conditions of the diffusion process influence the final generated sample.
Concept of robust generalization
We have shown that similarity of intermediate states and quickly rises throughout sampling (see § 3.2), here we highlight this conceptually again (see Figure 4). The sampling process can be initialized from arbitrary starting noise but as long as the same injected noise is used for any two initializations the final image will reliably be consistent between configurations. Notably the trajectories qualitatively show that the convergence on the final image only happens late in the process (see § 3.3) and many different faces are visible in intermediate states (see Figure 5).

Figure 4. Generalization in diffusion models is not only dependent on starting noise. Beginning from two random starting noise conditions, intermediate states of the sampling process are shown. Similarity between samples is initially low but quickly rises. In the end both starting noise samples generate an almost identical face.

Figure 5. We show sampling trajectories for two configurations. The top two rows show intermediate states , with the first row using model A and the second row using model B, each with their own respective random starting noise. The bottom two rows show the trajectory for the same configuration and sampling process but with , i.e. states where no injected noise is added to visually highlight the consistency between trajectory states.
Ablation with different model architecture and dataset
All previous experiments used the pretrained models provided by Kadkhodaie et al. [2024] and the sampling procedure described in Kadkhodaie and Simoncelli [2020]. To test if the results align across different settings, we ran our experiments again using a model trained from scratch, on a different dataset (the Smithsonian Butterflies 1) and using the standard DDPM sampling procedure [Ho et al., 2020]. We trained two UNet models for 50 epochs each on a distinct set of 500 images. This corresponds to the setup with model A and model B, as in all experiments above (see § 3).
For the implementation, we used the diffusers library and modified the function for noise generation to return our injected noise.
Shared vs. different injected noise sequences
We reran our first experiment with these models to investigate whether model A and model B can generate similar images even when the setup differs in almost all aspects. The results (see Figure 6) align with the previous results (see Figure 2): as long as the injected noise sequence is shared, the results are reliably consistent between model A and model B. The results from Kadkhodaie et al. [ [11] suggest that generalization can only occur if sufficiently large training sets are used. This experiment shows that even with small datasets, it is possible for models to generate highly similar images.

Figure 6. Generalization between model A and model B is also possible when using a much smaller dataset (500 images each) as long as the same injected noise sequence is used during DDPM sampling. This result aligns with the findings from above (see § 3.1).
Rise of similarity during sampling
Measuring the similarity between intermediate states and the states indicating the direction the model targets previously showed that similarity rises early during sampling when the same noise is injected (see § 3.2). We performed the same experiment using our own models. While the overall trend of the results is similar, some notable exceptions are apparent (see Figure 7 Left). The first is that similarity for rises significantly more slowly, indicating that the models struggle to identify the direction it needs to move in during the early stages of the process. Nevertheless, similarity rises to significant levels quickly for the sampling state and then remains high until sampling finishes. The second difference is that no initial similarity for can be observed when different noise is injected (see Figure 7 Right). This similarly suggests that the model yet struggled to move in a consistent direction with the large amounts of noise early on. This becomes even more apparent when visually inspecting the trajectories for and (see Figure 8 Rows 3 and 4). During the early stages, even the supposedly denoised samples still contain high amounts of noise and only limited data. This is likely a limitation of the models due to the small training set.

Figure 7. Left: Similarity rises during sampling; however, in this setup, it takes longer for , as the model is likely less capable. Right: When different noise is injected, no similarity arises. Even in early states, the model is not able to pull in similar general directions for .

Figure 8. Sampling trajectories for model A and model B are shown. The top two rows show , and the bottom two rows show , for the same injected noise with different starting noise conditions between model A and model B.
Regimes during sampling
In previous experiments it already became clear that the models trained on the small set of training images are not able to denoise early states effectively (see Figure 9 Regime I). Images in these early states still contain high amounts of noise and differ substantially between different runs, thus no increased robustness to changes could be observed when altering the first 20% of injected noise of the sampling process. Robustness to changes in the sequence of injected noise then rises throughout the intervals (see Figure 9) similar to the previous results (see Figure 1) but plateauing earlier. Inspecting the samples visually also suggests that the process converged on a single sample over time, instead of switching targets in between as we observed in § 1.

Figure 9. Top: Exemplary DM sampling trajectories (rows) using different injected noise sequences for the butterfly models. Bottom: The sensitivity to changes in the injected noise sequence rises throughout the process, early states do not show increased robustness, likely limited by the models capabilities (-values show two-sided paired -tests for adjacent intervals, ).
Ablation conclusion
We could reproduce the first experiment in a different setting, showing that the injected noise plays an important role here as well. We could not identify the dynamical regimes as clearly and also found different behavior throughout the sampling process, which we attribute to the comparatively small dataset and the different model used compared to the main experiments. While successfully generating the final sample, this model requires many more, smaller steps that do not “wander around” as the model with more training does.
Effects of initializing starting noise with a dataset sample
Previous experiments showed that the injected noise is an important factor for the identity of the final sample when starting from pure noise. In this experiment, we investigated the effect of injected noise in cases with a higher signal-to-noise ratio (SNR). Given that the final phase of the diffusion process converges on a sample while the SNR reaches zero, we expected this experiment to give us insight into where in the process this phase starts. We used the same models as for the main experiments, trained on the CelebA dataset.
We initialized the sampling process with a vector that interpolates between Gaussian noise and a clean image from the dataset , , . The injected noise was fixed across all runs. We then let the diffusion process run its course, in this case using the original SNR stopping criterion to avoid over-denoising the later samples with higher . We measured the cosine similarity to the sample that would be generated from pure noise () and to . The experiment was repeated for 100 trials.
The results (see Figure 10) show a sigmoidal tradeoff of similarity between the two final images, with a high variance. This variation may be dependent on the specific combination of injected noise and data sample . Functionally, is related to the time during the diffusion process in the sense that both correspond to a certain SNR (although the correspondence is nonlinear for ). Keeping this in mind, the results suggest that we can observe the transition between regime II and III here (as in regime III, the process would converge on again), but the exact time of the transition is individual per sample.

Figure 10. We initialize denoising with an increasing ratio between a clean image from the dataset and noise. Depicted are the cosine similarities to the clean image and the image that would be generated from , with fixed injected noise. The dashed lines show exemplary similarities of individual samples (where the clean image is the same across different ).
References
- [1]O. Bar-Tal, H. Chefer, O. Tov, C. Herrmann, R. Paiss, S. Zada, A. Ephrat, J. Hur, G. Liu, A. Raj, et al. Lumiere: A space-time diffusion model for video generation. In SIGGRAPH Asia 2024 conference papers, pages 1–11, 2024.
- [2]G. Biroli, T. Bonnaire, V. De Bortoli, and M. Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1):9957, 2024.DOI
- [3]T. Bonnaire, R. Urfin, G. Biroli, and M. Mézard. Why diffusion models don’t memorize: The role of implicit dynamical regularization in training. Advances in Neural Information Processing Systems, 38:141266–141286, 2026.
- [6]T. Farghly, P. Potaptchik, S. Howard, G. Deligiannidis, and J. Pidstrigach. Diffusion models and the manifold hypothesis: Log-domain smoothing is geometry adaptive. Advances in Neural Information Processing Systems, 38:122795–122840, 2026.arxiv.org/abs/2510.02305
- [9]P. Holderrieth and E. Erives. Introduction to flow matching and diffusion models, 2026. URL https://diffusion.csail.mit.edu/.arxiv.org/abs/2506.02070
- [10]Z. Kadkhodaie and E. P. Simoncelli. Solving linear inverse problems using the prior implicit in a denoiser. arXiv preprint arXiv:2007.13640, 2020.arxiv.org/abs/2007.13640
- [11]Z. Kadkhodaie, F. Guth, E. Simoncelli, and S. Mallat. Generalization in diffusion models arises from geometry-adaptive harmonic representations. In International Conference on Learning Representations, volume 2024, pages 46543–46567, 2024.arxiv.org/abs/2310.02557
- [13]Z. Liu, P. Luo, X. Wang, and X. Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015.arxiv.org/abs/1411.7766
- [14]C. Saharia, W. Chan, S. Saxena, L. Li, J. Whang, E. L. Denton, K. Ghasemipour, R. Gontijo Lopes, B. Karagol Ayan, T. Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in neural information processing systems, 35:36479–36494, 2022.arxiv.org/abs/2205.11487
- [16]J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pages 2256–2265. pmlr, 2015.