MixFormer: Mixing Features Across Windows and Dimensions

Abstract

While local-window self-attention performs notably in vision tasks, it suffers from limited receptive field and weak modeling capability issues. This is mainly because it performs self-attention within non-overlapped windows and shares weights on the channel dimension. We propose MixFormer to find a solution. First, we combine local-window self-attention with depth-wise convolution in a parallel design, modeling cross-window connections to enlarge the receptive fields. Second, we propose bi-directional interactions across branches to provide complementary clues in the channel and spatial dimensions. These two designs are integrated to achieve efficient feature mixing among windows and dimensions. Our MixFormer provides competitive results on image classification with EfficientNet and shows better results than RegNet and Swin Transformer. Performance in downstream tasks outperforms its alternatives by significant margins with less computational costs in 5 dense prediction tasks on MS COCO, ADE20k, and LVIS. Code is available at https://github.com/PaddlePaddle/PaddleClas.

Cite

Text

Chen et al. "MixFormer: Mixing Features Across Windows and Dimensions." Conference on Computer Vision and Pattern Recognition, 2022. doi:10.1109/CVPR52688.2022.00518

Markdown

[Chen et al. "MixFormer: Mixing Features Across Windows and Dimensions." Conference on Computer Vision and Pattern Recognition, 2022.](https://mlanthology.org/cvpr/2022/chen2022cvpr-mixformer/) doi:10.1109/CVPR52688.2022.00518

BibTeX

@inproceedings{chen2022cvpr-mixformer,
  title     = {{MixFormer: Mixing Features Across Windows and Dimensions}},
  author    = {Chen, Qiang and Wu, Qiman and Wang, Jian and Hu, Qinghao and Hu, Tao and Ding, Errui and Cheng, Jian and Wang, Jingdong},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2022},
  pages     = {5249-5259},
  doi       = {10.1109/CVPR52688.2022.00518},
  url       = {https://mlanthology.org/cvpr/2022/chen2022cvpr-mixformer/}
}