NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gram-GAN: Image Super-Resolution Based on Gram Matrix and Discriminator Perceptual Loss

Jie Song, Huawei Yi, Wenqian Xu, Bo Li, Xiaohui Li2023

TL;DR

This paper introduces Gram-GAN, a novel approach to single-image super-resolution (SISR) that tackles the limitations of traditional one-to-one supervision. By incorporating a Gram matrix-based texture loss and a discriminator perceptual loss, Gram-GAN achieves more flexible inference and generates higher-fidelity images with richer textures, outperforming existing methods.

What Problem Does This Paper Address?

Single-image super-resolution (SISR) aims to reconstruct a high-resolution (HR) image from a low-resolution (LR) counterpart. A major challenge in current SISR methods is the reliance on a "one-to-one" supervision strategy, where each LR image is paired with a single ground truth HR image. This approach is problematic because a single LR image can correspond to multiple possible HR images, leading to inflexible model inference and a tendency for models to produce overly smooth or artifact-ridden results. Existing perception-driven methods, while improving visual quality, still struggle with this one-to-one limitation and can generate textures that deviate significantly from the ground truth.

Methods

Gram-GAN builds upon the Generative Adversarial Network (GAN) framework, comprising a generator and a discriminator. The key innovations lie in two new loss components:

  • Gram Matrix-Based Extra Supervision (Patch-Wise Texture Loss): To address the one-to-many nature of SISR, the authors introduce an extra supervision mechanism. Instead of relying solely on pixel-wise similarity, they use the Gram matrix to capture texture information. The Gram matrix, computed from image patches, effectively ignores spatial location and focuses on the statistical properties of textures. This allows the model to find more suitable HR patches from a candidate database that match the texture of the estimated patch, even if their spatial arrangement differs. This is formulated as minimizing the difference between the Gram matrices of the estimated and ground truth patches.
  • Discriminator Perceptual Loss: Traditional perceptual losses often use features from pre-trained VGG networks, which are optimized for image recognition tasks. The authors argue that these features may not be rich enough for SISR. They propose using features extracted from the middle layers of the discriminator itself. This discriminator perceptual loss leverages features that are specifically learned to distinguish between real and generated images within the SR context, providing richer information for the generator to learn from.

These novel losses are combined with traditional perceptual loss and adversarial loss to form the overall objective function for the generator.

Datasets

The paper uses the following datasets:

  • Training: DIV2K dataset, augmented to create 44,226 non-overlapping sub-images.
  • Testing: Standard SISR benchmark datasets: Set5, Set14, BSD100, and Urban100.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Texture over Pixels: The Gram matrix is a powerful tool for decoupling texture information from spatial location, which is crucial for SISR where multiple HR images can share similar textures but differ in precise arrangements.
  • Discriminator as a Feature Extractor: Leveraging the discriminator's learned features for perceptual loss is more effective for SR than relying solely on general-purpose image recognition features (like VGG), as it captures SR-specific details.
  • Flexibility through One-to-Many Supervision: The Gram matrix-based extra supervision allows the model to explore a wider range of plausible HR reconstructions, leading to more flexible inference and better generalization.
  • Balancing Facticity and Visual Quality: Gram-GAN aims to improve the "facticity" (how closely the generated image resembles the ground truth in terms of detail and structure) without sacrificing the high visual quality often associated with perception-driven methods.

Key Results

  • Quantitative: Gram-GAN achieved the highest PSNR and SSIM scores among the compared methods on most datasets. It also demonstrated superior LPIPS values, indicating better perceptual similarity. While Beby-GAN also performed well, Gram-GAN showed significantly better NIQE scores, suggesting higher visual quality.
  • Qualitative: Visual evaluations show that Gram-GAN reconstructs texture details more accurately and with fewer artifacts compared to other state-of-the-art methods. For instance, it excels at rendering fine patterns like tiger fur, ground textures, ceiling lines, and cross-stripes, producing results that are closer to the ground truth.

Limitations and Future Work

  • Computational Complexity: The authors acknowledge the high computational complexity of the RRDB generator used in their framework.
  • Future Work: The authors plan to focus on optimizing the computational complexity of their networks and developing high-performance lightweight models for SISR.

Summary updated

BibTeX
@misc{song2023gram,
  author = {Jie Song and Huawei Yi and Wenqian Xu and Bo Li and Xiaohui Li},
  title = {{Gram-GAN: Image Super-Resolution Based on Gram Matrix and Discriminator Perceptual Loss}},
  year = {2023},
  doi = {10.3390/s23042098},
}
Figure