Skip to main content
QUICK REVIEW

[Paper Review] Disentangled Image Matting

Shaofan Cai, Xiaoshuai Zhang|arXiv (Cornell University)|Sep 10, 2019
Image Enhancement TechniquesComputer Science39 references8 citations
TL;DR

This paper proposes AdaMatting, a novel deep learning framework for image matting that disentangles the prediction of alpha matte and trimap adaptation into a multi-task learning architecture. By leveraging sub-pixel convolutions, global convolutions, and a dynamic multi-task loss, the method achieves state-of-the-art performance on both synthetic (Composition-1k) and real-world benchmarks, reducing gradient loss by 16.89 and MSE by 0.0102.

ABSTRACT

Most previous image matting methods require a roughly-specificed trimap as input, and estimate fractional alpha values for all pixels that are in the unknown region of the trimap. In this paper, we argue that directly estimating the alpha matte from a coarse trimap is a major limitation of previous methods, as this practice tries to address two difficult and inherently different problems at the same time: identifying true blending pixels inside the trimap region, and estimate accurate alpha values for them. We propose AdaMatting, a new end-to-end matting framework that disentangles this problem into two sub-tasks: trimap adaptation and alpha estimation. Trimap adaptation is a pixel-wise classification problem that infers the global structure of the input image by identifying definite foreground, background, and semi-transparent image regions. Alpha estimation is a regression problem that calculates the opacity value of each blended pixel. Our method separately handles these two sub-tasks within a single deep convolutional neural network (CNN). Extensive experiments show that AdaMatting has additional structure awareness and trimap fault-tolerance. Our method achieves the state-of-the-art performance on Adobe Composition-1k dataset both qualitatively and quantitatively. It is also the current best-performing method on the alphamatting.com online evaluation for all commonly-used metrics.

Motivation & Objective

  • To address the challenge of low-quality trimap inputs in image matting by jointly learning alpha prediction and trimap refinement.
  • To improve the robustness and detail fidelity of alpha matte prediction in complex scenes with fine-grained structures.
  • To design a multi-task network architecture that disentangles alpha estimation and trimap adaptation for better feature learning.
  • To dynamically balance multiple loss components during training to improve generalization and convergence.
  • To achieve state-of-the-art performance on both synthetic and real-world image matting benchmarks.

Proposed method

  • Employs a multi-task autoencoder architecture with shared encoder and two decoders for alpha prediction and trimap adaptation.
  • Introduces sub-pixel convolutions to upsample features while preserving spatial details for high-resolution alpha matte prediction.
  • Uses global convolutions to capture long-range contextual dependencies across the image for improved reasoning.
  • Applies a propagation unit (PU) to refine alpha matte predictions using spatial context and edge-aware smoothing.
  • Implements a dynamically weighted multi-task loss that automatically adjusts the importance of gradient, SAD, and MSE losses during training.
  • Trains the model end-to-end using a combination of L1-based losses and adaptive loss weighting, with loss weights learned via backpropagation.

Experimental results

Research questions

  • RQ1Can joint learning of alpha prediction and trimap adaptation improve matting performance on low-quality or noisy trimaps?
  • RQ2How do sub-pixel and global convolutions contribute to preserving fine details in alpha matte prediction?
  • RQ3Does dynamic loss weighting during multi-task training lead to better convergence and performance than fixed weighting?
  • RQ4Can the disentangled architecture generalize better to real-world images compared to end-to-end matting models?
  • RQ5What is the relative contribution of each component (SP, GC, PU) to the overall performance gain?

Key findings

  • The full AdaMatting model achieves a gradient loss of 16.89, SAD of 41.70, and MSE of 0.0102 on the Composition-1k benchmark, outperforming all ablated variants.
  • Removing the propagation unit (PU) leads to the largest performance drop, with gradient loss increasing to 17.86 and SAD to 44.13, indicating PU's critical role in edge refinement.
  • The ablation study shows that sub-pixel convolutions (SP) and global convolutions (GC) each contribute significantly, with the full model outperforming the w/o-SP-w/o-GC-w/o-PU variant by 8.29 in gradient loss.
  • The dynamically weighted loss (AdaMatting-D) achieves better results (16.89 gradient loss) than the fixed-weighted version (AdaMatting-F, 18.35), proving the advantage of adaptive loss balancing.
  • On real-world images, AdaMatting produces more natural and robust foreground extraction than DIM and Information Flow, as shown in background replacement comparisons.
  • The loss weights σ₁ and σ₂ converge stably to approximately 0.0995 and 0.0878 during training, indicating effective automatic balancing of task importance.

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.