All models

kbnet_s_denoise

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

39 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 (53 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
5.2K
Operations
39
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
m11943
Graph hash
0936fe9c159fe720afe71fdde226d414f11fb4b484ae18214e6498d6e21ef690
Skeleton hash
895735aa1b66673bd26e6d3515868aff9f02db1c3921a1610fd2f4be5f09b5c9
Architecture hash
375dccd46daadd9d4db1ad642992e60cc2162995183d12ab9dea2e0cbee8d1b8
Diagram SHA-256
11d1afd04fde3495351a322c9cea66e4c7916dba75eb8dda02bbfa7e97d73c5a
TorchLens version
2.35.3
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_s_denoise:build_kbnet_s_denoise: build({})

What it is

This is the KBNets variant, whose feed-forward block is the normal FFN with the SimpleGate activation function.

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}, 
}