The Vision Transformer (ViT) processes an image by splitting it into a grid of fixed-size patches, linearly embedding each patch into a vector, and feeding the resulting sequence of patch embeddings through a standard Transformer encoder, the same self-attention architecture used for language, to produce a classification output. This patch-embedding approach lets ViT apply self-attention's global, all-pairs relational reasoning directly to images from the first layer onward, a capability convolutional networks only approximate gradually by stacking many layers of local convolution.