Path-Adaptive Matting for Efficient Inference Under Various Computational Cost Constraints

Qinglin Liu, Zonglin Li, Xiaoqian Lv, Xin Sun, Ru Li +1 more
3/5/2025
cs.CV

No official code found. Best implementation: aipixel/PAM (0 stars, GPL-3.0, last commit 2024-12-17).

Abstract

In this paper, we explore a novel image matting task aimed at achieving efficient inference under various computational cost constraints, specifically FLOP limitations, using a single matting network. Existing matting methods which have not explored scalable architectures or path-learning strategies, fail to tackle this challenge. To overcome these limitations, we introduce Path-Adaptive Matting (PAM), a framework that dynamically adjusts network paths based on image contexts and computational cost constraints. We formulate the training of the computational cost-constrained matting network as a bilevel optimization problem, jointly optimizing the matting network and the path estimator. Building on this formalization, we design a path-adaptive matting architecture by incorporating path selection layers and learnable connect layers to estimate optimal paths and perform efficient inference within a unified network. Furthermore, we propose a performance-aware path-learning strategy to generate path labels online by evaluating a few paths sampled from the prior distribution of optimal paths and network estimations, enabling robust and efficient online path learning. Experiments on five image matting datasets demonstrate that the proposed PAM framework achieves competitive performance across a range of computational cost constraints.

View on arXivView PDF

Code Implementations(1)

aipixel/PAMCommunity69%
GPL-3.0

Path-Adaptive Matting for Efficient Inference under Various Computational Cost Constraints

00Dec 17, 20241 years agoGPL-3.0

Similar Papers

Cite this paper

@article{liu2025pathadaptive,
  title  = {Path-Adaptive Matting for Efficient Inference Under Various Computational Cost Constraints},
  author = {Qinglin Liu and Zonglin Li and Xiaoqian Lv and Xin Sun and Ru Li and Shengping Zhang},
  year   = {2025},
  eprint = {2503.03228},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03228v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.03228.svg)](https://codeofpaper.com/paper/2503.03228)

Discussion