Implicit Transformer Network for Screen Content Image Continuous Super-Resolution

Jingyu Yang, Sheng Shen, Huanjing Yue, Kun Li

TL;DR

This paper introduces the Implicit Transformer Super-Resolution Network (ITSRN), a novel architecture designed specifically to upscale Screen Content Images (SCIs)—such as text, UI elements, and graphics—at arbitrary, continuous zoom levels. By reformulating image interpolation as an implicit transformer and introducing a learned implicit position encoding, ITSRN successfully preserves the thin, sharp edges characteristic of SCIs, significantly outperforming existing continuous and discrete super-resolution methods.

The Challenge of Screen Content Super-Resolution

With the explosion of screen sharing, remote desktop applications, and online education, Screen Content Images (SCIs) are everywhere. To save bandwidth, these images are often downsampled and compressed. When a user zooms in, the image needs to be super-resolved to maintain legibility and visual quality.

However, most Super-Resolution (SR) models are designed for natural images, which feature smooth color transitions and rich textures. SCIs are fundamentally different: they are computer-generated, featuring flat colors, high contrast, and incredibly thin, sharp edges (like text fonts). Furthermore, users zoom in at arbitrary scales (e.g., 2.3x or 5.12x), requiring "continuous" SR rather than fixed-scale SR (like exactly 2x or 4x). Existing continuous SR methods (like LIIF) struggle with SCIs because their architectures tend to blur the dense, sharp edges required for legible text and crisp graphics.

Methods: The Implicit Transformer

The authors propose ITSRN, which shifts away from standard convolutional upsampling and instead uses an implicit neural representation approach inspired by Transformers and NeRFs.

ITSRN Architecture
  1. Implicit Transformer: Standard continuous SR methods often directly concatenate a pixel's spatial coordinates with its deep image features and feed them into a Multi-Layer Perceptron (MLP). The authors argue this is suboptimal because coordinates and features have different physical meanings. Instead, ITSRN treats the low-resolution (LR) coordinates as "Keys", the high-resolution (HR) target coordinates as "Queries", and the LR pixel features as "Values". An MLP learns transform weights based on the difference between the Query and Key coordinates. These weights are then multiplied by the Value features to predict the RGB output.
  2. The [scale] Token: Inspired by the [class] token in Vision Transformers, the authors append a 2D [scale] token to the coordinate inputs. This gives the network global context about the magnification factor, helping it understand the "shape" of the query pixel.
  3. Implicit Position Encoding (IPE): To prevent neighboring pixels from looking disconnected or jagged, ITSRN applies a localized refinement step. It uses another MLP to learn adaptive weights for a query pixel's immediate neighbors, effectively acting as a smart, learned spatial filter that ensures continuity without blurring sharp edges.

New Benchmarks for SCIs

Because there were no standard datasets specifically for SCI super-resolution, the authors introduced two new benchmarks:

  • SCI1K: 1,000 high-resolution screenshots (web pages, games, slides, documents). 800 are used for training/validation, and 200 for testing. LR images are generated via bicubic downsampling.
  • SCI1K-compression: The same dataset, but the LR images are further degraded using random JPEG compression (quality factors 75, 85, 95) to simulate real-world transmission artifacts.

Key Insights

  • Coordinates $\neq$ Features: Forcing a neural network to process physical spatial coordinates and abstract deep visual features in the exact same way (via concatenation) limits its ability to render sharp boundaries. Using coordinates to generate an attention-like weight for the features is a much more effective way to map continuous space to RGB values.
  • Transformers for Interpolation: The classic image interpolation process (like bicubic) can be elegantly mathematically reformulated as a Transformer attention mechanism, where the "attention" is paid to the nearest known coordinates in the continuous image domain.
  • Learned Local Filtering: Standard convolutions naturally encode positional relationships, but they are fixed. By using an MLP to learn the weights of a local 3x3 neighborhood dynamically (IPE), the network can smooth out compression artifacts while strictly preserving the high-contrast edges of text.

Key Results

ITSRN consistently outperforms state-of-the-art continuous SR models (LIIF, MetaSR) and discrete models (RDN, RCAN).

  • Quantitative: On the SCI1K test set at a 4x scale, ITSRN achieved a PSNR of 30.82 dB, beating its own backbone network (RDN) by nearly 1 full dB.
  • Extreme Scaling: The model was trained on continuous scales from 1x to 4x, but was tested on "out-of-training" scales up to 10x. ITSRN maintained its performance lead at these extreme scales.
  • Qualitative: Visual comparisons show that at high magnification (e.g., 10x), competing methods render text as blurry, unreadable blobs, whereas ITSRN reconstructs highly legible, sharp typography.
Visual comparison across continuous scales
  • Ablation: The addition of the [scale] token and the Implicit Position Encoding (IPE) module combined to improve the model's performance by 0.39 dB at 4x magnification.

Limitations and Future Work

Because ITSRN is explicitly designed to model the high-contrast, dense edges of screen contents, it may not be the optimal choice for natural photographic images at fixed magnification ratios. Furthermore, the model was trained on simulated degradation (bicubic downsampling and standard JPEG compression). Real-world transmission and acquisition often introduce more complex, unpredictable artifacts.

Future work will focus on developing a "blind" distortion-based SCI SR model that can adapt to unknown, real-world degradation scenarios without relying on predefined compression parameters.

Summary updated

BibTeX
@inproceedings{yang2021implicit,
  author = {Jingyu Yang and Sheng Shen and Huanjing Yue and Kun Li},
  title = {{Implicit Transformer Network for Screen Content Image Continuous Super-Resolution}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=A1pAYcIPxLi},
}
Figure