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

Metric Convolutions: A Unifying Theory to Adaptive Convolutions

Thomas Dagès, Michael Lindenbaum, Alfred M. Bruckstein · OpenReview

Abstract

Standard convolutions are prevalent in image processing and deep learning, but their fixed kernel design limits adaptability. Several deformation strategies of the reference kernel grid have been proposed. Yet, they lack a unified theoretical framework. By returning to a metric perspective for images, now seen as two-dimensional manifolds equipped with notions of local and geodesic distances, either symmetric (Riemannian metrics) or not (Finsler metrics), we provide a unifying principle: the kernel positions are samples of unit balls of implicit metrics. With this new perspective, we also propose metric convolutions, a novel approach that samples unit balls from explicit signal-dependent metrics, providing interpretable operators with geometric regularisation. This framework, compatible with gradient-based optimisation, can directly replace existing convolutions applied to either input images or deep features of neural networks. Metric convolutions typically require fewer parameters and provide better generalisation. Our approach shows competitive performance in standard denoising and classification tasks.

Introduction

Traditional Convolutional Neural Networks (CNNs) rely on rigid, square $k \times k$ grids. While this works well for many tasks, it struggles with objects that deform, change scale, or have complex boundaries. To address this, researchers previously introduced "adaptive" methods like deformable convolutions, which allow the grid to warp. However, these existing methods often lack a solid theoretical foundation. They typically learn arbitrary offsets for every single point in the kernel, leading to a massive increase in parameters and a tendency to overfit. Furthermore, these "black box" deformations offer little geometric insight into why the network is looking at specific pixels.

Comparison of standard, deformable, and the proposed metric convolutions (UGB and UTB).

This paper provides a unifying theory that explains these deformations through the lens of metric geometry. By viewing an image as a two-dimensional manifold (a surface) rather than just a grid of pixels, the concept of "distance" can be adapted to the local signal.

Methods: The Metric Perspective

The paper proves that standard, dilated, and deformable convolutions are all special cases of sampling from implicit metrics. Metric Convolutions make these metrics explicit by treating kernel positions as samples of unit balls of signal-dependent metrics. This approach introduces a powerful geometric inductive bias, forcing the sampling grid to follow a valid geometric metric (like an ellipse) and preventing the grid from exploding into nonsensical shapes.

Geometric intuition of image manifolds and different metric types (isotropic, anisotropic, asymmetric) used to define sampling areas.

The authors introduce two main types of Metric Convolutions:

  1. Unit Tangent Ball (UTB) Convolutions: These use Finsler metrics (specifically Randers metrics) to define an elliptical sampling area at each pixel. Instead of learning $2k^2$ independent offsets, the network learns just 5 to 7 parameters that define the shape, orientation, and "drift" (asymmetry) of an ellipse. The kernel samples are then analytically placed within this "unit ball."
  2. Unit Geodesic Ball (UGB) Convolutions: A more advanced version where the sampling area follows the actual "curvatures" of the image manifold. This allows for non-convex sampling shapes that can wrap around complex object boundaries.

By predicting these metric parameters from the local image signal, the convolution becomes signal-dependent and shift-equivariant by design.

Experimental Results

The authors evaluated their approach across several standard benchmarks, integrating their modules into ResNet18 architectures.

  • Image Denoising: In tasks using BSDS300 and PascalVOC, Metric Convolutions showed a much smaller gap between training and testing performance compared to deformable convolutions, which tended to overfit the noise.
  • Image Classification: On CIFAR-100, a ResNet18 using Metric UTB achieved 70.38% Top-1 accuracy, outperforming deformable versions (70.05%) and showing more stability than standard baselines.
  • Robustness and Efficiency: When training from scratch on CIFAR-10, Metric Convolutions reached ~70% accuracy while deformable convolutions collapsed to ~33%. Furthermore, because the entire grid deformation is controlled by a handful of metric parameters (5-7), the complexity does not scale with the kernel size $k$.

Discussion and Conclusion

Metric Convolutions provide a theoretically sound and interpretable framework for adaptive image processing. Using GradCAM and direct visualization, the authors demonstrate that these convolutions naturally align themselves with object boundaries and edges, effectively ignoring irrelevant background noise.

While the current implementation faces some computational overhead due to analytical offset calculations and is largely limited to convex shapes (in the UTB case), it offers a significant step toward more structured and parameter-efficient adaptive networks. Future work will focus on optimizing CUDA kernels for real-time performance and exploring more complex Finsler metrics to make non-convex geodesic balls practical for large-scale models.

Summary updated

BibTeX
@misc{dages2024metric,
  author = {Thomas Dagès and Michael Lindenbaum and Alfred M. Bruckstein},
  title = {{Metric Convolutions: A Unifying Theory to Adaptive Convolutions}},
  year = {2024},
  eprint = {2406.05400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05400},
}
Figure