MSG-Transformer: Exchanging Local Spatial Information by Manipulating Messenger Tokens
Transformers have offered a new methodology of designing neural networks for visual recognition. Compared to convolutional networks, Transformers enjoy the ability of referring to global features at each stage, yet the attention module brings higher computational overhead that obstructs the application of Transformers to process high-resolution visual data. This paper aims to alleviate the conflict between efficiency and flexibility, for which we propose a specialized token for each region that serves as a messenger (MSG). Hence, by manipulating these MSG tokens, one can flexibly exchange visual information across regions and the computational complexity is reduced. We then integrate the MSG token into a multi-scale architecture named MSG-Transformer. In standard image classification and object detection, MSG-Transformer achieves competitive performance and the inference on both GPU and CPU is accelerated. Code is available at https://github.com/hustvl/MSG-Transformer.
Code (3)
Tasks
CPUGPUimage-classificationImage Classificationobject-detectionObject DetectionSimilar Papers 제목 키워드 기반
SCTransNet: Spatial-channel Cross Transformer Network for Infrared Small Target Detection
Infrared small target detection (IRSTD) has recently benefitted greatly from U-shaped neural models. However, largely overlooking effective global information modeling, existing techniques struggle when the target has hi…
SPAN: Spatial Pyramid Attention Network for Image Manipulation Localization
Tehchniques for manipulating images are advancing rapidly; while these are helpful for many useful tasks, they also pose a threat to society with their ability to create believable misinformation. We present a novel, Spa…
Image ManipulationImage Manipulation DetectionImage Manipulation LocalizationMisinformation+1Exchanging-based Multimodal Fusion with Transformer
We study the problem of multimodal fusion in this paper. Recent exchanging-based methods have been proposed for vision-vision fusion, which aim to exchange embeddings learned from one modality to the other. However, most…
Image CaptioningImage GenerationMultimodal Sentiment Analysisnamed-entity-recognition+4Tracing and Manipulating Intermediate Values in Neural Math Problem Solvers
How language models process complex input that requires multiple steps of inference is not well understood. Previous research has shown that information about intermediate values of these inputs can be extracted from the…
MathToward Moiré-Free and Detail-Preserving Demosaicking
3D convolutions are commonly employed by demosaicking neural models, in the same way as solving other image restoration problems. Counter-intuitively, we show that 3D convolutions implicitly impede the RGB color spectra …
DemosaickingDenoisingImage RestorationSuper-Resolution