Context EngineeringLesson 39 of 87

Module 4 · Position, order and what the model actually reads

Why the first tokens are special

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 9 of 9 in this chapter

This chapter’s goalPredict and measure how position changes whether material in the window gets used: run a position probe on your own model and corpus, place instructions, examples and evidence deliberately, mark boundaries the model cannot confuse, and choose an evidence order that matches the task rather than the retriever’s ranking.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

A mechanism, not a superstition

Attention scores are passed through a softmax, which forces them to sum to one across all positions. That constraint has an odd consequence: a head that has nothing it particularly wants to attend to still has to put its attention somewhere.

What models learn to do, consistently, is dump it on the earliest tokens. Those positions become attention sinks: visible in attention maps as a bright column at the start, receiving a large share of the mass from many heads at many layers, regardless of what they contain. The first token is often literally a beginning-of-sequence marker with no semantic content at all, which is the clue that this is a mechanism rather than a meaning.

The finding was made concrete in the StreamingLLM work in 2023, and it explains something that had puzzled people building long-running chat systems.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Data, SQL and Getting to the Answer exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Why the first tokens are special’, in Context Engineering. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/context-engineering/attention-sinks-and-the-first-tokens (Accessed: 29 November 2026).