Glossary

What is Vision transformer?

In Turkish: Görü transformerı (ViT) · Topic: Models and training

An image model based on the transformer architecture that cuts a picture into small fixed-size patches and processes them the way a language model processes words.

How does it work?

The image is divided into equal squares, or patches. Each patch is turned into a list of numbers, position information is added, and the sequence is fed to a transformer just like the words of a sentence. The attention mechanism computes how each patch relates to every other patch, so connections between distant regions can be made in a single step. The resulting representation is then connected to a task such as classification or object detection.

Why does it matter?

ViT showed that the same core architecture can serve both vision and language, which made multimodal models easier to build. It typically performs best when trained on very large datasets; with little data, CNNs are often the better choice.

Example

In many models that can look at a photo and answer questions about it, the vision component is a ViT-style encoder that splits the photo into patches.

FAQ

Why does a ViT split the image into patches?

Attention compares every element with every other one, so the cost grows quickly with the number of elements. Working with patches instead of individual pixels keeps that cost manageable.

Has ViT replaced CNNs?

Not entirely. ViT stands out in large-scale work, but CNNs remain common in tasks with limited data or hardware.

All terms