UltraSR: Spatial Encoding is a Missing Key for Implicit Image Function-based Arbitrary-Scale Super-Resolution

Xingqian Xu, Zhangyang Wang, Humphrey ShiarXiv 2021

Introduction

Traditional Super-Resolution (SR) models are typically constrained to fixed scales; a model trained for 2x upscaling generally fails to perform at 3x or 4.5x. Recent advancements have leveraged Implicit Neural Representations (INRs)—the technology underpinning Neural Radiance Fields (NeRF)—to treat images as continuous functions. This approach, exemplified by the Learning Implicit Image Function (LIIF) framework, enables Arbitrary-Scale SR, allowing a single model to upscale an image to any resolution.

However, LIIF and similar methods encounter significant hurdles at extreme scales (e.g., 18x or 30x), often producing structural distortions and "grid-like" artifacts. These issues stem from "spectral bias," where standard neural networks struggle to learn high-frequency details, leading to overly smooth or geometrically flawed reconstructions. UltraSR addresses this by introducing periodic spatial encoding, effectively unlocking high-frequency details in arbitrary-scale super-resolution and setting a new state-of-the-art across multiple benchmarks.

Architecture and Methodology

UltraSR enhances the INR framework through three primary architectural innovations designed to overcome spectral bias and improve detail retention.

Overview of the UltraSR architecture.

1. Periodic Spatial Encoding

Drawing inspiration from NeRF, UltraSR maps raw $(x, y)$ coordinates into a 48-dimensional space using sine and cosine functions at varying frequencies. This spatial encoding serves as a mathematical "magnifying glass," allowing the network to perceive and reconstruct fine textures that are otherwise lost due to low-frequency bias.

2. Deep Coordinate Fusion

In conventional designs, spatial coordinates are typically only introduced at the network's input layer. UltraSR, however, concatenates the 48D spatial encoding and raw coordinates into every hidden layer of the MLP. This "Deep Coordinate Fusion" ensures that spatial information remains prominent throughout the network's depth, which is crucial at high upscaling factors where local feature vectors alone are insufficient to distinguish between high-resolution pixels.

3. Residual MLP (ResMLP)

Instead of a standard stack of linear layers, UltraSR utilizes a Residual MLP. By incorporating skip connections, the network can focus on learning high-frequency residuals (the fine details) while allowing low-frequency information to pass through more easily. The system uses a standard backbone, such as EDSR or RDN, to extract features from a low-resolution image, which are then queried by this rendering network.

Experiments and Results

The model was trained and validated using the DIV2K dataset. To test generalization, it was evaluated on standard benchmarks including Set5, Set14, B100, Urban100, and Manga109, covering natural scenes, architecture, and illustrations.

UltraSR established a new state-of-the-art (SOTA) on the DIV2K benchmark across all tested scales (x2 through x30). Notably, this single arbitrary-scale model often outperformed specialized models trained specifically for a single scale.

Qualitative comparison between LIIF and UltraSR at extreme upscaling factors.

Beyond quantitative metrics, the qualitative improvements are stark. As shown in the comparison above, UltraSR eliminates the "checkerboard" and "grid" artifacts that plague previous INR methods, producing sharp edges even at 30x magnification. Laplacian analysis further confirms that spatial encoding increases edge sharpness by 10% while simultaneously reducing reconstruction error relative to the ground truth.

Conclusion and Future Directions

UltraSR demonstrates that the artifacts in previous INR-based SR were not a fundamental flaw of the implicit function concept, but rather a limitation in handling high-frequency data. While highly effective, future work could explore alternative encoding bases like wavelets or integrate perceptual losses (e.g., GANs) to enhance photorealism at extreme magnifications. The authors suggest that this combination of spatial encoding and implicit functions holds promise for other 2D vision tasks beyond super-resolution, such as classification and segmentation.

Summary updated

BibTeX
@misc{xu2021ultrasr,
  author = {Xingqian Xu and Zhangyang Wang and Humphrey Shi},
  title = {{UltraSR: Spatial Encoding is a Missing Key for Implicit Image Function-based Arbitrary-Scale Super-Resolution}},
  year = {2021},
  eprint = {2103.12716},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.12716},
}
Figure