FeedFormer
A semantic segmentation model whose transformer decoder uses encoder features as its queries.
Segmentation · 495 operations Checked
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
- Task
- Segmentation
- Parameters
- 4.4M
- Operations
- 495
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2023
- Cited by
- 74 (as of 24 October 2026)
- Authors
- Jae-hun Shim, Hyunwoo Yu, Kyeongbo Kong, Suk-Ju Kang
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16664
- Graph hash
- 512a73ef2b8f08563ed87362900a80cca7faceb625995d4ea07ae16552ad5c8b
- Skeleton hash
- 2098736e9d5d94ce5de51f7e8b5c13085d27dafa8faf9aa5fb5ac3cce0582b14
- Architecture hash
- fe3dd665eb8ed5ee4973cbf0cd10e791b927845bd5c83f99f3280071bd40480a
- Diagram SHA-256
- bd354049565a050bb69b3977d9a8ef6cacc3293bdee554adc56f7d61ed1625f9
- 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
What it is
FeedFormer is a semantic segmentation model, and its new part is the decoder: a transformer decoder that uses features as queries instead of class-wise learnable queries. The paper's starting point is that most transformer work on segmentation designs efficient encoders and rarely gives attention to the decoder.
The decoder is built on cross-attention. The high-level encoder features act as the queries, and the lowest-level feature acts as the key and value. Through attention, each high-level feature collects the detail information most relevant to it from the lowest-level feature. To save computation, the encoder blocks take the place of the self-attention module that a transformer decoder normally starts with. The lowest-level feature and all decoded features are then concatenated and passed through a prediction head to give the segmentation map.
The authors pair the decoder with Mix Transformer (MiT) and Lite Vision Transformer (LVT) encoders. The paper reports that FeedFormer-B0, the variant with the MiT-B0 encoder, reaches 39.2% mIoU on ADE20K with 4.5M parameters and 7.8 GFLOPs. Against SegFormer-B0 on the same dataset, that is 1.8% higher mIoU with 7.1% less computation.
Key idea. FeedFormer decodes high-level encoder features as queries against the lowest-level feature as key and value, replacing class-wise learnable queries in a transformer segmentation decoder.
- FeedFormer
- Feature Enhancing Decoder transFormer
- FeedFormer-B0
- semantic segmentation
- transformer decoder
- feature query decoder
- efficient segmentation
- ADE20K
- Cityscapes
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Shim_2023, title={FeedFormer: Revisiting Transformer Decoder for Efficient Semantic Segmentation}, volume={37}, ISSN={2159-5399}, url={http://dx.doi.org/10.1609/aaai.v37i2.25321}, DOI={10.1609/aaai.v37i2.25321}, number={2}, journal={Proceedings of the AAAI Conference on Artificial Intelligence}, publisher={Association for the Advancement of Artificial Intelligence (AAAI)}, author={Shim, Jae-hun and Yu, Hyunwoo and Kong, Kyeongbo and Kang, Suk-Ju}, year={2023}, month=June, pages={2263–2271} }