Home Tools Glossary Patch Embedding
Technique

Patch Embedding

Image Patch Embedding

/pach em-bed-ing/

The process of splitting an image into non-overlapping square patches and linearly projecting them into vector embeddings.

In plain English
Patch embedding acts like cutting a photograph into small square puzzle pieces and converting each piece into a numerical vector so a transformer model can read it like text.
Real-world example
Converting high-resolution medical imaging scans into patch sequences for Vision Transformer ingestion.
Technical definition
Patch embedding is a preprocessing technique used in Vision Transformers (ViTs) that segments 2D images into flattened non-overlapping patches (e.g., 16x16 pixels). Each patch is linearly projected into a vector embedding space, serving as discrete input tokens analogous to text tokens in NLP architectures.