TL;DR
This paper establishes a formal link between Convolutional Neural Networks (CNNs) trained for image denoising and traditional non-local filtering techniques, using the Neural Tangent Kernel (NTK). They show that the filtering behavior of a CNN can be derived analytically from its architecture and random initialization, offering a way to understand CNNs as powerful, data-driven filters. Crucially, they reveal that while standard gradient descent (GD) aligns with NTK predictions, the popular Adam optimizer allows CNNs to adapt their filtering behavior based on the target image, explaining the success of "deep image prior" methods.
What Problem Does This Paper Address?
The field of computational imaging has seen tremendous success with Convolutional Neural Networks (CNNs) for tasks like image denoising. However, the theoretical understanding of why these highly overparameterized networks work so well, especially when trained on a single corrupted image (the "deep image prior" or DIP phenomenon), has lagged behind their empirical performance. Traditional methods like Non-Local Means (NLM) and BM3D are known for their effectiveness in denoising by exploiting self-similarities in images. This paper aims to bridge the gap between these two worlds: understanding CNNs as sophisticated non-local filters and explaining the surprising effectiveness of DIP methods by connecting their behavior to optimization dynamics and the NTK.
Methods
The core of the paper lies in its analysis using the Neural Tangent Kernel (NTK). The NTK describes the behavior of an infinitely wide neural network trained with gradient descent. The authors show that:
- CNNs as NTK Filters: For CNNs trained with standard gradient descent (GD), the NTK can be computed analytically. This NTK defines a non-local filtering kernel that is determined solely by the network's architecture (depth, kernel size, activation function) and random initialization. This means the filtering behavior can be understood without training the network.
- Closed-Form Filter: They derive a closed-form expression for this filter, allowing it to be computed directly.
- Nyström Approximation: To handle the computational cost of large kernel matrices, they employ the Nyström method for approximation.
- Adam Optimizer's Role: A key contribution is showing that the NTK theory, which works well for GD, fails to fully explain the behavior of CNNs trained with the Adam optimizer. They demonstrate that Adam leads to a larger change in weights in hidden layers, allowing the network to adapt its filtering behavior based on the target image, which is crucial for DIP's success.
Datasets
The paper uses a standard dataset of 9 color images for training and evaluation. Specific image examples mentioned include 'house', 'baboon', and 'F16'.
Key Insights and Ideas
- CNNs are Implicit Non-Local Filters: The NTK framework reveals that CNNs, especially in the overparameterized regime, inherently act as non-local filters. Their filtering behavior is dictated by their architecture and initialization, not just the training data.
- GD vs. Adam in DIP: The choice of optimizer significantly impacts the CNN's filtering behavior. GD-trained networks produce a fixed filter, while Adam-trained networks adapt this filter based on the target image, leading to better performance in DIP settings.
- DIP is More Than Just a Low-Pass Prior: Contrary to some prior hypotheses, the paper shows that the success of DIP is not solely due to a low-pass filter prior. The adaptive nature of optimizers like Adam is critical for exploiting non-local image information.
- Analytical Understanding for Design: By providing an analytical link, the work offers a path towards designing better CNN architectures for image restoration by understanding their implicit filtering properties.
Key Results
- Analytical Filter Derivation: The paper provides a method to compute the non-local filter associated with a CNN architecture in closed form, without training.
- GD Performance: CNNs trained with GD and their derived NTK filters perform comparably to traditional non-local methods, especially when the corrupted image is used as input.
- Adam's Adaptive Advantage: Adam-trained CNNs, particularly autoencoders, achieve state-of-the-art denoising performance in the DIP setting, outperforming GD-trained counterparts and even some traditional methods on certain images. For instance, on the 'house' image, Adam-trained autoencoders achieve higher PSNR than GD-trained ones.
- Speedup Potential: Using the analytically derived filters (approximated with Nyström) can be significantly faster than training a full CNN, offering a potential speedup of orders of magnitude.
- Texture vs. Smoothness: While Adam-trained autoencoders excel at preserving edges in smooth images, the Nyström approximation of a vanilla CNN filter performs better on images with noise-like textures (e.g., 'baboon').
Limitations and Future Work
- NTK Theory Limitations: The NTK theory accurately predicts the behavior of networks trained with standard gradient descent but falls short for adaptive optimizers like Adam.
- Batch Normalization and Max Pooling: The current theoretical framework does not straightforwardly apply to networks with batch normalization and max pooling, although the authors note these don't significantly degrade performance in practice.
- Future Directions: The authors suggest that understanding the dynamics and inductive bias of adaptive optimizers is crucial for improving CNN models for denoising and other imaging tasks. They also highlight the potential to combine data-driven training with global filtering techniques.
Summary updated