Learning Spatial and Spatio-Temporal Pixel Aggregations for Image and Video Denoising

Xiangyu Xu, Muchen Li, Wenxiu Sun, Ming-Hsuan Yang · DOI

Abstract

Existing denoising methods typically restore clear results by aggregating pixels from the noisy input. Instead of relying on hand-crafted aggregation schemes, we propose to explicitly learn this process with deep neural networks. We present a spatial pixel aggregation network and learn the pixel sampling and averaging strategies for image denoising. The proposed model naturally adapts to image structures and can effectively improve the denoised results. Furthermore, we develop a spatio-temporal pixel aggregation network for video denoising to efficiently sample pixels across the spatio-temporal space. Our method is able to solve the misalignment issues caused by large motion in dynamic scenes. In addition, we introduce a new regularization term for effectively training the proposed video denoising model. We present extensive analysis of the proposed method and demonstrate that our model performs favorably against the state-of-the-art image and video denoising approaches on both synthetic and real-world data.

Introduction

Denoising is a fundamental computer vision task that becomes particularly challenging in low-light conditions where sensor noise and motion blur intersect. Traditional methods, such as BM3D, rely on hand-crafted aggregation rules like block matching to average similar pixels. Conversely, modern deep learning approaches like DnCNN often use spatially-invariant kernels that can lead to over-smoothing and loss of fine texture.

In "Learning Spatial and Spatio-Temporal Pixel Aggregations for Image and Video Denoising," the authors propose the Pixel Aggregation Network (PAN) and its video extension, ST-PAN. This approach combines the interpretability of classical aggregation with the representational power of deep learning by teaching a network to intelligently sample and weight pixels from the noisy input.

Methodology: The Pixel Aggregation Network

The core innovation of PAN is that it does not directly predict pixel values. Instead, it predicts a sampling grid and averaging weights for every pixel. The architecture consists of three main components:

  1. Offset Network: A U-Net architecture that analyzes the noisy input to predict spatial offsets $(u, v)$ for a set of sampling points.
  2. Adaptive Sampling: Using these offsets, the model samples neighboring pixels via bilinear (image) or trilinear (video) interpolation.
  3. Weight Estimation and Averaging: The network predicts weights for each sampled pixel, and the final denoised value is calculated as a weighted sum.
Overview of the proposed Pixel Aggregation Network (PAN) architecture, illustrating the flow from noisy input to offset prediction, sampling, and weighted averaging.

Key Insights: Deformable Receptive Fields

Unlike standard CNNs with rigid $3\times3$ or $5\times5$ kernels, PAN utilizes learned offsets to create "deformable" receptive fields. This allows the network to "reach out" and find similar structures even if they are not immediately adjacent, effectively following edges and textures.

Comparison of rigid sampling grids (top) versus the learned, deformable grids in PAN (bottom). The learned offsets allow the sampling to adapt to image structures like edges.

For video denoising (ST-PAN), the sampling grid extends into the temporal dimension. To ensure the model effectively utilizes temporal information, the authors introduced an annealing regularization term during training. This forces the model to explore temporal neighbors early on, preventing it from collapsing into a purely spatial solution.

Results and Discussion

The authors evaluated PAN and ST-PAN against benchmarks like Set12, BSD68, and various video sequences.

  • Quantitative Performance: PAN consistently outperformed state-of-the-art methods. On the BSD68 dataset, PAN achieved a PSNR of 33.08, surpassing DnCNN's 32.77.
  • Qualitative Superiority: Visually, PAN preserves fine details (e.g., hair, grass, and text) better than "black-box" CNNs, which tend to blur these features. By constraining the output to a weighted average of input pixels, the model avoids the "plastic" artifacts common in generative models.
  • Handling Motion: ST-PAN demonstrated significant advantages in high-motion video scenarios, successfully resolving misalignment issues that typically cause ghosting in traditional block-matching or rigid-kernel methods.

Conclusion

PAN and ST-PAN represent a significant step forward in denoising by explicitly learning the pixel aggregation process. While the current implementation faces some computational overhead compared to simpler CNNs, its ability to preserve texture and handle complex motion makes it a powerful tool for high-quality image and video restoration. Future work may focus on optimizing speed for real-time applications and refining noise modeling in the raw sensor domain.

Summary updated

BibTeX
@article{xu2020learning,
  author = {Xiangyu Xu and Muchen Li and Wenxiu Sun and Ming-Hsuan Yang},
  title = {{Learning Spatial and Spatio-Temporal Pixel Aggregations for Image and Video Denoising}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.1109/tip.2020.2999209},
}
Figure