Revisiting Context Aggregation for Image Matting

Qinglin Liu, Xiaoqian Lv, Quanling Meng, Zonglin Li, Xiangyuan Lan +3 more
2/12/2026

No official code found. Best implementation: aipixel/AEMatter (69 stars, GPL-2.0, last commit 2025-03-04).

Abstract

Traditional studies emphasize the significance of context information in improving matting performance. Consequently, deep learning-based matting methods delve into designing pooling or affinity-based context aggregation modules to achieve superior results. However, these modules cannot well handle the context scale shift caused by the difference in image size during training and inference, resulting in matting performance degradation. In this paper, we revisit the context aggregation mechanisms of matting networks and find that a basic encoder-decoder network without any context aggregation modules can actually learn more universal context aggregation, thereby achieving higher matting performance compared to existing methods. Building on this insight, we present AEMatter, a matting network that is straightforward yet very effective. AEMatter adopts a Hybrid-Transformer backbone with appearance-enhanced axis-wise learning (AEAL) blocks to build a basic network with strong context aggregation learning capability. Furthermore, AEMatter leverages a large image training strategy to assist the network in learning context aggregation from data. Extensive experiments on five popular matting datasets demonstrate that the proposed AEMatter outperforms state-of-the-art matting methods by a large margin.

View on arXivView PDF

Code Implementations(1)

aipixel/AEMatterCommunity100%
GPL-2.0

Another matter.

693PythonMar 11, 20231 years agoGPL-2.0

Similar Papers

Cite this paper

@article{liu2026revisiting,
  title  = {Revisiting Context Aggregation for Image Matting},
  author = {Qinglin Liu and Xiaoqian Lv and Quanling Meng and Zonglin Li and Xiangyuan Lan and Shuo Yang and Shengping Zhang and Liqiang Nie},
  year   = {2026},
  eprint = {2304.01171},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2304.01171},
  journal = {ICML 2023 2023}
}

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/2304.01171.svg)](https://codeofpaper.com/paper/2304.01171)

Discussion