ICON: Learning Regular Maps Through Inverse Consistency

Hastings Greer, Roland Kwitt, François-Xavier Vialard, Marc NiethammerICCV 2021

Abstract

Learning maps between data samples is fundamental. Applications range from representation learning, image translation and generative modeling, to the estimation of spatial deformations. Such maps relate feature vectors, or map between feature spaces. Well-behaved maps should be regular, which can be imposed explicitly or may emanate from the data itself. We explore what induces regularity for spatial transformations, e.g., when computing image registrations. Classical optimization-based models compute maps between pairs of samples and rely on an appropriate regularizer for well-posedness. Recent deep learning approaches have attempted to avoid using such regularizers altogether by relying on the sample population instead. We explore if it is possible to obtain spatial regularity using an inverse consistency loss only and elucidate what explains map regularity in such a context. We find that deep networks combined with an inverse consistency loss and randomized off-grid interpolation yield well behaved, approximately diffeomorphic, spatial transformations. Despite the simplicity of this approach, our experiments present compelling evidence, on both synthetic and real data, that regular maps can be obtained without carefully tuned explicit regularizers, while achieving competitive registration performance.

The Challenge of Image Registration

In medical imaging and computer vision, image registration is the task of finding a spatial transformation that aligns two different images. This problem is inherently "ill-posed" because many different (and often nonsensical) maps can make two images look similar.

To ensure the resulting maps are "well-behaved"—meaning they are smooth, don't have "folds," and are invertible (diffeomorphic)—researchers traditionally rely on explicit spatial regularizers. These are mathematical penalties added to the training loss (like Sobolev norms or total variation) that discourage jagged movements. However, these regularizers are notoriously difficult to choose and tune, often requiring expert knowledge and tedious trial-and-error for every new dataset. ICON asks: Can we get this regularity "for free" by using a simpler, more intuitive constraint?

The ICON Framework: Regularity via Consistency

The authors introduce ICON (Inverse Consistent Network), which replaces complex spatial regularizers with a simple inverse consistency loss.

  1. Inverse Consistency: If a network predicts a map $\Phi_{AB}$ (from image A to B) and a map $\Phi_{BA}$ (from B to A), their composition should ideally be the identity map: $\Phi_{AB} \circ \Phi_{BA} \approx Id$.
  2. Off-Grid Evaluation: A key contribution is the realization that evaluating this consistency only on the pixel grid is insufficient. It allows for "pixel swaps" or micro-folds that the loss can't see. By sampling random off-grid locations for the consistency check, the network is forced to produce a smooth, continuous interpolation.
  3. Mathematical Equivalence: The authors provide a theoretical proof showing that approximate inverse consistency (enforced with noise or off-grid sampling) is mathematically equivalent to an $H^1$ (Sobolev) regularization. Essentially, the consistency constraint acts as an implicit smoother.
Visualizing map regularity: The left image shows "folds" in the grid (non-diffeomorphic), while the right (ICON) maintains a smooth, regular transformation.

Experimental Validation

The researchers evaluated ICON on three distinct types of data:

  • Synthetic Triangles & Circles: A 2D toy dataset used to analyze how different architectures and noise levels affect map regularity.
  • MNIST: Specifically the digit "5," used to test the framework on simple real-world shapes and visualize grid deformations.
  • OAI Knee Dataset: A large-scale clinical dataset of 3D Magnetic Resonance (MR) images from the Osteoarthritis Initiative. This included 2,532 training images and 301 test pairs, serving as the primary benchmark for real-world performance.

Key Findings and Performance

  • Competitive Performance: On the 3D OAI knee dataset, ICON achieved a Dice score of 68.29, outperforming the popular VoxelMorph baseline (~66.1) and rivaling more complex, explicitly regularized methods.
  • Smoothness & Invertibility: ICON produced transformations with very few "folds" (regions with negative Jacobian determinants), even without explicit folding penalties. The regularity is driven by the loss function rather than specific architectural biases.
  • Speed and Simplicity: Because it avoids complex differential equation solvers during inference, ICON is extremely fast, processing 3D registrations in roughly 0.1 to 1.0 seconds. The approach eliminates the need for the highly challenging process of selecting a spatial regularizer, making deep learning-based registration much more accessible.
Registration results on the OAI Knee dataset. ICON produces smooth deformations that accurately align source images ($I^A$) to targets ($I^B$).

Conclusion and Future Directions

ICON demonstrates that complex, hand-tuned spatial regularizers are not strictly necessary for learning regular maps. While the framework produces very smooth maps, it currently only guarantees approximate invertibility. Future work may explore more robust automated tuning for the consistency loss weight ($\lambda$) and a deeper theoretical understanding of the "population effect"—how training on many image pairs contributes to the overall regularity of the learned mappings.

Summary updated

BibTeX
@inproceedings{greer2021icon,
  author = {Hastings Greer and Roland Kwitt and François-Xavier Vialard and Marc Niethammer},
  title = {{ICON: Learning Regular Maps Through Inverse Consistency}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=9Y0yeW8NEqE},
}
Figure