Abstract
Resolution in deep convolutional neural networks (CNNs) is typically bounded by the receptive field size through filter sizes, and subsampling layers or strided convolutions on feature maps. The optimal resolution may vary significantly depending on the dataset. Modern CNNs hard-code their resolution hyper-parameters in the network architecture which makes tuning such hyper-parameters cumbersome. We propose to do away with hard-coded resolution hyper-parameters and aim to learn the appropriate resolution from data. We use scale-space theory to obtain a self-similar parametrization of filters and make use of the N-Jet: a truncated Taylor series to approximate a filter by a learned combination of Gaussian derivative filters. The parameter $\sigma$ of the Gaussian basis controls both the amount of detail the filter encodes and the spatial extent of the filter. Since $\sigma$ is a continuous parameter, we can optimize it with respect to the loss. The proposed N-Jet layer achieves comparable performance when used in state-of-the art architectures, while learning the correct resolution in each layer automatically. We evaluate our N-Jet layer on both classification and segmentation, and we show that learning $\sigma$ is especially beneficial when dealing with inputs at multiple sizes.
Introduction
In standard Convolutional Neural Networks (CNNs), "resolution" is a hard-coded architectural choice. Engineers decide whether to use $3 \times 3$ or $7 \times 7$ filters and where to place downsampling (pooling) layers based on the dataset. If the scale of the input data changes—for example, if you move from high-resolution ImageNet photos to low-resolution CIFAR-10 thumbnails—you often have to redesign the network architecture. This manual tuning is cumbersome and restrictive. This paper introduces a method to make resolution a learnable parameter, allowing a single network architecture to "zoom" in or out to find the most informative scale for a given task.
The N-Jet Layer
The core innovation is the N-Jet layer, which replaces standard pixel-based convolutional filters with a mathematical basis derived from Scale-Space Theory. Instead of learning individual pixel weights, the layer learns coefficients ($\alpha$) for a set of Gaussian derivative filters (the "N-Jet"). This is essentially a truncated Taylor series for images.
The Gaussian basis is controlled by $\sigma$ (standard deviation), which determines both the amount of detail the filter captures and its spatial extent. Because the Gaussian function is continuous and differentiable, the network can calculate the gradient of the loss with respect to $\sigma$. This allows the network to use backpropagation to "shrink" or "grow" its filters during training. Additionally, a "safe-subsampling" mechanism dynamically decides when it is efficient to downsample a feature map based on the learned $\sigma$.
Experimental Results
The authors evaluated the N-Jet layer across several benchmarks, including classification (MNIST, CIFAR-10/100, SVHN) and segmentation (multi-scale Fashion-MNIST, Pascal VOC).
Key Findings
- Automatic Scale Matching: On MNIST tasks with varying input sizes, the learned $\sigma$ values perfectly tracked the resizing factor of the input data.
- Competitive Performance: N-Jet versions of popular architectures like ResNet and EfficientNet achieved accuracy comparable to baselines without manual filter size tuning.
- Parameter Efficiency: In the DeepLabv2 architecture for Pascal VOC, replacing the Atrous Spatial Pyramid Pooling (ASPP) with N-Jet layers reduced parameters in that module by nearly 4x while maintaining performance.
- Robustness to Scale: When tested on MNIST resized by 4x, the N-Jet model significantly outperformed standard and Deformable CNNs. Unlike standard CNNs with fixed Effective Receptive Fields (eRF), N-JetNet's eRF expands or contracts to match the object size.
Discussion and Conclusion
Using a mathematical basis like Gaussian derivatives acts as a form of regularization. The paper demonstrates that resolution can be treated as an "inner scale" that the network optimizes. While the current implementation has some computational overhead (roughly 2x slower than standard convolutions), it provides a principled way to handle scale variability. Future work may explore learning unique $\sigma$ values for individual filters or learning network depth alongside scale.
Summary updated