FlashQLA: Efficient Context Parallelism for Gated DeltaNet
Xi Lin, Chengruidong Zhang, Huiqiang Jiang, Xiao Li, Zekun Wang, Junda Feng, Yunfei Mao, Siqi Zhang 等 15 位作者
原文摘要
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 $1.7\times$-$3.1\times$ forward speedup and up to $4.4\times$ 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 $4.8\times$ forward speedup and $4.4\times$ speedup for combined forward and backward execution over FLA KCP.
cs.LG · cs.DC