What is an attention sink, why does it exist, and what breaks if you evict it from the KV cache?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
An attention sink is a position, almost always the very first token, that soaks up a large share of attention mass across most heads and layers regardless of its content. It is not a bug and it is not about the token being important.
Full worked answer with diagram
An attention sink is a position, almost always the very first token, that soaks up a large share of attention mass across most heads and layers regardless of its content. It is not a bug and it is not about the token being important.
It exists because softmax must sum to 1. A head that has nothing relevant to fetch at this position still has to put its full weight somewhere. It learns to dump it on a token every position can see (position 0, under causal masking) whose value vector contributes close to nothing. So the sink is how a model expresses "attend to nothing" inside a mechanism with no null option.
The practical consequence is StreamingLLM's finding. If you run naive sliding-window KV eviction and the window rolls past token 0, perplexity does not degrade gracefully, it explodes. The mass that was harmlessly parked on the sink gets redistributed onto real tokens, distorting every attention distribution in the model. The fix is almost embarrassingly cheap: pin the first ~4 tokens' KV permanently alongside the rolling window, and stability is restored out to millions of streamed tokens.
Be precise about what that does not do. It does not extend effective context. Tokens evicted from the middle are gone. It is for endless streaming, a chat session that never terminates, not for long-context recall.
Architectural responses: train with a dedicated learnable sink token so the behaviour is explicit rather than emergent; or give the softmax an escape valve, either an off-by-one formulation with an extra zero logit in the denominator or a learned per-head bias, so heads do not need to hijack a real token to no-op.
The connection interviewers love: sink positions carry enormous activation outliers, since the model pushes huge values through specific residual dimensions to win that competition. That is a large part of why naive activation quantization falls over, and it ties this straight into serving.
Worth sketching. The branch at eviction is the memorable part: one token rolls off and every attention distribution shifts.
flowchart TD
S["softmax must sum to 1"] --> NN["a head with nothing to fetch<br/>still has to put its mass somewhere"]
NN --> T0["token 0: visible to every position,<br/>value vector contributes ~ nothing"]
T0 --> EV{"sliding window rolls past token 0?"}
EV -->|"evicted"| BOOM["mass lands on real tokens instead,<br/>perplexity explodes"]
EV -->|"first ~4 tokens pinned"| OK["stable over millions of streamed tokens"]
OK --> NOTE["but no extra recall:<br/>evicted middle tokens are still gone"]
What a good answer covers
- An attention sink is a position, almost always the very first token, that soaks up a large share of…
- It is not a bug and it is not about the token being important
- It exists because softmax must sum to 1
- A head that has nothing relevant to fetch at this position still has to put its full weight somewhere
- It learns to dump it on a token every position can see (position 0, under causal masking) whose value…
In the glossary: Attention · Quantization
Interviewer follow-ups to expect
How does a learned softmax bias change the quantization story?
Would you expect attention sinks in an encoder-only model?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep