Skip to main content
QUICK REVIEW

[Paper Review] End to End Trainable Active Contours via Differentiable Rendering

Shir Gur, Tal Shaharabany|arXiv (Cornell University)|Dec 1, 2019
Advanced Vision and ImagingComputer Science41 references7 citations
TL;DR

This paper proposes an end-to-end trainable active contour method that evolves a polygon via a differentiable renderer, using a learned 2D displacement map from a single encoder-decoder inference. It achieves state-of-the-art segmentation performance across medical, aerial, and urban benchmarks by directly optimizing polygon shape against ground truth masks through backpropagation enabled by differentiable rendering.

ABSTRACT

We present an image segmentation method that iteratively evolves a polygon. At each iteration, the vertices of the polygon are displaced based on the local value of a 2D shift map that is inferred from the input image via an encoder-decoder architecture. The main training loss that is used is the difference between the polygon shape and the ground truth segmentation mask. The network employs a neural renderer to create the polygon from its vertices, making the process fully differentiable. We demonstrate that our method outperforms the state of the art segmentation networks and deep active contour solutions in a variety of benchmarks, including medical imaging and aerial images. Our code is available at https://github.com/shirgur/ACDRNet.

Motivation & Objective

  • To develop a simple yet powerful active contour method that improves boundary accuracy in semantic segmentation.
  • To enable end-to-end training of active contours using differentiable rendering for full backpropagation from segmentation loss to polygon vertices.
  • To outperform existing deep active contour and semantic segmentation models across diverse datasets, including limited-data medical and aerial imaging.
  • To demonstrate that a minimal architecture—single inference of displacement map, no iterative supervision—achieves superior results.
  • To validate the effectiveness of differentiable rendering in segmentation by replacing traditional non-differentiable contour evolution with a learnable, differentiable polygon deformation process.

Proposed method

  • The method uses a U-Net-style encoder-decoder to predict a 2D displacement map from a single forward pass on the input image.
  • The displacement map defines the movement of polygon vertices, which are initialized as a regular shape (e.g., circle) and evolved iteratively.
  • A differentiable mesh renderer (Kato et al., 2018) converts the evolving polygon into a binary segmentation mask, enabling gradient flow to the vertex displacements.
  • The loss is a direct mean squared error (MSE) between the rendered polygon mask and the ground truth segmentation mask.
  • The model is trained end-to-end with backpropagation through the differentiable renderer, allowing optimization of vertex positions via gradient descent.
  • The method does not require iterative supervision or auxiliary losses, though ablation shows minor gains with curvature and ballooning losses.

Experimental results

Research questions

  • RQ1Can a single, end-to-end differentiable rendering pipeline replace classical iterative active contour evolution with superior performance?
  • RQ2Does a direct, single-inference displacement map prediction outperform multi-stage or force-balanced active contour methods?
  • RQ3Can a minimal architecture with only a segmentation loss and differentiable rendering achieve state-of-the-art results across diverse datasets?
  • RQ4How sensitive is performance to the number of polygon vertices and iterations in the evolution process?
  • RQ5Does differentiable rendering enable effective training of active contours when traditional methods fail due to non-differentiability?

Key findings

  • The proposed method achieves state-of-the-art mean IoU of 75.09 on the Cityscapes dataset, outperforming all baselines including PSP-DeepLab and Polygon-GCN.
  • On the Vaihingen aerial dataset, the model achieves 91.74% mIoU and 95.62% F1-score when trained at 64×64 resolution, with performance degrading significantly below 64 pixels.
  • Performance saturates at around 32 vertices, with a clear performance gap over DARNet (Cheng et al., 2019) at low vertex counts (e.g., 4–16 vertices).
  • The model trained with only a single iteration achieves strong results, indicating the displacement map is highly effective even without iterative refinement.
  • Ablation shows that the compound loss (L_seg + L_K + L_B) yields the best performance (91.74% mIoU), though even the base MSE-only loss outperforms SOTA.
  • The method generalizes well across domains, achieving SOTA results on medical imaging, aerial images, and urban street scenes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.