Date 2/24; Topic: 正确认识 ChatGPT -《MACHINE LEARNING (HUNG-YI LEE)》学习笔记

· · 个人记录

(MACHINE LEARNING 2023 SPRING)

Date 2/24; Topic: 正确认识 ChatGPT

Class Material

机器学习2023规则说明

略

ChatGPT 原理剖析 (1/3) —— 对 ChatGPT 的常见误解

ChatGPT 真正在做的事是“文字接龙”。

ChatGPT 原理剖析 (2/3) —— 预训练 (Pre-train)

预训练(自监督式学习)\rightarrow\ GPT(基石模型)--监督式学习,指令微调 \rightarrow\ ... --增强式学习 \rightarrow\ ChatGPT

ChatGPT 原理剖析 (3/3) —— ChatGPT所带来的研究问题

  1. 如何精确提出需求
  2. 如何更正错误
  3. 侦测 AI 生成的物件
  4. 避免泄露秘密

用 ChatGPT 和 Midjourney 来玩文字冒险游戏

略

Extra Material

ChatGPT (可能)是怎么炼成的

GPT = Generative Pre-trained Transformer

  1. 学习文字接龙
  2. 人类老师引导文字接龙的方向
  3. 模仿人类老师的喜好
  4. 用增强式学习向模拟老师学习

Optional Material

Regression (Case Study: Predicting Pokémon CP)

How about two parameters?

w^0 - η\dfrac{∂L}{∂w} \mid_{w=w^0,b=b^0} \rightarrow w^1$,$b^0 - η\dfrac{∂L}{∂w} \mid_{w=w^0,b=b^0} \rightarrow b^1

Gradient:

In linear regression, the loss function L is convex.

Model Selection

Back to step 1: Redesign the Model

equal:

Back to step 2: Regularization(正则化)

Classification (Case Study: Pokemon classification)

How to do Classification

Ideal Alternatives

Generative Model(生成模型)

Gaussian Distribution(正态分布)f_μ,∑x

Maximum Likelihood(极大似然估计)

We assume samples generate from the Gaussian (μ*, ∑*) with the maximum likelihood

Logistic Regression

Step 1: Function Set

Step 2: Goodness of a Function

Step 3: Find the best function

Generative v.s. Discriminative

Multi-class Classification _{(3\ classes\ as\ example)}

级联逻辑回归模型