Learning Implicit Feature Alignment Function for Semantic Segmentation

Hanzhe Hu, Yinbo Chen, Jiarui Xu, Shubhankar Borse, Hong Cai, Fatih Porikli, Xiaolong Wang

Abstract

Semantic segmentation requires a delicate balance between high-level contextual understanding and low-level spatial precision. Traditional architectures rely on discrete up-sampling methods like bilinear interpolation to align multi-scale features, which often results in blurred boundaries and lost detail. This paper presents the Implicit Feature Alignment (IFA) function, which treats feature maps as continuous 2D fields. By utilizing coordinate-based neural networks, IFA enables resolution-free feature alignment, significantly improving boundary accuracy and computational efficiency across various benchmarks.

Introduction

In semantic segmentation, models must simultaneously identify broad categories (high-level context) and delineate precise object boundaries (low-level detail). Standard Feature Pyramid Networks (FPNs) typically use bilinear up-sampling to merge these disparate scales. However, this "dumb" interpolation is non-adaptive and tends to degrade spatial information. While more sophisticated alignment modules exist, they often introduce significant computational overhead.

The Implicit Feature Alignment (IFA) method addresses these challenges by drawing inspiration from Implicit Neural Representations (INR). Instead of viewing feature maps as fixed grids, IFA interprets them as continuous fields, allowing for flexible and precise querying at any coordinate.

Methods

The core of IFA is a coordinate-based "handshake" between multi-level features. Unlike traditional methods that up-sample discrete grids, IFA queries latent codes at arbitrary coordinates.

Comparison between traditional bilinear/convolutional alignment and the proposed Implicit Feature Alignment (IFA).

The IFA process involves four key steps:

  1. Querying: For a target coordinate $x_q$, the model identifies the nearest latent codes from multiple encoder levels.
  2. Relative Coordinates: It computes the relative distance $\delta x$ between the query point and these latent codes.
  3. Position Encoding: To capture high-frequency spatial details, relative coordinates are transformed via a sine/cosine-based encoding function $\psi(\delta x)$.
  4. MLP Decoding: The latent codes ($z^*$), relative coordinates, and their encodings are concatenated and processed by a Multi-Layer Perceptron (MLP) to predict the final semantic label.
Detailed architecture of the IFA module integrated with a multi-stage backbone.

This architecture makes IFA resolution-free, meaning it can generate predictions at any resolution—even higher than the input—without structural changes.

Experiments and Results

The authors evaluated IFA on Cityscapes, PASCAL Context, and ADE20K. IFA demonstrated consistent improvements when integrated into popular architectures like DeepLabV3+, PSPNet, and HRNet.

Key Performance Metrics

  • Cityscapes: On an FPN backbone, IFA achieved 78.02% mIoU, a significant jump from the 76.52% achieved by bilinear up-sampling.
  • Efficiency: IFA outperformed "heavy" alignment methods like AlignSeg while requiring nearly half the GFLOPs (186.9 vs. 348.6).
  • Scale Robustness: IFA's advantages are most pronounced when bridging large resolution gaps (e.g., 32x), where it maintains sharp boundaries that traditional methods lose.

Conclusion

Implicit Feature Alignment offers a powerful, "plug-and-play" alternative to traditional up-sampling in semantic segmentation. By shifting from discrete grids to continuous fields, IFA achieves superior boundary resolution and efficiency. Future work may extend this continuous representation to other dense prediction tasks like depth estimation or optical flow, potentially exploring learned spatial encodings to further enhance detail recovery.

Summary updated

BibTeX
@inproceedings{hu2022learning,
  author = {Hanzhe Hu and Yinbo Chen and Jiarui Xu and Shubhankar Borse and Hong Cai and Fatih Porikli and Xiaolong Wang},
  title = {{Learning Implicit Feature Alignment Function for Semantic Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19818-2\_28},
}
Figure