Normalize Filters! Classical Wisdom for Deep Vision

Gustavo Perez, Stella X. Yu

Introduction: The Hidden Liability in Modern CNNs

Deep learning models frequently struggle with changes in image lighting or contrast. A model trained on high-quality, well-lit images often fails when deployed in low-light, hazy, or high-glare environments. This fragility stems from a fundamental departure from classical computer vision principles: the lack of strict mathematical normalization in convolutional filters.

In classical vision, filters like Gaussian blurs or Sobel edge detectors are meticulously normalized. For instance, an edge detector's weights sum to zero, ensuring its response remains invariant to uniform brightness shifts. In contrast, standard Convolutional Neural Networks (CNNs) learn filter weights end-to-end without these constraints. Consequently, learned filters often become an unpredictable hybrid of averaging (blurring) and differencing (edge detection) operations.

Visualizing unnormalized filter decomposition under lighting shifts.

As shown in Figure 3, when an image undergoes "atmospheric" changes—shifts in gain (contrast) or bias (brightness)—these unnormalized filters produce distorted feature maps. The accidental averaging component within the filter overwhelms the intended edge response, explaining why a model might fail at dusk even if the semantic content remains unchanged.

Methodology: Enforcing Filter Normalization

To address this, the authors propose Filter Normalization, a data-agnostic architectural modification that enforces classical filtering principles within deep networks. The process involves three key steps:

  1. Weight Splitting: A filter's weights are separated into their positive and negative components.
  2. Independent Normalization: Each component is divided by its L1 norm (the sum of its absolute weights).
  3. Learnable Parameters: Similar to Batch Normalization, a learnable scaling ($a$) and shifting ($b$) parameter is applied to the output to preserve the network's expressivity.
1D profile comparison of normalized vs. unnormalized filters.

This constraint forces filters to act strictly as either averaging filters (if weights are purely positive) or differencing filters (if weights are mixed). As illustrated in Figure 6, this prevents the "extra blur" that plagues standard unnormalized filters. Mathematically, this ensures "atmosphere-equivariance," meaning feature maps transform predictably under global lighting changes rather than breaking down.

Key Results and Robustness

The impact of this simple tweak is profound, particularly in extreme conditions.

Catastrophic Failure Prevention

On the $D_S$ ImageNet benchmark—which features severe, fixed bias shifts—a standard ResNet34's accuracy collapses from 73.3% to a mere 2.1%. By simply applying filter normalization, the same architecture (R34N) maintains a robust 67.0% accuracy.

Outperforming Large-Scale Models

Remarkably, the normalized ResNet34 (22M parameters) outperforms the zero-shot capabilities of much larger models like CLIP-B (151M parameters). While CLIP-B achieves only 14.3% on the $D_S$ corruption, R34N's architectural robustness allows it to dominate despite being trained on significantly less data.

Real-World and Low-Shot Performance

The benefits extend to natural datasets. On the ExDark low-light dataset, R34N improves zero-shot accuracy from 28.3% to 34.2%. Furthermore, because the filters are inherently robust to lighting, the network does not need to "learn" illumination invariance from scratch, making it a powerful tool for low-shot learning scenarios.

Conclusion

Filter normalization is a low-cost, high-impact modification. It adds only 0.08% more parameters and negligible inference overhead (+0.06 ms). By re-introducing classical wisdom into modern architectures, we can create deep vision models that are inherently robust to the unpredictable atmospheric conditions of the real world. While future work may need to address localized digital artifacts (like sensor noise), filter normalization provides a definitive solution for global intensity shifts.

Summary updated

BibTeX
@inproceedings{perez2025normalize,
  author = {Gustavo Perez and Stella X. Yu},
  title = {{Normalize Filters! Classical Wisdom for Deep Vision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=w15atmg0uX},
}
Figure