FwNet-ECA: A Classification Model Enhancing Window Attention with Global Receptive Fields via Fourier Filtering Operations

Shengtian Mian, Ya Wang, Nannan Gu, Yuping Wang, Xiaoqing Li
2/25/2025
cs.CV

Official code: qingxiaoli/FwNet-ECA (2 stars, last commit 2025-12-12).

Abstract

Windowed attention mechanisms were introduced to mitigate the issue of excessive computation inherent in global attention mechanisms. In this paper, we present FwNet-ECA, a novel method that utilizes Fourier transforms paired with learnable weight matrices to enhance the spectral features of images. This method establishes a global receptive field through Filter Enhancement and avoids the use of moving window attention. Additionally, we incorporate the Efficient Channel Attention (ECA) module to improve communication between different channels. Instead of relying on physically shifted windows, our approach leverages frequency domain enhancement to implicitly bridge information across spatial regions. We validate our model on the iCartoonFace dataset and conduct downstream tasks on ImageNet, demonstrating that our model achieves lower parameter counts and computational overheads compared to shifted window approaches, while maintaining competitive accuracy. Furthermore, our visualization operations clearly demonstrated that the Filter Enhancement technique achieves greater effectiveness in the model's shallow layers, where feature maps are relatively larger. This work offers a more efficient and effective alternative for leveraging attention mechanisms in visual processing tasks, alleviating the challenges associated with windowed attention models. Code is available at https://github.com/qingxiaoli/FwNet-ECA

View on arXivView PDF

Code Implementations(1)

Repository for the FwNet-ECA paper, which includes data and code for the paper.

20PythonSep 14, 202410 months ago

Similar Papers

Cite this paper

@article{mian2025fwneteca,
  title  = {FwNet-ECA: A Classification Model Enhancing Window Attention with Global Receptive Fields via Fourier Filtering Operations},
  author = {Shengtian Mian and Ya Wang and Nannan Gu and Yuping Wang and Xiaoqing Li},
  year   = {2025},
  eprint = {2502.18094},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18094v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.18094.svg)](https://codeofpaper.com/paper/2502.18094)

Discussion