SparseGDN:线性注意力中的块稀疏化
SparseGDN: Chunk Sparse in Linear Attention
AI总结:
针对GDN长上下文预填充成本高的问题,提出硬件感知框架SparseGDN,通过块相邻求解器、动态选择器及GPU实现优化,在Qwen3.5系列模型上获1.50-1.94倍预填充加速。
摘要:
门控Delta网络(GDN)可实现线性时间序列建模,但由于块内密集计算、循环状态更新及中间状态存储,长上下文预填充仍成本高昂。我们提出SparseGDN,一种硬件感知框架,结合结构化块内近似与依赖输入的循环事件选择,同时为每个token生成输出。块相邻求解器减少局部Delta求解计算,动态选择器在头对间分配循环更新预算。GPU实现仅为选定事件实例化更新,并利用紧凑状态快照与组局部交互重构token输出,降低计算与内存流量。我们在Qwen3.5-4B和Qwen3.5-9B上针对RULER任务及4K至128K的上下文长度评估SparseGDN。平均保留约29%的循环事件,SparseGDN在包含在线选择开销的情况下,较原生FLA内核实现1.50-1.94倍的GDN核心预填充加速。
英文摘要:
Gated Delta Networks (GDNs) offer linear-time sequence modeling, yet long-context prefill remains costly due to dense intra-chunk computation, recurrent-state updates, and intermediate state storage. We introduce SparseGDN, a hardware-aware framework that combines structured intra-chunk approximation with input-dependent recurrent-event selection while producing outputs for every token. A block-adjacent solver reduces local Delta-solve computation, while a dynamic selector allocates recurrent-update budgets across head pairs. The GPU implementation materializes updates only for selected events and reconstructs token outputs using compact state snapshots and group-local interactions, reducing computation and memory traffic. We evaluate SparseGDN on Qwen3.5-4B and Qwen3.5-9B across RULER tasks and context lengths from 4K to 128K. Retaining approximately 29% of recurrent events on average, SparseGDN achieves 1.50-1.94x GDN-core prefill speedups over native FLA kernels, including online selection overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。