Self-supervised Learning
Prof. Seungchul Lee
Industrial AI Lab.
Supervised Learning and Transfer Learning
2
Knowledge Transfer
3
Supervised Learning
4
Self-supervised Learning
5
Self-supervised Pretext Tasks
6
Image from http://cs231n.stanford.edu/
image completion
rotation prediction
“jigsaw puzzle”
colorization
Pretext Task – Context Prediction
7
Carl Doersch, Abhinav Gupta, Alexei A. Efros, 2015, "Unsupervised Visual Representation Learning by Context Prediction," Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 1422-1430.
Pretext Task – Context Prediction
8
Carl Doersch, Abhinav Gupta, Alexei A. Efros, 2015, "Unsupervised Visual Representation Learning by Context Prediction," Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 1422-1430.
Pretext Task – Jigsaw Puzzle
9
Noroozi, M., and Favaro, P., 2016, "Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzles," Computer Vision – ECCV 2016, 69–84.
Pretext Task – Jigsaw Puzzle
10
Noroozi, M., and Favaro, P., 2016, "Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzles," Computer Vision – ECCV 2016, 69–84.
Pretext Task – Image Colorization
11
Zhang, R., Isola, P., and Efros, A. A., 2016, "Colorful Image Colorization," Computer Vision – ECCV 2016, 649–666.
Pretext Task – Image Colorization
12
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Grayscale filter
Pretext Task – Image Colorization
13
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Pretext Task – Image Super-resolution
14
Make it smaller (downsampling)
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Pretext Task – Image Super-resolution
15
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Pretext Task – Image Inpainting
16
Random missing region
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Pretext Task – Image Inpainting
17
Image from https://amitness.com/2020/02/illustrated-self-supervised-learning/
Deep Artificial Neural Networks
18
Class 1
Class 2
…
…
…
…
…
…
nonlinear
linear
Feature learning
Classification
Output
Input
Benefits of Self-supervised Learning
19
Pipeline of Self-supervised Learning
20
Jing, L., & Tian, Y., 2021, "Self-supervised visual feature learning with Deep Neural Networks: A survey," IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(11), 4037–4058.
Downstream Tasks
21
Pretext Task – Rotation
22
Spyros Gidaris, Praveer Singh, & Nikos Komodakis, 2018, "Unsupervised Representation Learning by Predicting Image Rotations," Le Centre Pour La Communication Scientifique Directe - HAL - Inria (2018).
Self-supervised Learning with RotNet in TensorFlow
23
Input Data Summary and Key Concept
24
Pretext Task – Input Image Rotation
25
Pretext Task – Build CNN Model
26
Pretext Task – Training
27
Downstream Task – Training and Result
28
Downstream Task – MNIST Image Classification
29
Supervised Learning for Comparision
30
Self-supervised Learning vs. Supervised Learning
31
Self-supervised Learning in LLM
32
Language Modeling
33
Language Modeling
34
Recipe for Creating a Language Model
35
Self-supervised Learning
36
Exploiting a Pre-trained Model: Fine-Tuning
37
Foundation Model
The Second Kind of Label: Comparisons
38
LLM by SSL + Reinforcement Learning