On Point Affiliation in Feature Upsampling

Wenze Liu, Hao Lu, Yuliang Liu, Zhiguo CaoarXiv 2023

Abstract

We introduce the notion of point affiliation into feature upsampling. By abstracting a feature map into non-overlapped semantic clusters formed by points of identical semantic meaning, feature upsampling can be viewed as point affiliation—designating a semantic cluster for each upsampled point. In the framework of kernel-based dynamic upsampling, we show that an upsampled point can resort to its low-resolution decoder neighbors and high-resolution encoder point to reason the affiliation, conditioned on the mutual similarity between them. We therefore present a generic formulation for generating similarity-aware upsampling kernels and prove that such kernels encourage not only semantic smoothness but also boundary sharpness. This formulation constitutes a novel, lightweight, and universal upsampling solution, Similarity-Aware Point Affiliation (SAPA).

Introduction

In deep learning architectures for dense prediction tasks, such as semantic segmentation or image matting, upsampling is a critical step for restoring spatial resolution to features that have been downsampled during processing. Standard methods like bilinear interpolation or nearest-neighbor upsampling are computationally efficient but often fail to preserve sharp object boundaries because they rely on fixed geometric rules rather than the actual content of the image.

While dynamic upsamplers like CARAFE or IndexNet have been proposed to address these issues, they often suffer from task bias. For instance, an upsampler optimized for crisp object masks in segmentation might struggle with the translucent, delicate edges required for image matting. SAPA aims to overcome these limitations by providing a universal, content-aware upsampling operator.

The Concept of Point Affiliation

The core innovation of this work is viewing upsampling through the lens of Point Affiliation. Instead of simple interpolation, the authors treat a feature map as a collection of "semantic clusters"—groups of pixels that share the same semantic meaning. Upsampling is then redefined as the task of deciding which semantic cluster a new, high-resolution point should belong to.

Figure 1: Illustration of the point affiliation concept. (a) Ground truth segmentation. (b) Low-resolution grid where a point (yellow box) must be assigned to a semantic cluster. (c) The resulting upsampled feature map with sharp boundaries.

Similarity-Aware Point Affiliation (SAPA)

SAPA implements point affiliation by leveraging the mutual similarity between high-resolution "encoder" features (which contain structural detail) and low-resolution "decoder" features (which contain semantic meaning). The process follows three main steps:

  1. Point Selection: For every upsampled point, a set of candidate points is identified from the low-resolution feature map.
  2. Weight Generation: Mutual similarity is computed between the high-resolution encoder feature and the low-resolution decoder candidates. This ensures that the upsampling kernel is aware of the underlying image structure.
  3. Feature Assembly: These similarity scores act as weights to calculate the final value of the upsampled point, effectively "affiliating" it with the most semantically relevant cluster.
Figure 4: Visualization of the similarity-aware mechanism. The encoder features provide structural guidance (m', n', l') to help the decoder features maintain both interior smoothness and boundary sharpness during upsampling.

Variants of SAPA

  • SAPA-I: A parameter-free version using direct inner products for similarity.
  • SAPA-B (Base): Uses a fixed window (e.g., 5x5) for point selection.
  • SAPA-D (Dynamic): Employs a deformable selection mechanism, allowing the kernel to "search" for the correct semantic cluster, which is particularly effective for noisy feature maps in object detection.

Key Insights

  • Continuity vs. Divisibility: Effective upsampling requires a balance between "Continuity" (smoothness within objects) and "Divisibility" (sharp breaks at boundaries). SAPA achieves this by using encoder features to guide the breaks and decoder features to maintain smoothness.
  • Encoder Guidance: Unlike previous methods that relied solely on the decoder to generate kernels, SAPA demonstrates that the interaction between encoder and decoder features is a much more robust signal for determining point affiliation.

Experimental Results

SAPA was evaluated across six major dense prediction benchmarks, including ADE20K (segmentation), MS COCO (detection/segmentation), and Adobe Composition-1k (matting). It consistently outperformed state-of-the-art upsamplers:

  • Semantic Segmentation: On ADE20K, SAPA-D improved mIoU by +2.57 and boundary IoU (bIoU) by +3.58 over baseline models.
  • Object Detection: On MS COCO, it boosted Average Precision (AP) by +1.8 compared to standard upsampling.
  • Image Matting: It achieved a 4.8% relative error reduction in the SAD metric, demonstrating its ability to handle delicate boundaries.

Conclusion

SAPA provides a lightweight and universal solution for feature upsampling. By framing the problem as point affiliation and utilizing mutual similarity between encoder and decoder features, it achieves superior performance across a wide range of tasks while maintaining computational efficiency. While it is not intended for standalone image super-resolution, it represents a significant step forward for internal feature restoration in deep neural networks.

Summary updated

BibTeX
@misc{liu2023point,
  author = {Wenze Liu and Hao Lu and Yuliang Liu and Zhiguo Cao},
  title = {{On Point Affiliation in Feature Upsampling}},
  year = {2023},
  eprint = {2307.08198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08198},
}
Figure