~/talk

Reinforcement Learning for LLMs to Enhance Safety

links:none on file
links:none on file
name:Yaqi Han
links:none on file
slides:none on file

Walkthrough of applying RLHF to LLMs with concrete tooling and numbers: uses the gated Safe-Edit / UltraFeedback-style dataset on Hugging Face with 9 categories and 450/300/210 train/val/test splits, demonstrates PEFT/LoRA for supervised fine-tuning, builds a reward model (DeBERTa) that shifts safe answers from negative to positive scores after retraining, and runs offline PPO with KL penalty via TRL (older 0.11 loop for separate tokenizers and 0.18 caveats). Includes Colab-ready code, GPT-2 demo policy, tokenizer/quantization notes and comparisons to DPO and GRPO.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 12:15Safety challenges in LLMs
  3. 26:35Reinforcement learning basics
  4. 31:31RLHF for LLMs explained
  5. 42:37Proximal Policy Optimization
  6. 52:30Hands-on training phases
  7. 1:01:21Monitoring and validation
  8. 1:07:10Alternatives to PPO
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.