CVMay 30, 2025

Optimal Weighted Convolution for Classification and Denosing

arXiv:2505.24558v13 citationsh-index: 5Has Code
Originality Incremental advance
AI Analysis

This work addresses the need for better spatial feature extraction in CNNs for tasks like image classification and denoising, offering a novel method that is compatible with existing architectures, though it is incremental as it builds on standard convolution.

The paper tackles the problem of enhancing convolutional neural networks by introducing a weighted convolution operator that differentially weights neighboring pixels based on spatial density, improving spatial characterization and feature extraction. It shows performance gains, such as increasing VGG accuracy from 56.89% to 66.94% on CIFAR-100 and boosting DnCNN PSNR from 20.17 to 22.63 on DIV2K for denoising.

We introduce a novel weighted convolution operator that enhances traditional convolutional neural networks (CNNs) by integrating a spatial density function into the convolution operator. This extension enables the network to differentially weight neighbouring pixels based on their relative position to the reference pixel, improving spatial characterisation and feature extraction. The proposed operator maintains the same number of trainable parameters and is fully compatible with existing CNN architectures. Although developed for 2D image data, the framework is generalisable to signals on regular grids of arbitrary dimensions, such as 3D volumetric data or 1D time series. We propose an efficient implementation of the weighted convolution by pre-computing the density function and achieving execution times comparable to standard convolution layers. We evaluate our method on two deep learning tasks: image classification using the CIFAR-100 dataset [KH+09] and image denoising using the DIV2K dataset [AT17]. Experimental results with state-of-the-art classification (e.g., VGG [SZ15], ResNet [HZRS16]) and denoising (e.g., DnCNN [ZZC+17], NAFNet [CCZS22]) methods show that the weighted convolution improves performance with respect to standard convolution across different quantitative metrics. For example, VGG achieves an accuracy of 66.94% with weighted convolution versus 56.89% with standard convolution on the classification problem, while DnCNN improves the PSNR value from 20.17 to 22.63 on the denoising problem. All models were trained on the CINECA Leonardo cluster to reduce the execution time and improve the tuning of the density function values. The PyTorch implementation of the weighted convolution is publicly available at: https://github.com/cammarasana123/weightedConvolution2.0.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes