Disclaimer: The team releasing Perceiver IO did not write a model card for this model so this model card has been written by the Hugging Face team.
Model description
Perceiver IO is a transformer encoder model that can be applied on any modality (text, images, audio, video, ...). The core idea is to employ the self-attention mechanism on a not-too-large set of latent vectors (e.g. 256 or 512), and only use the inputs to perform cross-attention with the latents. This allows for the time and memory requirements of the self-attention mechanism to not depend on the size of the inputs.
To decode, the authors employ so-called decoder queries, which allow to flexibly decode the final hidden states of the latents to produce outputs of arbitrary size and semantics. For image classification, the output is a tensor containing the logits, of shape (batch_size, num_labels).
drawing
Perceiver IO architecture.
As the time and memory requirements of the self-attention mechanism don't depend on the size of the inputs, the Perceiver IO authors can train the model directly on raw pixel values, rather than on patches as is done in ViT. This particular model only adds learned 1D position embeddings to the pixel values, hence it is given no privileged information about the 2D structure of images.
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by replacing the classification decoder.
Intended uses & limitations
You can use the raw model for image classification. See the model hub to look for other fine-tuned versions on a task that may interest you.
This model was pretrained on ImageNet, a dataset consisting of 14 million images and 1k classes.
Training procedure
Preprocessing
Images are center cropped and resized to a resolution of 224x224 and normalized across the RGB channels. Note that data augmentation was used during pre-training, as explained in Appendix H of the paper.
Pretraining
Hyperparameter details can be found in Appendix H of the paper.
Evaluation results
This model is able to achieve a top-1 accuracy of 72.7 on ImageNet-1k, despite having no privileged information about the 2D structure of images.
BibTeX entry and citation info
bibtex
1@article{DBLP:journals/corr/abs-2107-14795,
2 author = {Andrew Jaegle and
3 Sebastian Borgeaud and
4 Jean{-}Baptiste Alayrac and
5 Carl Doersch and
6 Catalin Ionescu and
7 David Ding and
8 Skanda Koppula and
9 Daniel Zoran and
10 Andrew Brock and
11 Evan Shelhamer and
12 Olivier J. H{\'{e}}naff and
13 Matthew M. Botvinick and
14 Andrew Zisserman and
15 Oriol Vinyals and
16 Jo{\~{a}}o Carreira},
17 title = {Perceiver {IO:} {A} General Architecture for Structured Inputs {\&}
18 Outputs},
19 journal = {CoRR},
20 volume = {abs/2107.14795},
21 year = {2021},
22 url = {https://arxiv.org/abs/2107.14795},
23 eprinttype = {arXiv},
24 eprint = {2107.14795},
25 timestamp = {Tue, 03 Aug 2021 14:53:34 +0200},
26 biburl = {https://dblp.org/rec/journals/corr/abs-2107-14795.bib},
27 bibsource = {dblp computer science bibliography, https://dblp.org}
28}