Introduction
Traditional image segmentation methods primarily rely on pixel-grid representations, where models like U-Net or DeepLab predict a class label for every pixel. While effective, these approaches often struggle to maintain sharp geometric boundaries and require significant memory for high-resolution outputs. Conversely, active contour methods represent objects as polygons, which are geometrically efficient but often iterative, slow, and sensitive to complex scenes with occlusions.
This paper introduces a novel framework that bridges these two paradigms by representing object boundaries as a collection of local, patch-wise polygons. By utilizing a differentiable neural renderer, the model can be trained end-to-end to predict precise geometric boundaries while maintaining the robustness of fully convolutional networks.
Methodology
The proposed architecture consists of a backbone (HarDNet-85) and a lightweight decoder designed to predict two complementary outputs for an input image $I$:
- A Low-Resolution Probability Map ($M$): This map indicates the presence of an object within specific image patches, acting as a gating mechanism.
- Patch-wise Polygons ($P$): For every patch, the network predicts coordinates for a polygon with $k$ vertices.
The core innovation is the Differentiable Neural Renderer. This component allows the network to convert predicted vertex coordinates into rasterized local masks ($R_p$). Because the process is differentiable, the model can backpropagate errors from the final mask loss directly to the vertex coordinates, enabling precise geometric learning.
Patch-wise Polygon Prediction and Aggregation
Unlike traditional 'snakes' or active contour models that iteratively deform a single global contour, this method predicts final vertex locations in a single forward pass. By breaking the object into local patches, the model naturally handles complex topologies and occlusions, such as a foreground object splitting a background object into disjoint parts.
During the aggregation phase, local masks ($R_p$) are combined. The low-resolution probability map ($M$) serves as a filter, multiplying with the polygon map to suppress 'phantom' polygons in empty background regions. This ensures the model focuses its geometric precision on actual object boundaries.
Experimental Results
The framework was evaluated across four diverse benchmarks, demonstrating state-of-the-art performance and high efficiency:
- Cityscapes: Achieved 76.26% mIoU, outperforming established baselines like Polygon-GCN and Deep Active Contours.
- Vaihingen: Reached 90.92% IoU for aerial building segmentation, setting a new high bar for the dataset.
- MoNuSeg: Achieved 66.82% mIoU on challenging microscopy images of cell nuclei, proving effectiveness on small, crowded objects.
- Efficiency: The model's decoder uses approximately 17M parameters, significantly fewer than the 22M+ parameters found in comparable FCN-based decoders, without sacrificing accuracy.
Conclusion and Future Work
By representing segmentation masks as patch-wise polygons, this approach achieves 'practically-infinite resolution' and avoids the blocky artifacts typical of upsampled pixel grids. While the current model uses a fixed vertex count ($k$) and lacks explicit boundary continuity constraints between patches, it represents a significant step toward efficient, geometrically-aware image segmentation. Future work may explore dynamic vertex counts and explicit patch-snapping mechanisms to further refine boundary smoothness.
Summary updated