Module 11: Vision Foundations, CNNs to ViT

Vision foundations for multimodal AI: from CNNs to Vision Transformers, patch embedding, CLS token, and CLIP, SigLIP, DINOv2 encoders.

May 28, 20261 min readFollow

Topics You Will Master

The conceptual bridge from CNNs to Vision Transformers
ViT architecture: image as a sequence of patches, patch embedding, CLS token
Positional encoding for 2D inputs and attention over visual tokens
Pre-trained vision encoders: CLIP, SigLIP, DINO / DINOv2

Module Overview

This module introduces the vision half of multimodal systems. It explains how the Transformer was adapted to images, the architectural pieces unique to Vision Transformers, the inductive-bias trade-off against CNNs, and the pre-trained encoders that serve as the visual backbone of modern VLMs and multimodal RAG.

Learning Objectives

  • Explain the conceptual transition from convolutional networks to Vision Transformers.
  • Describe patch embedding, the CLS token, and 2D positional encoding.
  • Interpret ViT attention maps and articulate the inductive-bias trade-off versus CNNs.
  • Compare CLIP, SigLIP, and DINO/DINOv2 by training objective and use case.

Topics Covered

From CNN to ViT Architecture

  • From CNN to Vision Transformer: the conceptual bridge
  • ViT architecture deep dive
  • Image as a sequence of patches
  • Patch embedding
  • The CLS token
  • Positional encoding for 2D inputs
  • Transformer encoder on visual tokens

Attention Visualization & CNN vs ViT Trade-offs

  • Attention maps: what a ViT sees
  • CNN vs ViT: inductive bias and the core trade-off

Pre-Trained Vision Encoders

  • CLIP: contrastive language-image pre-training
  • SigLIP: sigmoid loss variant
  • DINO / DINOv2: self-supervised vision

Key Concepts & Terminology

Patch tokenisation, contrastive pre-training, sigmoid vs softmax contrastive loss, self-supervised representation learning, inductive bias, frozen vision backbone.

Tools & Frameworks Referenced

CLIP, SigLIP, DINO / DINOv2 pre-trained encoders.

Prerequisites

Modules 01-03 (Transformer foundations).

Found this useful? Keep building with me.

New tutorials every week on YouTube: or go deeper with a full structured course.

Find this tutorial useful?

Subscribe to our YouTube channels for more practical production walk-throughs.

Discussion & Comments