Papers › A Spitting Image: Modular Superpixel Tokenization in Vision Transformers

A Spitting Image: Modular Superpixel Tokenization in Vision Transformers

14 Aug 2024arXiv:2408.07680archive 2025-07-28

Marius Aasan, Odd Kolbjørnsen, Anne Schistad Solberg, Adín Ramirez Rivera

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.07680")

Code

Syntology Ran 16 of 18 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dsb-ifi/spit officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 16 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
2unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from dsb-ifi/spit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

argmax_cosine_pytorch dsb-ifi/spit/spit/utils/cossimargmax.py official repository ran MIT (permissive) · 50f7b854dc076644 · report
asinh_contrast dsb-ifi/spit/spit/tokenizer/proc.py official repository ran fingerprinted MIT (permissive) · 0aa7d593304219d8 · report
cc_cpu dsb-ifi/spit/spit/utils/concom.py official repository ran MIT (permissive) · e8f0407093a971a2 · report
chunked_voronoi dsb-ifi/spit/spit/tokenizer/voronoi.py official repository ran MIT (permissive) · 52da940c3007a4cf · report
fast_uidx_1d dsb-ifi/spit/spit/utils/indexing.py official repository ran MIT (permissive) · 83dbe085029e03ec · report
fast_uidx_long2d dsb-ifi/spit/spit/utils/indexing.py official repository ran MIT (permissive) · 1e90c46bf4eea599 · report
getmem dsb-ifi/spit/spit/tokenizer/tokenizer.py official repository ran MIT (permissive) · 9ac935a92bba0335 · report
init_segedges dsb-ifi/spit/spit/tokenizer/tokenizer.py official repository ran fingerprinted MIT (permissive) · 97cb99b5105ed904 · report
kuma_contrast1 dsb-ifi/spit/spit/tokenizer/proc.py official repository ran fingerprinted MIT (permissive) · 068991f0659ecb8d · report
kuma_contrast1_ dsb-ifi/spit/spit/tokenizer/proc.py official repository ran fingerprinted MIT (permissive) · 64dd70cd2c44acf4 · report
packed_scatter_argmax dsb-ifi/spit/spit/utils/cossimargmax.py official repository ran MIT (permissive) · 76a753ccff598f7b · report
scatter_add_1d dsb-ifi/spit/spit/utils/scatter.py official repository ran MIT (permissive) · 9165c5ad579d7e88 · report
scatter_mean_2d dsb-ifi/spit/spit/utils/scatter.py official repository ran MIT (permissive) · 8cf0344d23aba65d · report
scatter_range_2d dsb-ifi/spit/spit/utils/scatter.py official repository ran MIT (permissive) · f8658b85d5a90abb · report
unravel_index dsb-ifi/spit/spit/utils/indexing.py official repository ran MIT (permissive) · 6b43e964eb98fb3e · report
voronoi dsb-ifi/spit/spit/tokenizer/voronoi.py official repository ran MIT (permissive) · f36f819b58509a1e · report
fast_pseudo_voronoi dsb-ifi/spit/spit/tokenizer/voronoi.py official repository unverified MIT (permissive) · 228314a8add82334 · report
img_coords dsb-ifi/spit/spit/tokenizer/tokenizer.py official repository unverified MIT (permissive) · 771897acedfab466 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections