Image

Image

Image

Image

How do identify a model as a Foundation(基础模型)?

Always see with foundation models:
general /robust to many different tasks

Often see with foundation models:

Large # params
Large amount of data
Self-supervised pre-training objective

自监督学习的目标:
将带有同类元素的照片和文字归为一类
Image

1、SimCLR VS CLIP

Image

SimCLR:只能实现图像的对比学习
CLIP:跨模态图文对比学习

Image

CLIP:先用海量图文对做无监督对比预训练,得到通用图像编码器,再拿这个编码器配合简单线性层,直接完成分类、检测、分割等各类视觉任务

Problem:想要做图像分类 / 检测 / 分割,必须提供该任务的标注数据,训练这个新增线性层,即不支持 Zero-Shot(零样本)

LLM的不同之处:支持 Zero-Shot(零样本)

Image

Image

Question:视觉语言模型(CLIP)怎么零样本使用?

Image

Solution:

待识别图片送入 Image Encoder,得到图像向量 image vector;
类别文字(比如 "Dog"等)送入 Text Encoder,得到文本向量 text vector;
计算两个向量的相似度匹配分数(图里 0.27),分数越高代表图片和这个文字描述越匹配(1-NN 近邻思想)。

improvement:

(1)使用完整描述短语,提升精度;

Image

(2)多短语消除偏见

Image