Skip to main content
Back

UCAN Brings Transformer-Quality Image Upscaling to Edge Devices With 36% Less Compute

A CVPR 2026 lightweight super-resolution model combines Flash Attention, Hedgehog linear attention, and large-kernel distillation to beat heavier models with fewer FLOPs.

Pro

  • UCAN is a CVPR 2026 lightweight super-resolution network unifying convolution, window attention, and Hedgehog linear attention.
  • Uses Flash Attention over 32x32 windows plus a Dual Fusion Layer for global context at linear cost.
  • Hedgehog Feature Map lifts attention rank to 46 versus 42 for ReLU and 38 for ELU+1 variants.
  • UCAN-L hits 31.63 dB PSNR on Manga109 x4 with 48.4G MACs, beating MambaIRv2 by 0.39 dB.
  • Base UCAN beats OmniSR by 0.12 dB on Urban100 x2 with 11% fewer parameters, 24% fewer FLOPs.
  • Code and pretrained x2/x3/x4 checkpoints released at github.com/hokiyoshi/UCAN.

Squeezing transformer-quality image super-resolution onto phones, cameras, and edge boxes usually means picking your poison: shrink the attention window and lose global context, or shrink the model and lose sharpness. A new architecture called UCAN tries to dodge that tradeoff by mixing three ideas, Flash Attention over large windows, a linear attention variant called Hedgehog, and a distilled large-kernel convolution module, into one lightweight network.

UCAN is a CVPR 2026 paper from a team spanning Ho Chi Minh City University of Technology, Shanghai Jiao Tong University, and the University of Manitoba. The authors present UCAN as a lightweight network that unifies convolution and attention to expand the effective receptive field efficiently, combining window-based spatial attention with a Hedgehog Attention mechanism to model both local texture and long-range dependencies, and introducing a distillation-based large-kernel module to preserve high-frequency structure without heavy computation, plus cross-layer parameter sharing to further reduce complexity.

The receptive field problem

Super-resolution models need to look at a lot of pixels at once. Repeating textures in a brick wall, similar strokes across a manga panel, edges that continue across the frame, all of that requires a wide effective receptive field, the region of the input that actually influences a given output pixel. Hybrid CNN-Transformer architectures achieve strong results in image super-resolution, but scaling attention windows or convolution kernels significantly increases computational cost, limiting deployment on resource-constrained devices.

Linear attention, which swaps softmax for a feature map so cost grows linearly with sequence length instead of quadratically, is a common fix. The catch is that popular choices like ReLU or ELU+1 tend to produce low-rank attention matrices, meaning the model collapses onto a few directions and loses feature diversity. That is what UCAN sets out to repair.

Rank comparison of ReLU, ELU, and Hedgehog attention feature maps

What Hedgehog Attention actually does

The Hedgehog Feature Map, borrowed from prior work on softmax-mimicking linear attention, concatenates symmetric exponential pairs of a learned linear projection. In plain terms, instead of throwing away negative pre-activations the way ReLU does, it keeps both the positive and negative sides through paired exponentials, then lets a small learned MLP shape them.

The practical effect: on a 256-token, 48-head test, the ReLU variant recovers a rank of roughly 42 and ELU about 38, while Hedgehog reaches 46 out of a full rank of 64. Higher rank means richer, more diverse features, which matters for reconstructing fine textures where subtle signed correlations across channels carry the high-frequency detail.

The architecture, in pieces

UCAN stacks Broad Effective Receptive Field Groups (BERFG), each split into a Sharing Block and a Receiving Block. The key modules inside are:

  • High Performance Attention (HPA): a 32x32 window using Flash Attention, so the model can attend over a much wider spatial region without the usual quadratic memory blowup.
  • Shared and Received Hybrid Attention (SHA/RHA): window multi-head attention for local texture plus a Dual Fusion Layer that runs Hedgehog attention alongside channel attention. The Sharing Block computes the attention maps, and the Receiving Block reuses them, cutting redundant compute.
  • Large Kernel Distillation (LKD): splits channels into a fine-grained quarter that goes through a large-kernel dilated depthwise path, and a coarse remainder that bypasses it, so the expensive kernel only touches the most informative channels.

A latency test on an A100 shows Flash Attention runs up to 13.4x faster than vanilla self-attention at 128x128 resolution, while the Dual Fusion Layer keeps parameter count constant as resolution grows.

Benchmark numbers

On the standard super-resolution benchmarks (Set5, Set14, BSDS100, Urban100, Manga109), UCAN pushes the efficiency frontier rather than the raw accuracy frontier. On Manga109 at 4x, UCAN-L reaches 31.63 dB PSNR with only 48.4G MACs, surpassing recent lightweight models, and on BSDS100 UCAN attains 27.79 dB, outperforming methods with significantly larger models.

PSNR versus parameter count on Manga109 x4 for CNN, Transformer, SSM, and UCAN models

Compared against recent baselines at 2x upscaling, the base UCAN beats OmniSR by 0.12 dB on Urban100 and 0.17 dB on Set5 while using 11% fewer parameters and 24% fewer FLOPs. At 4x on Manga109, UCAN-L outperforms MambaIRv2 by 0.39 dB with up to 36% lower compute. The larger UCAN-L variant (902K params, 48.4G MACs at 4x) matches or beats the ESC model on four of five benchmarks with 7% fewer parameters.

Where it helps and where it does not

This is a classical single-image super-resolution model, useful for bicubic-degraded 2x/3x/4x upscaling on photos, manga, urban scenes, and natural imagery where you want transformer-level fidelity on a compute budget. The ablations show the design pays off most on texture-heavy datasets like Urban100 and Manga109; on Set5 and simple scenes, most kernel sizes saturate to the same PSNR.

The limits are worth flagging. UCAN targets clean, synthetically downsampled inputs, not real-world degradations like noise, compression, or blur that dedicated blind-SR pipelines handle. It is also still a research reference implementation trained on DIV2K with two RTX 3090s; there are no quantized or mobile-optimized weights shipped, and latency numbers come from A100 measurements rather than phone or embedded silicon.

Getting it

Code, configs, and test scripts are on GitHub, built on the BasicSR framework with pretrained x2, x3, and x4 checkpoints. The work is based on BasicSR, HiT-SR, ESC, and MambaIRv2. The CVPR 2026 paper is available through the CVF open access portal, and the arXiv HTML version has the full supplementary with kernel-size derivations and additional ablations.