Parallel Sequence Modeling via Generalized Spatial Propagation Network

Abstract

We present the Generalized Spatial Propagation Network (GSPN), a new attention mechanism optimized for vision tasks that inherently captures 2D spatial structures. Existing attention models, including transformers, linear attention, and state-space models like Mamba, process multi-dimensional data as 1D sequences, compromising spatial coherence and efficiency. GSPN overcomes these limitations by directly operating on spatially coherent image data and forming dense pairwise connections through a unique line-scan approach. Central to GSPN is the Stability-Context Condition, which ensures stable, context-aware propagation across 2D sequences and reduces the effective sequence length to \sqrt N , significantly enhancing computational efficiency. With learnable, input-dependent weights and no reliance on positional embeddings, GSPN achieves superior spatial fidelity and state-of-the-art performance in vision tasks, including ImageNet classification, class-guided image generation, and text-to-image generation. Notably, GSPN accelerates SD-XL with softmax-attention by over 84xwhen generating 16K images.

Cite

Text

Wang et al. "Parallel Sequence Modeling via Generalized Spatial Propagation Network." Conference on Computer Vision and Pattern Recognition, 2025. doi:10.1109/CVPR52734.2025.00422

Markdown

[Wang et al. "Parallel Sequence Modeling via Generalized Spatial Propagation Network." Conference on Computer Vision and Pattern Recognition, 2025.](https://mlanthology.org/cvpr/2025/wang2025cvpr-parallel/) doi:10.1109/CVPR52734.2025.00422

BibTeX

@inproceedings{wang2025cvpr-parallel,
  title     = {{Parallel Sequence Modeling via Generalized Spatial Propagation Network}},
  author    = {Wang, Hongjun and Byeon, Wonmin and Xu, Jiarui and Gu, Jinwei and Cheung, Ka Chun and Wang, Xiaolong and Han, Kai and Kautz, Jan and Liu, Sifei},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2025},
  pages     = {4473-4483},
  doi       = {10.1109/CVPR52734.2025.00422},
  url       = {https://mlanthology.org/cvpr/2025/wang2025cvpr-parallel/}
}