All models

kbnet_l_deblur

Image restoration U-Net whose convolution kernels are mixed per pixel from learnable kernel bases.

57 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (32 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
kbnet
Parameters
13.3K
Operations
57
Framework
PyTorch
Recurrent
No
Published
2023
Cited by
128 (as of 29 November 2026)
Authors
Yi Zhang, Dasong Li, Xiaoyu Shi and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11942
Graph hash
7921f898ef72300e3aff6c6693ba1dad867c13a57eddef9089e576229a9e7527
Skeleton hash
cab06e68806d6031b637e7319ec2b47fcdde4ebd2ca6c16b6e5dfeeb00613f92
Architecture hash
5ca0189325215f2638cdf682f5ef7f5247bd28cb1ee12e5f88ace0d63b1d6259
Diagram SHA-256
7839a79fac79e9f9a9f372acf88634d47b2c791e9c76546c3e1cd90e37ad949f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.kbnet_l_deblur:build_kbnet_l_deblur: build({})

What it is

This is the KBNetl variant, whose feed-forward block uses the heavier transposed attention from Restormer.

About this model's family

KBNet, the kernel basis network, is a U-shaped image restoration model that aims to remove the unavoidable degradation of input images and produce clean outputs. Its argument is about how to aggregate spatial information: static convolutional kernels cannot aggregate spatial information adaptively, while transformers can but lack desirable inductive biases of convolutions and require heavy computational costs.

The kernel basis attention (KBA) module introduces learnable kernel bases to model representative image patterns for spatial information aggregation. At each spatial location the bases are linearly and adaptively fused by predicted pixel-wise coefficients to obtain aggregation weights, and a separate lightweight convolution branch predicts those coefficients. That differs from dynamic convolutions and kernel prediction networks, which predict all the kernel weights directly, and the paper argues it is more lightweight and easier to optimize.

Around the KBA module sits a multi-axis feature fusion (MFF) block in which channel attention, spatial-invariant and pixel-wise adaptive feature extractions run in parallel and are fused by point-wise production. The MFF block is followed by a feed-forward network at each stage, and the two captured variants differ there: KBNets uses the normal FFN with the SimpleGate activation, while KBNetl uses the heavier transposed attention from Restormer. Their computational costs are around 70G and 108G MACs respectively.

The authors report state-of-the-art performances on more than ten benchmarks over image denoising, deraining and deblurring while requiring less computational cost than previous SOTA methods. On gray-image Gaussian denoising it outperforms Restormer slightly while using less than half of its MACs. On the SIDD real-world denoising dataset it beats Restormer, Uformer, MAXIM and NAFNet with fewer MACs. Code was promised at github.com/zhangyi-3/kbnet.

Key idea. Spatially adaptive aggregation from a small set of learnable kernel bases, fused per pixel by predicted coefficients, so the network keeps the inductive biases of convolutions while handling various spatial contexts adaptively.

  • KBNet
  • Kernel Basis Network
  • kernel basis attention
  • KBA
  • KBNet-S
  • KBNet-L
  • image restoration
  • image denoising
  • deblurring
  • deraining
  • SIDD
  • GoPro
  • dynamic kernel
  • low-level vision

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhang2023kbnetkernelbasisnetwork,
      title={KBNet: Kernel Basis Network for Image Restoration}, 
      author={Yi Zhang and Dasong Li and Xiaoyu Shi and Dailan He and Kangning Song and Xiaogang Wang and Hongwei Qin and Hongsheng Li},
      year={2023},
      eprint={2303.02881},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2303.02881}, 
}