Frequency learning for structured CNN filters with Gaussian fractional derivatives

Nikhil Saldanha, Silvia-Laura Pintea, Jan C. van Gemert, Nergis Tomen

TL;DR

This paper introduces FracSRF, a novel convolutional neural network (CNN) filter design that learns to adapt its frequency response directly from data by employing fractional-order Gaussian derivatives. This approach offers greater flexibility than traditional fixed-order filters, leading to improved performance and data efficiency, particularly in scenarios with limited training data.

What Problem Does This Paper Address?

Convolutional Neural Networks (CNNs) excel at image recognition by learning hierarchical features, often relying on texture information. However, standard CNN architectures have a fixed "frequency resolution" dictated by their filter sizes and kernel structures. This means they can't easily adapt to extract specific frequency components that might be crucial for distinguishing between similar objects or textures. While some prior work uses structured filters like Gaussian derivatives, these typically employ fixed integer orders, limiting their adaptability. The paper addresses this by proposing a method to learn the optimal frequency response of these filters, making them more flexible and data-efficient.

Methods

The core innovation lies in using fractional-order Gaussian derivatives to define CNN filters. Instead of relying on a fixed combination of integer-order Gaussian derivatives, the authors propose learning a single Gaussian derivative whose order, denoted by $v$, is a learnable parameter. This fractional order allows for a continuous spectrum of frequency responses, offering finer control than discrete integer orders.

To make this learnable, they leverage the fact that fractional derivatives become differentiable when working within the domain of fractional calculus. They employ a linear interpolation method to estimate fractional Gaussian derivatives, which helps in keeping gradients stable during training. The proposed filters, termed FracSRF, learn two order parameters ($v_x$ and $v_y$ for the x and y axes) and a single scalar weight per kernel, significantly reducing the number of parameters compared to standard CNNs.

Datasets

The paper evaluates FracSRF on several standard datasets:

  • CIFAR-10
  • CIFAR-100
  • STL-10
  • ImageNette

Additionally, they introduce a synthetic Sinusoids dataset specifically designed to test the model's ability to learn varying frequencies and orientations, with 5 classes corresponding to different frequencies. They also conduct experiments in a few-shot learning regime by sub-sampling CIFAR-10.

Key Insights and Ideas

  • Learning Frequency is Key: The paper strongly suggests that explicitly learning the frequency characteristics of filters, rather than having them implicitly determined by fixed filter sizes, is crucial for improving CNN performance and data efficiency.
  • Fractional Orders Unlock Flexibility: The use of fractional-order derivatives provides a continuous and adaptable way to control filter frequencies, offering a significant advantage over fixed integer orders.
  • Data Efficiency Gains: By learning the optimal filter frequencies, FracSRF models can achieve comparable or better accuracy with substantially fewer parameters and less training data.
  • Single Derivative Sufficiency: The research indicates that a single, learnable fractional-order Gaussian derivative can be sufficient to capture relevant frequency information, challenging the need for complex linear combinations of fixed-order derivatives.

Key Results

  • Sinusoids Dataset: FracSRF significantly outperforms standard CNNs and fixed-order SRF models on the Sinusoids dataset, demonstrating its superior ability to distinguish between classes with varying frequencies.
  • Data Efficiency: In few-shot learning scenarios on CIFAR-10, FracSRF shows graceful degradation in performance as training samples decrease, outperforming NiN and SRF models and requiring fewer parameters.
  • Parameter Reduction: FracSRF achieves comparable accuracy to baseline CNNs (NiN, ResNet-32, EfficientNet-b0) while reducing the number of parameters by 2-3 times.
  • STL-10 Performance: On the high-resolution STL-10 dataset, FracSRF consistently outperforms other models, suggesting its effectiveness in capturing higher frequencies present in such images.
  • Training Speed: Despite potentially higher computational cost per derivative, FracSRF models are found to be 25% faster during training on average compared to baseline SRF models due to computing fewer basis functions per filter.

Limitations and Future Work

  • Computational Cost: The paper acknowledges that computations increase with derivative order, as they rely on recursive Hermite polynomials. While FracSRF is faster than SRF, it's still more computationally intensive than standard CNNs.
  • Scale Learning Instability: Learning the scale parameter ($\sigma$) is noted as being "fairly unstable" and requiring careful regularization and learning rate selection.
  • Order Clipping: The learned orders tend to go towards negative values, necessitating clipping during training.
  • Future Work: The authors suggest that FracSRF can be integrated with efficient convolutional architectures. Further exploration into optimizing scale learning and addressing the order clipping issue would be beneficial.

Summary updated

Abstract

Frequency information lies at the base of discriminating between textures, and therefore between different objects. Classical CNN architectures limit the frequency learning through fixed filter sizes, and lack a way of explicitly controlling it. Here, we build on the structured receptive field filters with Gaussian derivative basis. Yet, rather than using predetermined derivative orders, which typically result in fixed frequency responses for the basis functions, we learn these. We show that by learning the order of the basis we can accurately learn the frequency of the filters, and hence adapt to the optimal frequencies for the underlying learning task. We investigate the well-founded mathematical formulation of fractional derivatives to adapt the filter frequencies during training. Our formulation leads to parameter savings and data efficiency when compared to the standard CNNs and the Gaussian derivative CNN filter networks that we build upon.
BibTeX
@inproceedings{saldanha2021frequency,
  author = {Nikhil Saldanha and Silvia-Laura Pintea and Jan C. van Gemert and Nergis Tomen},
  title = {{Frequency learning for structured CNN filters with Gaussian fractional derivatives}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=xzW3mPZxRw},
}
Figure