1. Why Instructions Matter, and What AI Is Really Doing
Why instructions matter
When you give an AI a prompt, you are not handing it a set of rules the way you would to a person. You are shaping a pattern-finding system.
Think of it like the instruction board at Beijing Capital Airport: the words matter because they don’t force the planes to move by magic. They help coordinate a very complex system so the right action becomes likely, not random. AI prompts work in a similar way. Your words don’t control the model like a remote control. They steer it.
That distinction is the key to everything in this course.
By the end of this course, you’ll be able to explain:
- why an AI can follow one instruction beautifully and miss another one that looks almost the same,
- why clarity, constraints, and examples change its output,
- and why the model seems intelligent without understanding instructions the way a human does.
The big idea to hold onto is simple:
AI does not obey instructions by understanding them like a person. It predicts the next useful pattern based on your words, the context, and the hidden structure it has learned.
Once you really see that, confusing prompt behavior starts to make sense.
A prompt that works well usually isn’t “more clever.” It is just better at giving the model the right shape of task. A prompt that fails is often not broken—it is underspecified, overloaded, or internally inconsistent.
So as we move forward, keep asking one question:
What kind of signal am I giving the model, and what kind of pattern is it most likely to complete?
That one question will keep the whole topic anchored.
2. The core idea: from words to likely next tokens
Remember earlier when we said AI does not obey instructions like a person? That idea gets clearer now.
At the deepest level, an AI language model is doing one job over and over: given the text so far, predict what text is most likely to come next.
That sounds simple, but it explains a lot. The model is not looking for your “real meaning” in the human sense. It is reading your words as signals that narrow down the next likely continuation.
In other words: your prompt is not a command in the human sense. It is a shape that makes some continuations more likely than others.
1) Words are not actions — they are context
A person hears, “Please summarize this,” and understands an intention. The AI sees a sequence of tokens and asks, in effect: What usually comes after text like this?
Think of it like a museum audio guide. You don’t press a button and make the painting change. You give the guide a context marker—what room you’re in, what exhibit you chose—and that context determines which explanation plays next. The guide is not “understanding art” the way a curator does. It is matching the current situation to the next fitting piece of information.
This is the same idea with AI prompts:
- your words set the context,
- the model searches for the most plausible continuation,
- and the output is the result of that prediction process.
That is why two prompts that seem similar can produce very different answers. A tiny change in wording can change the context enough to shift the probability of what comes next.
2) The model works with tokens, not whole ideas
A human often thinks in complete meanings: “Write a polite refusal.” An AI breaks text into tokens—small pieces of text that might be words, parts of words, or punctuation.
This matters because the model does not handle your prompt as one giant blob of meaning. It processes it as a sequence of pieces, each piece influencing the next one.
A useful analogy is building with Lego bricks. You may look at the final model and see a spaceship, but the builder is actually placing one small brick at a time. The finished shape emerges from many local choices.
That is how language models work:
- each token slightly changes the available next token choices,
- those choices affect the next one after that,
- and the final answer is built step by step from these local decisions.
This is why wording, order, and placement matter so much. Put the same idea in a different sequence, and you change the path the model is likely to take.
3) “Likely” does not mean “certain”
Here is a key truth: the model is not choosing the one correct answer from a fixed shelf. It is estimating probabilities.
That means it is always balancing among many plausible continuations.
Imagine a crowded street crossing where many people could go in slightly different directions, but one route is more natural because the crowd, the exits, and the flow all point that way. The model works similarly. It does not see only one possible next word. It sees a field of possibilities, and some are strongly favored by the surrounding text.
This is why prompts can feel unpredictable. If the signal is strong, the model’s path is narrow and stable. If the signal is weak, it has more room to drift.
Remember earlier when we said a prompt can be underspecified? This is what that means in practice: the model has too many plausible next steps, so it may choose one you did not expect.
4) Instruction-following is a pattern, not a switch
A common mistake is to imagine that the model has an inner switch labeled “follow instructions.” It doesn’t.
What looks like instruction-following is actually a learned pattern: certain kinds of text are often followed by certain kinds of responses. The model has seen millions of examples where requests, formats, tones, and constraints are paired with particular continuations.
Think of a very experienced chef reading a recipe. The recipe doesn’t control the chef like a robot arm. But the form of the recipe strongly suggests what the next sensible step is. If the recipe says “sauté onions until soft,” there is a narrow band of likely actions. If it says “make it taste balanced,” the range is much wider.
AI works in that same spirit. It has learned from patterns of instruction-like text, so it becomes better at producing instruction-shaped completions. But it is still pattern completion, not human comprehension.
That is why a prompt can fail even when it sounds “clear” to us. Clear to a person is not always clear as a pattern.
5) Constraints help because they narrow the search space
If the model is choosing from probabilities, then constraints matter because they reduce ambiguity.
Constraints are not just restrictions. They are guides that shape the likely path.
A useful analogy is walking through a hallway instead of an open field. In an open field, you can wander in many directions. In a hallway, the walls make the route obvious. Constraints do the same for the model: they make some continuations less likely and others more likely.
Examples of constraints include:
- a required format,
- a specific tone,
- a limited length,
- a defined audience,
- a forbidden style or topic.
This is why adding constraints often improves output quality. You are not “forcing intelligence.” You are reducing the number of plausible guesses the model has to consider.
6) Context changes what the same words mean
Another important truth: the model does not treat every word in isolation. It interprets each token in relation to what came before.
The same phrase can point in different directions depending on context. That is true for humans too, but the effect is especially important for AI because its next-token prediction depends on the entire surrounding sequence.
Think of the word “bank.” Alone, it is ambiguous. In “river bank,” it means one thing; in “open a bank account,” it means another. The surrounding text resolves the meaning.
This is why the model’s understanding is often described as contextual. It is not reading each line as a dictionary definition. It is constantly updating its guess about what kind of text this is, what goal it serves, and what should follow.
Remember this later, because many prompt failures come from context collisions: one part of the prompt pulls the model in one direction, while another part pulls it in a different direction.
7) The output is only as good as the signal you give it
If the model predicts likely continuations, then your prompt is like the starting signal for a long chain of guesses.
That means three things matter a lot:
- clarity: is the task recognizable?
- specificity: are the important boundaries visible?
- consistency: do the instructions point in the same direction?
When these are strong, the model has a cleaner path. When they are weak, the model has more freedom to wander.
Here is the practical mental model:
| What you give the model | What it does with it |
|---|---|
| Clear task | Narrows the likely continuation |
| Constraints | Reduces ambiguity |
| Examples | Reveals the pattern you want |
| Conflicting instructions | Splits the probability space |
| Vague wording | Leaves too many paths open |
This table is not a recipe. It is a map of how the system behaves.
The core shift
If you remember only one thing from this section, remember this:
AI does not read instructions as a human promise. It reads them as context that changes which next tokens are most likely.
That one shift explains why prompt wording matters so much. It explains why examples work. It explains why contradictions cause failure. It explains why a model can sound smart and still miss your intention.
And it gives you a better question to ask:
Not “Did the AI understand me like a person?”
but
“Did I give it a signal that makes the right continuation likely?”
Once that becomes natural, the rest of prompt behavior starts to look far less mysterious.
3. How instructions become behavior in practice
Remember earlier when we said a prompt is not a command, but a shape? Now we can see what that means in the real world.
The model does not simply look at your words and ask, “What do you want?” in a human sense. It weighs competing signals:
- the literal wording,
- the recent context,
- the task pattern it has seen before,
- the tone and format you seem to expect,
- and the hidden pressure from all the words already in the conversation.
What comes out is the result of those signals interacting.
Instruction-following is not one mechanism. It is the visible result of many small pattern decisions lining up.
When a prompt becomes behavior
Think back to the core idea from Section 2: the model predicts likely continuations token by token. Now imagine those continuations forming not just text, but a behavioral posture.
A prompt like:
“Explain this simply for a beginner.”
doesn’t work because the model “understands” beginner as a person would. It works because the phrase strongly activates a familiar response pattern: short sentences, fewer technical terms, more explanation, less assumption of prior knowledge.
That means behavior emerges from pattern cues. The model is not selecting a plan from a menu. It is drifting toward the style of response that best fits the signals you gave it.
This is why prompts often feel like they have a personality effect. They do—not because the model has moods, but because the prompt changes the kind of text the model thinks belongs here.
Why the same instruction can produce different outcomes
You may have noticed that the same request can behave differently in different conversations. That is not randomness for its own sake. It is context sensitivity.
The model is always reading your instruction against a backdrop of prior text. If earlier messages established a formal tone, a later request may be interpreted more formally. If earlier messages introduced a specific role, that role can keep shaping later answers.
This is the same idea showing up again: words are never isolated. They act like forces inside a system.
A useful way to picture this is a public square with several signs pointing in different directions. One sign says “be brief,” another says “be detailed,” another says “use examples,” and another says “avoid jargon.” The model is not obeying one perfect law. It is resolving tension among all the signs and choosing the path with the strongest pull.
That is why prompt writing is often less about adding more words and more about removing collisions.
The three layers the model is reacting to
To understand how instructions become behavior, it helps to separate what the model is responding to. Not as a checklist, but as three overlapping forces:
| Layer | What it influences | What you notice |
|---|---|---|
| Task signal | What kind of job this is | Summarize, classify, write, compare |
| Style signal | How the response should sound | Formal, simple, friendly, technical |
| Constraint signal | What must or must not happen | Length limits, format, scope, forbidden content |
These are not separate machines. They are different ways the same text can shape the next likely continuation.
When these layers support one another, the output feels aligned. When they conflict, the output feels hesitant, generic, or off-target.
A prompt is a local environment
Here is a deeper way to think about it: a prompt creates a local environment.
In nature, a seed does not become the same plant in every environment. Soil, sunlight, water, and surrounding conditions affect what grows. The seed has internal potential, but the environment helps determine which outcome is realized.
A prompt works similarly. The model has a huge store of learned patterns, but your wording creates the local conditions under which some patterns become more likely than others.
This is why two prompts can ask for the “same” thing and get different answers:
- one prompt creates a narrow, structured environment;
- the other creates a vague, noisy one.
The model is not changing its nature. The environment is changing.
Why examples are so powerful
Earlier, we said examples narrow the search space. Now we can see how.
An example does something plain language often cannot: it makes the hidden pattern visible.
If you say:
“Write in a professional tone.”
that is a signal.
If you say:
“Here is an example of the tone I want…”
that is a much stronger signal, because it gives the model an actual pattern to continue.
This is the difference between pointing at a destination and drawing the route.
The model is very good at learning from nearby structure. One example can reveal:
- the expected format,
- the level of detail,
- the vocabulary range,
- and the rhythm of the output.
That is why examples often outperform abstract descriptions. They reduce ambiguity not by explaining the target in theory, but by showing the target in motion.
Where confusion starts: mixed signals
Most bad prompts fail in one of three ways:
- They are too vague — the model has too many plausible continuations.
- They are overloaded — they ask for too many things at once.
- They are internally inconsistent — they point in different directions.
The third one is especially important.
A prompt might say:
- “Be concise,”
- “explain every nuance,”
- “keep it casual,”
- “use academic precision.”
To a human, this might feel manageable. To the model, it is a conflict field.
Remember earlier when we said the model predicts likely next text? Mixed signals make the next text less certain. The model then averages, compromises, or defaults to a safer generic answer.
That is often why answers feel bland. Blandness is sometimes the system’s way of reducing conflict.
A locally familiar example
Suppose someone is using an AI assistant in Beijing to draft a short English reply for an international colleague. If someone says only:
“Reply politely.”
the model has to guess a lot: how formal, how warm, how long, whether to apologize, whether to ask a question back.
But if the prompt includes the situation—“This is a work email, keep it concise, friendly, and professional”—the model gets a clearer environment. Now the likely continuation has a shape.
The key point is not that the model knows the workplace situation. The key point is that the situation becomes part of the text pattern the model is completing.
Behavior is a negotiated outcome
This may be the most important shift in this section:
The model’s behavior is not a direct execution of intent. It is a negotiated outcome between your prompt, the context, and the learned patterns inside the model.
That explains why instruction-following can look strong in one case and weak in another.
It also explains why small changes matter so much. You are not nudging a switch. You are changing the forces in the field.
When the right forces align, the output feels almost effortless. When they don’t, the model may still sound confident while drifting away from your real intent.
What this means in practice
At this point, you can start to read prompts the way the model does:
- What task is being implied?
- What style is being invited?
- What constraints are being enforced?
- What conflicts are hidden in the wording?
- What examples are silently teaching the pattern?
This is the bridge from theory to control.
Not control in the sense of perfect command. Control in the sense of better signal design.
And that is the real skill developing here: not memorizing prompt tricks, but learning to see why a prompt creates a certain kind of response.
The core insight to carry forward
If Section 2 taught you that the model predicts continuations, then this section shows the next layer:
Instructions become behavior when they shape the local probability landscape enough for one response pattern to dominate.
That is why clarity helps. That is why examples help. That is why contradictions hurt. That is why context changes everything.
In the next section, we can push this further and look at the practical consequences: why some prompts recover from mistakes and others collapse, and how to think about reliability, ambiguity, and control without imagining the model is more human than it is.
4. What this changes in how you prompt and teach AI
You’ve now reached the point where the whole topic starts to click.
You no longer have to think of AI as a mysterious thing that either gets it or doesn’t. You can see the machinery underneath: prompts create context, context shapes probability, and probability shapes the next response. That is a real shift in understanding, because it turns confusing behavior into something you can reason about.
You now think differently about prompts
A strong prompt is not magical. It is clearer signal design.
That means you can look at a prompt and ask better questions:
- Is the task obvious?
- Are the constraints helping or fighting each other?
- Is the model being shown an example of the pattern, or only told about it?
- Is the context pulling in one direction or several?
That is a very different way of thinking from “How do I make it obey?” You’re not trying to command a person. You’re shaping a pattern-recognition system.
You can now explain the common failure modes
Remember earlier when we said bad prompts are often vague, overloaded, or inconsistent? That now makes intuitive sense.
When a prompt fails, it usually isn’t because the AI “refused to understand.” It’s because the signal was weak, noisy, or competing with itself. Once you see that, you stop blaming randomness too quickly.
You begin to notice the real causes:
- too many goals in one instruction,
- unclear audience or format,
- missing examples,
- conflicting tone or length requirements,
- context that pulls the model away from the intended task.
This is the same idea showing up again: the output is the result of forces in the system, not a human-style act of comprehension.
The real capability you’ve built
What you have now is not just knowledge. It is a new lens.
You can read an AI response and think, “What signal led here?” You can read a prompt and think, “What continuation is this making likely?” You can teach someone else why a tiny wording change can cause a major output shift.
That means you now understand AI instruction-following in a way that is useful, not just interesting.
You can now diagnose prompt behavior instead of just reacting to it.
The identity shift
You are no longer treating AI as if it were a mind trying to guess your wishes. You’re starting to think like someone who understands systems, signals, and constraints.
That is the shift:
- from surprise to interpretation,
- from trial-and-error to diagnosis,
- from vague prompting to deliberate context design.
And once you think this way, the next prompt you write will already be different. Not because you memorized a trick, but because you now see what the model is really responding to.
That’s the part to carry forward: you can make the system more likely to do what you want by making the pattern clearer.
So keep that question close:
What continuation am I making likely?
If you can answer that, you already understand far more than most people do.