A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond
by Daniel R. Jiang (INFORMS TutORials in Operations Research 2026)
DPO, REINFORCE, PPO and GRPO derived step by step from one KL-regularized objective, with multi-turn RL for agents.
Overview
"A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond" is a roughly 40-page tutorial by Daniel R. Jiang, dated October 19, 2026 and published as a chapter in INFORMS TutORials in Operations Research. Jiang presented it at the 2026 INFORMS Annual Meeting in San Francisco, where the program lists him as a Research Scientist at Meta and an Adjunct Professor of Industrial Engineering at the University of Pittsburgh; his homepage now lists him as a Staff Research Scientist at Google DeepMind working on post-training Gemini for agentic coding. The tutorial has ten sections. It opens with five running examples (creative writing, generative ads scored by click-through rate, math reasoning, and others) and a background section on transformers, pre-training, supervised fine-tuning and Markov decision processes. It then formulates single-turn and multi-turn RL post-training in common MDP notation, sorts reward signals into verifiable, observable and latent, and covers RLAIF, LLM-as-a-judge and reward modeling seen as model-based RL. Sections 6 and 7 introduce reward overoptimization and the KL-regularized objective, then derive DPO, REINFORCE, PPO and GRPO from it, separating exact derivations from practical approximations and listing each method's limitations. The last sections formalize batch-online deployment, extend GRPO to full multi-turn trajectories, discuss user simulators and training environments, present batch-online multi-turn RL from logged trajectories, and close with open research directions. The tutorial has no code or exercises.
At a Glance
- Topic
- Fine-Tuning
- Level
- Advanced
- Format
- Paper
- Cost
- Free
- Duration
- ~40 pages of main text plus references, self-paced; plan several hours to work through the derivations
- Provider
- Daniel R. Jiang (INFORMS TutORials in Operations Research 2026)
- Hands-on
- No
- Certificate
- None
What You’ll Learn
- ✓Formulate LLM post-training as a Markov decision process at token level and response level
- ✓Classify reward signals as verifiable, observable or latent and pick a feedback source
- ✓Explain reward overoptimization and why a KL penalty to a reference model counters it
- ✓Derive DPO from the KL-regularized objective and understand its practical limitations
- ✓Derive the exact REINFORCE gradient and the detached KL-shaped reward view
- ✓Build PPO up from REINFORCE and GRPO up from PPO, separating exact steps from heuristics
- ✓Distinguish online, offline and batch-online deployment and why the term online is ambiguous
- ✓Extend GRPO to multi-turn agent trajectories and train from logged interaction data without a simulator
Highlights
- •Derives four algorithms (DPO, REINFORCE, PPO, GRPO) from one shared objective instead of presenting them as unrelated recipes
- •Explicitly marks which steps in each algorithm are exact and which are approximations or heuristics
- •Covers multi-turn RL for agents, including user simulators and a batch-online method that needs no interactive training environment
- •Peer-reviewed INFORMS TutORials chapter (four anonymous reviewers per the acknowledgments) with the full PDF free on the author's site
- •Written by a researcher who works on LLM post-training, using five running examples from creative writing to generative ads and math reasoning
Who It’s For
Best For
- ✓ML engineers moving into RL post-training who want the math behind GRPO and DPO configs
- ✓Researchers from operations research or classical RL who need a bridge into LLM alignment
- ✓Engineers building agent training pipelines who need a multi-turn RL formulation
- ✓Readers of the RLHF Book who want a shorter, derivation-first companion
Prerequisites
- •Basic familiarity with optimization and gradient-based learning
- •Introductory reinforcement learning: MDPs, policies, value functions, policy gradients
- •Comfort reading probability and expectation notation; no prior NLP or LLM background is assumed
FAQ
What is A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond?
A free, self-contained tutorial on reinforcement learning post-training for large language models, written for engineers and researchers who know basic optimization, ML and RL but have no background in LLM-specific RL. It covers RLHF, RL with verifiable rewards, reward modeling, and the derivations of DPO, REINFORCE, PPO and GRPO. Afterwards you can read a GRPO or DPO training config and know which terms are exact and which are heuristics.
Is A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond free?
A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond is free to access.
What level is A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond for?
A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond is aimed at a advanced audience. Recommended background: Basic familiarity with optimization and gradient-based learning, Introductory reinforcement learning: MDPs, policies, value functions, policy gradients, Comfort reading probability and expectation notation; no prior NLP or LLM background is assumed.
How long does A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond take?
Expect roughly ~40 pages of main text plus references, self-paced; plan several hours to work through the derivations. Most learners work through it at their own pace.
What will I learn from A Tutorial on Reinforcement Learning for LLMs: RLHF and Beyond?
You'll learn: Formulate LLM post-training as a Markov decision process at token level and response level; Classify reward signals as verifiable, observable or latent and pick a feedback source; Explain reward overoptimization and why a KL penalty to a reference model counters it; Derive DPO from the KL-regularized objective and understand its practical limitations; Derive the exact REINFORCE gradient and the detached KL-shaped reward view; Build PPO up from REINFORCE and GRPO up from PPO, separating exact steps from heuristics; Distinguish online, offline and batch-online deployment and why the term online is ambiguous; Extend GRPO to multi-turn agent trajectories and train from logged interaction data without a simulator.
Topics
Sources
This page was written from 3 sources, 1 on domains other than danielrjiang.github.io.