Efficient Interactive Annotation of Segmentation Datasets With Polygon-RNN++

David Acuna, Huan Ling, Amlan Kar, Sanja Fidler

Abstract

Manually labeling datasets with object masks is extremely time consuming. In this work, we follow the idea of Polygon-RNN to produce polygonal annotations of objects interactively using humans-in-the-loop. We introduce several important improvements to the model: 1) we design a new CNN encoder architecture, 2) show how to effectively train the model with Reinforcement Learning, and 3) significantly increase the output resolution using a Graph Neural Network, allowing the model to accurately annotate high-resolution objects in images. Extensive evaluation on the Cityscapes dataset shows that our model, which we refer to as Polygon-RNN++, significantly outperforms the original model in both automatic (10% absolute and 16% relative improvement in mean IoU) and interactive modes (requiring 50% fewer clicks by annotators). We further analyze the cross-domain scenario in which our model is trained on one dataset, and used out of the box on datasets from varying domains. The results show that Polygon-RNN++ exhibits powerful generalization capabilities, achieving significant improvements over existing pixel-wise methods. Using simple online fine-tuning we further achieve a high reduction in annotation time for new datasets, moving a step closer towards an interactive annotation tool to be used in practice.

Introduction

Polygon-RNN++ is a powerful interactive framework designed to accelerate the labor-intensive process of annotating object masks. By predicting polygons instead of individual pixels, the system allows for efficient human-in-the-loop corrections. The framework combines a deep residual encoder, Reinforcement Learning (RL), and a Graph Neural Network (GNN) for high-resolution refinement, resulting in a 10% accuracy boost and a 50% reduction in required human clicks compared to its predecessor.

The Challenge of Manual Annotation

Creating high-quality datasets for instance segmentation—identifying and outlining every individual object in an image—is a significant bottleneck in computer vision. Manually tracing a pixel-perfect mask for a single object can take an annotator 20–30 seconds. While the original Polygon-RNN introduced the concept of using a Recurrent Neural Network (RNN) to "draw" polygons, it suffered from low-resolution outputs, training difficulties regarding the Intersection over Union (IoU) metric, and poor generalization across diverse domains.

Polygon-RNN++ provides an interactive tool for fast dataset annotation across multiple domains, including autonomous driving, aerial, and medical imagery.

Architectural Improvements

Polygon-RNN++ introduces three major enhancements to address the limitations of previous models:

  1. Residual Encoder with Attention: The authors replaced the VGG-based backbone with a modified ResNet-50 utilizing skip connections. This allows the model to leverage both high-level semantic features and low-level edge details. An attention mechanism in the recurrent decoder further assists the model in focusing on relevant image regions when predicting subsequent vertices.
  2. Reinforcement Learning & Evaluator Network: To optimize directly for the IoU metric, the model is fine-tuned using the REINFORCE algorithm. An Evaluator Network is also employed to select the most accurate candidate polygon from multiple predictions.
  3. Gated Graph Neural Network (GGNN) for Upscaling: To overcome "blocky" low-resolution outputs, a GGNN refines the coarse $28 \times 28$ polygon predicted by the RNN. By treating vertices as nodes in a graph and adding midpoints, the GGNN shifts them to a $112 \times 112$ resolution, accurately matching object boundaries.
The complete Polygon-RNN++ architecture, illustrating the flow from CNN encoding to recurrent vertex prediction and final GGNN upscaling.

Evaluation and Datasets

The model's performance and generalization were tested across several benchmarks, including Cityscapes (urban street scenes), KITTI (autonomous driving), and ADE20K (general scene parsing). It was also evaluated on specialized domains such as aerial rooftop imagery and medical imagery (cardiac MR and neural tissue).

Key Results

  • Accuracy: In automatic mode, Polygon-RNN++ achieved a 10% absolute (16% relative) improvement in mean IoU on Cityscapes.
  • Efficiency: The model reduced the human workload by 50% in terms of clicks required to reach target accuracy.
  • Speed: Real-world testing showed that annotators were 3x faster using Polygon-RNN++ compared to manual methods.
  • Generalization: The model trained on Cityscapes achieved a high IoU of 83.14% on the KITTI dataset without additional fine-tuning.

Limitations and Future Work

Despite its successes, the model currently assumes one object per bounding box and cannot handle objects split by occlusions into multiple components. Additionally, it does not support "holes" (e.g., the center of a donut) and can struggle with extremely complex or jagged topologies. Future work aims to address multi-component objects and integrate the framework into production-level pipelines.

Summary updated

BibTeX
@inproceedings{acuna2018efficient,
  author = {David Acuna and Huan Ling and Amlan Kar and Sanja Fidler},
  title = {{Efficient Interactive Annotation of Segmentation Datasets With Polygon-RNN++}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=rJb81RW_WH},
}
Figure