You Need Better Attention Priors

Elon Litman, Gabe Guo
1/21/2026
cs.LGcs.CLstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We generalize the attention mechanism by viewing it through the lens of Entropic Optimal Transport, revealing that standard attention corresponds to a transport problem regularized by an implicit uniform prior. We introduce Generalized Optimal transport Attention with Trainable priors (GOAT), a new attention mechanism that replaces this naive assumption with a learnable, continuous prior. This prior maintains full compatibility with optimized kernels such as FlashAttention. GOAT also provides an EOT-based explanation of attention sinks and materializes a solution for them, avoiding the representational trade-offs of standard attention. Finally, by absorbing spatial information into the core attention computation, GOAT learns an extrapolatable prior that combines the flexibility of learned positional embeddings with the length generalization of fixed encodings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{litman2026need,
  title  = {You Need Better Attention Priors},
  author = {Elon Litman and Gabe Guo},
  year   = {2026},
  eprint = {2601.15380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.15380v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.15380.svg)](https://codeofpaper.com/paper/2601.15380)

Discussion