{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/fast-sampling-of-diffusion-models-with","title":"Fast Sampling of Diffusion Models with Exponential Integrator","arxiv_id":"2204.13902","date":"2022-04-29","proceeding":null,"authors":["Qinsheng Zhang","Yongxin Chen"],"abstract":"The past few years have witnessed the great success of Diffusion models~(DMs) in generating high-fidelity samples in generative modeling tasks. A major limitation of the DM is its notoriously slow sampling procedure which normally requires hundreds to thousands of time discretization steps of the learned diffusion process to reach the desired accuracy. Our goal is to develop a fast sampling method for DMs with a much less number of steps while retaining high sample quality. To this end, we systematically analyze the sampling procedure in DMs and identify key factors that affect the sample quality, among which the method of discretization is most crucial. By carefully examining the learned diffusion process, we propose Diffusion Exponential Integrator Sampler~(DEIS). It is based on the Exponential Integrator designed for discretizing ordinary differential equations (ODEs) and leverages a semilinear structure of the learned diffusion process to reduce the discretization error. The proposed method can be applied to any DMs and can generate high-fidelity samples in as few as 10 steps. In our experiments, it takes about 3 minutes on one A6000 GPU to generate $50k$ images from CIFAR10. Moreover, by directly using pre-trained DMs, we achieve the state-of-art sampling performance when the number of score function evaluation~(NFE) is limited, e.g., 4.17 FID with 10 NFEs, 3.37 FID, and 9.74 IS with only 15 NFEs on CIFAR10. Code is available at https://github.com/qsh-zh/deis","url_abs":"https://arxiv.org/abs/2204.13902v4","url_pdf":"https://arxiv.org/pdf/2204.13902v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"fast-sampling-of-diffusion-models-with","repo_url":"https://github.com/qsh-zh/deis","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":null},{"paper_slug":"fast-sampling-of-diffusion-models-with","repo_url":"https://github.com/hankpipi/diffusers-hetu","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"fast-sampling-of-diffusion-models-with","repo_url":"https://github.com/huggingface/diffusers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":null},{"paper_slug":"fast-sampling-of-diffusion-models-with","repo_url":"https://github.com/shivamshrirao/diffusers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"fast-sampling-of-diffusion-models-with","repo_url":"https://github.com/probabilists/azula","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.13902","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.13902"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/huggingface/diffusers","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shivamshrirao/diffusers","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hankpipi/diffusers-hetu","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/probabilists/azula","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/qsh-zh/deis","reach":null}],"summary":{"ran":8,"ran_draft_wrong":2,"ran_fixture":1,"unverified":15},"by_repo_kind":{"official":{"samples":14,"ran":5,"repositories":1},"listed":{"samples":12,"ran":6,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":14,"samples":[{"code_sha256_prefix":"8c6face91c6b2d6c","entry":"ab_step","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8c6face91c6b2d6c"}},{"code_sha256_prefix":"e6293358fb50e129","entry":"betas_for_alpha_bar","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/schedulers/scheduling_ddim_hetu.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/schedulers/scheduling_ddim_hetu.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e6293358fb50e129"}},{"code_sha256_prefix":"c3d321eafd7ea5fc","entry":"betas_for_alpha_bar","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/schedulers/scheduling_dpmsolver_multistep_hetu.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/schedulers/scheduling_dpmsolver_multistep_hetu.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c3d321eafd7ea5fc"}},{"code_sha256_prefix":"9fc74482f90852db","entry":"get_ab_eps_coef_order0","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9fc74482f90852db"}},{"code_sha256_prefix":"047a63bd314f76e5","entry":"get_coef_per_step_fn","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"047a63bd314f76e5"}},{"code_sha256_prefix":"a8366f238618edad","entry":"get_constant_schedule","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/optimization.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/optimization.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a8366f238618edad"}},{"code_sha256_prefix":"11f07821d1b2286b","entry":"get_constant_schedule_with_warmup","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/optimization.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/optimization.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"11f07821d1b2286b"}},{"code_sha256_prefix":"86a2d8ec186ea23a","entry":"get_integrator_basis_fn","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"86a2d8ec186ea23a"}},{"code_sha256_prefix":"1975e0c51e6f5753","entry":"get_linear_schedule_with_warmup","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/optimization.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/optimization.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1975e0c51e6f5753"}},{"code_sha256_prefix":"270aef5509e49841","entry":"promote_dtype","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"270aef5509e49841"}},{"code_sha256_prefix":"42c8364b75e3eed2","entry":"single_poly_coef","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"42c8364b75e3eed2"}},{"code_sha256_prefix":"1ccb2a7000e28ccf","entry":"Denoiser","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ccb2a7000e28ccf"}},{"code_sha256_prefix":"826614d74a92d36a","entry":"ExpSDE","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"826614d74a92d36a"}},{"code_sha256_prefix":"e63e074a97bdbba7","entry":"MultiStepSDE","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e63e074a97bdbba7"}},{"code_sha256_prefix":"15ce8315808e4f16","entry":"Posterior","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"15ce8315808e4f16"}},{"code_sha256_prefix":"2604445654b63d20","entry":"Sampler","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2604445654b63d20"}},{"code_sha256_prefix":"9f9e8449e6838182","entry":"Schedule","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9f9e8449e6838182"}},{"code_sha256_prefix":"f404b70c8fa44c93","entry":"calculate_diff","repo":"hankpipi/diffusers-hetu","repo_kind":"listed","path":"src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_edit_hetu.py","file_url":"https://github.com/hankpipi/diffusers-hetu/blob/HEAD/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_edit_hetu.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f404b70c8fa44c93"}},{"code_sha256_prefix":"9d7c174fb487814f","entry":"get_ab_eps_coef","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d7c174fb487814f"}},{"code_sha256_prefix":"8050aa9c471e9994","entry":"get_one_coef_per_step_fn","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8050aa9c471e9994"}},{"code_sha256_prefix":"5ee03a5f9d65d37d","entry":"get_rev_ts","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5ee03a5f9d65d37d"}},{"code_sha256_prefix":"e04b6fa68b802212","entry":"get_sampler","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e04b6fa68b802212"}},{"code_sha256_prefix":"20e88ff233a7d48a","entry":"get_sampler_ipndm","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"20e88ff233a7d48a"}},{"code_sha256_prefix":"f389d4f5884dab3d","entry":"get_sampler_rho_ab","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f389d4f5884dab3d"}},{"code_sha256_prefix":"325d6d95af681572","entry":"get_sampler_t_ab","repo":"qsh-zh/deis","repo_kind":"official","path":"jax_deis/sampler.py","file_url":"https://github.com/qsh-zh/deis/blob/HEAD/jax_deis/sampler.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"325d6d95af681572"}},{"code_sha256_prefix":"c376b63ed485cb0c","entry":"zEABSampler","repo":"probabilists/azula","repo_kind":"listed","path":"azula/sample.py","file_url":"https://github.com/probabilists/azula/blob/HEAD/azula/sample.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c376b63ed485cb0c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}