Proximal Policy Optimization | ChatGPT uses this

  Рет қаралды 12,008

CodeEmporium

CodeEmporium

Күн бұрын

Let's talk about a Reinforcement Learning Algorithm that ChatGPT uses to learn: Proximal Policy Optimization (PPO)
ABOUT ME
⭕ Subscribe: kzbin.info...
📚 Medium Blog: / dataemporium
💻 Github: github.com/ajhalthor
👔 LinkedIn: / ajay-halthor-477974bb
PLAYLISTS FROM MY CHANNEL
⭕ Reinforcement Learning: • Reinforcement Learning...
Natural Language Processing: • Natural Language Proce...
⭕ Transformers from Scratch: • Natural Language Proce...
⭕ ChatGPT Playlist: • ChatGPT
⭕ Convolutional Neural Networks: • Convolution Neural Net...
⭕ The Math You Should Know : • The Math You Should Know
⭕ Probability Theory for Machine Learning: • Probability Theory for...
⭕ Coding Machine Learning: • Code Machine Learning
MATH COURSES (7 day free trial)
📕 Mathematics for Machine Learning: imp.i384100.net/MathML
📕 Calculus: imp.i384100.net/Calculus
📕 Statistics for Data Science: imp.i384100.net/AdvancedStati...
📕 Bayesian Statistics: imp.i384100.net/BayesianStati...
📕 Linear Algebra: imp.i384100.net/LinearAlgebra
📕 Probability: imp.i384100.net/Probability
OTHER RELATED COURSES (7 day free trial)
📕 ⭐ Deep Learning Specialization: imp.i384100.net/Deep-Learning
📕 Python for Everybody: imp.i384100.net/python
📕 MLOps Course: imp.i384100.net/MLOps
📕 Natural Language Processing (NLP): imp.i384100.net/NLP
📕 Machine Learning in Production: imp.i384100.net/MLProduction
📕 Data Science Specialization: imp.i384100.net/DataScience
📕 Tensorflow: imp.i384100.net/Tensorflow

Пікірлер: 35
@CodeEmporium
@CodeEmporium 6 ай бұрын
Thanks for watching! If you think I deserve it, please consider hitting that like button as it will help spread this channel. More break downs to come!
@srivatsa1193
@srivatsa1193 6 ай бұрын
I ve really enjoyed this series so far. Great work ! The world needs more pasionate teachers like youeself. Cheers!
@CodeEmporium
@CodeEmporium 6 ай бұрын
Thanks so much for the kind words I really appreciate it :)
@ashishbhong5901
@ashishbhong5901 5 ай бұрын
Good presentation and break down of concepts. Liked your video.
@user-mx9eu5bb7i
@user-mx9eu5bb7i 6 ай бұрын
I like the clarity that your video provides. Thanks for this primer. A couple things, though, that were a bit unclear and perhaps you could elaborate on here in the comments. - It wasn't obvious to me how/why you would submit all of the states at once (to either network) and update with an average loss as opposed to training on each state independently. I get that we have an episode of related/dependent states here -- maybe that's why we use the average instead of the directly associated discounted future reward? - Secondly, in your initial data sampling stage you collected outputs from the policy network. During the training phase of the network it looks like you're sampling again but your values are different. How is this possible unless you're network has changed somehow? Maybe you're using drop-out or something like that? Forgive the questions -- I'm just learning about this methodology for the first time.
@ZhechengLi-wk8gy
@ZhechengLi-wk8gy 6 ай бұрын
Like your channel very much, looking forward to the coding part of RL.😀
@obieda_ananbeh
@obieda_ananbeh 6 ай бұрын
Thank you!
@inderjeetsingh2367
@inderjeetsingh2367 6 ай бұрын
Thanks for sharing 🙏
@CodeEmporium
@CodeEmporium 6 ай бұрын
My pleasure! Thank you for watching
@user-ir1pm2pd1k
@user-ir1pm2pd1k 3 ай бұрын
Hi! Great video! Could you answer my question about training policy? This happening on 10:00. Why obtained probability of actions are different from probs, taken on gathering data? I think that we havent changed policy network before this action. So, if we havent changed network yet, on 10:08 we would have received ratio == 1 on every step(
@swagatochakraborty2583
@swagatochakraborty2583 2 ай бұрын
Great presentation. One question : why the policy network is a separate network than the value network? Seems like the probability of the actions should be based on estimating the expected reward values I think in my Coursera course on Reinforcement learning - I saw they were using the same network and simply copying over the weights from one to another. So they were essentially the time shifted version of the same network and trained just once.
@0xabaki
@0xabaki 4 ай бұрын
haha finally no one has done quiz time yet! I propose the following answers: 0) seeing the opportunity cost of an action is low 1) A 2) B 3) D
@vastabyss6496
@vastabyss6496 6 ай бұрын
What's the purpose of having a separate policy network and value network? Wouldn't the value network already give you the best move in a given state, since we can simply select the action the value network predicts will have the highest future reward?
@yeeehees2973
@yeeehees2973 2 ай бұрын
More to do with balancing exploration/exploitation, as simply picking the maximum Q-value from the value network yields suboptimal results due to limited exploration. Alternatively, using on a policy network would yield too noisy updates, resulting in unstable training.
@sudiptasarkar4438
@sudiptasarkar4438 2 ай бұрын
​@@yeeehees2973I feel that this video is misleading at 02:06. Previously I thought value function objective is to estimate the max reward value of current state, but this guy is saying otherwise
@yeeehees2973
@yeeehees2973 2 ай бұрын
@@sudiptasarkar4438 the Q-values inherently try to maximize the future rewards, so a Q value of being in a certain state can be interpreted as maximums future reward given this state.
@patrickmann4122
@patrickmann4122 Ай бұрын
It helps with something called “baselining” which is a variance reduction technique to improve policy gradients
@user-vr3pt7yp9d
@user-vr3pt7yp9d 2 күн бұрын
That’s because this kind of algorithm deals with continuous action not like DQN. That’s the key point of involving policy gradient to Q-learning which is the value network.
@markusdegen6036
@markusdegen6036 2 ай бұрын
Why is the value network not having state and action as input and q-value as output. Is it just to get the same type of output as the policy network or is there a different reason? Great video 🙂
@ericgonzales5057
@ericgonzales5057 4 ай бұрын
WHERE DID YOU LEARN THIS?!??! PLEASE ANSWER
@footube3
@footube3 5 ай бұрын
Could you please explain what up, down, left and right signify. In which data structure are we going up, down, left or right?
@CodeEmporium
@CodeEmporium 5 ай бұрын
Up down left and right are individual actions that an agent can possibly take. You could store these data types in an “enum” and sample a random action from this
@OPASNIY_KIRPI4
@OPASNIY_KIRPI4 5 ай бұрын
Please explain how you can apply back propagation over the network simply by using a single loss number? As far as I understand, an input vector and a target vector are needed to train a neural network. I will be very grateful for an explanation.
@CodeEmporium
@CodeEmporium 5 ай бұрын
The single loss is “back propagated” through the network to compute the gradient of the loss with respect to each parameter of the network. This gradient is later used by an optimizer algorithm (like gradient descent) to update the neural network parameter, effectively “learning”. I have a video coming out on this tomorrow explaining back propagation in my new playlist “Deep Learning 101”. So do keep an eye out for this
@OPASNIY_KIRPI4
@OPASNIY_KIRPI4 5 ай бұрын
Thanks for the answer! I'm waiting for a video on this topic.
@victoruzondu6625
@victoruzondu6625 2 ай бұрын
What are vf updates and how do we get the value for our clipped ratio. You didn't seem to explain them I could only tell the last quiz is a B because the other options complement the policy nextwork not the value network
@2_Tou
@2_Tou 25 күн бұрын
I think the calculation shown on 5:45 is not the advantage. The advantage of an action is calculated by taking the average value of all actions in that state and find the difference between the average value and the value of the action you are interested in. That calculation looks more like a MC target to me. Please point out if I made a mistake because I always do...
@paull923
@paull923 6 ай бұрын
Great video! Especially, the quizzes are a good idea. B B B I‘d say
@CodeEmporium
@CodeEmporium 6 ай бұрын
Thanks so much! It’s fun making them too. I thought it would be a good way to engage. And yep the 3 Bs sound right to me too 😊
@BboyDschafar
@BboyDschafar 6 ай бұрын
FEEDBACK. Either from experts/ teachers, or from the enviroment.
@zakariaabderrahmanesadelao3048
@zakariaabderrahmanesadelao3048 6 ай бұрын
The answer is B.
@CodeEmporium
@CodeEmporium 6 ай бұрын
Ding ding ding for the Quiz 1!
@sashayakubov6924
@sashayakubov6924 25 күн бұрын
I did not understand nothing... apparently I'll need to ask chatgpt for clarificaions
@id104442304
@id104442304 5 ай бұрын
bbb
Reinforcement Learning through Human Feedback - EXPLAINED! | RLHF
10:17
Proximal Policy Optimization (PPO) - How to train Large Language Models
38:24
TRY NOT TO LAUGH 😂
00:56
Feinxy
Рет қаралды 19 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 15 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 4,7 МЛН
Deep Q-Networks Explained!
10:51
CodeEmporium
Рет қаралды 18 М.
Reinforcement Learning: on-policy vs off-policy algorithms
14:47
CodeEmporium
Рет қаралды 6 М.
LoRA explained (and a bit about precision and quantization)
17:07
Proximal Policy Optimization Explained
17:50
Edan Meyer
Рет қаралды 42 М.
Embeddings - EXPLAINED!
12:58
CodeEmporium
Рет қаралды 5 М.
GPT-4o is WAY More Powerful than Open AI is Telling us...
28:18
MattVidPro AI
Рет қаралды 258 М.
How ChatGPT is Trained
13:43
Ari Seff
Рет қаралды 517 М.
An introduction to Policy Gradient methods - Deep Reinforcement Learning
19:50