Hybrid Task Cascade for Instance Segmentation

Kai Chen, Jiangmiao Pang, Jiaqi Wang, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jianping Shi, Wanli Ouyang, Chen Change Loy, Dahua Lin

Abstract

Hybrid Task Cascade (HTC) is a state-of-the-art framework that rethinks how object detection and instance segmentation interact. By interweaving these tasks across multiple stages and introducing a global semantic context branch, HTC achieves a significant leap in accuracy, winning the COCO 2018 Challenge.

Introduction

Instance segmentation—the task of identifying and masking every individual object in an image—is notoriously difficult. Standard approaches like Mask R-CNN typically treat bounding box detection and mask prediction as parallel sub-tasks.

Even when researchers tried to apply "cascading" (a technique where predictions are refined over multiple successive stages), the results for masks were underwhelming. In these earlier models, mask branches in later stages only benefited from better-localized boxes, but they didn't "talk" to each other. There was a lack of direct information flow between the mask features of different stages, and the models often struggled to distinguish objects from cluttered backgrounds.

Methods

The authors propose Hybrid Task Cascade (HTC), which introduces three key architectural innovations to bridge the gap between detection and segmentation:

  1. Interleaved Execution: Instead of running the box and mask branches in parallel at each stage, HTC runs them sequentially. The mask branch uses the updated bounding box predictions from the current stage, allowing it to work with more accurate spatial data immediately.
  2. Mask Information Flow: HTC introduces direct connections between mask branches across stages. The mask features from stage $t$ are fed into stage $t+1$. This creates a "bridge" that allows the network to progressively refine the mask features themselves, rather than just the boxes they live in.
  3. Spatial Context (Semantic Branch): The authors add a fully convolutional branch that performs pixel-level "stuff" segmentation (e.g., identifying grass, sky, or road). This global context helps the model distinguish foreground objects from complex, cluttered backgrounds.
Comparison of cascade architectures: (a) Cascade Mask R-CNN, (b) Interleaved execution, (c) Mask information flow, and (d) Hybrid Task Cascade.

These components are integrated into a multi-stage pipeline where features from the box, mask, and semantic branches are fused together to produce the final output.

Datasets

The framework was trained and evaluated on the MS COCO (Microsoft Common Objects in Context) dataset, specifically the 2017 train, val, and test-dev splits.

  • COCO 2017: Contains 115k images for training and 5k for validation.
  • COCO-stuff: Annotations from this dataset were used to provide the supervision for the semantic segmentation branch.
  • COCO 2018 Challenge: The authors used the test-challenge split to benchmark against the world's best models.

Key Insights and Ideas

  • The Reciprocal Relationship: The core "aha moment" is that detection and segmentation shouldn't be silos. By interweaving them, the mask branch can leverage better boxes, and the box branch can benefit from the discriminative features learned by the mask branch.
  • Direct Feature Evolution: Simply refining a bounding box isn't enough to refine a mask. By passing mask features directly from one stage to the next, the model learns a much more detailed and robust representation of the object's shape.
  • Context as a Filter: The semantic branch acts as a powerful prior. If the model knows a region is "background stuff," it is much less likely to produce a false-positive object mask in that area.

Key Results

HTC demonstrated a clear superiority over existing baselines:

  • Accuracy Boost: A single HTC model achieved a 38.4% mask AP (Average Precision) on MS COCO, a 1.5% improvement over the already-strong Cascade Mask R-CNN baseline.
  • Challenge Winner: An ensemble version of the system achieved 48.6 mask AP on the COCO 2018 test-challenge split, earning 1st place in the Object Detection Task.
  • Consistency: Ablation studies showed that each component (interleaved execution, mask info flow, and the semantic branch) contributed independently to the performance gains, proving the design's robustness.

Conclusion

While HTC is highly effective, the authors acknowledge a few areas for further exploration. The architecture is significantly more complex than standard Mask R-CNN, which may impact training time and memory requirements. Additionally, the authors suggest that a more sophisticated semantic architecture could yield even higher performance. Finally, while they report runtime (around 2.1 to 2.5 fps on a Titan Xp), the multi-stage nature makes it slower than simpler detectors, suggesting a trade-off between accuracy and real-time performance.

Summary updated

BibTeX
@inproceedings{chen2019hybrid,
  author = {Kai Chen and Jiangmiao Pang and Jiaqi Wang and Yu Xiong and Xiaoxiao Li and Shuyang Sun and Wansen Feng and Ziwei Liu and Jianping Shi and Wanli Ouyang and Chen Change Loy and Dahua Lin},
  title = {{Hybrid Task Cascade for Instance Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00511},
}
Figure