arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.07884cs.LGcs.AIcs.CV
收藏

GSPN-2:高效的并行序列建模

GSPN-2: Efficient Parallel Sequence Modeling

NVIDIA;The University of Hong Kong(香港大学);University of California, San Diego(加州大学圣地亚哥分校)
Hongjun Wang, Yitong Jiang, Collin McCarthy, David Wehr, Hanrong Ye, Xinhao Li, Ka Chun Cheung, Wonmin Byeon, Jinwei Gu, Ke Chen, Kai Han, Hongxu Yin, Pavlo Mol… 展开作者

Hongjun Wang, Yitong Jiang, Collin McCarthy, David Wehr, Hanrong Ye, Xinhao Li, Ka Chun Cheung, Wonmin Byeon, Jinwei Gu, Ke Chen, Kai Han, Hongxu Yin, Pavlo Molchanov, Jan Kautz, Sifei Liu

AI总结:

GSPN-2通过结构化矩阵变换和GPU优化实现,提升视觉应用中全局空间上下文建模的效率。

摘要:

高效视觉Transformer仍然是高分辨率图像和长视频相关现实应用中的瓶颈。通用空间传播网络(GSPN)通过将二次自注意力替换为线扫描传播方案,使成本接近行或列的数量线性,同时保持准确性。尽管这一进步,现有的GSPN实现仍然存在(i)由于重复启动GPU内核导致的大量开销,(ii)从全局GPU内存中传输数据过多,以及(iii)由于为每个通道维护单独的传播权重导致的冗余计算。我们引入GSPN-2,一种联合算法-系统重新设计。特别是,我们消除了先前实现中成千上万次微启动,将其转换为一个单一的2D内核,明确将一个warp分配给每个通道切片,并在共享内存中阶段前一列的激活。在模型方面,我们引入了一种紧凑的通道传播策略,用替代每通道矩阵,减少参数,并自然与transformer注意力中使用的亲和图对齐。实验表明,GSPN-2在图像分类和文本到图像合成任务中都表现出色,与transformer级别的准确性相比,计算成本显著降低。GSPN-2通过其独特的结构矩阵变换和GPU优化实现,为视觉应用中的全局空间上下文建模建立了新的效率前沿。项目页面:https://whj363636.github.io/GSPN2/

英文摘要:

Efficient vision transformer remains a bottleneck for high-resolution images and long-video related real-world applications. Generalized Spatial Propagation Network (GSPN) addresses this by replacing quadratic self-attention with a line-scan propagation scheme, bringing the cost close to linear in the number of rows or columns, while retaining accuracy. Despite this advancement, the existing GSPN implementation still suffers from (i) heavy overhead due to repeatedly launching GPU kernels, (ii) excessive data transfers from global GPU memory, and (iii) redundant computations caused by maintaining separate propagation weights for each channel. We introduce GSPN-2, a joint algorithm-system redesign. In particular, we eliminate thousands of micro-launches from the previous implementation into one single 2D kernel, explicitly pin one warp to each channel slice, and stage the previous column's activations in shared memory. On the model side, we introduce a compact channel propagation strategy that replaces per-channel matrices, trimming parameters, and align naturally with the affinity map used in transformer attention. Experiments demonstrate GSPN-2's effectiveness across image classification and text-to-image synthesis tasks, matching transformer-level accuracy with significantly lower computational cost. GSPN-2 establishes a new efficiency frontier for modeling global spatial context in vision applications through its unique combination of structured matrix transformations and GPU-optimized implementation. Project page: https://whj363636.github.io/GSPN2/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑