Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

A Spitting Image: Modular Superpixel Tokenization in Vision Transformers

About

Vision Transformer (ViT) architectures traditionally employ a grid-based approach to tokenization independent of the semantic content of an image. We propose a modular superpixel tokenization strategy which decouples tokenization and feature extraction; a shift from contemporary approaches where these are treated as an undifferentiated whole. Using on-line content-aware tokenization and scale- and shape-invariant positional embeddings, we perform experiments and ablations that contrast our approach with patch-based tokenization and randomized partitions as baselines. We show that our method significantly improves the faithfulness of attributions, gives pixel-level granularity on zero-shot unsupervised dense prediction tasks, while maintaining predictive performance in classification tasks. Our approach provides a modular tokenization framework commensurable with standard architectures, extending the space of ViTs to a larger class of semantically-rich models.

Marius Aasan, Odd Kolbj{\o}rnsen, Anne Schistad Solberg, Ad\'in Ramirez Rivera• 2024

Related benchmarks

TaskDatasetResultRank
Part SegmentationImageNet (IN)
mIoU (M2O)12.37
13
Part SegmentationIN-S919
M2O mIoU53.47
13
Part SegmentationPartImageNet (PartIN)
M2O mIoU27.83
13
Part SegmentationCOCO
M2O mIoU8.41
13
Part SegmentationADE20K
M2O mIoU12.89
13
Showing 5 of 5 rows

Other info

Follow for update