Super Resolution Using Segmentation-Prior Self-Attention Generative Adversarial Network

Yuxin Zhang, Zuquan Zheng, Roland HuarXiv 2020

Abstract

Single-image super-resolution (SISR) often struggles to maintain semantic consistency and long-range spatial dependencies, leading to unrealistic or "melted" textures. This paper introduces the Segmentation-Prior Self-Attention Generative Adversarial Network (SPSAGAN), which integrates semantic segmentation priors with self-attention mechanisms. By combining these, the model ensures that generated textures are both globally consistent and semantically accurate. Furthermore, a novel Residual-in-Residual Sparse Block (RRSB) is introduced to reduce computational redundancy. Experimental results demonstrate that SPSAGAN achieves state-of-the-art perceptual quality with significantly lower inference times compared to previous dense architectures.

Introduction

The goal of Single Image Super-Resolution (SISR) is to reconstruct a high-resolution (HR) image from its low-resolution (LR) counterpart. While deep learning has revolutionized this field, standard Convolutional Neural Networks (CNNs) face two primary limitations. First, their local receptive fields make it difficult to capture long-range dependencies, which are vital for maintaining uniform textures across large objects (e.g., consistent water ripples). Second, they lack semantic context; without understanding the underlying object (e.g., distinguishing between grass and fur), networks may hallucinate textures that are visually plausible but semantically incorrect.

Previous attempts to solve these issues, such as SFTGAN, utilized segmentation maps but lacked long-distance awareness. Conversely, self-attention models capture long-range relationships but often ignore semantic categories. SPSAGAN bridges this gap by fusing segmentation priors directly into a self-attention framework.

Methodology

Segmentation-Prior Self-Attention (SPSA) Module

The core innovation of SPSAGAN is the SPSA module, which acts as the network's primary reasoning engine. It performs a weighted fusion of two distinct attention mechanisms:

  1. Feature Attention: A standard self-attention mechanism that identifies similar patterns across the entire image, regardless of distance.
  2. Segmentation Attention: A mechanism guided by a pre-trained semantic segmentation network that identifies object categories (e.g., sky, water, buildings).

By combining these, the model can "correct" its focus. For instance, if feature attention attempts to link a blue sky pixel with a blue water pixel due to color similarity, the segmentation prior intervenes to ensure the textures remain distinct and category-appropriate.

Residual-in-Residual Sparse Block (RRSB)

To improve efficiency, the authors re-evaluated the Residual-in-Residual Dense Block (RRDB) popularized by ESRGAN. They observed that many dense connections within these blocks contributed little to the final output. Using a dissimilarity measure and K-means clustering, they pruned redundant connections to create the Residual-in-Residual Sparse Block (RRSB). This architectural refinement reduces computational overhead without sacrificing—and in some cases, even improving—reconstruction quality by reducing feature map noise.

Experimental Results

The model was pre-trained on DIV2K and Flickr2K datasets and fine-tuned on the Outdoor Scene Training (OST) dataset, which focuses on seven key categories: sky, mountain, plant, grass, water, animal, and building.

Qualitative Performance

Visual comparisons reveal that SPSAGAN produces sharper, more natural textures than its predecessors. As shown in the comparison below, SPSAGAN avoids the blurry or overly smoothed appearance seen in other GAN-based methods like SFTGAN or SAN, particularly in complex textures like brickwork and animal fur.

Qualitative comparison of SPSAGAN against other SR methods (SAN, SFTGAN) and the Ground Truth (HR) for building and animal textures.

Quantitative and Efficiency Gains

SPSAGAN achieved a superior Perceptual Index (PI) of 2.365 on the BSD100 dataset, outperforming ESRGAN (2.510) and SFTGAN (2.396). Beyond visual quality, the transition from RRDB to RRSB resulted in a ~20% reduction in inference time, dropping from 0.368s to 0.296s per image on a GTX 1080Ti. User studies further confirmed a strong preference for SPSAGAN's results over traditional PSNR-oriented and other perception-driven models.

Discussion and Conclusion

SPSAGAN demonstrates that semantic awareness and long-range dependencies are complementary forces in super-resolution. By pruning redundant connections, the authors also show that "denser" is not always "better," as sparse architectures can reduce noise and improve speed.

However, the model's reliance on the OST dataset's seven categories remains a limitation for general-purpose applications. Future work will focus on expanding the segmentation prior to include a broader range of indoor and urban environments, further enhancing the robustness of the SPSA module across diverse scenes.

Summary updated

BibTeX
@misc{zhang2020super,
  author = {Yuxin Zhang and Zuquan Zheng and Roland Hu},
  title = {{Super Resolution Using Segmentation-Prior Self-Attention Generative Adversarial Network}},
  year = {2020},
  eprint = {2003.03489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.03489},
}
Figure