Is an Image Also Worth 16x16=256 Superpixels? A Framework for Attentional Image Classification

Pedro Henrique da Costa Avelar, Anderson R. Tavares, Luís C. Lamb
5/26/2026
cs.CVcs.LG
transformer-attentiongnn

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Superpixel-based image classification has traditionally leveraged graph neural networks (GNNs) for processing irregular image representations. Recent advances in computer vision, driven by Vision Transformers (ViTs), have introduced new paradigms in self-attentional models, surpassing convolutional neural networks (CNNs) in various tasks.

Show full abstract

However, a synergistic connection between GNNs, superpixels, and transformers remains unexplored. In this work, we propose Superpixel Transformers (SPT), a novel framework that unifies superpixel-based image classification and ViTs. SPT generalizes the Superpixel Image Classification with Graph Attention Networks (SICGAT) model and ViT to support arbitrary superpixel-based chunking strategies, connectivity graphs, and positional encodings. We introduce refinements including a multidimensional sine-cosine positional encoding and an enriched patch data structure that fully incorporates superpixel shape and color information. By testing SPT across datasets such as CIFAR10, FashionMNIST, and Imagenette, with various superpixel generation and graph connectivity strategies, we demonstrate that SPT achieves superior performance compared to previous superpixel-based GNN methods and remains competitive with ViTs. Notably, our approach addresses the limitations of SICGAT, such as information loss during pixel aggregation, and shows how constrained graph connectivity can enhance ViT performance. SPT bridges the gap between superpixel-based and transformer models, opening avenues for cross-domain generalization and future innovations in hybrid attentional frameworks, and showing that an image can also be worth $16\times16$ superpixels.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{avelar2026image,
  title  = {Is an Image Also Worth 16x16=256 Superpixels? A Framework for Attentional Image Classification},
  author = {Pedro Henrique da Costa Avelar and Anderson R. Tavares and Luís C. Lamb},
  year   = {2026},
  eprint = {2605.27144},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.27144v1}
}

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/2605.27144.svg)](https://codeofpaper.com/paper/2605.27144)

Discussion