Channel Vision Transformers: An Image Is Worth C x 16 x 16 Words

Yujia Bao, Srinivasan Sivanandan, Theofanis Karaletsos
9/1/2023
62 citations
transformer-attention

Official code: insitro/ChannelViT (74 stars, Python, last commit 2024-02-22).

Abstract

Vision Transformer (ViT) has emerged as a powerful architecture in the realm of modern computer vision. However, its application in certain imaging fields, such as microscopy and satellite imaging, presents unique challenges.

Show full abstract

In these domains, images often contain multiple channels, each carrying semantically distinct and independent information. Furthermore, the model must demonstrate robustness to sparsity in input channels, as they may not be densely available during training or testing. In this paper, we propose a modification to the ViT architecture that enhances reasoning across the input channels and introduce Hierarchical Channel Sampling (HCS) as an additional regularization technique to ensure robustness when only partial channels are presented during test time. Our proposed model, ChannelViT, constructs patch tokens independently from each input channel and utilizes a learnable channel embedding that is added to the patch tokens, similar to positional embeddings. We evaluate the performance of ChannelViT on ImageNet, JUMP-CP (microscopy cell imaging), and So2Sat (satellite imaging). Our results show that ChannelViT outperforms ViT on classification tasks and generalizes well, even when a subset of input channels is used during testing. Across our experiments, HCS proves to be a powerful regularizer, independent of the architecture employed, suggesting itself as a straightforward technique for robust ViT training. Lastly, we find that ChannelViT generalizes effectively even when there is limited access to all channels during training, highlighting its potential for multi-channel imaging under real-world conditions with sparse sensors. Our code is available at https://github.com/insitro/ChannelViT.

View on arXivView PDF

Code Implementations(1)

insitro/ChannelViTOfficial100%

Channel Vision Transformers: An Image Is Worth C x 16 x 16 Words

7410PythonOct 3, 20232 years agoNOASSERTION
computer-visionmachine-learningvision-transformer

Similar Papers

Cite this paper

@article{bao2023channel,
  title  = {Channel Vision Transformers: An Image Is Worth C x 16 x 16 Words},
  author = {Yujia Bao and Srinivasan Sivanandan and Theofanis Karaletsos},
  year   = {2023},
  eprint = {2309.16108},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.16108},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.16108.svg)](https://codeofpaper.com/paper/2309.16108)

Discussion