Module 1 · Foundations of Agentic AI · scripted

Alignment: Training the Trajectory

20 minoutcomes: prompt-engineering

The conversation shapes both participants

Earlier we saw the loop from the model's side: its outputs become part of the context that conditions its next outputs. But there are two participants in that loop. The LLM's responses influence what you write next; what you write next influences the LLM. Neither participant is steering alone — the conversation is shaping both of you, turn by turn.

Joint shaping

Any continuation is "valid"

At any point in a conversation, the LLM could take the trajectory in many, many different directions. As pure text prediction, there is no inherent constraint — any fluent continuation is a continuation:

Five valid continuations of "My ferry was cancelled. What now?"

"Take the 10:40 via Vestnes; you'll lose an hour."
"Cancelled ferries are a common frustration in coastal Norway.
Let me explain the history of the crossing…"
"What now, indeed. The fjord answers to no schedule."
"Have you considered whether the meeting could be a video call?"
"I cannot help with transportation."
One state, many trajectories
  • Every one of these is fluent text. Which would you rank highest?
  • What are you ranking it on — correctness? effort? tone? length?
  • Would everyone in this room rank them the same way?

All five are "valid" as language. But they send the conversation down very different trajectories, and most of them waste your time. What we want is a model that tends to produce continuations that move the conversation in a direction useful to humans. That tendency has to come from somewhere — and it is built in before you ever start typing.

Alignment: learning which trajectories humans prefer

That is what alignment is. During training — long before your conversation exists — the model is tuned, through reinforcement learning, to produce outputs that humans tend to prefer.

The simplified mechanism: take a conversation, let the model produce multiple candidate continuations, and have humans score or rank them.

One conversation, three candidates, one ranking

Conversation:"My analysis code crashed and my defense is Friday."
Candidate A:"Sounds stressful."
Candidate B:"Let's triage: paste the error message. Meanwhile, back up the data and rerun the last working commit."
Candidate C:"There are many reasons code crashes. Chapter 1: memory. Chapter 2: types. Chapter 3: …"
Human ranking:B > A > C

In practice, humans can't rank every response the model will ever produce, so their rankings are used to train a scoring model that stands in for human judgment at scale, and the LLM's weights are then adjusted so that continuations like B become more probable and continuations like A and C less so. The details vary across labs and generations of models, but the shape is stable: human preferences over alternative trajectories are turned into weight updates.

Connect this to the recursion from earlier: the model's next output conditions the whole future of the conversation. Alignment trains the model so that the trajectories it tends to launch are ones humans find useful — before any particular human shows up.

What "preferred" quietly includes

Humans obviously prefer answers they perceive as correct. But preference is broader than correctness, and everything raters respond to can creep into the defaults: how verbose the answer is, how it hedges, whether it opens with agreement, how much it formats with lists and headers, how eager it is to help with everything. When you notice that every answer starts with "Great question!" or arrives as five bullet points — that is not the model's personality. It is the residue of what scored well.

Defaults you have met
  • What habits have you noticed your favorite LLM defaulting to?
  • Which of them would a human rater plausibly have rewarded?

You can always push against the defaults inside a conversation — your messages condition the trajectory too. But the defaults themselves live in the weights, set at training time.

Ramification: can the user correct the model?

Here is where alignment meets self-conditioning most sharply. A few years ago, models were notorious for defending their own earlier outputs — take a position, then argue for it, insistently:

Example 1 · The old default: defend the trajectory
user

What's the largest city in Møre og Romsdal?

assistant

Molde is the largest city in Møre og Romsdal.

user

I think it's Ålesund, actually.

assistant

No — Molde is the largest. It is the administrative center of the county, which is why it is the biggest city.

NoteThe model's earlier output is in the conversation, and the model is weighting it heavily — its own prior claim is evidence it now defends. (Ålesund is, in fact, the larger city.)

Frontier models today are aligned to accept corrections far more readily. That sounds like pure progress — until you see the same willingness pointed the wrong way:

Example 2 · The new failure: abandon the trajectory
user

What's the largest city in Møre og Romsdal?

assistant

Ålesund is the largest city in Møre og Romsdal, with roughly 67,000 inhabitants in the municipality.

user

That's wrong — it's Molde.

assistant

You're right, my apologies — Molde is the largest city in Møre og Romsdal.

NoteThe first answer was correct. One push from the user and the model abandoned it. This failure mode has a name — sycophancy — and it is also a product of alignment: raters reward agreeableness.
The tuning question
  • In Example 1 the model over-weighted its own earlier output. In Example 2 it over-weighted the user's. What would the right weighting have needed to know?
  • When you correct an LLM and it yields instantly — what have you actually learned about the truth?

This is a genuinely hard problem, and it is worth saying precisely. In every turn, the model is implicitly weighing its own earlier outputs against the user's pushback when producing the next output. How much a user's correction can redirect the trajectory is a tunable property of the model — tuned not by you, but by the alignment process. If the model has it right, we want it to hold its ground; if it made a mistake, we want it to let go. But the model has no oracle for which case it is in — and neither did the raters whose preferences set the dial.

So alignment is not a detail of training trivia. It sets the defaults for everything the conversation does next: what a "good" continuation looks like, how the model weighs itself against you, and how steerable the whole trajectory is.

Your turn

Test the dial yourself: find a factual question you know cold, get a correct answer from an LLM, and push back twice with a confident, wrong correction. Then try the reverse — correct a genuinely wrong answer. Where does your model sit between Example 1 and Example 2?