TokenFusion
A vision transformer that fuses RGB and depth by replacing uninformative tokens with the other modality's features.
Segmentation · 3,623 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
- 45.9M
- Operations
- 3,623
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- CVPR 2022
- Cited by
- 272 (as of 27 October 2026)
- Authors
- Yikai Wang, Xinghao Chen, Lele Cao and others
- Source
- GitHub: yikaiw/TokenFusion
- License
- MIT
- 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
- m20986
- Graph hash
- e359f329d4df78c5722ca827dccff970d96b74d3da57da5286f4d70916544161
- Skeleton hash
- e86e763bccd3c5d087e5545e1d98608df5fdf4bf4b2a747839c2834a737713db
- Architecture hash
- fd175d17e05a24e8a2e7ea3c7e5f150f27e181161f20bc52f501c8253424a83a
- Diagram SHA-256
- 1848ff86a02c8bb985b3574b4ca27e78f063653f10230d99ebdd1d9ad7311d8c
- 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
TokenFusion is a method for fusing several input modalities inside a transformer for vision tasks. The paper starts from a concern: feeding multiple modalities to a vision transformer could improve performance, yet the attention weights within each modality may be diluted.
To fuse the modalities, TokenFusion dynamically detects uninformative tokens and substitutes them with projected and aggregated features from the other modalities. Residual positional alignment is also adopted so that the alignment between modalities can be used explicitly after fusion. The paper says this lets the transformer learn correlations among multimodal features while the single-modal transformer architecture remains largely intact.
The paper evaluates three vision tasks: multimodal image-to-image translation, RGB-depth semantic segmentation, and 3D object detection with point cloud and images. For segmentation with RGB and depth input, the released code starts from a SegFormer model pretrained on ImageNet. With a SegFormer-B3 backbone, the repository lists a single-scale mean IoU of 54.8% on NYUDv2.
Key idea. TokenFusion detects uninformative tokens in a multimodal vision transformer and substitutes them with projected and aggregated features from the other modalities, leaving the single-modal architecture largely intact.
- tokenfusion
- multimodal token fusion
- token fusion
- multimodal fusion
- vision transformer
- rgb-depth semantic segmentation
- rgb-d segmentation
- image-to-image translation
- 3d object detection
- nyudv2
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2022multimodaltokenfusionvision,
title={Multimodal Token Fusion for Vision Transformers},
author={Yikai Wang and Xinghao Chen and Lele Cao and Wenbing Huang and Fuchun Sun and Yunhe Wang},
year={2022},
eprint={2204.08721},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2204.08721},
}