Skip to main content
QUICK REVIEW

[Paper Review] SAPA: Similarity-Aware Point Affiliation for Feature Upsampling

Hao Lu, Wenze Liu|arXiv (Cornell University)|Sep 26, 2022
Advanced Image and Video Retrieval TechniquesComputer Science25 citations
TL;DR

SAPA introduces similarity-aware point affiliation to generate upsampling kernels, improving boundary sharpness and semantic consistency in dense prediction tasks, with strong gains in segmentation and matting.

ABSTRACT

We introduce point affiliation into feature upsampling, a notion that describes the affiliation of each upsampled point to a semantic cluster formed by local decoder feature points with semantic similarity. By rethinking point affiliation, we present a generic formulation for generating upsampling kernels. The kernels encourage not only semantic smoothness but also boundary sharpness in the upsampled feature maps. Such properties are particularly useful for some dense prediction tasks such as semantic segmentation. The key idea of our formulation is to generate similarity-aware kernels by comparing the similarity between each encoder feature point and the spatially associated local region of decoder features. In this way, the encoder feature point can function as a cue to inform the semantic cluster of upsampled feature points. To embody the formulation, we further instantiate a lightweight upsampling operator, termed Similarity-Aware Point Affiliation (SAPA), and investigate its variants. SAPA invites consistent performance improvements on a number of dense prediction tasks, including semantic segmentation, object detection, depth estimation, and image matting. Code is available at: https://github.com/poppinace/sapa

Motivation & Objective

  • Introduce the notion of point affiliation in feature upsampling to better assign upsampled points to semantic clusters.
  • Propose a generic, similarity-based kernel generation framework that leverages local mutual similarity between encoder and decoder features.
  • Instantiate SAPA as a lightweight upsampling operator and study its variants across multiple dense prediction tasks.

Proposed method

  • Define a local mutual similarity formulation to generate upsampling kernels conditioning on encoder-decoder feature pairs within a local window.
  • Use a normalization of similarity scores to obtain kernel weights that yield semantic smoothness in uniform regions and boundary sharpness at edges.
  • Instantiate SAPA variants with different similarity functions: inner-product, (low-rank) bilinear, and gated bilinear, including a gating mechanism to filter encoder noise.
  • Apply layer normalization to encoder and decoder features before similarity to ensure stable comparisons.
  • Compare SAPA against CARAFE, IndexNet, A2U, and baselines across semantic segmentation, object detection, depth estimation, and image matting.

Experimental results

Research questions

  • RQ1Does similarity-aware point affiliation improve upsampling quality by better preserving semantic structure and boundaries compared to existing dynamic upsampling operators?
  • RQ2Can SAPA achieve improvements across multiple dense prediction tasks with different backbones and datasets?
  • RQ3What is the impact of similarity choice, normalization, kernel size, and embedding dimension on SAPA performance?
  • RQ4How does SAPA perform in terms of parameters and FLOPs relative to other dynamic upsampling methods?

Key findings

  • SAPA consistently outperforms other upsampling operators on semantic segmentation when integrated into strong transformer-based baselines (e.g., SegFormer, MaskFormer, Mask2Former) on ADE20K.
  • SAPA variants (I, B, G) achieve better mIoU than CARAFE and other baselines in segmentation experiments, with SAPA-G often contributing the best gains.
  • SAPA improves object detection AP slightly for Faster R-CNN on MS COCO in some configurations but may underperform CARAFE in this task due to different task sensitivities to detail vs. regional integrity.
  • In depth estimation and image matting, SAPA outperforms competing upsampling methods, with notable gains in matting metrics (e.g., SAD, MSE, Grad, Conn) on Adobe Composition-1k.
  • Ablation studies show the gated bilinear similarity often yields the best performance, and the exponential normalization (softmax) generally performs best among tested normalizations.
  • SAPA is lightweight and can operate without additional parameters (in the inner-product variant), with competitive FLOPs and parameter counts compared to CARAFE and other methods.

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.