Zenaique

Which token most often serves as an attention sink in pretrained autoregressive LLMs?

MCQ·Easy·4.0 · 0·~1 min·Asked atAdobeFreshworksSwiggy·Relevant atMeta
Attempt it
TL;DR

The very first token (typically BOS). It is present in every sequence at a predictable index and content-light, the ideal place to dump softmax's mandatory no-op mass.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture a classroom where every student is forced to raise a hand on every question, even when they do not know the answer. To keep things tidy, the class agrees that the kid in the front row is the official 'I do not know' designate, so anyone who is unsure points at them. Over the course of the year that front-row kid ends up with most of the don't-know votes, even on questions other kids actually want to answer. Transformer attention heads do the same thing with the first token of every sequence: it becomes the official 'I have nothing better to say' target.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

The first token, usually BOS, serves as the canonical attention sink in essentially every pretrained autoregressive LLM. This is a robust empirical finding across model families (GPT, Llama, Mistral, Claude, Gemini, DeepSeek), training data mixes, and tokenizer choices. The phenomenon is operator-level, not data-level: it emerges from the softmax probability constraint, and any position satisfying three structural criteria would serve as the sink. Position 0 wins because it is the unique position that satisfies all three.

This deep dive walks the structural argument, traces why each alternative option fails, explains the practical consequences for KV cache serving and quantization, and shows how modern fixes (register tokens, StreamingLLM, softmax-1) address the underlying constraint.

Mental model: the sink is not a bug in pretraining. It is the optimal solution to 'softmax has no zero vector but my head has no good content match'.

The three criteria a sink position must satisfy

For a position to serve as a learnable sink target, it must satisfy three jointly necessary criteria:

Universality

The position has to be present in every training sequence. If a candidate position is absent in some sequences, heads cannot learn to consistently dump mass there. Position 0 is the unique position guaranteed to exist in every non-empty sequence.

Position predictability

The position has to be at a stable, predictable index across sequences. Heads encode the dump target in their query-key inner product geometry, and that geometry has to point at the same absolute or relative position regardless of input. Position 0 is the cleanest stable position; recent positions shift every decoding step; high-frequency words like 'the' appear at random positions.

Content lightness

When sink mass w_sink multiplies the sink token's value vector v_sink, the contribution to the residual stream is w_sink * v_sink. If v_sink carries semantic content, that content gets injected into the residual stream every time a head dumps mass there, distorting downstream computation. BOS's embedding is content-light, so the injection is small.

Why position 0 wins

Only position 0 satisfies all three. Recent tokens fail predictability. High-frequency words fail predictability and content-lightness. Random positions fail predictability. BOS at position 0 wins by elimination.

Key insight: the choice of sink position is not arbitrary. It is the unique solution to the constraints, which is why every pretrained LLM converges to the same pattern.

Why softmax-must-sum-to-1 forces the sink to exist
Why the other options are wrong
Practical consequences and modern fixes
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Xiao et al. 2023 (StreamingLLM): characterized the sink phenomenon and showed that keeping the first 4 tokens in the KV cache enables million-token-scale streaming generation on Llama-2 7B.
  • Llama 4 Maverick, GPT-5.5, Claude Opus 4.7, Gemini 3.1 Pro, DeepSeek V4: all exhibit classical BOS sinks; their production serving stacks include StreamingLLM-style sink retention.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhy does dropping BOS from a sliding-window KV cache cause long-context generation to collapse rather than degrade gracefully?
A

Every sink head depends on having BOS available to dump its mandatory mass. When BOS falls out of scope, those heads route their mass onto whatever happens to be at the start of the truncated window, a real content token. That token's representation gets corrupted by carrying both content signal and sink mass, the corruption propagates through the residual stream within a few layers, and downstream attention and MLP layers read corrupted inputs. The collapse is non-graceful because the failure is in the residual stream's geometry, not in any one attention pattern.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Picking 'most recent token' because recency biases attention. Recent tokens do receive a lot of attention, but not the sink-style no-op dump that defines attention sinks.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Why position 0 is the natural sink and not any other position

  • How softmax's row sum to 1 forces mass to land somewhere

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Explain scaled dot product attention.
Short answer·Medium