# You Need Better Attention Priors

- **ID:** 1216
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2601.15380
- **Authors:** Elon Litman, Gabe Guo
- **Venue:** arXiv:2601.15380 (cs.LG), submitted 21 Jan 2026, v2 23 Aug 2026
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Tags:** goat, attention-priors, entropic-optimal-transport, rope, attention-sinks, long-context-extrapolation, flashattention
- **Topics:** attention mechanisms, optimal transport, positional encodings, long-context, attention sinks, FlashAttention
- **Added:** 2026-10-03
- **Verified:** 2026-10-03
- **Page:** https://papers.projxon.ai/entries/1216

## Summary

Generalizes attention through the lens of Entropic Optimal Transport (EOT): standard attention corresponds to a transport problem regularized by an implicit uniform prior. GOAT (Generalized Optimal Transport Attention with Trainable priors) replaces that naive assumption with a learnable, continuous prior that decouples spatial geometry from token semantics — standard positional encodings (e.g., RoPE) entangle position with meaning and corrupt semantic representations when forced to handle structural biases like attention sinks. The prior maintains full compatibility with optimized kernels like FlashAttention (zero compute overhead). GOAT also provides an EOT-based explanation of attention sinks and a solution that avoids standard attention's representational trade-offs. By absorbing spatial information into the core attention computation, GOAT learns an extrapolatable prior combining the flexibility of learned positional embeddings with the length generalization of fixed encodings — strong long-context extrapolation beyond training length.

## Research notes

- Discovery: @hooshaaii (Hoosha) X thread 2026-10-03 3:04 PM ET (https://x.com/hooshaaii/status/2106460401852661820), 1.3K views, 3 self-thread replies
- Stanford
- Code: github.com/elonlit/goat
- License: CC BY 4.0

## Similar entries

- [The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks](https://papers.projxon.ai/entries/1263) (paper, #1263)
- [DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts](https://papers.projxon.ai/entries/500) (paper, #500)
- [Screening Is Enough](https://papers.projxon.ai/entries/529) (paper, #529)
- [Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training](https://papers.projxon.ai/entries/1230) (paper, #1230)
- [A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training](https://papers.projxon.ai/entries/1257) (paper, #1257)
- [xattn](https://papers.projxon.ai/entries/782) (code, #782)
