Mapped Convolutions

Marc Eder, True Price, Thanh Vu, Akash Bapat, Jan-Michael FrahmarXiv 2019

TL;DR

Mapped Convolutions decouple the sampling process from the weighted summation in standard convolutions, allowing CNNs to operate on virtually any structured data, including spherical projections and 3D meshes. By applying this technique to spherical depth estimation using a geodesic grid, the authors achieved a nearly 17% improvement over existing state-of-the-art methods.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) are remarkably effective, but they are fundamentally "grid-locked." They rely on the assumption that data is organized on a regular Cartesian pixel grid to maintain translational equivariance—the idea that a filter should respond the same way to a pattern regardless of its location.

However, many real-world data sources don't fit this mold. Omnidirectional (360°) cameras produce spherical images that, when flattened into equirectangular projections, suffer from extreme distortion at the poles. Similarly, 3D meshes are composed of vertices and faces that don't follow a neat grid. When you force a standard square kernel onto these irregular structures, the "regularity" assumption breaks, leading to poor performance and information imbalance (e.g., oversampling redundant data at the poles of a sphere).

Methods

The core innovation is the Mapped Convolution. In a standard convolution, the sampling locations are implicit to the grid. The authors explicitly decouple this by introducing a mapping function ($M$).

Mathematically, they redefine the discrete convolution as: $$(f * g)[n] = \sum_{m} f[m]D(g, M[n - m])$$ Where $f$ is the filter, $g$ is the signal, and $D$ is an interpolation function (like bilinear or barycentric). The mapping function $M$ dictates exactly where the kernel should sample the input for any given output location.

Figure 1: A visualization of how our proposed mapped con- volution maps the grid sampling scheme to spherical data.

Key technical contributions include:

  • Inverse Equirectangular Mapping: A new sampling scheme for 360° images that better "undoes" the specific distortion of equirectangular projections compared to previous gnomonic methods.
  • ISEA on Icospheres: A method to convolve directly on a geodesic grid (a subdivided icosahedron). This uses the Icosahedral Snyder Equal-Area (ISEA) projection to ensure that information is distributed uniformly across the spherical surface, resolving the information imbalance found in planar projections.
  • Implementation: They modified the standard im2col algorithm to accept an adjacency list, enabling efficient (though slightly slower) computation on non-Euclidean data.

Datasets

The authors evaluated their methods on two large-scale spherical image datasets for dense depth estimation:

  1. Omnidepth: An aggregation of four datasets including real-world captures (Matterport3D, Stanford 2D-3D) and synthetic scenes (SceneNet, SunCG).
  2. SUMO: A large-scale synthetic dataset derived from SunCG, specifically designed for 360° indoor scene understanding.

Key Insights and Ideas

  • Sampling vs. Summation: The "aha moment" is that convolution is just sampling plus a weighted sum. By controlling the sampling via a map, you can apply the same powerful CNN architectures (like the encoder-decoder in Figure 2) to irregular domains without reinventing the wheel.
  • Discretization Matters: The authors found that cube maps perform poorly not just because of projection distortion, but because the pixel discretization doesn't match the spherical geometry. This highlights that when moving to non-Euclidean domains, how you discretize the data is just as important as the content itself.
  • Solving Information Imbalance: In an equirectangular image, a pixel at the equator contains much more unique information than a pixel at the pole. By mapping the image to an icosphere (a 3D mesh), the ISEA projection distributes data points almost equally, allowing the network to learn more effectively from the entire sphere.
Absolute error maps showing that the ISEA method (far right) significantly reduces error, especially near the equator, compared to grid-based methods.

Key Results

  • State-of-the-Art Performance: The proposed ISEA mapping on a geodesic grid achieved a 17% improvement in absolute relative error (AbsRel) for spherical depth estimation compared to previous state-of-the-art sampling methods.
  • Superior Sampling: Their "Inverse Equirectangular" mapping consistently outperformed standard grids, rectangular filter banks, and the previously popular "Inverse Gnomonic" sampling across all metrics.
  • Efficiency Trade-off: Benchmarking on an NVIDIA 1080Ti showed that mapped convolutions are 2.3x to 4.5x slower than highly optimized standard grid convolutions. While costlier, the authors argue this is a manageable overhead for the significant gains in accuracy and versatility.

Limitations and Future Work

  • Computational Overhead: The loss of data locality inherent in irregular sampling means mapped convolutions cannot yet match the raw speed of standard cuDNN-optimized grid convolutions.
  • Fixed Vertex Degree: Unlike Graph Convolutional Networks (GCNs), this method currently requires a constant kernel size, which limits its application to graphs or meshes with uniform vertex degrees.
  • Future Directions: The authors suggest that mapped convolutions could be a gateway for applying CNNs to a much wider array of structured data beyond spheres and simple meshes, potentially impacting fields like medical imaging or geodesy.

Summary updated

BibTeX
@misc{eder2019mapped,
  author = {Marc Eder and True Price and Thanh Vu and Akash Bapat and Jan-Michael Frahm},
  title = {{Mapped Convolutions}},
  year = {2019},
  eprint = {1906.11096},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.11096},
}

Loading related content...

Figure