Live data from Hacker News

How attention sinks keep language models stable

hanlab.mit.edu

11–20 of 38 posts

Re: How attention sinks keep language models stable

#11
post #2

> The first few tokens often carried minimal semantic information—sometimes just a start-of-sequence marker or common words like "the" or "a." I wonder if it makes sense to use the first word as a title of sorts rather than going straight in grammatically correct sentence when prompting

"Magnets. How do they work?"

Re: How attention sinks keep language models stable

#13
post #2

> The first few tokens often carried minimal semantic information—sometimes just a start-of-sequence marker or common words like "the" or "a." I wonder if it makes sense to use the first word as a title of sorts rather than going straight in grammatically correct sentence when prompting

Some people start their prompts with "Hello" or "Please" or something similar, out of some habitual sense of politeness, I think. It would be hilarious if those prompts really work better because the model can use those words as attention sinks.

Re: How attention sinks keep language models stable

#14
post #2

> The first few tokens often carried minimal semantic information—sometimes just a start-of-sequence marker or common words like "the" or "a." I wonder if it makes sense to use the first word as a title of sorts rather than going straight in grammatically correct sentence when prompting

"Magnets. How do they work?"

The heuristic doesn't work quite so well when applied to the actual original version of that line.

Re: How attention sinks keep language models stable

#16
The singular defects (or high-norm tokens) [1] may be related to attention sinks. It is interesting that the direction of all high-norm tokens share the same direction. Maybe the theory behind is not very complex and the issue can be fixed cleverly during training.

[1] https://openreview.net/pdf?id=4yBnUokU2v

Re: How attention sinks keep language models stable

#18

Seems like this was a better solution to the same problem https://www.evanmiller.org/attention-is-off-by-one.html

Did this end up working? It sounds plausible but it needs some empirical validation.

Yeah, attention sinks were applied to gpt-oss

Re: How attention sinks keep language models stable

#19
post #13
post #2

> The first few tokens often carried minimal semantic information—sometimes just a start-of-sequence marker or common words like "the" or "a." I wonder if it makes sense to use the first word as a title of sorts rather than going straight in grammatically correct sentence when prompting

Some people start their prompts with "Hello" or "Please" or something similar, out of some habitual sense of politeness, I think. It would be hilarious if those prompts really work better because the model can use those words as attention sinks.

One point that Karpathy has made in some of his videos is that using additional tokens in the prompt can facilitate computation. If you ask a transformer to do some basic math, it will be more likely to get the right answer (or at least a better approximation) with a more verbose prompt. To me, this backs up the use of more conversational language ("Please," etc.) when prompting.

However, that seems to be contradicted by what was shown recently with the successful International Math Olympiad effort. Their prompts, such as https://github.com/aw31/openai-imo-2025-proofs/blob/main/pro... , were very terse. It's hard to tell where the prompt stops and the CoT response starts, in fact.

So there is probably some interplay between the need for attention sinks and the use of step-by-step reasoning. It might not be too surprising if the latter works because it's an indirect way to optimize the former.

Re: How attention sinks keep language models stable

#20
post #13

Earlier quoted context omitted.

Some people start their prompts with "Hello" or "Please" or something similar, out of some habitual sense of politeness, I think. It would be hilarious if those prompts really work better because the model can use those words as attention sinks.

One point that Karpathy has made in some of his videos is that using additional tokens in the prompt can facilitate computation. If you ask a transformer to do some basic math, it will be more likely to get the right answer (or at least a better approximation) with a more verbose prompt. To me, this backs up the use of more conversational language ("Please," etc.) when prompting. However, that seems to be contradicte…

I wonder if the model could also just make its own sink tokens if the prompt doesn't have any. E.g. if the model first emits some "fluff" like "The answer to this question is:" before starting with the actual answer, it could use those tokens as attention sinks. Same with "thinking tokens" that don't directly contribute to the answer or invisible formatting tokens, etc.
Post reply on HN