Perceiver is a modality-agnostic classification model in which a small learned "latent array" repeatedly draws information from a huge input (pixels, audio waveforms, point clouds, and so on) through cross-attention, and a deep Transformer runs on that small latent array. It was published in 2021 by Jaegle et al. of DeepMind and accepted at ICML 2021.
Earlier models were built separately for each kind of input: convolutions for images, CNNs on spectrograms for audio, and dedicated networks for point clouds. Assumptions such as convolution's "look at nearby pixels" make learning efficient but tie a model to one kind of input. Self-attention, on the other hand, makes no assumptions about how the input is arranged, but its cost grows with the square of the input length. A 224×224 image has 50,176 pixels, and computing self-attention between every pair of pixels is impractical. That is why ViT groups an image into 16×16 patches before feeding it to a Transformer.
Perceiver solved this problem by making attention asymmetric.
- Summarize the input into the latent array with cross-attention: Queries come from a small latent array (512 elements on ImageNet), while keys and values come from the huge input. The cost is the product of the input size and the latent array size , , not .
- Run a deep Transformer on the latent array: Self-attention on the latent array costs , so layers can be stacked regardless of the input size.
- Revisit the input many times: Cross-attention and the latent Transformer alternate repeatedly, pulling the needed information from the input as many times as necessary.
The position of each input element is conveyed by concatenating a Fourier-feature position encoding to it. With this mechanism, Perceiver took raw pixels without any convolution and reached 78.0% on ImageNet, about the same accuracy as ResNet-50 (77.6%) and ViT-B/16 (77.9%). With the same model form, it also came close to dedicated models on audio, video, and point cloud classification.

