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

Learning Continuous Image Representation With Local Implicit Image Function

Yinbo Chen, Sifei Liu, Xiaolong Wang

Abstract

How to represent an image? While the visual world is presented in a continuous manner, machines store and see the images in a discrete way with 2D arrays of pixels. In this paper, we seek to learn a continuous representation for images. Inspired by the recent progress in 3D reconstruction with implicit neural representation, we propose Local Implicit Image Function (LIIF), which takes an image coordinate and the 2D deep features around the coordinate as inputs, predicts the RGB value at a given coordinate as an output. Since the coordinates are continuous, LIIF can be presented in arbitrary resolution. To generate the continuous representation for images, we train an encoder with LIIF representation via a self-supervised task with super-resolution. The learned continuous representation can be presented in arbitrary resolution even extrapolate to x30 higher resolution, where the training tasks are not provided. We further show that LIIF representation builds a bridge between discrete and continuous representation in 2D, it naturally supports the learning tasks with size-varied image ground-truths and significantly outperforms the method with resizing the ground-truths.

Introduction

Traditional digital image representation relies on discrete 2D arrays of pixels. While effective for storage, this format imposes significant limitations on tasks like super-resolution. Standard models are often constrained to fixed integer scales (e.g., 2x, 4x) and struggle with "out-of-distribution" resolutions. Furthermore, training on datasets with varying image sizes typically requires resizing, which can degrade data quality and sacrifice data fidelity.

In this work, we introduce the Local Implicit Image Function (LIIF), a novel framework that represents images as continuous functions. By mapping coordinates to RGB values, LIIF allows for querying an image at any arbitrary resolution, effectively bridging the gap between discrete and continuous representations.

Methodology

The LIIF framework consists of an encoder (such as EDSR or RDN) that extracts a 2D feature map of latent codes from a discrete input image, and a shared Multi-Layer Perceptron (MLP) that serves as the implicit function decoder.

LIIF enables arbitrary resolution upscaling from a single low-resolution input.

Local Implicit Representation

For any continuous coordinate $(x, y)$ in the image domain, the model identifies the nearest latent codes in the feature map. The MLP, denoted as $f_\theta$, takes the coordinate and the local latent code as input to predict the RGB value. To ensure spatial consistency and avoid "seams" or discontinuities between latent code regions, we employ a Local Ensemble technique. This method queries the four nearest latent codes and aggregates their predictions using a distance-based confidence weight.

Cell Decoding

A critical challenge in continuous representation is maintaining sharpness across different scales. If the model only queries infinitesimal points, it may produce aliasing or blurriness. We introduce Cell Decoding, where the target pixel's dimensions (height $c_h$ and width $c_w$) are provided as additional inputs to the MLP.

Cell decoding incorporates the target pixel size into the prediction.

This allows the model to learn how to integrate information over the area of a pixel, effectively acting as a learned integration filter that significantly improves visual quality at extreme magnification factors.

Experiments and Results

LIIF was evaluated on standard benchmarks including DIV2K, Set5, Set14, B100, and Urban100. The model was trained on a self-supervised super-resolution task with random scales between 1x and 4x.

Extrapolation and Accuracy

One of the most significant findings is LIIF's ability to extrapolate. Despite being trained only up to 4x, the model maintains high fidelity even at 30x magnification. On the DIV2K dataset at 30x scale, LIIF achieved a PSNR of 20.59 dB, significantly outperforming Bicubic interpolation (19.59 dB) and previous state-of-the-art methods like MetaSR. Qualitatively, LIIF produces much sharper edges and fewer artifacts than traditional upsamplers when pushed to extreme resolutions.

Handling Size-Varied Data

LIIF naturally supports training on datasets with inconsistent resolutions. When tested on CelebAHQ with mixed-resolution ground truths, LIIF outperformed standard "resize-then-train" pipelines by over 1 dB PSNR. This demonstrates its utility as a unified framework for diverse data sources, preserving the original details of high-resolution samples.

Conclusion

LIIF presents a paradigm shift in image representation, moving from discrete grids to continuous functions. By leveraging local latent codes and cell decoding, it enables high-quality, arbitrary-resolution image generation and extrapolation. While computationally more intensive than standard convolutional passes due to per-pixel MLP queries, its ability to handle varying resolutions and maintain sharpness at extreme scales makes it a powerful tool for modern computer vision tasks.

Summary updated

BibTeX
@inproceedings{chen2021learning,
  author = {Yinbo Chen and Sifei Liu and Xiaolong Wang},
  title = {{Learning Continuous Image Representation With Local Implicit Image Function}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=NSS0zyy8eZz},
}
Figure