影片高階EN1.4 萬 次觀看
Build A Reasoning Model From Scratch 7: Reinforcement Learning 2 (Tracking, KL Terms, And More)
看影片(在新分頁開啟原站)連到 YouTube・Sebastian Raschka
摘要
深入探討 GRPO 演算法的最佳化,包含追蹤優勢統計與熵值以診斷訓練不穩定。講者示範了如何實作剪輯策略比率(clipped policy ratios)來限制更新幅度,並討論了 KL 散度項在防止獎勵濫用上的應用。最後,影片介紹了如何加入格式獎勵(format reward)以鼓勵模型輸出思考標籤,並提供相關論文參考與實作建議。
This video covers optimizing the GRPO algorithm by tracking advanced metrics like advantage statistics and entropy to diagnose instability, implementing clipped policy ratios for stable updates, and adding format rewards to encourage specific output structures.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 分析訓練指標(優勢、熵)以診斷不穩定與獎勵濫用問題。
- 實作剪輯策略比率(clipped policy ratios)來穩定訓練更新。
- 加入格式獎勵鼓勵模型輸出思考標籤,並參考最新論文技巧。
章節
依話題轉折切分,標題由 AI 產生
- 00:00Introduction and recap
- 01:52Interpreting basic GRPO training metrics
- 06:34Planned improvements to GRPO
- 08:58Running longer training jobs with Python scripts
- 13:39Running the baseline GRPO training script
- 17:29Loading and plotting training logs
- 19:29Diagnosing unstable training
- 23:55Evaluating checkpoints on MATH-500
- 26:26Downloading existing checkpoints
- 30:09Tracking advantage statistics
- 34:53Understanding entropy
- 40:32Computing entropy in PyTorch
- 44:17Interpreting entropy values
- 48:58Adding entropy tracking to GRPO
- 53:36Analyzing advantage and entropy metrics
- 56:18Stabilizing GRPO with clipped policy ratios
- 1:03:27Implementing the clipped policy loss
- 1:09:39Analyzing clipped policy training results
- 1:11:25KL divergence and reward hacking
- 1:15:12Adding a KL loss term
- 1:20:34Limitations of the simplified KL loss
- 1:23:04Format rewards and think tags
- 1:25:47Adding special tokens to the tokenizer
- 1:30:29Implementing the format reward
- 1:35:56Analyzing format reward training
- 1:38:25Rewarding format only for correct answers
- 1:40:48Further GRPO improvements from research
- 1:45:43Next steps and distillation
提到的工具與公司
- PyTorch
- GRPO
- Qwen3
- MATH-500
- DeepSeek-R1
適合誰看
適合希望深入理解並實作 GRPO 演算法、最佳化強化學習訓練穩定性的開發者與研究人員。
摘要依據
- 講者
- Sebastian Raschka
- 依據
- 人工字幕
為什麼排在這裡
- 人氣
- 0.54
- 新鮮
- 0.82
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- Reinforcement Learning with GRPO, Clearly Explained!!!影片 ・ StatQuest with Josh Starmer ・ 26 分鐘 ・
- Build A Reasoning Model From Scratch 6: Reinforcement Learning 1 (Implementing GRPO for RLVR)影片 ・ Sebastian Raschka ・ 1 小時 27 分 ・
- GRPO++: Tricks for Making RL Actually Work文章 ・ Deep (Learning) Focus(Cameron R. Wolfe) ・
- GRPO - Group Relative Policy Optimization - How DeepSeek trains reasoning models影片 ・ Luis Serrano Academy ・ 22 分鐘 ・
- Group Relative Policy Optimization (GRPO)文章 ・ Deep (Learning) Focus(Cameron R. Wolfe) ・
- Training Agents 3: Reinforcement Learning影片 ・ Hugging Face ・ 1 小時 17 分 ・
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
