Abstract
Continuous image super-resolution (SR) aims to reconstruct high-resolution images at arbitrary scales from a single low-resolution input. While Implicit Neural Representations (INRs) have shown promise in this area, existing methods often rely on single-scale coordinate encodings and simple MLPs, failing to capture the multi-scale nature of image features. We present HIIF (Hierarchical Encoding based Implicit Image Function), a framework that introduces multi-scale hierarchical positional encoding and a multi-head linear attention mechanism. HIIF effectively captures both local fine details and non-local structural information, achieving state-of-the-art performance across various magnification factors.
Introduction
Traditional Image Super-Resolution (ISR) models are typically designed for fixed integer magnification factors (e.g., x2, x4). This "static" nature limits their utility in real-world scenarios where users may require non-integer or very high magnification levels. To address this, researchers have recently turned to Implicit Neural Representations (INRs), which treat an image as a continuous function $f(x, y)$ that can be queried at any coordinate to obtain a color value.
However, current INR-based methods often suffer from a "flat" perspective. By using simple Multi-Layer Perceptrons (MLPs) and single-scale coordinate encodings, they ignore the hierarchical structure of images—where fine textures are nested within larger semantic components. This limitation often results in blocky artifacts or loss of detail at high magnification scales.
The HIIF Framework
The HIIF framework enhances the implicit function approach through three primary innovations: hierarchical encoding, a multi-scale decoder architecture, and non-local attention.
Hierarchical Positional Encoding
Instead of a single relative coordinate, HIIF generates a set of encodings across multiple levels (scales). This allows the model to perceive the relationship between a sampling point and its neighborhood at various resolutions simultaneously. By re-parameterizing coordinates into a hierarchy, the network can share features between neighboring points at coarse levels while maintaining distinct representations at finer levels.
Multi-scale Decoder and Attention
The HIIF decoder progressively incorporates these hierarchical encodings into different layers of an MLP. This "coarse-to-fine" strategy guides the network to learn different frequency subbands, with deeper layers focusing on high-frequency details. Furthermore, HIIF integrates a Multi-head Linear Attention (MHA) mechanism. Unlike standard INR methods that only consider local neighborhoods, MHA allows the model to leverage "non-local" information—identifying similar patterns across the image to improve the reconstruction of complex textures.
Experimental Evaluation
HIIF was evaluated using standard benchmarks including DIV2K, Set5, Set14, BSD100, and Urban100. It serves as a versatile decoder that can be paired with various backbones such as EDSR, RDN, or SwinIR.
Quantitative and Qualitative Results
As shown in the radar charts above, HIIF consistently outperforms previous state-of-the-art methods like LIIF, LTE, and CiaoSR across both in-distribution (x2-x4) and out-of-distribution (up to x30) scales. Quantitatively, it achieved a PSNR gain of up to 0.17dB on the DIV2K dataset. Qualitatively, HIIF produces significantly sharper edges and smoother gradients, avoiding the "grid-like" artifacts common in earlier coordinate-based models.
Discussion and Limitations
The success of HIIF highlights that hierarchy and context are critical for continuous SR. By breaking the MLP "spectral bias" through multi-stage encoding and incorporating non-local context via attention, HIIF sets a new standard for reconstruction quality.
However, these improvements come with increased computational costs. HIIF's inference time is approximately double that of simpler methods like LIIF (e.g., ~35s vs ~18s on Urban100) due to the complexity of the hierarchical structure and attention mechanism. Future work will focus on optimizing these components for real-time performance on resource-constrained devices and extending the hierarchical implicit approach to video and 3D data.
Summary updated