Spectral Filters, Dark Signals, and Attention Sinks
–arXiv.org Artificial Intelligence
Projecting intermediate representations onto the vocabulary is an increasingly popular interpretation tool for transformer-based LLMs, also known as the logit lens. We propose a quantitative extension to this approach and define spectral filters on intermediate representations based on partitioning the singular vectors of the vocabulary embedding and unembedding matrices into bands. We find that the signals exchanged in the tail end of the spectrum are responsible for attention sinking (Xiao et al. 2023), of which we provide an explanation. We find that the loss of pretrained models can be kept low despite suppressing sizable parts of the embedding spectrum in a layer-dependent way, as long as attention sinking is preserved. Finally, we discover that the representation of tokens that draw attention from many tokens have large projections on the tail end of the spectrum.
arXiv.org Artificial Intelligence
Feb-14-2024
- Country:
- Pacific Ocean > North Pacific Ocean
- Gulf of Alaska (0.05)
- Bering Sea > Bristol Bay (0.04)
- Oceania > New Zealand
- North Island
- Auckland Region > Auckland (0.04)
- Wellington Region > Wellington (0.04)
- North Island
- North America
- Canada > Alberta (0.04)
- United States
- Illinois > Cook County
- Chicago (0.04)
- California
- San Francisco County > San Francisco (0.04)
- San Diego County > San Diego (0.04)
- Riverside County > Riverside (0.04)
- Alaska
- Gulf of Alaska (0.05)
- Anchorage Municipality > Anchorage (0.04)
- Illinois > Cook County
- Europe > United Kingdom
- England > Leicestershire > Leicester (0.04)
- Asia
- Philippines (0.04)
- Middle East > Jordan (0.04)
- Pacific Ocean > North Pacific Ocean
- Genre:
- Research Report (1.00)
- Industry:
- Health & Medicine (1.00)
- Technology: