the.ai

Multimodal / Vision

verified

Patch Embedding

Attention needs a sequence, and an image is a grid. Patch embedding cuts the image into fixed squares, flattens each one, and projects it to a vector — so a picture becomes a short sequence of tokens the same machinery can read. A 224-pixel image at 16-pixel patches is 196 tokens, which is an ordinary sentence length.

Viz primitive · budget-splittokens = 196

tokens holds 10% of the budget; rest holds the remaining 90%.

Sequence length one image produces, against the rest of an attention budget. Drag the token count to watch a smaller patch crowd out everything else.

196

Reviewed by opendroid · 2026-08-04

  • arXiv:2010.11929 — An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale