SCFormer: Integrating hybrid Features in Vision Transformers

Publication date

2023

Authors

Lu, HuiISNI 0000000524098097
Poppe, R.W.ISNI 0000000389426288
Salah, A.A.ORCID 0000-0001-6342-428XISNI 0000000091147032

Editors

Advisors

Supervisors

Document Type

Part of book
Open Access logo

License

Abstract

Hybrid modules that combine self-attention and convolution operations can benefit from the advantages of both, and consequently achieve higher performance than either operation alone. However, current hybrid modules do not capitalize directly on the intrinsic relation between self-attention and convolution, but rather introduce external mechanisms that come with increased computation cost. In this paper, we propose a new hybrid vision transformer called Shift and Concatenate Transformer (SCFormer), which benefits from the intrinsic relationship between convolution and self-attention. SCFormer roots in the Shift and Concatenate Attention (SCA) block, that integrates convolution and self-attention features. We propose a shifting mechanism and corresponding aggregation rules for the feature integration of SCA blocks such that generated features more closely approximate the optimal output features. Extensive experiments show that, with comparable computational complexity, SCFormer consistently achieves improved results over competitive baselines on image recognition and downstream tasks. Our code is available at: https://github.com/hotfinda/SCFormer.

Keywords

Vision transformer, feature integration, hybrid module, Taverne, Computer Networks and Communications, Computer Science Applications

Citation

Lu, H, Poppe, R & Salah, A 2023, SCFormer: Integrating hybrid Features in Vision Transformers. in Proceedings - 2023 IEEE International Conference on Multimedia and Expo, ICME 2023. Proceedings - IEEE International Conference on Multimedia and Expo, vol. 2023-July, IEEE, pp. 1883-1888. https://doi.org/10.1109/ICME55011.2023.00323