Efficient Streaming Language Models with Attention Sinks
Xiao et al., 2024, Efficient Streaming Language Models with Attention Sinks (The Twelfth International Conference on Learning Representations (ICLR 2024))
Subscriber deck — free during early access
2 cards in “3.3 Pre-training LLMs with Attention Sinks” · whole deck
3.3 Pre-training LLMs with Attention Sinks
- What did Xiao et al. propose for future pre-training?Prepend a learnable sink token to every training sample. In 160M-parameter models it became a dedicated attention sink: the sink token plus the recent window gave stable streaming perplexity, with no loss in convergence or benchmark accuracy.
- Xiao et al., 2024, Efficient Streaming Language Models with Attention Sinks (The Twelfth International Conference on Learning Representations (ICLR 2024)), §3.3
- How did the “Zero Sink” (softmax-off-by-one) compare with a learnable sink token?Letting attention sum to less than one (equivalent to a zero key and value token) helped only somewhat; the model still relied on other initial tokens. A learnable sink token worked much better.
- Xiao et al., 2024, Efficient Streaming Language Models with Attention Sinks (The Twelfth International Conference on Learning Representations (ICLR 2024)), §3.3
Source
- Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han and Mike Lewis. 2024. Efficient Streaming Language Models with Attention Sinks. In The Twelfth International Conference on Learning Representations (ICLR 2024). https://arxiv.org/abs/2309.17453