{"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/alias-free-latent-diffusion-models-improving","title":"Alias-Free Latent Diffusion Models:Improving Fractional Shift Equivariance of Diffusion Latent Space","arxiv_id":"2503.09419","date":"2025-03-12","proceeding":null,"authors":["Yifan Zhou","Zeqi Xiao","Shuai Yang","Xingang Pan"],"abstract":"Latent Diffusion Models (LDMs) are known to have an unstable generation process, where even small perturbations or shifts in the input noise can lead to significantly different outputs. This hinders their applicability in applications requiring consistent results. In this work, we redesign LDMs to enhance consistency by making them shift-equivariant. While introducing anti-aliasing operations can partially improve shift-equivariance, significant aliasing and inconsistency persist due to the unique challenges in LDMs, including 1) aliasing amplification during VAE training and multiple U-Net inferences, and 2) self-attention modules that inherently lack shift-equivariance. To address these issues, we redesign the attention modules to be shift-equivariant and propose an equivariance loss that effectively suppresses the frequency bandwidth of the features in the continuous domain. The resulting alias-free LDM (AF-LDM) achieves strong shift-equivariance and is also robust to irregular warping. Extensive experiments demonstrate that AF-LDM produces significantly more consistent results than vanilla LDM across various applications, including video editing and image-to-image translation. Code is available at: https://github.com/SingleZombie/AFLDM","url_abs":"https://arxiv.org/abs/2503.09419v1","url_pdf":"https://arxiv.org/pdf/2503.09419v1.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":"alias-free-latent-diffusion-models-improving","repo_url":"https://github.com/singlezombie/afldm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-to-image-translation","task_name":"Image-to-Image Translation"},{"task_slug":"video-editing","task_name":"Video Editing"}],"methods":[{"method_slug":"attention","method_name":"Attention"},{"method_slug":"concatenated-skip-connection","method_name":"Concatenated Skip Connection"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"u-net","method_name":"U-Net"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.09419","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.09419"}},"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/singlezombie/afldm","reach":null}],"summary":{"ran":2,"ran_honours":1,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"repositories":1}},"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":4,"samples":[{"code_sha256_prefix":"42789a66d7e4884c","entry":"LPF_RECON_RFFT","repo":"singlezombie/afldm","repo_kind":"official","path":"afldm/af_modules/af_blocks.py","file_url":"https://github.com/singlezombie/afldm/blob/HEAD/afldm/af_modules/af_blocks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"42789a66d7e4884c"}},{"code_sha256_prefix":"6c1b61c53580e847","entry":"UpsampleRFFT","repo":"singlezombie/afldm","repo_kind":"official","path":"afldm/af_modules/af_blocks.py","file_url":"https://github.com/singlezombie/afldm/blob/HEAD/afldm/af_modules/af_blocks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6c1b61c53580e847"}},{"code_sha256_prefix":"ad77d8eb30462368","entry":"create_recon_rect","repo":"singlezombie/afldm","repo_kind":"official","path":"afldm/af_modules/af_blocks.py","file_url":"https://github.com/singlezombie/afldm/blob/HEAD/afldm/af_modules/af_blocks.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ad77d8eb30462368"}},{"code_sha256_prefix":"df90e679ece64a92","entry":"AliasFreeUpsample2D","repo":"singlezombie/afldm","repo_kind":"official","path":"afldm/af_modules/af_blocks.py","file_url":"https://github.com/singlezombie/afldm/blob/HEAD/afldm/af_modules/af_blocks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"df90e679ece64a92"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}