{"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/fifo-diffusion-generating-infinite-videos","title":"FIFO-Diffusion: Generating Infinite Videos from Text without Training","arxiv_id":"2405.11473","date":"2024-05-19","proceeding":null,"authors":["JiHwan Kim","Junoh Kang","Jinyoung Choi","Bohyung Han"],"abstract":"We propose a novel inference technique based on a pretrained diffusion model for text-conditional video generation. Our approach, called FIFO-Diffusion, is conceptually capable of generating infinitely long videos without additional training. This is achieved by iteratively performing diagonal denoising, which simultaneously processes a series of consecutive frames with increasing noise levels in a queue; our method dequeues a fully denoised frame at the head while enqueuing a new random noise frame at the tail. However, diagonal denoising is a double-edged sword as the frames near the tail can take advantage of cleaner frames by forward reference but such a strategy induces the discrepancy between training and inference. Hence, we introduce latent partitioning to reduce the training-inference gap and lookahead denoising to leverage the benefit of forward referencing. Practically, FIFO-Diffusion consumes a constant amount of memory regardless of the target video length given a baseline model, while well-suited for parallel inference on multiple GPUs. We have demonstrated the promising results and effectiveness of the proposed methods on existing text-to-video generation baselines. Generated video examples and source codes are available at our project page.","url_abs":"https://arxiv.org/abs/2405.11473v4","url_pdf":"https://arxiv.org/pdf/2405.11473v4.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":"fifo-diffusion-generating-infinite-videos","repo_url":"https://github.com/jjihwan/FIFO-Diffusion_public","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"text-to-video-generation","task_name":"Text-to-Video Generation"},{"task_slug":"video-generation","task_name":"Video Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/video-generation-on-ucf-101","task":"Video Generation","dataset":"UCF-101","model":"\bFIFO-Diffusion","rank_in_archive_order":48,"of":48,"metrics":{"FVD128":"596.64","Inception Score":"74.44"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.11473","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.11473"}},"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/jjihwan/FIFO-Diffusion_public","reach":{"status":"ok"}}],"summary":{"ran_violates":1,"ran_draft_wrong":2,"ran_honours":1,"ran":5,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"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":13,"samples":[{"code_sha256_prefix":"4cb732f513d69dfd","entry":"disabled_train","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/basics.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/basics.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cb732f513d69dfd"}},{"code_sha256_prefix":"a15cfd7932844ef9","entry":"extract_into_tensor","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/common.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/common.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a15cfd7932844ef9"}},{"code_sha256_prefix":"c984209a2c66afbe","entry":"make_beta_schedule","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/models/utils_diffusion.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/models/utils_diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c984209a2c66afbe"}},{"code_sha256_prefix":"e11558193047e653","entry":"make_ddim_timesteps","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/models/utils_diffusion.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/models/utils_diffusion.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":"e11558193047e653"}},{"code_sha256_prefix":"17eb0a31c91b671c","entry":"normal_kl","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/distributions.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/distributions.py","link_basis":"harvester_set","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":"17eb0a31c91b671c"}},{"code_sha256_prefix":"2ccce54aa4311a60","entry":"prepare_latents","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"opensora_fifo/sample/sample_fifo.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/opensora_fifo/sample/sample_fifo.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":"2ccce54aa4311a60"}},{"code_sha256_prefix":"51793130bfcca703","entry":"shift_latents","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"opensora_fifo/sample/sample_fifo.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/opensora_fifo/sample/sample_fifo.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":"51793130bfcca703"}},{"code_sha256_prefix":"2203f9d1be3dc36c","entry":"timestep_embedding","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/models/utils_diffusion.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/models/utils_diffusion.py","link_basis":"harvester_set","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":"2203f9d1be3dc36c"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/basics.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/basics.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"129b804760b3115f"}},{"code_sha256_prefix":"32af1c12fd826ef2","entry":"autocast","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/common.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/common.py","link_basis":"harvester_set","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":"32af1c12fd826ef2"}},{"code_sha256_prefix":"b72d8eb89fd75383","entry":"gather_data","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/common.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/common.py","link_basis":"harvester_set","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":"b72d8eb89fd75383"}},{"code_sha256_prefix":"9136b5f9b735334b","entry":"scale_module","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"lvdm/basics.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/lvdm/basics.py","link_basis":"harvester_set","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":"9136b5f9b735334b"}},{"code_sha256_prefix":"66c5cc4ac8f8598f","entry":"set_directory","repo":"jjihwan/FIFO-Diffusion_public","repo_kind":"official","path":"videocrafter_main.py","file_url":"https://github.com/jjihwan/FIFO-Diffusion_public/blob/HEAD/videocrafter_main.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":"66c5cc4ac8f8598f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}