arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.00746cs.CVcs.LG
收藏

将并行序列模型扩展到基础规模的视觉编码器

Scaling Parallel Sequence Models to Foundation-Scale Vision Encoders

NVIDIA;The Chinese University of Hong Kong(香港中文大学);The University of Hong Kong(香港大学);University of California, San Diego(加州大学圣地亚哥分校)
Yitong Jiang, Hongjun Wang, Collin McCarthy, Hanrong Ye, David Wehr, Xinhao Li, Qi Dou, Tianfan Xue, Ka Chun Cheung, Simon See, Wonmin Byeon, Ke Chen, Kai Han, … 展开作者

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

AI总结:

提出C-GSPN,一种基于2D空间传播的基础规模视觉编码器,通过快速CUDA内核、压缩潜在空间传播块和两阶段交叉算子蒸馏,在减少参数的同时提升性能并实现高效推理。

摘要:

视觉基础模型受限于自注意力的二次成本,这限制了可用分辨率并增加了大规模预训练的成本。次二次替代方案如线性注意力和状态空间模型降低了这一成本,但通常将图像序列化为1D令牌流,削弱了对视觉重要的2D空间结构。广义空间传播网络(GSPN)通过线扫描递归直接在2D网格上传播上下文,实现了接近线性的复杂度且无需位置嵌入,但很少用作基础规模的编码器。我们提出C-GSPN,一种基于2D空间传播的基础规模视觉编码器。C-GSPN通过三项改进使该算子实用化:(1)一个快速的GSPN CUDA内核,将每步启动融合为单个warp专用实现,采用共享内存分块、合并访问和紧凑的多通道传播,达到峰值内存带宽的90%以上,运行速度比原始GSPN实现快40-52倍;(2)一个带有融合归一化的压缩潜在空间传播块,将内核级速度转化为块级和模型级效率;(3)一个两阶段交叉算子蒸馏方案,从注意力教师训练新架构,无需从头开始进行基础规模训练的成本。使用6亿图像-文本对进行蒸馏,C-GSPN以少15%的参数匹配同构ViT基线,在ADE20K分割上提升+2.1%,以极少的数据迁移到高分辨率,并在2K分辨率下通过单次无分块推理实现4倍的端到端块加速。

英文摘要:

Vision foundation models are bottlenecked by the quadratic cost of self-attention, which limits usable resolution and increases the cost of large-scale pretraining. Subquadratic alternatives such as linear attention and state-space models reduce this cost, but often serialize images into 1D token streams and weaken the 2D spatial structure important for vision. Generalized Spatial Propagation Networks (GSPN) instead propagate context directly on the 2D grid through line-scan recurrences, achieving near-linear complexity without positional embeddings, but have seen little use as foundation-scale encoders. We present C-GSPN, a foundation-scale vision encoder based on 2D spatial propagation. C-GSPN makes the operator practical through three improvements: (1) a fast GSPN CUDA kernel that fuses per-step launches into a single warp-specialized implementation with shared-memory tiling, coalesced access, and a compact multi-channel propagation, reaching over 90% of peak memory bandwidth and running up to 40--52x faster than the original GSPN implementation; (2) a compressed latent-space propagation block with fused normalization, which turns kernel-level speed into block- and model-level efficiency; and (3) a two-stage cross-operator distillation recipe that trains the new architecture from an attention teacher without the cost of from-scratch foundation-scale training. Distilled with 600M image-text pairs, C-GSPN matches an isomorphic ViT baseline with 15% fewer parameters, improves ADE20K segmentation by +2.1%, transfers to high resolution with a fraction of the data needed from scratch, and delivers a 4x end-to-end block speedup at 2K with single-pass, tiling-free inference.

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

↑