<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Learning Energy-Based Models by Cooperative Diffusion Recovery Likelihood</title></titleStmt>
			<publicationStmt>
				<publisher>International Conference on Learning Representations (ICLR)</publisher>
				<date>05/01/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10561836</idno>
					<idno type="doi"></idno>
					
					<author>Y Zhu</author><author>J Xie</author><author>Y N Wu</author><author>R Gao</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Training energy-based models (EBMs) on high-dimensional data can be both challenging and time-consuming, and there exists a noticeable gap in sample quality between EBMs and other generative frameworks like GANs and diffusion models. To close this gap, inspired by the recent efforts of learning EBMs by maximizing diffusion recovery likelihood (DRL), we propose cooperative diffusion recovery likelihood (CDRL), an effective approach to tractably learn and sample from a series of EBMs defined on increasingly noisy versions of a dataset, paired with an initializer model for each EBM. At each noise level, the two models are jointly estimated within a cooperative training framework: samples from the initializer serve as starting points that are refined by a few MCMC sampling steps from the EBM. The EBM is then optimized by maximizing recovery likelihood, while the initializer model is optimized by learning from the difference between the refined samples and the initial samples. In addition, we made several practical designs for EBM training to further improve the sample quality. Combining these advances, our approach significantly boost the generation performance compared to existing EBM methods on CIFAR-10 and ImageNet datasets. We also demonstrate the effectiveness of our models for several downstream tasks, including classifierfree guided generation, compositional generation, image inpainting and out-ofdistribution detection.p θ (y t |x t+1 ) = 1 Zθ,t (x t+1 ) exp f θ (y t ; t) -1 2σ 2 t+1 ∥y t -x t+1 ∥ 2 ,(3)]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>Energy-based models (EBMs), as a class of probabilistic generative models, have exhibited their flexibility and practicality in a variety of application scenarios, such as realistic image synthesis <ref type="bibr">(Xie et al., 2016;</ref><ref type="bibr">2018a;</ref><ref type="bibr">Nijkamp et al., 2019;</ref><ref type="bibr">Du &amp; Mordatch, 2019;</ref><ref type="bibr">Arbel et al., 2021;</ref><ref type="bibr">Hill et al., 2022;</ref><ref type="bibr">Xiao et al., 2021;</ref><ref type="bibr">Lee et al., 2023;</ref><ref type="bibr">Grathwohl et al., 2021;</ref><ref type="bibr">Cui &amp; Han, 2023)</ref>, graph generation <ref type="bibr">(Liu et al., 2021)</ref>, compositional generation <ref type="bibr">(Du et al., 2020;</ref><ref type="bibr">2023)</ref>, video generation <ref type="bibr">(Xie et al., 2021c)</ref>, 3D generation <ref type="bibr">(Xie et al., 2021a;</ref><ref type="bibr">2018b)</ref>, simulation-based inference <ref type="bibr">(Glaser et al., 2022)</ref>, stochastic optimization <ref type="bibr">(Kong et al., 2022)</ref>, out-of-distribution detection <ref type="bibr">(Grathwohl et al., 2020;</ref><ref type="bibr">Liu et al., 2020)</ref>, and latent space modeling <ref type="bibr">(Pang et al., 2020;</ref><ref type="bibr">Zhu et al., 2023;</ref><ref type="bibr">Zhang et al., 2023;</ref><ref type="bibr">Yu et al., 2023)</ref>. Despite these successes of EBMs, training and sampling from EBMs remains challenging, mainly due of the intractability of the partition function in the distribution.</p><p>Recently, Diffusion Recovery Likelihood (DRL) <ref type="bibr">(Gao et al., 2021)</ref> has emerged as a powerful framework for estimating EBMs. Inspired by diffusion models <ref type="bibr">(Sohl-Dickstein et al., 2015;</ref><ref type="bibr">Ho et al., 2020;</ref><ref type="bibr">Song &amp; Ermon, 2019)</ref>, DRL assumes a sequence of EBMs for the marginal distributions of samples perturbed by a Gaussian diffusion process, where each EBM is trained with recovery likelihood that maximizes the conditional probability of the data at the current noise level given their noisy versions at a higher noise level. Compared to the regular likelihood, Maximizing recovery likelihood is more tractable, as sampling from the conditional distribution is much easier than sampling from the marginal distribution. DRL achieves exceptional generation performance among EBM-based generative models. However, a noticeable performance gap still exists between the sample quality of EBMs and other generative frameworks like GANs or diffusion models. Moreover, DRL requires around 30 MCMC sampling steps at each noise level to generate valid samples, which can be time-consuming during both training and sampling processes.</p><p>To further close the performance gap and expedite EBM training and sampling with fewer MCMC sampling steps, we introduce Cooperative Diffusion Recovery Likelihood (CDRL), that jointly estimates a sequence of EBMs and MCMC initializers defined on data perturbed by a diffusion process. At each noise level, the initializer and EBM are updated by a cooperative training scheme <ref type="bibr">(Xie et al., 2018a)</ref>: The initializer model proposes initial samples by predicting the samples at the current noise level given their noisy versions at a higher noise level. The initial samples are then refined by a few MCMC sampling steps from the conditional distribution defined by the EBM. Given the refined samples, the EBM is updated by maximizing recovery likelihood, and the initializer is updated to absorb the difference between the initial samples and the refined samples. The introduced initializer models learn to accumulate the MCMC transitions of the EBMs, and reproduce them by direct ancestral sampling. Combining with a new noise schedule and a variance reduction technique, we achieve significantly better performance than the existing methods of estimating EBMs. We further incorporate classifier-free guidance (CFG) <ref type="bibr">(Ho &amp; Salimans, 2022)</ref> to enhance the performance of conditional generation, and we observe similar trade-offs between sample quality and sample diversity as CFG for diffusion models when adjusting the guidance strength. In addition, we showcase that our approach can be applied to perform several useful downstream tasks, including compositional generation, image inpainting and out-of-distribution detection.</p><p>Our main contributions are as follows: (1) We propose cooperative diffusion recovery likelihood (CDRL) that tractably and efficiently learns and samples from a sequence of EBMs and MCMC initializers; (2) We make several practical design choices related to noise scheduling, MCMC sampling, noise variance reduction for EBM training; (3) Empirically we demonstrate that CDRL achieves significant improvements on sample quality compared to existing EBM approaches, on CIFAR-10 and ImageNet 32 &#215; 32 datasets; (4) We show that CDRL has great potential to enable more efficient sampling with sampling adjustment techniques; (5) We demonstrate CDRL's ability in compositional generation, image inpainting and out-of-distribution (OOD) detection, as well as its compatibility with classifier-free guidance for conditional generation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">PRELIMINARIES ON ENERGY-BASED MODELS</head><p>Let x &#8764; p data (x) be a training example from an underlying data distribution. An energy-based model defines the density of x by</p><p>where f &#952; is the unnormalized log density, or negative energy, parametrized by a neural network with a scalar output. Z &#952; is the normalizing constant or partition function. The derivative of the log-likelihood function of an EBM can be approximately written as</p><p>where the second term is analytically intractable and has to be estimated by Monte Carlo samples from the current model p &#952; . Therefore, applying gradient-based optimization for an EBM usually involves an inner loop of MCMC sampling, which can be time-consuming for high-dimensional data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">COOPERATIVE DIFFUSION RECOVERY LIKELIHOOD</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">DIFFUSION RECOVERY LIKELIHOOD</head><p>Given the difficulty of sampling from the marginal distribution p(x) defined by an EBM, we could instead estimate a sequence of EBMs defined on increasingly noisy versions of the data and jointly estimate them by maximizing recovery likelihood. Specifically, assume a sequence of noisy training examples perturbed by a Gaussian diffusion process: x 0 , x 1 , ..., x T such that x 0 &#8764; p data ; x t+1 = &#945; t+1 x t + &#963; t+1 &#1013;. Denote y t = &#945; t+1 x t for notation simplicity. The marginal distributions of {y t ; t = 1, ..., T } are modeled by a sequence of EBMs: p &#952; (y t ) = 1 Z &#952;,t exp(f &#952; (y t ; t)). Then the conditional EBM of y t given the sample x t+1 at a higher noise level can be derived as where Z&#952;,t (x t+1 ) is the partition function of the conditional EBM dependent on x t+1 . Compared with the marginal EBM p &#952; (y t ), when &#963; t+1 is small, the extra quadratic term in p &#952; (y t |x t+1 ) constrains the conditional energy landscape to be localized around x t+1 , making the latter less multi-modal and easier to sample from with MCMC. In the extreme case when &#963; t+1 is infinitesimal, p &#952; (y t |x t+1 ) is approximately a Gaussian distribution that can be tractably sampled from and has a close connection to diffusion models <ref type="bibr">(Gao et al., 2021)</ref>. In the other extreme case when &#963; t+1 &#8594; &#8734;, the conditional distribution falls back to the marginal distribution, and we lose the advantage of being more MCMC friendly for the conditional distribution. Therefore, we need to maintain a small &#963; t+1 between adjacent time steps, and to equip the model with the ability of generating new samples from white noises, we end up with estimating a sequence of EBMs defined on the diffusion process. We use the variance-preserving noise schedule <ref type="bibr">(Song et al., 2021b)</ref>, under which case we have x t = &#8113;t x 0 + &#963;t &#1013;, where &#8113;t = T t=1 &#945; t and &#963;t = 1 -&#8113;2 t . We estimate each EBM by maximizing the following recovery log-likelihood function at each noise level <ref type="bibr">(Bengio et al., 2013)</ref>:</p><p>where {y t,i , x t+1,i } are pair of samples at time steps t and t + 1. Sampling from p &#952; (y t |x t+1 ) can be achieved by running K steps of Langevin dynamics from the initialization point &#7929;0 t = x t+1,i and iterating</p><p>where s t is the step size and &#964; is the index of MCMC sampling step. With the samples, the updating of EBMs then follows the same learning gradients as MLE (Equation <ref type="formula">2</ref>), as the extra quadratic term</p><p>) does not involve learnable parameters. It is worth noting that maximizing recovery likelihood still guarantees an unbiased estimator of the true parameters of the marginal distribution of the data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">AMORTIZING MCMC SAMPLING WITH INITIALIZER MODELS</head><p>Although p &#952; (y t |x t+1 ) is easier to sample from than p &#952; (y t ), when &#963; t+1 is not infinitesimal, the initialization of MCMC sampling, x t+1 , may still be far from the data manifold of y t . This necessitates a certain amount of MCMC sampling steps at each noise level (e.g., 30 steps of Langevin dynamics in <ref type="bibr">Gao et al. (2021)</ref>). Naively reducing the number of sampling steps would lead to training divergence or performance degradation.</p><p>To address this issue, we propose to learn an initializer model jointly with the EBM at each noise level, which maps x t+1 closer to the manifold of y t . Our work is inspired by the CoopNets <ref type="bibr">(Xie et al., 2018a;</ref><ref type="bibr">2021b;</ref><ref type="bibr">2022b)</ref>, which shows that jointly training a top-down generator via MCMC teaching will help the training of a single EBM model. We take this idea and generalize it to the recovery-likelihood model. More discussions are included in Appendix A. Specifically, the initializer model at noise level t is defined as</p><p>It serves as a coarse approximation to p &#952; (y t |x t+1 ), as the former is a single-mode Gaussian distribution while the latter can be multi-modal. A more general formulation would be to involve latent variables z t following a certain simple prior p(z t ) into g &#981; . Then q &#981; (y t , t|x t+1 ) = E p(zt) [q &#981; (y t , z t , t|x t+1 )] can be non-Gaussian <ref type="bibr">(Xiao et al., 2022)</ref>. However, we empirically find that the simple initializer in Equation 6 works well. Compared with the more general formulation, the simple initializer avoids the inference of z t which may again require MCMC sampling, and leads to more stable training. Different from <ref type="bibr">Xiao et al. (2022)</ref>, samples from the initializer just serves as the starting points and are refined by sampling from the EBM, instead of being treated as the final samples. We follow <ref type="bibr">(Ho et al., 2020)</ref> to set &#963;t =</p><p>If we treat the sequence of initializers as the reverse process, such choice of &#963;t corresponds to the lower bound of the standard deviation given by p data being a delta function <ref type="bibr">(Sohl-Dickstein et al., 2015)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">COOPERATIVE TRAINING</head><p>We jointly train the sequence of EBMs and intializers in a cooperative fashion. Specifically, at each iteration, for a randomly sampled noise level t, we obtain an initial sample &#375;t from the intializer model. Then a synthesized sample &#7929;t from p(y t |x t+1 ) is generated by initializing from &#375;t and running a few steps of Langevin dynamics (Equation <ref type="formula">5</ref>). The parameters of EBM are then updated by maximizing the recovery log-likelihood function (Equation <ref type="formula">4</ref>). The learning gradient of EBM is</p><p>To train the intializer model that amortizes the MCMC sampling process, we treat the revised sample &#7929;t by the EBM as the observed data of the initializer model, and estimate the parameters of the initializer by maximizing log-likelihood:</p><p>That is, the initializer model learns to absorb the difference between &#375;t and &#7929;t at each iteration so that &#375;t is getting closer to the samples from p &#952; (y t |x t+1 ). In practice, we re-weight L t (&#981;) across different noise levels by removing the coefficient 1 2&#963; 2 t , similar to the "simple loss" in diffusion models. The training algorithm is summarized in Algorithm 1.</p><p>After training, we generate new samples by starting from Gaussian white noise and progressively samples p &#952; (y t |x t+1 ) at decreasingly lower noise levels. For each noise level, an initial proposal is generated from the intializer model, followed by a few steps of Langevin dynamics from the EBM. See Algorithm 2 for a summary.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">NOISE VARIANCE REDUCTION</head><p>We further propose a simple way to reduce the variance of training gradients. In principle, the pair of x t (or y t ) and x t+1 is generated by x t &#8764; N (&#8113; t x 0 , &#963;2 t I) and x t+1 &#8764; N (&#945; t+1 x t , &#963; 2 t+1 I). Alternatively, we can fix the Gaussian white noise e &#8764; N (0, I), and sample pair (x &#8242; t , x &#8242; t+1 ) by</p><p>In other words, both x &#8242; t and x &#8242; t+1 are linear interpolation between the clean sample x 0 and a sampled white noise image e. x &#8242; t and x &#8242; t+1 have the same marginal distributions as x t and x t+1 . But x &#8242; t is deterministic given x 0 and x &#8242; t+1 , while there's still variance for x t given x 0 and x t+1 . This schedule is related to the ODE forward process used in flow matching <ref type="bibr">(Lipman et al., 2022)</ref> and rectified flow <ref type="bibr">(Liu et al., 2022b)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">CONDITIONAL GENERATION AND CLASSIFIER-FREE GUIDANCE</head><p>Ho &amp; Salimans (2022) introduced classifier-free guidance, which greatly enhances the sample quality of conditional diffusion models and balances between sample quality and diversity by adjusting the strength of guidance. Given the close connection between EBMs and diffusion models, we show that it is possible to apply classifier-free guidance in our CDRL as well. Specifically, suppose c is the context (e.g., a label or a text description). At each noise level we jointly estimate an unconditional EBM p &#952; (y t ) &#8733; exp(f &#952; (y t ; t)) and a conditional EBM p &#952; (y t |c) &#8733; exp(f &#952; (y t ; c, t)). By following the classifier-free guidance <ref type="bibr">(Ho &amp; Salimans, 2022)</ref>, we can perform conditional sampling using the following linear combination of the conditional and unconditional gradients: &#8711; y log p&#952; (y t |c) = (w + 1)&#8711; y log p &#952; (y t ; c, t) -w&#8711; y log p &#952; (y t ; t) (10) = (w + 1)&#8711; y f &#952; (y t ; c, t) -w&#8711; y f &#952; (y t ; t),</p><p>where w controls the guidance strength. We adopt a single neural network to parameterize both conditional and unconditional models, where for the unconditional model we can simply input a null token</p><p>Algorithm 1 CDRL Training Input: (1) observed data x0 &#8764; pdata(x); (2) Number of noise levels T ; (3) Number of Langevin sampling steps K per noise level; (4) Langevin step size at each noise level st; (5) Learning rate &#951; &#952; for EBM f &#952; ; (6) Learning rate &#951; &#981; for initializer g &#981; ; Output: Parameters &#952;, &#981; Randomly initialize &#952; and &#981;. repeat Sample noise level t from {0, 1, ..., T -1}. Sample &#1013; &#8764; N (0, I). Let xt+1 = &#8113;t+1x0 + &#963;t+1&#1013;, yt = &#945;t+1( &#8113;tx0 + &#963;t&#1013;). Generate the initial sample &#375;t following Equation 6. Generate the refined sample yt by running K steps of Langevin dynamics starting from &#375;t following Equation 5. Update EBM parameter &#952; following the gradients in Equation 7. Update initializer parameter &#981; by maximizing Equation 8. until converged Algorithm 2 CDRL Sampling Input: (1) Number of noise levels T ; (2) Number of Langevin sampling steps K at each noise level; (3) Langevin step size at each noise level &#948;t; (4) Trained EBM f &#952; ; (5) Trained initializer g &#981; ; Output: Samples x0</p><p>Randomly initialize xT &#8764; N (0, I).</p><p>for t = T -1 to 0 do Generate initial proposal &#375;t following Equation <ref type="formula">6</ref>. Update &#375;t to &#7929;t by K iterations of Equation <ref type="formula">5</ref>.</p><p>Let xt = &#7929;t/&#945;t+1. end for &#8709; for the class condition c when outputing the negative energy, i.e. f &#952; (y</p><p>Similarly, for the initializer model, we jointly estimate an unconditional model q &#981; (y t |x t+1 ) &#8764; N (g &#981; (x t+1 ; t), &#963;2</p><p>t I) and a conditional model q &#981; (y t |c, x t+1 ) &#8764; N (g &#981; (x t+1 ; c, t), &#963;2 t I). We parameterize both models in a single neural network. Since both models follow Gaussian distributions, the scaled conditional distribution with classifier-free guidance is still a Gaussian distribution <ref type="bibr">(Dhariwal &amp; Nichol, 2021)</ref>: </p><p>based on the production of expert <ref type="bibr">(Hinton, 2002)</ref>. Specifically, suppose the two concepts c 1 and c 2 are conditionally independent given the observed example x. Then we have</p><p>where const. is a constant term independent of x. The composition can be generalized to include an arbitrary number of concepts. Suppose we have M conditionally independent concepts, then</p><p>We can combine the compositional log-density (Equation <ref type="formula">13</ref>) with classifier-free guidance (Equation 11) to further improve the alignment of generated samples with given concepts. The sampling Published as a conference paper at ICLR 2024 gradient of the scaled log-density function is given by  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">EXPERIMENTS</head><p>We evaluate the performance of our model across various scenarios. Specifically, Section 4.1 demonstrates the capacity of unconditional generation. Section 4.2 highlights the potential of our model to further optimize sampling efficiency. The focus shifts to conditional generation and classifierfree guidance in Section 4.3. Section 4.4 elucidates the power of our model in performing likelihood estimation and OOD detection, and Section 4.5 showcases compositional generation. Please refer to Appendix B for implementation details, Appendix C.1 for image inpainting with our trained models, Appendix D.3 for comparing the sampling time between our approach and other EBM</p><p>Table 1: Comparison of FID scores for unconditional generation on CIFAR-10.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Models FID &#8595;</head><p>EBM based method NT-EBM <ref type="bibr">(Nijkamp et al., 2022)</ref> 78.12 LP-EBM <ref type="bibr">(Pang et al., 2020)</ref> 70.15 Adaptive CE <ref type="bibr">(Xiao &amp; Han, 2022)</ref> 65.01 EBM-SR <ref type="bibr">(Nijkamp et al., 2019)</ref> 44.50 JEM <ref type="bibr">(Grathwohl et al., 2020)</ref> 38.40 EBM-IG <ref type="bibr">(Du &amp; Mordatch, 2019)</ref> 38.20 EBM-FCE <ref type="bibr">(Gao et al., 2020)</ref> 37.30 CoopVAEBM <ref type="bibr">(Xie et al., 2021b)</ref> 36.20 CoopNets <ref type="bibr">(Xie et al., 2018a)</ref> 33.61 Divergence Triangle <ref type="bibr">(Han et al., 2020)</ref> 30.10 VARA <ref type="bibr">(Grathwohl et al., 2021)</ref> 27.50 EBM-CD <ref type="bibr">(Du et al., 2021)</ref> 25.10 GEBM <ref type="bibr">(Arbel et al., 2021)</ref> 19.31 HAT-EBM <ref type="bibr">(Hill et al., 2022)</ref> 19.30 CF-EBM <ref type="bibr">(Zhao et al., 2021)</ref> 16.71 CoopFlow <ref type="bibr">(Xie et al., 2022b)</ref> 15.80 CLEL-base <ref type="bibr">(Lee et al., 2023)</ref> 15.27 VAEBM <ref type="bibr">(Xiao et al., 2021)</ref> 12.16 DRL <ref type="bibr">(Gao et al., 2021)</ref> 9.58 CLEL-large <ref type="bibr">(Lee et al., 2023)</ref> 8.61 EGC (Unsupervised) <ref type="bibr">(Guo et al., 2023)</ref> 5.36 CDRL (Ours) 4.31 CDRL-large (Ours) 3.68 Models FID &#8595; Other likelihood based method VAE (Kingma &amp; Welling, 2014) 78.41 PixelCNN <ref type="bibr">(Salimans et al., 2017)</ref> 65.93 PixelIQN <ref type="bibr">(Ostrovski et al., 2018)</ref> 49.46 Residual Flow <ref type="bibr">(Chen et al., 2019)</ref> 47.37 Glow <ref type="bibr">(Kingma &amp; Dhariwal, 2018)</ref> 45.99 DC-VAE <ref type="bibr">(Parmar et al., 2021)</ref> 17.90</p><p>GAN based method WGAN-GP <ref type="bibr">(Gulrajani et al., 2017)</ref> 36.40 SN-GAN <ref type="bibr">(Miyato et al., 2018)</ref> 21.70 BigGAN <ref type="bibr">(Brock et al., 2019)</ref> 14.80 StyleGAN2-DiffAugment <ref type="bibr">(Zhao et al., 2020)</ref> 5.79 Diffusion-GAN <ref type="bibr">(Xiao et al., 2022)</ref> 3.75 StyleGAN2-ADA <ref type="bibr">(Karras et al., 2020)</ref> 2.92</p><p>Score based and Diffusion method NCSN <ref type="bibr">(Song &amp; Ermon, 2019)</ref> 25.32 NCSN-v2 <ref type="bibr">(Song &amp; Ermon, 2020)</ref> 10.87 NCSN++ <ref type="bibr">(Song et al., 2021b)</ref> 2.20 DDPM Distillation <ref type="bibr">(Luhman &amp; Luhman, 2021)</ref> 9.36 DDPM++(VP, NLL) <ref type="bibr">(Kim et al., 2021)</ref> 3.45 DDPM <ref type="bibr">(Ho et al., 2020)</ref> 3.17 DDPM++(VP, FID) <ref type="bibr">(Kim et al., 2021)</ref> 2.47 models, Appendix D.4 for understanding the role of EBM and initializer in the generation process and Appendix D for the ablation study. We designate our approach as "CDRL" in the following sections.</p><p>Our experiments primarily involve three datasets: (i) CIFAR-10 ( <ref type="bibr">Krizhevsky &amp; Hinton, 2009)</ref> comprises images from 10 categories, with 50k training samples and 10k test samples at a resolution of 32 &#215; 32 pixels. We use its training set for evaluating our model in the task of unconditional generation. (ii) ImageNet <ref type="bibr">(Deng et al., 2009)</ref> contains approximately 1.28M images from 1000 categories. We use its training set for both conditional and unconditional generation, focusing on a downsampled version (32 &#215; 32) of the dataset. (iii) CelebA <ref type="bibr">(Liu et al., 2015)</ref> consists of around 200k human face images, each annotated with attributes. We downsample each image of the dataset to the size of 64 &#215; 64 pixels and utilize the resized dataset for compositionality and image inpainting tasks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">UNCONDITIONAL IMAGE GENERATION</head><p>We first showcase our model's capabilities in unconditional image generation on CIFAR-10 and ImageNet datasets. The resolution of each image is 32 &#215; 32 pixels. FID scores <ref type="bibr">(Heusel et al., 2017)</ref> on these two datasets are reported in Tables <ref type="table">1</ref> and <ref type="table">3</ref>, respectively, with generated examples displayed in Figure <ref type="figure">1</ref>. We adopt the EBM architecture proposed in <ref type="bibr">Gao et al. (2021)</ref>. Additionally, we utilize a larger version called "CDRL-large", which incorporates twice as many channels in each layer.</p><p>For the initializer network, we follow the structure of (Nichol &amp; Dhariwal, 2021), utilizing a U-Net <ref type="bibr">(Ronneberger et al., 2015)</ref> but halving the number of channels. Compared to Gao et al. (2021), CDRL achieves significant improvements in FID scores. Furthermore, CDRL uses the same number of noise levels (6 in total) as DRL but requires only half the MCMC steps at each noise level, reducing it from 30 to 15. This substantial reduction in computational costs is noteworthy. With the large architecture, CDRL achieves a FID score of 3.68 on CIFAR-10 and 9.35 on ImageNet (32 &#215; 32). These results, to the best of our knowledge, are the state-of-the-art among existing EBM frameworks and are competitive with other strong generative model classes such as GANs and diffusion models. 4.2 SAMPLING EFFICIENCY Similar to the sampling acceleration techniques employed in the diffusion model (Song et al., 2021a; Liu et al., 2022a; Lu et al., 2022), we foresee the development of post-training techniques to further accelerate CDRL sampling. Although designing an advanced MCMC sampling algorithm could be a standalone project, we present a straightforward yet effective sampling adjustment technique to demonstrate CDRL's potential in further reducing sampling time. Specifically, we propose to decrease the number of sampling steps while simultaneously adjusting the MCMC sampling step size to be inversely proportional to the square root of the number of sampling steps. As shown in Table 2, while we train CDRL with 15 MCMC steps at each noise level, we can reduce the number of MCMC steps to 8, 5, and 3 during the inference stage, without sacrificing much perceptual quality. 4.3 CONDITIONAL SYNTHESIS WITH CLASSIFIER-FREE GUIDANCE</p><p>We evaluate our model for conditional generation on the ImageNet32 dataset, employing classifier-free guidance as outlined in Section 3.5. Generation results for varying guided weights w are displayed in Figure <ref type="figure">2</ref>. As the value of w increases, the quality of samples improves, and the conditioned class features become more prominent, although diversity may decrease. This trend is also evident from the FID and Inception Score <ref type="bibr">(Salimans et al., 2016)</ref> curves shown in Figures <ref type="figure">2(c</ref>) and 2(d). While the Inception Score consistently increases (improving quality), the FID metric first drops (improving quality) and then increases (worsening quality), obtaining the optimal value of 6.18 (lowest value) at a guidance weight of 0.7. Additional image generation results can be found in Appendix C.2.  <ref type="bibr">(Salimans et al., 2017)</ref> 40.51 EBM-CD <ref type="bibr">(Du et al., 2021)</ref> 32.48 CF-EBM <ref type="bibr">(Zhao et al., 2021)</ref> 26.31 CLEL-base <ref type="bibr">(Lee et al., 2023)</ref> 22.16 DRL <ref type="bibr">(Gao et al., 2021)</ref> -(not converge) DDPM++(VP, NLL) <ref type="bibr">(Kim et al., 2021)</ref> 8.42 CDRL (Ours) 9.35</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">LIKELIHOOD ESTIMATION AND OUT-OF-DISTRIBUTION DETECTION</head><p>A distinctive feature of the EBM is its ability to model the unnormalized log-likelihood directly using the energy function. This capability enables it to perform tasks beyond generation. In this section, we first showcase the capability of the CDRL in estimating the density of a 2D checkerboard distribution. Experimental results are presented in Figure <ref type="figure">3</ref>, where we illustrate observed samples, the fitted density, and the generated samples at each noise level, respectively. These results confirm CDRL's ability to accurately estimate log-likelihood while simultaneously generating valid samples.</p><p>Moreover, we demonstrate CDRL's utility in out-of-distribution (OOD) detection tasks. For this endeavor, we employ the model trained on CIFAR-10 as a detector and use the energy at the lowest Figure <ref type="figure">3</ref>: The results of density estimation using CDRL for a 2D checkerboard distribution. The number of noise levels in the CDRL is set to be 5.</p><p>Top: observed samples at each noise level. Middle: density fitted by CDRL at each noise level. Bottom: generated samples at each noise level. noise level to serve as the OOD prediction score. The AUROC score of our CDRL model, with CIFAR-10 interpolation, CIFAR-100, and CelebA data as OOD samples, is provided in Table 4. CDRL achieves strong results in OOD detection comparing with the baseline approaches. More results can be found in Table 8 in the appendix. 4.5 COMPOSITIONALITY Table 4: AUROC scores in OOD detection using CDRL and other explicit density models on CIFAR-10 Cifar-10 interpolation Cifar-100 CelebA PixelCNN (Salimans et al., 2017) 0.71 0.63 -GLOW (Kingma &amp; Dhariwal, 2018) 0.51 0.55 0.57 NVAE (Vahdat &amp; Kautz, 2020) 0.64 0.56 0.68 EBM-IG (Du &amp; Mordatch, 2019) 0.70 0.50 0.70 VAEBM (Xiao et al., 2021) 0.70 0.62 0.77 EBM-CD (Du et al., 2021) 0.65 0.83 -CLEL-Base (Lee et al., 2023) 0.72 0.72 0.77 CDRL (ours) 0.75 0.78 0.84 To evaluate the compositionality of EBMs, we conduct experiments on CelebA (64 &#215; 64) datasets with Male, Smile, and Young as the three conditional concepts. We estimate EBMs conditional on each single concept separately, and assume simple unconditional initializer models.</p><p>Classifier-free guidance is adopted when conducting compositional generation (Equation <ref type="formula">14</ref>). Specifically, we treat images with a certain attribute value as individual classes. We randomly assign each image in a training batch to a class based on the controlled attribute value. For example, an image with Male=True and Smile=True may be assigned to class 0 if the Male attribute is picked or class 2 if the Smile attribute is picked. For the conditional network structure, we make EBM f &#952; conditional on attributes c i and use an unconditional initializer model g &#981; to propose the initial distribution. We focus on showcasing the compositionality ability of EBM itself, although it is also possible to use a conditional initializer model similar to Section 3.5. Our results are displayed in Figure <ref type="figure">4</ref>, with images generated at a guided weight of w = 3.0. More generation results with different guidance weights can be found in the Appendix C.2. Images generated with composed attributes following Equation 14 contain features of both attributes, and increasing the guided weight makes the corresponding attribute more prominent. This demonstrates CDRL's ability and the effectiveness of Equation <ref type="formula">14</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">CONCLUSION AND FUTURE WORK</head><p>We propose CDRL, a novel energy-based generative learning framework employing cooperative diffusion recovery likelihood, which significantly enhances the generation performance of EBMs. We demonstrate that the CDRL excels in compositional generation, out-of-distribution detection, image inpainting, and compatibility with classifier-free guidance for conditional generation. One limitation is that a certain number of MCMC steps are still needed during generation. Additionally, we aim to scale our model for high-resolution image generation in the future. Our work aims to stimulate further research on developing EBMs as generative models. However, the prevalence of powerful generative models may give rise to negative social consequences, such as deepfakes, misinformation, privacy breaches, and erosion of public trust, highlighting the need for effective preventive measures.</p><p>APPENDICES A Related Work 16 B Training Details 17 B.1 Network Architectures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 B.2 Hyperparameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 B.3 Noise Schedule and Conditioning Input . . . . . . . . . . . . . . . . . . . . . . . 19 B.4 Illustration of the CDRL Framework . . . . . . . . . . . . . . . . . . . . . . . . . 19 C More Experimental Results 19 C.1 Image Inpainting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 C.2 Image Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 C.3 Generating High-Resolution Images . . . . . . . . . . . . . . . . . . . . . . . . . 21 C.4 Out-of-Distribution Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 D Model Analysis 22 D.1 Ablation Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 D.2 Effects of Number of Noise Levels and Number of Langevin Steps . . . . . . . . . 23 D.3 Sampling Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 D.4 Analyzing the Effects of the Initializer and the EBM . . . . . . . . . . . . . . . . . 24 D.5 Analyzing Learning Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A RELATED WORK</head><p>Energy-Based Learning Energy-based models (EBMs) <ref type="bibr">(Zhu et al., 1998;</ref><ref type="bibr">LeCun et al., 2006;</ref><ref type="bibr">Ngiam et al., 2011;</ref><ref type="bibr">Hinton, 2012;</ref><ref type="bibr">Xie et al., 2016)</ref> define unnormalized probabilistic distributions and are typically trained through maximum likelihood estimation. Methods such as contrastive divergence <ref type="bibr">(Hinton, 2002;</ref><ref type="bibr">Du et al., 2021)</ref>, persistent chain <ref type="bibr">(Xie et al., 2016)</ref>, replay buffer <ref type="bibr">(Du &amp; Mordatch, 2019)</ref> or short-run MCMC sampling <ref type="bibr">(Nijkamp et al., 2019)</ref> approximate the analytically intractable learning gradient. To scale up and stabilize EBM training for high-fidelity data generation, strategies like multi-grid sampling <ref type="bibr">(Gao et al., 2018)</ref>, progressive training <ref type="bibr">(Zhao et al., 2021)</ref>, and diffusion <ref type="bibr">(Gao et al., 2021)</ref> have been adopted. EBMs have also been connected to other models, such as adversarial training <ref type="bibr">(Arbel et al., 2021;</ref><ref type="bibr">Che et al., 2020)</ref>, variational autoencoders <ref type="bibr">(Xiao et al., 2021)</ref>, contrastive guidance <ref type="bibr">(Lee et al., 2023)</ref>, introspective learning <ref type="bibr">(Lazarow et al., 2017;</ref><ref type="bibr">Jin et al., 2017;</ref><ref type="bibr">Lee et al., 2018)</ref>, and noise contrastive estimation <ref type="bibr">(Gao et al., 2020)</ref>. To alleviate MCMC burden, various methods have been proposed, including amortizing MCMC sampling with learned networks <ref type="bibr">(Kim &amp; Bengio, 2016;</ref><ref type="bibr">Xie et al., 2018a;</ref><ref type="bibr">Kumar et al., 2019;</ref><ref type="bibr">Xiao et al., 2021;</ref><ref type="bibr">Han et al., 2019;</ref><ref type="bibr">Grathwohl et al., 2021)</ref>. Among them, cooperative networks (CoopNets) <ref type="bibr">(Xie et al., 2018a)</ref> jointly train a top-down generator and an EBM via MCMC teaching, using the generator as a fast initializer for Langevin sampling. CoopNets variants have also been studied in <ref type="bibr">Xie et al. (2021b;</ref><ref type="bibr">2022b)</ref>. Our work improves the recovery likelihood learning algorithm of EBMs <ref type="bibr">(Gao et al., 2021)</ref> by learning a fast MCMC initializer for EBM sampling, leveraging the cooperative learning scheme <ref type="bibr">(Xie et al., 2020)</ref>. Compared to <ref type="bibr">Xie et al. (2020)</ref> that applied cooperative training to an initializer and an EBM for the marginal distribution of the clean data, our approach only requires learning conditional initializers and sampling from conditional EBMs, which are much more tractable than their marginal counterparts. It is worth noting that <ref type="bibr">Xie et al. (2022a)</ref> have investigated conditional cooperative learning, wherein a conditional initializer and a conditional EBM are trained through MCMC teaching. In contrast, our CDRL trains and samples from a sequence of conditional EBMs and conditional initializers on increasingly noisy versions of a dataset for denoising diffusion generation.</p><p>Denoising Diffusion Model Diffusion models, initially introduced by Sohl-Dickstein et al. ( <ref type="formula">2015</ref>) and further developed in subsequent works such as <ref type="bibr">Song &amp; Ermon (2020)</ref>; <ref type="bibr">Ho et al. (2020)</ref>, generate samples by progressively denoising them from a high noise level to clean data. These models have demonstrated significant success in generating high-quality samples from complex distributions, owing to a range of architectural and algorithmic innovations <ref type="bibr">(Ho et al., 2020;</ref><ref type="bibr">Song et al., 2021a;</ref><ref type="bibr">Kim et al., 2021;</ref><ref type="bibr">Song et al., 2021b;</ref><ref type="bibr">Dhariwal &amp; Nichol, 2021;</ref><ref type="bibr">Karras et al., 2022;</ref><ref type="bibr">Ho &amp; Salimans, 2022)</ref>. Notably, <ref type="bibr">Dhariwal &amp; Nichol (2021)</ref> emphasize that the generative performance of diffusion models can be enhanced with the aid of a classifier, while <ref type="bibr">Ho &amp; Salimans (2022)</ref> further demonstrate that this guided scoring can be estimated by the differential scores of a conditional model versus an unconditional model. Enhancements in sampling speed have been realized through distillation techniques <ref type="bibr">(Salimans &amp; Ho, 2022)</ref> and the development of fast SDE/ODE samplers <ref type="bibr">(Song et al., 2021a;</ref><ref type="bibr">Karras et al., 2022;</ref><ref type="bibr">Lu et al., 2022)</ref>. Recent advancements <ref type="bibr">(Rombach et al., 2022;</ref><ref type="bibr">Saharia et al., 2022;</ref><ref type="bibr">Ramesh et al., 2022)</ref> have successfully applied conditional diffusion models to the task of text-to-image generation, achieving significant breakthroughs.</p><p>EBM shares a close relationship with diffusion models, as both frameworks can provide a score to guide the generation process, whether through Langevin dynamics or SDE/ODE solvers. As <ref type="bibr">Salimans &amp; Ho (2021)</ref> discuss, the distinction between these two models lies in their implementation approaches: EBMs model the log-likelihood directly, while diffusion models focus on the gradient of the log-likelihood. This distinction brings advantages to EBMs, such as their compatibility with advanced sampling techniques <ref type="bibr">(Du et al., 2023)</ref>, potential conversion into classifiers <ref type="bibr">(Guo et al., 2023)</ref>, and capability to detect abnormal samples through estimated likelihood <ref type="bibr">(Grathwohl et al., 2020;</ref><ref type="bibr">Liu et al., 2020)</ref>.</p><p>The primary focus of this work is to advance the development of EBMs. Our approach connects with diffusion models <ref type="bibr">(Ho et al., 2020;</ref><ref type="bibr">Xiao et al., 2022)</ref> by training a sequence of EBMs and MCMC initializers to reverse the diffusion process. In contrast to <ref type="bibr">Ho et al. (2020)</ref>, our framework employs more expressive conditional EBMs instead of normal distributions to represent the denoising distribution. Additionally, <ref type="bibr">Xiao et al. (2022)</ref> also suggest multimodal distributions, trained by generative adversarial networks <ref type="bibr">(Goodfellow et al., 2020)</ref>, for the reverse process.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B TRAINING DETAILS B.1 NETWORK ARCHITECTURES</head><p>We adopt the EBM architecture from <ref type="bibr">(Gao et al., 2021)</ref>, starting with a 3 &#215; 3 convolution layer with 128 channels (The number of channels is doubled to 256 in the CDRL-large configuration). We use several downsample blocks for resolution adjustments, each containing multiple residual blocks. All downsampling blocks, except the last one, include a 2 &#215; 2 average pooling layer. Spectral normalization is applied to all convolution layers for stability, while ReLU activation is applied to the final feature map. The energy output is obtained by summing the values over spatial and channel dimensions. The architectures of EBM building blocks are shown in Table <ref type="table">5</ref>, and the hyperparameters of network architecture are displayed in Table <ref type="table">6</ref>.</p><p>For the initializer network, we follow <ref type="bibr">(Nichol &amp; Dhariwal, 2021)</ref> to utilize a U-Net <ref type="bibr">(Ronneberger et al., 2015)</ref> while halving the number of channels. This reduction effectively decreases the size of the initializer model. For an image with a resolution of 32 &#215; 32 pixels, we have feature map resolutions of 32 &#215; 32, 16 &#215; 16, and 4 &#215; 4. When dealing with 64 &#215; 64 images, we include an additional feature map resolution of 64 &#215; 64. All feature map channel numbers are set to 64, with attention applied to resolutions of 16 &#215; 16 and 8 &#215; 8. Our initializer directly predicts the noised image &#7929;t at each noise level t, while the DDPM in <ref type="bibr">(Ho et al., 2020)</ref> predicts the total injected noise &#1013;.</p><p>For the class-conditioned generation task, we map class labels to one-hot vectors and use a fullyconnected layer to map these vectors to class embedding vectors with the same dimensions as time embedding vectors. The class embedding is then added to the time embedding. We set the time embedding dimension to 512 for EBM and 256 for the initializer in the CDRL setting. In the Published as a conference paper at ICLR 2024 CDRL-large setting, the time embedding dimension increases to 1024 for EBM, while the one in the initializer remains unchanged. We set the learning rate of EBM to be &#951; &#952; = 1e-4 and the learning rate of initializer to be &#951; &#981; = 1e-5.</p><p>We use linear warm up for both EBM and initializer and let the initializer to start earlier than EBM. More specifically, given training iteration iter, we have:</p><p>We use the Adam optimizer Kingma &amp; Ba (2015); <ref type="bibr">Loshchilov &amp; Hutter (2019)</ref> to train both the EBM and the initializer, with &#946; = (0.9, 0.999) and a weight decay equal to 0.0. We also apply exponential moving average with a decay rate equal to 0.9999 to both the EBM and the initializer. Training is conducted across 8 Nvidia A100 GPUs, typically requiring approximately 400k iterations, which spans approximately 6 days.</p><p>Following <ref type="bibr">(Gao et al., 2021)</ref>, we use a re-parameterization trick to calculate the energy term. Our EBM is constructed across noise levels t = 0, 1, 2, 3, 4, 5 and we assume the distribution at noise level t = 6 is a simple Normal distribution during sampling. Given y t under noise level t, suppose we denote the output of the EBM network as f&#952; (y t , t), then the true energy term is given by f &#952; (y t , t) = f&#952; (yt,t)</p><p>, where s t is the Langevin step size at noise level t. In other words, we parameterize the energy as the product of the EBM network output and a noise-level dependent coefficient, setting this coefficient equal to the square of the Langevin step size. We use 15 steps of Langevin updates at each noise level, with the Langevin step size at noise level t given by</p><p>where &#963; 2 t+1 is the variance of the added noise at noise level t+1 and &#963;t is the standard deviation of the accumulative noise at noise level t. During the generation process, we begin by randomly sampling x 6 &#8764; N (0, I) and perform denoising using both the initializer and the Langevin Dynamics of the EBM, which follows Algorithm 2. After obtaining samples x 0 at the lowest noise level t = 0, we perform an additional denoising step, where we disable the noise term in the Langevin step, to further enhance its quality. More specifically, we follow Tweedie's formula <ref type="bibr">(Efron, 2011;</ref><ref type="bibr">Robbins, 1992)</ref>, which states that given x &#8764; p data (x) and a noisy version image x &#8242; with conditional distribution p(x &#8242; |x) = N (x, &#963; 2 I), the marginal distribution can be defined as p(x &#8242; ) = p data (x)p(x &#8242; |x)dx. Consequently, we have</p><p>(17) In our case, we have p(x t | &#8113;t x 0 ) = N (&#8113; t x 0 , &#963;2 t I) and we use EBM to model the marginal distribution of x t as p &#952;,t (x t ), thus</p><p>Suppose the samples we obtain at t = 0 are denoted as x 0 . These samples actually contains a small amount of noise corresponding to &#8113;0 , thus, we may use Equation <ref type="formula">18</ref>to further denoise them. In practice, we find that enlarging the denoising step by multiplying the gradient term &#8711; xt log p &#952;,t (x t ) by a coefficient larger than 1.0 yields better results. We set this coefficient to be 2.0 in our experiments.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.3 NOISE SCHEDULE AND CONDITIONING INPUT</head><p>We improve upon the noise schedule and the conditioning input of DRL <ref type="bibr">(Gao et al., 2021)</ref>. Let</p><p>represent the logarithm of signal-to-noise ratio at noise level t. Inspired by <ref type="bibr">(Kingma et al., 2021)</ref>, we utilize &#955; t as the conditioning input of the noise level and feed it to the networks f &#952; and g &#981; instead of directly using t. For the noise schedule, we keep the design of using 6 noise levels as in DRL. Inspired by (Nichol &amp; Dhariwal, 2021), we construct a cosine schedule such that &#955; t is defined as &#955; t = -2 log(tan(at + b)), where a and b are calculated from the maximum log SNR (denoted as &#955; max ) and the minimum log SNR (denoted as &#955; min ) using b = arctan(exp(-0.5&#955; max )), (19) a = arctan(exp(-0.5&#955; min )) -b. (20) We set &#955; max = 9.8 and &#955; min = -5.1 to correspond with the standard deviation &#8113;t of the accumulative noise in the original Recovery Likelihood model (T6 setting) at the highest and lowest noise levels. Figure 5 illustrates the noise schedule of DRL alongside our proposed schedule. In contrast to the DRL's original schedule, our proposed schedule places more emphasis on regions with lower signal-to-noise ratios, which are vital for generating low-frequency, high-level concepts in samples. B.4 ILLUSTRATION OF THE CDRL FRAMEWORK Figure 6 illustrates the training and sampling processes of the CDRL framework, providing a comprehensive overview of the model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C MORE EXPERIMENTAL RESULTS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.1 IMAGE INPAINTING</head><p>We demonstrate the inpainting ability of our learned model on the 64 &#215; 64 CelebA dataset. Each image is masked, and our model is tasked with filling in the masked area. We gradually add noise to the masked image up to the final noise level, allowing the model to denoise the image progressively, similar to the standard generation process. During inpainting, only the masked area is updated, while the values in the unmasked area are retained. This is achieved by resetting the unmasked area values to the current noisy version after each Langevin update step of the EBM or initializer proposal step. Our results, depicted in Figure <ref type="figure">7</ref>, include two types of masking: a regular square mask and an  irregularly shaped mask. In Figure <ref type="figure">7</ref>, the first two columns respectively display the original images and the masked images, while the other columns show the corresponding inpainting results. CDRL successfully inpaints valid and diverse values in the masked area, producing inpainted results that differ from the observations. This suggest that CDRL does not merely memorize data because it fills novel and meaningful content into unobserved areas based on the statistical features of the dataset.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D MODEL ANALYSIS</head><p>In this section, we employ several experiments to analyze the CDRL model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.1 ABLATION STUDY</head><p>In this section, we conduct an ablation study to analyze the effectiveness of each component of our CDRL model. We have previously described three main techniques in our main paper that contribute significantly to our CDRL model: (1) the new noise schedule design, (2) the cooperative training algorithm, and (3) noise variance reduction. We demonstrate the impact of each of these techniques by comparing our CDRL model with the following models:</p><p>1. The original diffusion recovery likelihood (DRL) model <ref type="bibr">(Gao et al., 2021)</ref> as a baseline.</p><p>2. A model trained without using the cooperative training. This corresponds to the DRL but using the same noise schedule and conditioning input as CDRL.</p><p>3. CDRL without using noise reduction.</p><p>4. Similar to <ref type="bibr">Xiao et al. (2022)</ref>, we use the initializer to predict the clean image x0 and then transform it to &#375;t . Note that our CDRL uses the initializer to directly predict &#375;t .</p><p>5. Similar to <ref type="bibr">Ho et al. (2020)</ref>, we use initializer to directly output the prediction of total added noise &#949; and then transform it to &#375;t .</p><p>6. Compared with the noise schedule used in the original DRL <ref type="bibr">(Gao et al., 2021)</ref> paper, the proposed one used in our CDRL places more emphasis on the high-noise area where &#8113; is close to 0. We train a CDRL model with the original DRL noise schedule but with 2 additional noise levels in the high-noise region for comparison. 7. As depicted in Equation 8 in the main paper, our cooperative training algorithm involves the initializer learning from the revised sample &#7929;t at each step. A natural question arises: should we instead regress it directly on the data y t ? To answer this, we train a model, in which the initializer directly learns from y t at each step.</p><p>We ensure that all models share the same network structure and training settings on the CIFAR-10 dataset and differ only in the aforementioned ways. As shown in Table <ref type="table">9</ref>, our full model performs the best among these settings, which justifies our design choices.  <ref type="table">10a</ref> show that further reducing noise level to 4 can make model more unstable, even if we increase the number of the Langevin sample steps K. On the other hand, reducing T to 5 yields reasonable but slightly worse results. In Table <ref type="table">10b</ref>, we show the effect of changing the number of Langevin steps K. The results show that, on one hand, decreasing K to 10 yields comparable but slightly worse results. On the other hand, increasing K to 30 doesn't lead to better results. This observation aligns wit the finding from <ref type="bibr">Gao et al. (2021)</ref>. The observation of changing K implies that simply increasing the number of Langevin steps doesn't significantly enhance sample quality, thereby verifying the effectiveness of the initializer in our model.</p><p>Table 10: Comparison of CDRL models with varying numbers of noise levels T and varying numbers of Langevin steps K. FIDs are reported on the Cifar-10 dataset.</p><p>(a) Results of CDRL models with varying T Model FID &#8595; T = 4 (K = 15, 20, 30) not converge T = 5 (K = 15) 5.08 T = 6 (K = 15) 4.31 (b) Results of CDRL models with varying K Model FID &#8595; T = 6 (K = 10) 4.50 T = 6 (K = 15) 4.31 T = 6 (K = 30) 5.08 D.3 SAMPLING TIME</p><p>In this section, we measure the sampling time of CDRL and compare it with the following models:</p><p>(1) CoopFlow <ref type="bibr">(Xie et al., 2022b)</ref>, which combines an EBM with a Normalizing Flow model; (2) VAEBM <ref type="bibr">(Xiao et al., 2021)</ref>, which combines a VAE with an EBM and achieves strong generation performance;</p><p>(3) DRL <ref type="bibr">(Gao et al., 2021)</ref> model with a 30-step MCMC sampling at each noise level. We conduct the sampling process of each model individually on a single A6000 GPU to generate a batch of 100 samples on the Cifar10 dataset. Our CDRL model produces samples with better quality with a relatively shorter time frame. Additionally, with the sampling adjustment techniques, the sampling time can be further reduced without significantly compromising sampling quality. To gain deeper insights into the roles of the initializer and the EBM in the CDRL in image generation, we conduct two additional experiments using a pretrained CDRL model on the ImageNet Dataset (32 &#215; 32). We evaluate two generation options: (a) images generated using only the initializer's proposal, without the EBM's Langevin Dynamics at each noise level, and (b) images generated with the full CDRL model, which includes the initializer's proposal and 15-step Langevin updates at each noise level. As shown in Figure <ref type="figure">9a</ref> and 9b, the initializer captures the rough outline of the object, while the Langevin updates by the EBM improve the details of the object. Furthermore, in Figure <ref type="figure">9c</ref>, we display samples generated by fixing the initial noise image and sample noise of each initializer proposal step. The outcomes demonstrate that images generated with the same initialization noises share basic elements but differ in details, highlighting the impact of both the initializer and the Langevin sampling. The initializer provides a starting point, while the Langevin sampling process enriches details. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.5 ANALYZING LEARNING BEHAVIOR</head><p>We dive into a deeper understanding of the learning behavior of the cooperative learning algorithm.</p><p>We follow the analysis framework of <ref type="bibr">Xie et al. (2020;</ref><ref type="bibr">2022a)</ref>. Let K &#952; (y t |y t &#8242; , x t+1 ) be the transition kernel of the K-step Langevin sampling that refines the initial output y t &#8242; to the refined output y t . Let (K &#952; q &#981; )(y t |x t+1 ) = K &#952; (y t |y &#8242; t , x t+1 )q &#981; (y &#8242; t |x t+1 )dy &#8242; t be the conditional disribution of y t , which is obtained by K steps of Langevin sampling starting from the output of the initialier q &#981; (y t |x t+1 ). Let &#960;(y t |x t+1 ) be the true conditional distribution for denoising x t+1 to retrieve y t . The maximum recovery likelihood for the EBM in Equation 4 in the main paper is equivalent to minimizing the      </p></div></body>
		</text>
</TEI>
