TAKE THE LONGER ROUTE

Open the complete high-school extension →

Worked explanations, full local narration, and connected Signal Room, Workbench and Field Notes.

← Connected lesson

AlignmentA gentler route.

Prefer one answer without assuming everyone has the same preferences.

More time for: DPO reference ratios; KTO desirable labels; ORPO odds ratios; preference data quality.

Open high-school classroom and assessment ↗

Welcome and Overview

Hello everyone! Today we're diving into an exciting and important topic: AI alignment. We'll explore why it matters, and we'll also break down some key concepts you might have seen: DPO, KTO, and ORPO.

First, let's get a quick overview of what we'll cover. We'll talk about why AI alignment is crucial, then explain what DPO, KTO, and ORPO stand for, and finally, what's ahead in our 10-minute interactive lesson.

To understand why AI alignment matters, imagine training a helpful robot. If it's not aligned properly with human values, it might do things we don't expect or want. So, aligning AI means making sure it understands and follows what we truly want it to do.

Throughout this lesson, I'll guide you step-by-step, and we'll use clear examples to make sense of these ideas. Ready to get started? Let's move on to exploring each key term in detail.

Welcome and Overview

• Why AI alignment matters

• What DPO, KTO, ORPO stand for

• Today's 10-minute interactive lesson outline

Why does AI alignment matter? Imagine training a helpful robot that only does good and understands what you want.

DPO, KTO, and ORPO are new methods shaping how AI learns our preferences — think of them as guides teaching AI to be better team players!

We’ll explore these big ideas step-by-step with fun, real-world examples and interactive questions.

The Base AI: The Master Chef Analogy

Let's dive into a fun analogy to understand how base AI works. Think of the base AI as a master chef.

This base AI is like that master chef who can cook any dish you can imagine. It has all the skills and recipes ready.

But without proper guidance, the chef might make dishes that don't suit our tastes. Similarly, AI can produce results we don't want.

That's where the taste tester comes in. This role, played by humans, gives feedback to guide and fine-tune the AI's behavior.

In short, the base AI master chef needs a taste tester to create dishes that match what people actually want.

Understanding this analogy helps us see why human input is essential in making AI useful and reliable.

The Base AI: The Master Chef Analogy

Base AI as
Master Chef

Without Guidance,
Results May Vary

Taste Tester
Guides AI

• Base AI is like a Master Chef who can cook anything

• Without guidance, AI might produce unwanted results

• Taste Tester role: human feedback to guide AI behavior

Be the Taste Tester!

Let's explore how human feedback helps AI become smarter and safer through this interactive game.

You'll see pairs of AI responses, and your job is to choose the better one each time.

As you pick polite and helpful answers, watch how the AI's toxicity score improves in real time.

Try to complete all levels and see if you can earn achievements like Politeness Pro or Helper.

Ready to help teach the AI? Let's get started!

From Humans to Reward Models

Let's dive into how humans help train AI using something called a Reward Model. This slide is titled 'From Humans to Reward Models', and it sets the stage for what we're about to explore.

First, humans train a smaller AI known as the Reward Model. Think of it like training a taste tester that gives quick feedback, so the bigger AI learns what humans like much faster.

Notice how the Reward Model acts as a fast taste tester. Instead of waiting for humans to judge every response, this model gives instant opinions based on what it's learned.

This setup means the AI can learn preferences thousands of times faster than if humans had to give feedback all the time.

So in short, humans create and train this smaller AI, which then helps teach the bigger AI quickly and efficiently. It’s like teaching a helper to do the checking so you don’t have to do it yourself every time.

With this method, AI systems get smarter more quickly while saving a lot of human effort. Next, we'll see exactly how this speeds up training and why it's such a game-changer.

From Humans to Reward Models

• Humans train a smaller AI called Reward Model

• Reward Model acts as a fast Taste Tester

• Enables AI to learn preferences thousands of times faster

Introducing DPO: Direct Preference Optimization

Let's start by introducing an exciting 2023 breakthrough called Direct Preference Optimization, or DPO for short. This method changes how we train AI by focusing directly on what humans prefer.

The key point here is that DPO puts human preferences straight into the AI’s brain, skipping the usual step where a separate reward model would try to guess what humans like.

This makes training more stable and uses less computing power. Imagine upgrading from a bulky old phone to a sleek smartphone that does more with less energy.

Because of these advantages, DPO is becoming the new standard for training AI safely, helping models better understand and follow human preferences.

So, in summary, DPO is a more direct, efficient, and stable way to teach AI using human feedback, which is a huge step forward in making AI smarter and safer.

Introducing DPO:
Direct Preference Optimization

2023 breakthrough trains AI directly from human choices,
skipping the usual Reward Model step.

• DPO puts human preferences straight into AI’s brain

• More stable and uses less computing power

• Now the new standard in safe AI training

DPO Loss Demo

Let's explore how DPO learning loss changes as this AI model learns your preferences.

Notice how changing this slider affects the loss curve in real time, showing how well the AI aligns with your choices.

Watch how the loss value and entropy update. Entropy here tells us how uncertain the AI is.

Try the preset buttons to see typical reward settings and how they impact the learning process.

What are KTO and ORPO?

KTO means Kahneman-Tversky Optimization. It can learn from individual outputs marked desirable or undesirable using a prospect-theory-inspired objective.

ORPO means Odds Ratio Preference Optimization. It combines supervised learning and preference optimization without a separate reference model. Neither name refers to task ordering or Kendall rank correlation.

What are KTO and ORPO?

KTO means Kahneman-Tversky Optimization. It uses a prospect-theory-inspired objective and can learn from individual outputs labeled desirable or undesirable.

It is not Kahneman-Tversky Optimization or KL Target Optimization. The choice of feedback and objective matters; no method is universally best.

Quick Recap with Visual Analogy

Let's start with a quick recap using a simple story to help us understand some tricky concepts.

Think of the Base AI as the chef who is busy cooking meals. This chef creates the core recipes and dishes we enjoy.

Now, humans and reward models act like taste testers, sampling the meals and giving feedback to make sure the dishes are just right.

Then we have methods like DPO and beyond, which are like shortcuts that help the chef learn faster, skipping some steps but still improving the cooking.

So, this story sums up how we've evolved from techniques like RLHF to newer, faster learning shortcuts, making AI smarter step by step.

Quick Recap with Visual Analogy

Base AI is the chef
cooking meals

Humans & Rewards
are taste testers

DPO and beyond:
shortcuts for learning

Test Your Understanding

Now let's check how well the ideas we just covered have settled in. Take your time and answer each question on your own.

When you're done, I'll be here to review everything together and help clear up any tricky parts.

Where to Go Next?

Now that we've covered a lot of ground, let's talk about where to go next on your AI learning journey.

First, I recommend diving into some classic papers on topics like DPO, KTO, and ORPO. These are foundational ideas that help deepen your understanding of AI alignment.

Next, explore other modules focused on AI learning and AI safety to broaden your perspective and see how different concepts connect.

Finally, keep experimenting—ask lots of questions and try out new ideas. This hands-on approach is the best way to really grasp these complex topics.

Remember, learning AI alignment is like leveling up in a game—you can’t get to the next stage without practice, curiosity, and persistence.

Where to Go Next?

Recommended Reading

• Canonical papers on DPO, KTO, ORPO

Explore More Modules

• AI learning

• AI safety

Keep Experimenting

• Ask questions

• Try new ideas