跳到主要內容
AI 武林
影片高階EN1.4 萬 次觀看

Build A Reasoning Model From Scratch 7: Reinforcement Learning 2 (Tracking, KL Terms, And More)

來源 Sebastian Raschka人物 Sebastian Raschka

看影片(在新分頁開啟原站)連到 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 產生

  1. 00:00Introduction and recap
  2. 01:52Interpreting basic GRPO training metrics
  3. 06:34Planned improvements to GRPO
  4. 08:58Running longer training jobs with Python scripts
  5. 13:39Running the baseline GRPO training script
  6. 17:29Loading and plotting training logs
  7. 19:29Diagnosing unstable training
  8. 23:55Evaluating checkpoints on MATH-500
  9. 26:26Downloading existing checkpoints
  10. 30:09Tracking advantage statistics
  11. 34:53Understanding entropy
  12. 40:32Computing entropy in PyTorch
  13. 44:17Interpreting entropy values
  14. 48:58Adding entropy tracking to GRPO
  15. 53:36Analyzing advantage and entropy metrics
  16. 56:18Stabilizing GRPO with clipped policy ratios
  17. 1:03:27Implementing the clipped policy loss
  18. 1:09:39Analyzing clipped policy training results
  19. 1:11:25KL divergence and reward hacking
  20. 1:15:12Adding a KL loss term
  21. 1:20:34Limitations of the simplified KL loss
  22. 1:23:04Format rewards and think tags
  23. 1:25:47Adding special tokens to the tokenizer
  24. 1:30:29Implementing the format reward
  25. 1:35:56Analyzing format reward training
  26. 1:38:25Rewarding format only for correct answers
  27. 1:40:48Further GRPO improvements from research
  28. 1:45:43Next steps and distillation

提到的工具與公司

適合誰看

適合希望深入理解並實作 GRPO 演算法、最佳化強化學習訓練穩定性的開發者與研究人員。

摘要依據

講者
Sebastian Raschka
依據
人工字幕

為什麼排在這裡

人氣
0.54
新鮮
0.82

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

這個來源最近的內容

Sebastian Raschka 的所有內容

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)