[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82642-en":3,"doc-seo-82642-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82642,16904993612988,"Olivia Brown","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",8,"Research & Report","HCMS: Head-Chunked Multi-Stream Pipeline for Communication-Computation Overlap in Long-Sequence Parallel Attention","All-to-all sequence parallelism methods run communication and computation strictly in sequence for medium-long inputs, leaving accelerator hardware underutilized. HCMS (Head-Chunked Multi-Stream Pipeline) partitions multi-head attention into head chunks and uses dual CUDA streams to enable fine-grained communication–computation overlap. HCMS works orthogonally with FlashAttention and SDPA, needs no kernel changes, supports uneven partitioning, and preserves numerical equivalence. Experiments on four GPU platforms (2–8 GPUs) show 10%–17.5% speedup vs Ulysses and 5%–14.5% vs Ring Attention for 31K–56K tokens, with 6.8% end-to-end gain on Wan2.2; theory recommends use when communication ratio ρ > 20%.","HCMS: Head-Chunked Multi-Stream Pipeline for Communication-Computation Overlap in Long-Sequence Parallel  \nAttention  \nChao Yuan 1 , Pan Li 1 , Yingnan Sun 1 , Jing Liu 1  \n1 Bilibili Inc. , Shanghai, China  \n{yuanchao, lipan02, sunyingnan, [liujing04](liujing04}@bilibili.com)[}](liujing04}@bilibili.com)[@bilibili.com](liujing04}@bilibili.com)  \narXiv :2607 .0 18 17v 1 [ cs .DC] 2 Jul 2026  \nAbstract  \nAll-to-all based sequence parallelism methods execute communication and computation strictly in serial when processing medium-long sequences, resulting in hardware resource underutilization. This paper proposes Head-Chunked Multi-Stream Pipeline (HCMS), which exploits the computational independence of multi-head attention by partitioning attention heads into multiple chunks and achieving fine-grained communicationcomputation overlap through dual CUDA streams. HCMS is orthogonally compatible with existing optimizations such as FlashAttention and SDPA, requires no modification to underlying kernels, supports uneven partitioning while maintaining numerical equivalence. Experiments validate the effectiveness across four GPU platforms at 2-8 GPU scales: for typical video generation sequence lengths of 31K-56K tokens, HCMS achieves 10%-17.5% speedup over the Ulysses baseline and 5%-14.5% speedup over Ring Attention; end-to-end acceleration of 6 .8% is achieved on the Wan2 .2 model. Theoretical analysis shows that HCMS benefits are positively correlated with communication ratio ρ, and its use is recommended when ρ > 20% .  \nKeywords: Sequence Parallelism; CommunicationComputation Overlap; Distributed Attention; CUDA Streams; Long Sequence Processing  \n1 Introduction  \nLarge-scale Transformer models [35] have achieved breakthrough advances in natural language processing [6, 3], computer vision [8], and multimodal generation. Video generation represents one of the most prominent application scenarios [12, 2 , 33 , 11] . Taking models such as Sora [25] and Wan2.2 as examples, generating 2-4 second videos at 720P resolution corresponds to sequence lengths of approximately 31K-56K tokens in latent space. This medium-long sequence processing requirement makes sequence parallelism a critical technique—distributing sequences across multiple GPUs to accelerate computation.  \nHowever, all-to-all based sequence parallelism schemes, represented by DeepSpeed Ulysses [14],  \nexhibit significant efficiency issues: communication and computation execute strictly in serial, causing hardware resource underutilization. We observe that under typical configurations of 4-8 GPUs with PCIe interconnect and 31K-100K token sequence lengths, the communication ratio ρ typically ranges from 15% to 40% . This characteristic provides substantial room for communication optimization—through communication-computation overlap, a theoretical speedup upper bound of 1/(1 − ρ) can be achieved.  \nExisting sequence parallelism methods each have their limitations. Ring Attention [19] employs a ring communication pattern where overlap depends on block-level pipelined execution; when the number of blocks is small, overlap effectiveness is limited, and P − 1 rounds of serial communication are required. Although DeepSpeed Ulysses requires fewer communication rounds, its original implementation executes communication and computation completely in serial, failing to exploit overlap optimization.  \nA fundamental property of multi-head attention is that computations across different heads are mutually independent. This independence implies that the serial dependency of “communication → computation” can be relaxed at the head granularity—rather than waiting for all heads’ input data to complete communication before starting computation, computation for any head can begin immediately once its data is ready. This property provides the theoretical foundation for achieving fine-grained communication-computation overlap atthe head dimension.  \nBased on this insight, we propose the Head-Chunk","cbCaiqbsXepVBr9R","https://ap.wps.com/l/cbCaiqbsXepVBr9R","pdf",735778,1,11,"English","en",105,"# Abstract\n# Introduction\n## Motivation: inefficiency of all-to-all sequence parallelism\n## Key insight: independence across attention heads\n## Proposed method: Head-Chunked Multi-Stream Pipeline (HCMS)\n## Contributions\n# Experimental validation and results\n# Theoretical modeling and applicability","[{\"question\":\"Why do all-to-all sequence parallelism methods underutilize hardware for medium-long sequences?\",\"answer\":\"Because they execute communication and computation strictly in serial, preventing overlap and leaving GPU resources idle while waiting for communication to finish.\"},{\"question\":\"What is the core idea behind HCMS?\",\"answer\":\"HCMS exploits the independence across attention heads by partitioning heads into chunks and scheduling them with fine-grained pipelining using dual CUDA streams, enabling communication–computation overlap at head granularity.\"},{\"question\":\"How does HCMS perform and when is it recommended?\",\"answer\":\"Across four GPU platforms and 2–8 GPU scales, HCMS achieves 10%–17.5% speedup over Ulysses and 5%–14.5% over Ring Attention for 31K–56K tokens, with 6.8% end-to-end gain on Wan2.2; theoretical results recommend use when the communication ratio ρ \\u003e 20%.\"}]",1784182006,28,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"hcms-head-chunked-multi-stream-pipeline-for-communication-computation-overlap-in-long-sequence-parallel-attention","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/hcms-head-chunked-multi-stream-pipeline-for-communication-computation-overlap-in-long-sequence-parallel-attention/82642/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"Why do all-to-all sequence parallelism methods underutilize hardware for medium-long sequences?","Question",{"text":75,"@type":76},"Because they execute communication and computation strictly in serial, preventing overlap and leaving GPU resources idle while waiting for communication to finish.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"What is the core idea behind HCMS?",{"text":80,"@type":76},"HCMS exploits the independence across attention heads by partitioning heads into chunks and scheduling them with fine-grained pipelining using dual CUDA streams, enabling communication–computation overlap at head granularity.",{"name":82,"@type":73,"acceptedAnswer":83},"How does HCMS perform and when is it recommended?",{"text":84,"@type":76},"Across four GPU platforms and 2–8 GPU scales, HCMS achieves 10%–17.5% speedup over Ulysses and 5%–14.5% over Ring Attention for 31K–56K tokens, with 6.8% end-to-end gain on Wan2.2; theoretical results recommend use when the communication ratio ρ > 20%.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":45,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":45,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":45,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":45,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":45,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":45,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]