Skip to main content
QUICK REVIEW

[Paper Review] Highly Efficient Natural Image Matting

Yijie Zhong, Bo Li|arXiv (Cornell University)|Oct 25, 2021
Image Enhancement TechniquesComputer Science32 references10 citations
TL;DR

This paper proposes a trimap-free, lightweight natural image matting method using a two-stage framework: a Segmentation Network (SN) for semantic classification and a Matting Refine Network (MRN) for alpha prediction. It introduces a Cross-Level Fusion Module (CFM) for efficient multi-scale feature extraction and an Efficient Non-Local Attention (ENA) module to model long-range dependencies, achieving SOTA performance with only 344k parameters—1% of large models—on benchmark datasets.

ABSTRACT

Over the last few years, deep learning based approaches have achieved outstanding improvements in natural image matting. However, there are still two drawbacks that impede the widespread application of image matting: the reliance on user-provided trimaps and the heavy model sizes. In this paper, we propose a trimap-free natural image matting method with a lightweight model. With a lightweight basic convolution block, we build a two-stages framework: Segmentation Network (SN) is designed to capture sufficient semantics and classify the pixels into unknown, foreground and background regions; Matting Refine Network (MRN) aims at capturing detailed texture information and regressing accurate alpha values. With the proposed cross-level fusion Module (CFM), SN can efficiently utilize multi-scale features with less computational cost. Efficient non-local attention module (ENA) in MRN can efficiently model the relevance between different pixels and help regress high-quality alpha values. Utilizing these techniques, we construct an extremely light-weighted model, which achieves comparable performance with ~1\% parameters (344k) of large models on popular natural image matting benchmarks.

Motivation & Objective

  • To address the limitations of deep learning-based matting methods that rely on user-provided trimaps and require heavy model sizes.
  • To enable practical deployment of image matting on low-resource devices by reducing model size and computational cost.
  • To develop a trimap-free, end-to-end framework that simultaneously segments image regions and regresses precise alpha values.
  • To design efficient modules that maintain high performance with minimal parameters and FLOPs.

Proposed method

  • The framework consists of two stages: a Segmentation Network (SN) for classifying pixels into foreground, background, and unknown regions using a lightweight backbone.
  • A Matting Refine Network (MRN) is used to refine alpha values in the unknown regions by leveraging detailed texture information.
  • The Cross-Level Fusion Module (CFM) enables SN to efficiently aggregate multi-scale features with reduced computational cost.
  • The Efficient Non-Local Attention (ENA) module in MRN models long-range pixel relationships using sparse sampling, improving alpha prediction accuracy.
  • The ENA uses a sampling interval of √k = 4, balancing effective long-range modeling and computational efficiency.
  • The model is trained end-to-end with a lightweight backbone designed for semantic representation and low FLOPs.

Experimental results

Research questions

  • RQ1Can a trimap-free natural image matting model achieve SOTA performance with significantly reduced model size?
  • RQ2How can multi-scale features be efficiently fused in a lightweight network to improve semantic understanding?
  • RQ3Can an efficient attention mechanism effectively model long-range dependencies in matting without increasing computational cost?
  • RQ4What is the optimal trade-off between model capacity, parameter count, and inference efficiency in matting tasks?

Key findings

  • The proposed model achieves a SAD of 19.59 on the Composition-1k benchmark, outperforming SOTA methods with only 344k parameters.
  • The model uses 0.93G FLOPs, representing just 1% of the FLOPs of large models, while maintaining high accuracy.
  • The ENA module reduces SAD by 34.33 to 19.59 compared to baseline, demonstrating its effectiveness in modeling long-range dependencies.
  • Replacing the backbone with MobileNetV2 or ShuffleNetV2 results in higher SAD (47.21 and 48.72) and FLOPs, confirming the superiority of the proposed lightweight backbone.
  • The ablation study confirms that combining CFM and ENA yields the best performance, with SAD reduced by 46.3% compared to the baseline.
  • The model generalizes well to real-world internet images, producing high-quality alpha mattes with clear foreground boundaries and smooth transitions.

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.