atlas

Research map / Architectures and efficiency / Attention and transformers

Sharing Key Semantics in Transformer Makes Efficient Image Restoration

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Block-sparse attention kernels · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SemanIR, a transformer for image restoration that builds a sparse KNN key-semantic dictionary once per stage and shares it across all layers, giving linear attention cost per window.

Problem

Self-attention in ViT-based image restoration attends to all global tokens, including semantically unrelated ones, causing quadratic cost at high resolution and inefficiency.

Approach

Construct a top-k semantic dictionary per transformer stage from patch self-similarity (KNN), then share this fixed sparse connection across all layers in the stage so each layer attends only to semantically related patches, reducing attention cost while keeping global receptive field.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use SemanIR instead of Restormerimage deblurring · GoProPSNR: 32.92 -> 33.44; 0.52 dBHelped
use SemanIR instead of Restormerimage deblurring · HIDEPSNR: 31.22 -> 31.05Hurt
use SemanIR instead of the strongest listed multi-task baselineSemanIR · Test1 (rain+fog)PSNR: 27.96 -> 29.57Helped
use SemanIR instead of the strongest listed multi-task baselineSemanIR · SnowTest100k-LPSNR: 28.48 -> 30.76Helped
use SemanIR instead of All-in-OneSemanIR · RainDropPSNR: 31.12 -> 30.82Hurt
increase window size from 8 to 32 (ablation)SemanIR · Gray denoising, Set12, σ=25PSNR: 31.01 -> 31.17Helped
increase window size from 8 to 32 (ablation)SemanIR · Color denoising, McMaster, σ=25PSNR: 33.20 -> 33.38Helped
train with random top-k rather than fixed top-k (ablation)SemanIR · JPEG CAR, denoising, and SR at low inference kPSNRHelped
increase k beyond 384 (ablation)SemanIR · image restoration tasksPSNRNo clear effect
use Torch-Gather instead of Triton for key-semantic attention (ablation)SemanIR · key-semantic attention, N=4096GPU memory: 2.61 GB -> 4.41 GBHurt
use Torch-Mask instead of Triton for key-semantic attention (ablation)SemanIR · key-semantic attention, N=4096GPU memory: 2.61 GB -> 6.83 GBHurt

Surprising findings

Limitations

Experimental setup

Datasets: DIV2K Flickr2K WED BSD400 GoPro Snow100K Raindrop Outdoor-Rain

Benchmarks: GoPro HIDE LIVE1 BSD500 CBSD68 McMaster Urban100 Set12 BSD68 Kodak Test1 SnowTest100k-L

Metrics: PSNR SSIM Params FLOPs Runtime

Baselines: SwinIR Restormer GRL HAT CAT EDT ART KiT DRUNet DnCNN FFDNet MPRNet

Builds on: Restormer SwinIR FlashAttention DRSformer KiT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy