{"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/arxiv-2603-18636","title":"Attention Sparsity is Input-Stable: Training-Free Sparse Attention for Video Generation via Offline Sparsity Profiling and Online QK Co-Clustering","arxiv_id":"2603.18636","date":"2026-03-19","proceeding":"ICML","authors":["Jiayi Luo","Jiayu Chen","Jiankun Wang","Cong Wang","Hanxin Zhu","Qingyun Sun","Chen Gao","Zhibo Chen","Jianxin Li"],"abstract":"Diffusion Transformers (DiTs) achieve strong video generation quality but suffer from high inference cost due to dense 3D attention, motivating sparse attention techniques for improving efficiency. However, existing training-free sparse attention methods for video generation still face two unresolved limitations: ignoring layer heterogeneity in attention pruning and ignoring query-key coupling in block partitioning, which hinder a better quality-speedup trade-off. In this work, we uncover a critical insight: attention sparsity is an intrinsic layer-wise property, with only minor variation across different inputs. Motivated by this observation, we propose SVOO, a training-free sparse attention framework for fast video generation via offline layer-wise sparsity profiling and online bidirectional co-clustering. Specifically, SVOO adopts a two-stage paradigm: (i) offline layer-wise sensitivity profiling to derive intrinsic per-layer pruning levels, and (ii) online block-wise sparse attention via a bidirectional co-clustering algorithm. Extensive experiments on seven widely used video generation models demonstrate that SVOO achieves a superior quality-speedup trade-off over state-of-the-art methods, delivering up to 1.93x speedup while maintaining a PSNR of up to 29 dB on Wan2.1. Code is available at: https://github.com/Mutual-Luo/SVOO.","url_abs":"https://arxiv.org/abs/2603.18636","url_pdf":"https://arxiv.org/pdf/2603.18636","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2603.18636","atlas_url":"https://app.syntology.ai/?focus=2603.18636","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.18636"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Mutual-Luo/SVOO","reach":null}],"summary":{"ran":8,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":11,"ran":8,"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":0,"samples":[{"code_sha256_prefix":"680b148aa522eec6","entry":"generate_temporal_head_mask_mod","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/hunyuan10/utils.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/hunyuan10/utils.py","link_basis":"first_harvest_node","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":"680b148aa522eec6"}},{"code_sha256_prefix":"f7ed76a6faefd4f2","entry":"generate_temporal_head_mask_mod","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/utils.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/utils.py","link_basis":"first_harvest_node","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":"f7ed76a6faefd4f2"}},{"code_sha256_prefix":"1e76f50cbc64301f","entry":"get_attention_mask","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/hunyuan10/utils.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/hunyuan10/utils.py","link_basis":"first_harvest_node","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":"1e76f50cbc64301f"}},{"code_sha256_prefix":"0543cdd0b9d08934","entry":"hunyuan_token_reorder_to_frame_major","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/hunyuan10/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/hunyuan10/placement.py","link_basis":"first_harvest_node","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":"0543cdd0b9d08934"}},{"code_sha256_prefix":"0847ff97c9658511","entry":"hunyuan_token_reorder_to_token_major","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/hunyuan10/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/hunyuan10/placement.py","link_basis":"first_harvest_node","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":"0847ff97c9658511"}},{"code_sha256_prefix":"793abbf309d92d09","entry":"sparsity_to_width","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/utils.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/utils.py","link_basis":"first_harvest_node","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":"793abbf309d92d09"}},{"code_sha256_prefix":"2cbbc31b189869b2","entry":"wan_token_reorder_to_frame_major","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/placement.py","link_basis":"first_harvest_node","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":"2cbbc31b189869b2"}},{"code_sha256_prefix":"272c97b0d22d2805","entry":"wan_token_reorder_to_token_major","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/placement.py","link_basis":"first_harvest_node","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":"272c97b0d22d2805"}},{"code_sha256_prefix":"2191dca04d00a3c3","entry":"prepare_flashinfer_attention","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/attention.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/attention.py","link_basis":"first_harvest_node","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":"2191dca04d00a3c3"}},{"code_sha256_prefix":"c5941af3e2811f0d","entry":"ref_hunyuan_sparse_head_placement","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/hunyuan10/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/hunyuan10/placement.py","link_basis":"first_harvest_node","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":"c5941af3e2811f0d"}},{"code_sha256_prefix":"3c0438a386efef9e","entry":"ref_wan_sparse_head_placement","repo":"Mutual-Luo/SVOO","repo_kind":"found_in_text","path":"svoo/models/wan/placement.py","file_url":"https://github.com/Mutual-Luo/SVOO/blob/HEAD/svoo/models/wan/placement.py","link_basis":"first_harvest_node","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":"3c0438a386efef9e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}