DINO Explained: Self-Supervised Learning with Distillation and EMA
How DINO Learns Visual Representations Without Labels
DINO Explained: Self-Supervised Learning with Distillation and EMA

How DINO Learns Visual Representations Without Labels
In supervised learning, a model learns from images and labels.
image of a dog → dog
image of a car → car
But in self-supervised learning, there are no labels. The model has to learn useful visual representations directly from images.
DINO, short for Distillation with No Labels, is a self-supervised learning method that solves this problem using a simple idea:
Different views of the same image should produce similar representations.
The Main Idea
DINO creates multiple augmented views from one image.
For example:
Original image
→ global crop
→ local crop
→ another local crop
Even though these crops look different, they come from the same image. So the model should understand that they share the same semantic meaning.
This becomes the learning signal.
Instead of using human labels, DINO teaches the model to make consistent predictions across different views of the same image.
Student and Teacher Networks
DINO uses two networks:
NetworkRoleStudentLearns through gradient descentTeacherProvides stable target predictions
The student tries to match the teacher’s output.
However, the teacher is not a separate pretrained model. Instead, it is created from the student using Exponential Moving Average, or EMA.
Conceptually:
teacher = momentum × teacher + (1 - momentum) × student
This means the teacher changes slowly over time.
The student learns from the teacher, and the teacher is gradually updated from the student. This creates a stable self-training loop.
Why EMA Matters
If the teacher changed too quickly, the student would learn from unstable targets.
EMA solves this by making the teacher a smoother version of the student.
The teacher represents not just the current student, but an average of previous student states. Because of this, it can provide more stable learning signals.
This is one of the key reasons DINO works well.
Multi-Crop Training
DINO also uses multi-crop training.
The teacher usually sees large global crops, while the student sees both global and local crops.
This encourages the student to connect local details with global meaning.
For example, even if the student sees only part of an object, it should still learn a representation consistent with the full image.
This helps the model learn semantic visual features without labels.
Preventing Collapse
A common problem in self-supervised learning is collapse.
Collapse means the model gives the same output for every image.
dog image → same output
car image → same output
tree image → same output
If this happens, the model is not learning meaningful representations.
DINO avoids collapse using two important techniques:
TechniquePurposeCenteringPrevents outputs from being dominated by one directionSharpeningMakes teacher predictions more confident
Centering keeps the output balanced. Sharpening makes the teacher’s signal clearer.
Together, they help the model learn useful and diverse representations.
Why DINO Is Important
DINO became especially influential because it works very well with Vision Transformers.
One interesting result is that DINO-trained models often learn attention maps that focus on meaningful object regions, even without segmentation labels.
This shows that the model is not just learning low-level image patterns. It is learning semantic structure from images.
Key Takeaways
DINO can be summarized in one sentence:
DINO learns visual representations by making different views of the same image agree.
Its core components are:
Self-supervised learning
Student-teacher distillation
EMA teacher update
Multi-crop training
Centering and sharpening
DINO is powerful because it removes the need for human labels while still learning meaningful visual features.
By using a stable teacher and forcing consistency across image views, DINO shows how self-supervised learning can produce strong visual representations from raw images alone.
메타데이터
- post_id
- 6024642387c7
- slug
- dino-explained-self-supervised-learning-with-distillation-and-ema-6024642387c7
- url
- https://medium.com/@juneekeyun/dino-explained-self-supervised-learning-with-distillation-and-ema-6024642387c7
- canonical_url
- https://medium.com/@juneekeyun/dino-explained-self-supervised-learning-with-distillation-and-ema-6024642387c7
- author_url
- https://medium.com/@juneekeyun
- status
- ok
- fetched_at
- 2026-06-23 06:34:20