Learning Multiple Representations with Inconsistency-Guided Detail Regularization for Mask-Guided Matting

Weihao Jiang, Zhaozhi Xie, Yuxiang Lu, Longjie Qi, Jingyong Cai, Hiroyuki Uchiyama, Bin Chen, Yue Ding, Hongtao LuarXiv 2024 · DOI

Introduction

Image matting is a fundamental computer vision task that involves precisely separating a foreground object from its background by calculating an "alpha matte." Traditionally, this process required a "trimap"—a manually created map labeling regions as foreground, background, or unknown. While recent "mask-guided" methods have replaced tedious trimaps with simple, coarse binary masks, they often struggle with overfitting, poor generalization to real-world shadows, and interference from complex background textures.

The Multi-Representation Framework

To address these challenges, the authors propose a framework that learns multiple auxiliary representations. Beyond the primary matting task, the network is trained on three additional objectives:

  1. Semantic Segmentation: Captures high-level object shape.
  2. Edge Detection: Focuses on boundary localization.
  3. Background Line Detection: Identifies geometric distractors in the environment.

By learning these diverse representations, the model becomes more "real-world adaptive," distinguishing effectively between an object's intrinsic structure and its surroundings.

Visual results demonstrating the model's ability to extract fine details from coarse masks across various subjects, including hair, fabric, and plants.

Inconsistency-Guided Detail Regularization (IGDR)

The core innovation of this work is the Inconsistency-Guided Detail Regularization (IGDR) module. Rather than forcing different layers of the model to agree, the authors utilize the disagreement between high-level semantic representations (the "what") and low-level matting representations (the "details"). By calculating this inconsistency, the model can pinpoint exactly where fine, translucent details—like stray hairs or thin spines—are located. This allows the network to refine these specific areas while ignoring noise elsewhere.

Background Line Suppression

Strong geometric lines in a background (e.g., window frames or fences) often cause matting models to "hallucinate" foreground details. The authors mitigate this by using a Line Segment Detector (LSD) to create distance maps of background lines. The model learns to specifically identify and suppress these lines, preventing them from interfering with the final alpha matte.

Experimental Results and Plant-Mat

The model was evaluated on several standard benchmarks, including RWP, AIM-500, and PPM-100. Additionally, the authors introduced Plant-Mat, a new benchmark containing 130 high-quality images of plants with extremely complex structures like thin stems and tiny leaves.

A detailed look at the cactus example, highlighting the model's success in capturing thin spines (top red box) and suppressing background artifacts (bottom red box).

Key Performance Metrics

The proposed method significantly outperforms previous state-of-the-art (SOTA) models:

  • PPM-100: Reduced the Sum of Absolute Differences (SAD) from 67.6 (MGMatting) to 30.9.
  • Plant-Mat: Achieved a SAD of 24.0, compared to 97.4 for the previous leading method.

Conclusion

By leveraging the inconsistency between semantic and matting representations and explicitly suppressing background noise, this framework provides a robust solution for mask-guided matting. While the multi-task nature of the model adds some computational complexity, the massive improvements in accuracy on complex real-world structures like hair and plants represent a significant step forward in the field.

Summary updated

BibTeX
@misc{jiang2024learning,
  author = {Weihao Jiang and Zhaozhi Xie and Yuxiang Lu and Longjie Qi and Jingyong Cai and Hiroyuki Uchiyama and Bin Chen and Yue Ding and Hongtao Lu},
  title = {{Learning Multiple Representations with Inconsistency-Guided Detail Regularization for Mask-Guided Matting}},
  year = {2024},
  eprint = {2403.19213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.19213},
}
Figure