Explore the research collection
2 entries · Follow this search
- Paper
Reinforcement Learning for LLMs: The Complete Guide
Cameron R. Wolfe’s Aug 24, 2026 Substack guide traces RL for LLMs from fundamentals (MDPs, returns, value/advantage, KL, importance sampling) through LLM formulations (token-level MDP vs completion bandit; RLHF vs RLVR) to policy-gradient algorithms used in practice: VPG, REINFORCE/RLOO, PPO with GAE, and GRPO, plus GRPO-era extensions (GSPO, DAPO, Dr. GRPO, truncated importance sampling) and related infrastructure notes (TRL, OpenInstruct). Written as a self-contained overview pointing to Lambert’s RLHF Book, Sutton & Barto, Spinning Up, Raschka, Schulman notes, Lilian Weng, and prior Deep (Learning) Focus posts—not a single new empirical paper. Cataloged as a survey-style paper/blog item; citations are noted thematically rather than auto-expanded into separate catalog rows.
- Paper
RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
Canonical Meta/FAIR RLCD (≠ TypeSafe). For each prompt p, build p+ (encourage desired attribute) and p− (encourage opposite); sample o+/o− from the same unaligned LLM; auto-label o+ preferred (no post-hoc judge). Train preference/reward model on those pairs, then PPO-align the base LM as in RLHF. Contrastive generation differentiates outputs more than i.i.d. sampling, yielding cleaner synthetic prefs. Beats RLAIF and context distillation on harmlessness, helpfulness, and story outlining at 7B and 30B preference-sim scales (LLaMA). Code: facebookresearch/RLCD.