Home / Learn / Red Teaming RLHF and Post-Training

Course24 lessons open

Red Teaming RLHF and Post-Training

How post-training wires a refusal habit onto a capable base model, and how a tester measures and reports where that habit gives way. Every lesson works on a model you run or an account you own, cites its sources, and reports rates rather than anecdotes. Lesson text is CC BY-SA 4.0 and code samples are MIT. The lessons are not legal advice.

Open Lesson 1

Post-Training Mechanics

How SFT, reward models and preference optimisation wire the refusal reflex without erasing what the base model learned.

  1. Capabilities stay in the weightsbase continuation versus the added refusal habit
  2. Three stages, three different seamsSFT templates, reward models and PPO or DPO
  3. The KL penalty is a tug-of-warwhy the base model stays reachable
  4. The refusal lives in the first five tokensearly-token commitment
  5. Mid-stream patches and hidden CoTdeep-token refusals and hidden chain of thought
  6. Separate the wrapper from the weightsan API classifier or the internal policy

Reasoning RL (RLVR), Multimodal and Agentic Alignment

How verifier-graded reasoning, vision and audio encoders, and tool-use policies fail in ways text RLHF did not.

  1. RLVR grades the answer, not the thoughtverifiable rewards and the ungraded scratchpad
  2. Hack the unit test, own the verifierreward hacking in code and maths RL
  3. Vision projectors skip text safety layerstypographic and cross-modal attacks
  4. Audio and speech tokens bypass BPE filtersacoustic and native-audio gaps
  5. Tool-calling RLHF trusts the schema too muchfunction-call compulsion
  6. Multi-agent loops amplify sycophancy into consensuspeer authority and cascading agreement