FlashQLA: Efficient Context Parallelism for Gated DeltaNet
Xi Lin, Chengruidong Zhang, Huiqiang Jiang, Xiao Li, Zekun Wang, Junda Feng, Yunfei Mao, Siqi Zhang, Siyu Wang, Man Yuan, Rui Men, Bo Zheng, Dayiheng Liu, Bohan Zhuang, Jianwei Zhang
Abstract
Gated DeltaNet (GDN) achieves linear computational complexity through recurrent state updates, but sequential dependencies between chunks limit parallelism, particularly for long-context workloads with small batch sizes or limited head-level parallelism per GPU. We present FlashQLA, a context-parallel execution framework for GDN that exposes additional sequence-level parallelism while reducing boundary-state preprocessing overhead. FlashQLA reduces boundary-state preprocessing overhead through decay-aware preparation and extends sequence parallelism across GPUs with Dual CP, which shares summary computation across parallelism levels. Workload-adaptive Auto CP and CP-aware kernel co-design further improve execution efficiency. FlashQLA achieves - forward speedup and up to backward speedup over Flash Linear Attention (FLA) on a single GPU. On eight GPUs with context lengths up to 1M tokens, Dual CP achieves up to forward speedup and speedup for combined forward and backward execution over FLA KCP.
Create a lesson
Metadata
- Categories
- cs.LG, cs.DC
- Comments
- Code is available at https://github.com/QwenLM/FlashQLA
Related papers
Sample-Efficient In-Context Adaptation via Sleep
Shared title terminologycs.LGSangyun Lee, Zhang Enyan, Michael Xu et al.
Pando: Noise-Coupled Parallel Draft Trees for Efficient Edge Speculative Decoding
Shared title terminologycs.LGJoren Dumoulin, Hyoukjun Kwon, Subhankar Pal et al.
Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding
Shared title terminologycs.LGNiloofar Ranjbar, Saeedeh Momtazi, Mohammad Mehdi Homayounpoor
Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
Shared title terminologycs.LGJunsoo Oh, Jihun Yun, Junhyuck Kim et al.
TQ-HQNet: A Trainability-Aware and Qubit-Efficient Hybrid Quantum Neural Network for Cross-Domain Learning on Heterogeneous Data
Shared title terminologycs.LGAbdur Rasool, Saba Aslam, Hui Chen et al.
Transferable, Time-Parallel Graph Dynamics via Space-Time Factorization
Shared title terminologycs.LGWencong Yang, Chaopeng Shen, Abdolmehdi Behroozi