Skip to main content
QUICK REVIEW

[Paper Review] $F$, $B$, Alpha Matting

Marco Forte, François Pitié|arXiv (Cornell University)|Mar 17, 2020
Image Enhancement TechniquesComputer Science34 references7 citations
TL;DR

This paper proposes a low-cost, end-to-end deep learning method for joint prediction of alpha matte, foreground, and background colors in image matting, using a modified encoder-decoder architecture with a batch size of one and a novel exclusion loss. It achieves state-of-the-art performance on the Adobe Composition-1k and alphamatting.com benchmarks without increasing computational or memory cost.

ABSTRACT

Cutting out an object and estimating its opacity mask, known as image matting, is a key task in many image editing applications. Deep learning approaches have made significant progress by adapting the encoder-decoder architecture of segmentation networks. However, most of the existing networks only predict the alpha matte and post-processing methods must then be used to recover the original foreground and background colours in the transparent regions. Recently, two methods have shown improved results by also estimating the foreground colours, but at a significant computational and memory cost. In this paper, we propose a low-cost modification to alpha matting networks to also predict the foreground and background colours. We study variations of the training regime and explore a wide range of existing and novel loss functions for the joint prediction. Our method achieves the state of the art performance on the Adobe Composition-1k dataset for alpha matte and composite colour quality. It is also the current best performing method on the alphamatting.com online evaluation.

Motivation & Objective

  • To address the limitation of existing deep learning matting methods that predict only the alpha matte, requiring post-processing to recover foreground and background colors.
  • To explore the impact of joint prediction of alpha, foreground, and background on matting quality and composite realism.
  • To identify training regime choices—especially batch size and normalization—that significantly affect model convergence and performance.
  • To evaluate the effectiveness of novel loss functions, including an exclusion loss, for improving foreground and background estimation.

Proposed method

  • The method uses a modified encoder-decoder architecture based on semantic segmentation networks, extended to predict three outputs: alpha matte, foreground, and background colors.
  • A key training innovation is the use of a batch size of one, which the authors show dramatically improves convergence and final performance.
  • The model is trained with a combination of losses: L1 loss on alpha, L1 loss on foreground and background, and a novel exclusion loss that penalizes overlapping or incorrect color predictions.
  • The exclusion loss ensures that predicted foreground and background colors do not interfere in transparent regions, improving compositing realism.
  • A fusion mechanism combines predicted alpha with predicted foreground and background to generate a realistic composite image.
  • Test-time augmentation (TTA) is applied to further improve generalization and performance on benchmark evaluations.

Experimental results

Research questions

  • RQ1Does jointly predicting foreground and background colors alongside the alpha matte improve matting quality and composite realism compared to post-processing methods?
  • RQ2How do different training regimes—particularly batch size and normalization layers—impact the convergence and performance of alpha matting networks?
  • RQ3Can a lightweight, low-cost architectural modification enable state-of-the-art performance in joint alpha, foreground, and background prediction without increasing inference cost?
  • RQ4What loss functions are most effective for training a joint prediction model, especially in preventing color bleed and improving spatial consistency?
  • RQ5How does the exclusion loss contribute to better foreground and background estimation in regions of high transparency?

Key findings

  • The method achieves state-of-the-art performance on the Adobe Composition-1k dataset, with a SAD of 26.4, MSE of 5.4×10³, and connectivity of 21.5, outperforming prior methods.
  • On the alphamatting.com benchmark, the proposed method ranked first in overall average rank (6.7), with a 1.9 average rank in the connectivity metric—surpassing even Deep Image Matting, which previously ranked highly for this metric.
  • Using a batch size of one was found to be critical for convergence and performance, with the authors showing it alone could explain prior training failures reported in the literature.
  • The exclusion loss significantly improved foreground and background color estimation, reducing color bleed and enhancing composite realism.
  • The addition of joint foreground and background prediction, combined with the exclusion loss and fusion mechanism, led to a 15% improvement in connectivity score over methods that only predict alpha.
  • Test-time augmentation (TTA) further improved performance, reducing the SAD to 25.8 and connectivity to 20.8, confirming its effectiveness in boosting generalization.

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.