arrow
Return

SAVE: Encoding spatial interactions for vision transformers

delete2024-12-01
delete0
PRE
AI
X
Xiao Ma
张
张泽天 (Zetian Zhang)
R
Rong Yu
纪
纪则轩 (Zexuan Ji)
M
Mingchao Li
Y
Yuhan Zhang
Q
Qiang Chen *
DOI:10.1016/j.imavis.2024.105312delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Transformers have achieved impressive performance in visual tasks. Position encoding, which equips vectors (elements of input tokens, queries, keys, or values) with sequence specificity, effectively alleviates the lack of permutation relation in transformers. In this work, we first clarify that both position encoding and additional position-specific operations will introduce positional information when participating in self-attention. On this basis, most existing position encoding methods are equivalent to special affine transformations. However, this encoding method lacks the correlation of vector content interaction. We further propose Spatial Aggregation Vector Encoding (SAVE) that employs transition matrices to recombine vectors. We design two simple yet effective modes to merge other vectors, with each one serving as an anchor. The aggregated vectors control spatial contextual connections by establishing two-dimensional relationships. Our SAVE can be plug- and-play in vision transformers, even with other position encoding methods. Comparative results on three image classification datasets show that the proposed SAVE performs comparably to current position encoding methods. Experiments on detection tasks show that the SAVE improves the downstream performance of transformer-based methods. Code is available at https://github.com/maxiao0234/SAVE.
Keywords:
Vision transformers
Position encoding
Spatial interactions
Neighbor patches merging reduces spatial redundancy to accelerate vision transformer☆
err2025-01-01
err0
PREAI
errJiang, Kai; Peng, Peng; Lian, Youzao; Shao, Weihui; Xu, Weisheng
errShare
errSave
Advancing Vision Transformer With Enhanced Spatial Priors
err2026-04-13
err0
PREAI
errQihang Fan; Huaibo Huang; Mingrui Chen; Hongmin Liu; Ran He
errShare
errSave
Mitigation of spatial nonstationarity with vision transformers
err2023-09-01
err3
errOAAI
errLiu, Lei; Santos, Javier E.; Prodanovic, Masa; Pyrcz, Michael J.
errShare
errSave
Centralized Position Embeddings for Vision Transformers
err2025-01-01
err0
errOAAI
errChanyong Shin; Ilwi Yun; Hyunku Lee; Chae Eun Rhee
errShare
errSave
Improved Gen6D network with vision transformer encoding detection
err2025-11-10
err0
PREAI
errZhao, Yun-tao; Liu, Di-fan; Deng, Xin-hui; Gong, Xin-fei; Li, Yuan-qing
errShare
errSave
Cascaded Cross-Attention Vision Transformers with Wavelet-Based Encodings for DeepFake Detection
err2026-04-07
err0
PREAI
errAnand Polamarasetti; Shakeel Ahmad; Muhammad Zaman; Rahiel Ahmad; Aftab Hussain; Adnan Akhunzada
errShare
errSave

Journal

Image and Vision Computing cover
Image and Vision Computing
IF:
4.2
Papers:
4.1K
Citations:
9.0K

Organization

C
China Electronics Technology Group
Scholars:
37
Papers: 21
Citations: 685
C
chinese university of hongkong
Scholars:
110
Papers: 48
Citations: 2.6W
Cited Papers

Cited Papers

Elimination Strategy for Aromatic Acetylenes
err2006-08-26
err0
PREAI
errAkihiro Orita; Junzo Otera
errShare
errSave
errShare
errSave
errShare
errSave
researcher View more