What Is Redundant at High Resolution? Efficient Attention and Feed-Forward Design for All-in-One Image Restoration
Lee et al. in Architectures
What is redundant at full resolution?
What Is Redundant at High Resolution? Efficient Attention and Feed-Forward Design for All-in-One Image Restoration
One model, three resolution regimes

HiGLR restores varied degradations in a four-stage U-Net. Large feature maps make global attention costly, so DSFFN mixes locally, BRHA routes at H/2 and H/4, and dense attention stays at H/8.
Attention redundancy shifts with resolution
A NAFNet attention audit on 75 AIO-5 crops retained 58.7% of attention mass with a 25% query-wise key budget; 92.87% of residual readout energy beyond uniform pooling was shared across queries.
The same query-wise budget retained 90.7% and 85.6% of attention mass, respectively, supporting sparse routing at intermediate scales.
Resolution changes which attention work is redundant.
DSFFN keeps spatial mixing compact
- 1
Mix compactly
Project the input to R channels, then depthwise-convolve neighboring pixels there.
- 2
Expand pointwise
Pointwise projections form expanded value and gate branches at width γC.
- 3
Fuse before writing
Lift compact context into the value path; GELU and sigmoid gate pointwise features, then project back. Fused inference avoids materializing expanded activations.
DSFFN keeps latency nearly flat as FFNs widen

The CDD-11 FFN ablation compares full-model latency as per-branch expansion γ changes. DSFFN stays at 22.37 to 22.98 ms from γ=1 to 4; halo-fused ConvFFN rises from 20.63 to 34.50 ms.
Can local mixing replace full-resolution attention?
AIO-5 ablation: only two full-resolution encoder SA layers replaced; same 1,794 inputs; all trained from scratch for 120 epochs, γ=3.
Spatial mixing is more rank-tolerant
With weights fixed, 50% PCA output-rank reduction of spatial contributions lowered CDD-11 PSNR by 1.89 dB in BioIR-B and 0.18 dB in MoCE-IR-S.
The same reduction of the intra-pixel contribution cost 4.49 dB and 0.86 dB. The complementary contribution stayed unchanged.
This asymmetry motivates DSFFN's compact spatial path.
BRHA pairs global coverage with routed detail
- 1
Condition block scores
Intermediate degradation descriptors condition block scores; an auxiliary classifier supervises their extractors in training, but inference needs no label.
- 2
Keep global coverage
Dense attention aggregates learned summaries from every block, so all image regions contribute coarse context.
- 3
Share selected routes
Each query block selects itself plus top-scoring remote blocks; its queries share indices but keep token-level attention weights.
- 4
Read residual values
Fine branch reuses shared projections but reads values minus block summaries, computed on the fly; its output joins coarse context.
Block sharing cuts latency with little PSNR change
CDD-11 ablation, 120 epochs; per-module latency at 512×512, batch 1, RTX 4090. Same variant in stages 2 and 3; Ind. is query-wise.
Residual values make BRHA branches complementary
In a 120-epoch CDD-11 ablation with log gates, coarse plus sparse attention scored 29.95 dB on raw values; separate K/V projections reached 30.25 dB.
This BRHA variant scored 30.37 dB: +0.42 versus raw values and +0.12 versus separate K/V, with 24% fewer attention-module parameters.
Here, residualizing values beats separate K/V projections.
Global summaries cushion smaller routing budgets

With weights fixed, panel (a) plots PSNR change relative to each model's k_r=16 result; bands are 95% scene-bootstrap intervals. At k_r=1, full BRHA's PSNR drop is less than half Sparse-only's.
CDD-11: higher PSNR with lower cost
CDD-11 cost table: 512×512, batch 1, RTX 4090; FP32 by default, BF16 selectively for attention cores. Gain is vs BioIR-B.
AIO-3 and AIO-5 averages also improve
Average RGB PSNR from AIO-3 and AIO-5 comparison tables; gains are versus CEA-IR. Parameters shown as reported.
What the evidence does not establish
Benchmark scope
Quality comparisons cover AIO-3, AIO-5 and CDD-11, not every restoration domain.
Diagnostic models
The attention audit uses a NAFNet variant; rank-compression tests use pretrained BioIR-B and MoCE-IR-S.
Latency setup
The 22.64 ms result uses 512×512 inputs, batch 1, on an RTX 4090; other GPUs and resolutions have separate timings.
Why it matters
- Assign operators by scale: local mixing at full resolution, routed attention in the middle, dense attention at the bottleneck.
- For large feature maps, test compact spatial mixing and summary-plus-residual attention against your quality and latency targets.
- Do these redundancy patterns persist across other restoration backbones and degradation mixtures?
16 upvotes on Hugging Face 15 slides, 4 min
5 days ago