Abstract
State-of-the-art (SOTA) image restoration models have become increasingly complex, making them difficult to analyze and computationally expensive. This paper introduces NAFNet (Nonlinear Activation Free Network), a simple baseline that demonstrates that traditional nonlinear activation functions (e.g., ReLU or Sigmoid) are not required to achieve world-class results in denoising and deblurring. NAFNet matches or exceeds SOTA performance while using significantly fewer computational resources.
Introduction
In recent years, image restoration—the task of recovering high-quality images from blurry or noisy inputs—has been dominated by increasingly intricate deep learning architectures. These complexities can be categorized into two types:
- Inter-block complexity: The use of multi-stage networks or complex connections between feature maps at different scales.
- Intra-block complexity: The inclusion of sophisticated internal components such as self-attention modules, window-based transformers, or multi-layered gated units.
While these models perform well, their complexity obscures which design choices are truly impactful. The authors of NAFNet set out to determine if a simple, single-stage architecture could match these "over-engineered" models by stripping away unnecessary components.
Methodology: Systematic Simplification
The researchers developed NAFNet through a process of systematic simplification, focusing on both macro and micro architecture. They adopted a classic, single-stage UNet structure to minimize inter-block complexity. Starting from a "Plain Block" (Convolution, ReLU, and a Shortcut connection), they iteratively refined the design.
Key innovations in the block design include:
- Normalization: Layer Normalization was found to be essential for training stability, allowing for a 10x increase in the learning rate and a significant performance boost.
- Nonlinear Activation Free (NAF) Design: The core innovation lies in replacing traditional activations. The authors observed that components like GELU (Gaussian Error Linear Unit) and Channel Attention are essentially gating mechanisms.
- SimpleGate: GELU was replaced by splitting the feature map into two halves and performing element-wise multiplication.
- Simplified Channel Attention (SCA): Standard Channel Attention was stripped of Sigmoid and ReLU activations, leaving only global average pooling and linear channel interaction.
By the end of this process, the network contained no traditional nonlinear activation functions—only additions and multiplications. The element-wise multiplication in the gating mechanism provides the necessary nonlinearity.
Experimental Results
NAFNet was evaluated on standard benchmarks including SIDD (RGB denoising) and GoPro (image deblurring). The results demonstrate that NAFNet is not only competitive but often superior in terms of efficiency.
- Image Deblurring (GoPro): NAFNet achieved 33.69 dB PSNR, surpassing the previous SOTA by 0.38 dB while utilizing only 8.4% of its computational cost (MACs).
- Image Denoising (SIDD): It reached 40.30 dB PSNR, exceeding the previous SOTA by 0.28 dB with less than half the computational requirements.
Qualitatively, NAFNet restores sharper edges and finer details compared to more complex models like Restormer or MPRNet, proving that simplicity does not come at the cost of visual quality.
Conclusion
NAFNet proves that traditional nonlinear activations are optional for high-performance image restoration. By simplifying gated linear units into "SimpleGate," the authors achieved better performance with reduced mathematical complexity. This work opens a new design space for efficient computer vision models, suggesting that multiplication-based gating mechanisms could potentially replace more complex attention heads in other domains.
Summary updated