# Learning Affinity-Aware Upsampling for Deep Image Matting

Source: [Learning Affinity-Aware Upsampling for Deep Image Matting](<https://www.sota2.com/research/paper/68fa68da1e209131cea1eb35>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:47:52.778Z

Authors: Yutong Dai, Hao Lu, Chunhua Shen

Published: 2020-11-29T05:09:43.000Z

## Abstract

We show that learning affinity in upsampling provides an effective and efficient approach to exploit pairwise interactions in deep networks. Second-order features are commonly used in dense prediction to build adjacent relations with a learnable module after upsampling such as non-local blocks. Since upsampling is essential, learning affinity in upsampling can avoid additional propagation layers, offering the potential for building compact models. By looking at existing upsampling operators from a unified mathematical perspective, we generalize them into a second-order form and introduce Affinity-Aware Upsampling (A2U) where upsampling kernels are generated using a light-weight lowrank bilinear model and are conditioned on second-order features. Our upsampling operator can also be extended to downsampling. We discuss alternative implementations of A2U and verify their effectiveness on two detail-sensitive tasks: image reconstruction on a toy dataset; and a largescale image matting task where affinity-based ideas constitute mainstream matting approaches. In particular, results on the Composition-1k matting dataset show that A2U achieves a 14% relative improvement in the SAD metric against a strong baseline with negligible increase of parameters (\<0.5%). Compared with the state-of-the-art matting network, we achieve 8% higher performance with only 40% model complexity.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Matting on alphamatting.com online benchmark (test)](<https://www.sota2.com/research/sota/matting-on-alphamatting-com-online-benchmark-test.md>): Matting; alphamatting.com online benchmark (test); MSE (Overall): 15.5.

- [Image Matting on Alphamatting 2009 (test)](<https://www.sota2.com/research/sota/image-matting-on-alphamatting-2009-test.md>): Image Matting; Alphamatting 2009 (test); SAD (Overall): 12.5.

- [Image Matting on SIMDour (test)](<https://www.sota2.com/research/sota/image-matting-on-simdour-test.md>): Matting; SIMDour (test); SAD: 68.7.

- [Image Matting on Adobe Composition-1K](<https://www.sota2.com/research/sota/image-matting-on-adobe-composition-1k.md>): Image Matting; Adobe Composition-1K; SAD: 32.1.

- [Object Detection on MS COCO 1x (train)](<https://www.sota2.com/research/sota/object-detection-on-ms-coco-1x-train.md>): Object Detection; MS COCO 1x (train); AP: 37.3.

- [Matting on AIM-500 (test)](<https://www.sota2.com/research/sota/matting-on-aim-500-test.md>): Matting; AIM-500 (test); SAD: 30.38.

- [Matting on Distinction-646 (test)](<https://www.sota2.com/research/sota/matting-on-distinction-646-test.md>): Matting; Distinction-646 (test); SAD: 28.74.

- [Semantic Segmentation on ADE20K](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k.md>): Semantic segmentation; ADE20K; mIoU: 54.4.

- [Image Matting on Composition-1K (test)](<https://www.sota2.com/research/sota/image-matting-on-composition-1k-test.md>): Image Matting; Composition-1K (test); SAD: 32.05.

- [Depth Estimation on NYU v2 (test)](<https://www.sota2.com/research/sota/depth-estimation-on-nyu-v2-test.md>): Depth Estimation; NYU v2 (test); Threshold Accuracy (delta \< 1.25): 86.

- [Panoptic Segmentation on COCO 2017 (val)](<https://www.sota2.com/research/sota/panoptic-segmentation-on-coco-2017-val.md>): Panoptic Segmentation; COCO 2017 (val); PQ: 40.1.

- [Monocular Depth Estimation on NYU v2 (test)](<https://www.sota2.com/research/sota/monocular-depth-estimation-on-nyu-v2-test.md>): Monocular Depth Estimation; NYU v2 (test); Abs Rel: 0.118.

- [Semantic Segmentation on ADE20K (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-val.md>): Semantic segmentation; ADE20K (val); mIoU: 41.5.

- [Instance Segmentation on COCO 2017 (val)](<https://www.sota2.com/research/sota/instance-segmentation-on-coco-2017-val.md>): Instance Segmentation; COCO 2017 (val); APm: not recorded.

- [Object Detection on MS-COCO 2017 (val)](<https://www.sota2.com/research/sota/object-detection-on-ms-coco-2017-val.md>): Object Detection; MS-COCO 2017 (val); mAP: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2011.14288>)

[PDF](<https://arxiv.org/pdf/2011.14288.pdf>)
