Extracting Deformation-Aware Local Features by Learning to Deform

Guilherme Potje, Renato Martins, Felipe Cadar, Erickson R. Nascimento

Matching images of rigid objects—like buildings or books—is a solved problem in computer vision. But what happens when the object is a crumpled shirt, a bending leaf, or a waving flag? Most standard local descriptors (the "fingerprints" of image patches) break down when surfaces undergo non-rigid deformations.

In their NeurIPS 2021 paper, researchers from the Universidade Federal de Minas Gerais and Université Bourgogne Franche-Comté introduce DEAL (DEformation-Aware Local descriptor), a deep learning architecture that doesn't just try to ignore deformations—it learns to undo them.

TL;DR

DEAL is an end-to-end learned local descriptor that achieves state-of-the-art matching performance on deforming surfaces using only still RGB images. By incorporating a "Non-Rigid Warper" that estimates and reverses local distortions, it outperforms even methods that have access to 3D depth data.

What Problem Does This Paper Address?

Traditional descriptors like SIFT or ORB, and even modern CNN-based ones like HardNet, are designed to be invariant to "affine" transformations—simple things like rotation, scaling, and tilting. However, the real world is non-rigid. When a surface bends or stretches, the local geometry changes in complex ways that affine models can't capture.

Existing solutions for non-rigid matching usually fall into two camps: they are either computationally "heavy" (taking seconds to process a single patch) or they require RGB-D sensors to provide 3D geometric context. DEAL fills the gap by providing a fast, monocular (RGB-only) solution that handles complex warping.

Methods

The core innovation of DEAL is its Non-Rigid Warper (NRW). Instead of passing a raw image patch directly to a descriptor network, the system follows a multi-step "rectification" process:

  1. Mid-level Feature Extraction: The entire image is passed through a truncated ResNet-34. This allows the network to "see" the broader context—like the overall shape and texture of a deformed object—rather than just looking at a tiny window of pixels.
  2. The Warper (The "Secret Sauce"):
    • A Spatial Transformer Network ($\Psi$) samples these mid-level features around a keypoint.
  3. A Thin-Plate Spline (TPS) Regressor takes these features and estimates the parameters needed to "flatten" the local deformation.
  4. A second Spatial Transformer ($\Omega$) uses these parameters to create a warped polar grid.
  5. Undeforming the Patch: This warped grid is used to resample the original image, producing a "rectified" (undeformed) patch.
  6. Description: This flattened patch is fed into a standard descriptor network (HardNet) to produce a final 128-dimensional vector.

The entire pipeline is trained end-to-end using a hard triplet loss, forcing the network to learn warping parameters that make descriptors from the same physical point look identical, regardless of how the surface is folded.

Datasets

  • Training: The authors built a custom synthetic dataset of 20,000 image pairs. They used a physics engine to simulate realistic, isometric (length-preserving) deformations on surfaces textured with real-world images.
  • Evaluation:
    • Kinect 1 & 2: Real-world sequences of deforming objects (shirts, blankets).
  • DeSurT: A dataset specifically for deformable surface tracking.
  • HPatches: A standard benchmark for rigid planar scenes, used to ensure the descriptor still performs well on "normal" images.

Key Insights and Ideas

  • Context is King: The authors found that you can't estimate local deformation by looking at local pixels alone. By using mid-level ResNet features, the warper understands the global deformation affecting the local patch.
  • Polar is Better: DEAL uses polar sampling (measuring in radius and angle) rather than standard Cartesian (X, Y) grids. This naturally handles rotation and scale much better before the non-rigid warper even touches the data.
  • Simulation Generalizes: One of the most impressive findings is that a model trained entirely on synthetic physics simulations performs better on real-world deforming fabric than handcrafted methods or those using real depth data.

Key Results

  • Superior Accuracy: DEAL achieved the highest "Matching Score" across almost all deformable datasets. Notably, it beat GeoBit, a specialized descriptor that uses 3D depth information, despite DEAL only using 2D images.
  • Massive Speedup: DEAL is significantly faster than its competitors. On a GPU, it computes descriptors in 0.03 seconds, whereas the previous state-of-the-art non-rigid descriptor, DaLI, takes over 112 seconds on a CPU.
  • Retrieval & Tracking: The authors demonstrated that DEAL works in the wild for tasks like finding a specific deformed object in a database and tracking points on a moving, bending surface.

Limitations and Future Work

While DEAL is a major step forward, the authors note a few hurdles:

  • Sharp Discontinuities: The Thin-Plate Spline model assumes smooth warping. It struggles with "sharp" deformations, like a crisp fold or a tear in the surface.
  • Detector Dependency: DEAL currently relies on external keypoint detectors (like SIFT). If the detector fails to find the point because the image is too distorted, the descriptor never gets a chance to work. Integrating a deformation-aware detector is a logical next step.

Check out the project: The source code and pre-trained models are available at the authors' project page.

Summary updated

BibTeX
@inproceedings{potje2021extracting,
  author = {Guilherme Potje and Renato Martins and Felipe Cadar and Erickson R. Nascimento},
  title = {{Extracting Deformation-Aware Local Features by Learning to Deform}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure