Beyond Fixed Grid: Learning Geometric Image Representation with a Deformable Grid

Jun Gao, Zian Wang, Jinchen Xuan, Sanja Fidler

Introduction

In modern computer vision, images are almost universally treated as fixed, uniform grids of pixels. Standard deep convolutional neural networks (CNNs) typically reduce resolution through pooling or strided convolutions to maintain efficiency. However, these fixed grids are "content-blind." A single downsampled pixel often aggregates a blurry mixture of foreground and background information, which destroys high-frequency geometric details like sharp object boundaries. While traditional computer vision utilized "superpixels" to respect these boundaries, they have historically been difficult to integrate into end-to-end deep learning pipelines.

This paper introduces DefGrid (Deformable Grid), a learnable neural network module designed to replace the standard fixed square grid with a deformable triangular mesh. By allowing the grid to "shrink-wrap" around objects, the model preserves geometric integrity even at very low resolutions.

The DefGrid Framework

The authors propose a differentiable module that can be seamlessly integrated into existing CNN architectures. The process follows three main stages:

  1. Grid Initialization: The process begins with a uniform 2D triangular grid overlaid on the image.
  2. Vertex Deformation: A shallow CNN encoder extracts image features, which are then processed by a Graph Convolutional Network (GCN). The GCN predicts $(x, y)$ offsets for every vertex in the grid, deforming the mesh to align with image content.
  3. Differentiable Learning: To train the model without manual grid labels, the authors developed novel loss functions, including Differentiable Variance (minimizing color variance within triangles via soft assignment) and Differentiable Reconstruction (rebuilding the image from triangle mean colors).
The DefGrid pipeline: from a fixed image to a learned, deformed triangular mesh.

Key Insights

  • Geometry as Efficiency: Accurate boundaries do not strictly require high-resolution feature maps; they require a grid that respects the underlying geometry. DefGrid at 1/8th resolution often outperforms standard CNNs at much higher resolutions.
  • Bridging Discrete and Continuous: By using soft-assignment probabilities, the authors transform a discrete geometric problem—determining which pixel belongs to which triangle—into a continuous, differentiable one suitable for backpropagation.
  • Topology as a Constraint: Unlike standard superpixels, DefGrid maintains a fixed triangular topology. This allows the deformed grid to be treated as a warped feature map, making it "plug-and-play" for standard CNN layers.
  • Generalization: Because the grid learns to follow low-level edges rather than high-level object semantics, it generalizes remarkably well across domains, such as moving from street scenes to medical imagery without retraining.

Evaluation and Results

DefGrid was evaluated across several benchmarks, including Cityscapes, KITTI, ADE20K, and medical datasets.

  • Semantic Segmentation: On Cityscapes, using DefGrid for geometric downsampling provided a significant performance boost. At a 1/8 downsampling ratio, DefGrid achieved 65.36% mIoU, compared to 59.45% for standard average pooling.
  • Object Annotation: DefGrid produced more accurate polygons than specialized models like Curve-GCN, particularly for complex boundaries.
  • Superpixels: In unsupervised partitioning, DefGrid achieved higher boundary precision than classic algorithms like SLIC and even outperformed some supervised deep learning methods.
A deformed grid aligning its edges with the car's boundary to preserve geometric detail.

Limitations and Future Work

While DefGrid offers significant advantages, it currently operates with a fixed topology. This prevents it from easily representing objects with holes (non-zero genus) or handling scenes where the required cell density varies drastically. Additionally, the introduction of a GCN and custom pooling layers adds some computational overhead compared to highly optimized standard operations. Future research may explore dynamic topologies where the grid can split or merge edges during deformation to better capture complex scene structures.

Summary updated

BibTeX
@inproceedings{gao2020beyond,
  author = {Jun Gao and Zian Wang and Jinchen Xuan and Sanja Fidler},
  title = {{Beyond Fixed Grid: Learning Geometric Image Representation with a Deformable Grid}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58545-7\_7},
}
Figure