NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Kernel Normalized Convolutional Networks

Reza Nasirigerdeh, Reihaneh Torkzadehmahani, Daniel Rueckert, Georgios Kaissis

Abstract

Batch Normalization (BatchNorm) has long been the standard for training deep convolutional neural networks (CNNs), yet it faces significant challenges in small-batch regimes and settings requiring Differential Privacy (DP). This paper introduces Kernel Normalized Convolutional Networks (KNConvNets), an architecture that replaces BatchNorm with Kernel Normalization (KernelNorm). KernelNorm is a spatially-aware, batch-independent normalization technique that operates within local sliding windows. Our results demonstrate that KNConvNets match or exceed BatchNorm's performance on ImageNet while providing superior results in low-batch scenarios and enabling effective training under Differential Privacy.

Introduction

For nearly a decade, BatchNorm has been essential for smoothing the optimization landscape and accelerating convergence in CNNs. However, its reliance on batch-level statistics introduces two primary limitations:

  1. The Small Batch Problem: In memory-intensive tasks like high-resolution medical imaging or semantic segmentation, small batch sizes lead to noisy statistics and degraded accuracy.
  2. The Privacy Problem: BatchNorm's cross-sample dependency violates the requirements of Differential Privacy (DP), which necessitates independent gradient computation for each sample to prevent data leakage.

While alternatives like Layer Normalization (LayerNorm) and Group Normalization (GroupNorm) are batch-independent, they often underperform compared to BatchNorm in computer vision. KNConvNets aim to bridge this gap by incorporating spatial awareness into the normalization process.

Methods: Kernel Normalization

The core innovation is Kernel Normalization (KernelNorm). Unlike previous methods that normalize across entire channels or layers, KernelNorm normalizes elements within a local sliding window—the "kernel."

Comparison of various normalization techniques, highlighting the local spatial focus of KernelNorm (g).

Spatial Correlation and Overlapping Units

By tying normalization to the convolutional kernel's footprint, KernelNorm respects the data's geometry. Crucially, these normalization units can overlap, allowing pixels to contribute to multiple units. This redundancy is a key factor in capturing local spatial correlations that other methods ignore. This makes the layers effectively "self-normalizing," reducing sensitivity to initial data scaling.

Computational Efficiency

A naive implementation of local normalization is computationally prohibitive. The authors reformulate the Kernel Normalized Convolutional (KNConv) layer to perform a standard convolution followed by an adjustment based on the input window's mean and variance. This optimization improves execution speed by orders of magnitude over the naive approach.

Regularization via Dropout

To replicate the inherent regularization effect of BatchNorm's noisy statistics, the authors apply dropout to the normalization units within KernelNorm, providing a tunable mechanism for regularization.

Experimental Results

KNConvNets were evaluated across several benchmarks, demonstrating robust performance across various constraints.

  • Small Batch Superiority: On CIFAR-100 with a batch size of 2, KNResNet-18 achieved ~79% accuracy, significantly outperforming the BatchNorm version's ~72%.
  • Competitive at Scale: On the large-scale ImageNet dataset, KNResNet-50 reached 76.54% Top-1 accuracy, slightly exceeding the standard BatchNorm ResNet-50 (76.41%).
  • Semantic Segmentation: In semantic segmentation on the Cityscapes dataset, where large image sizes often force small batches, KNResNet-50 achieved a Mean Intersection over Union (mIoU) of 68.02%, compared to 65.19% for BatchNorm.
  • Differential Privacy: In settings requiring Differential Privacy, where BatchNorm is unusable, KNResNet-18 achieved 22.01% accuracy on ImageNet32x32, surpassing both LayerNorm and GroupNorm alternatives.

Discussion and Future Work

KNConvNets offer a compelling alternative to BatchNorm by combining high performance with batch independence. The primary trade-off is a "performance tax"; current implementations are approximately 1.6x slower and more memory-intensive due to reliance on generic operations like PyTorch's unfold. Future work will focus on developing dedicated CUDA kernels to optimize KernelNorm for production environments and extending the architecture to modern models like Vision Transformers.

Summary updated

BibTeX
@article{nasirigerdeh2024kernel,
  author = {Reza Nasirigerdeh and Reihaneh Torkzadehmahani and Daniel Rueckert and Georgios Kaissis},
  title = {{Kernel Normalized Convolutional Networks}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure