flâneur — a map of the web's best reading

Attention Is Off By One – Evan Miller

evanmiller.org · 2,729 words · saved by 7 readers

Let’s fix these pesky Transformer outliers using Softmax One and QuietAttention.

Attention Is Off By One – Evan Miller Attention Is Off By One By Evan Miller July 24, 2023 About which one cannot speak, one must pass over in silence. –Wittgenstein Do you see the off-by-one error in this formula? \[ \textrm{Attention}(Q, K, V) = \textrm{softmax}\left(\frac{QK^T}{\sqrt{d}}\right)V \] The attention formula is the central equation of modern AI, but there’s a bug in it that has been driving me nuts the last week. I tried writing a serious-looking research paper about the bug and my proposed fix, but I lost a series of pitched battles against Pytorch and biblatex , so I figured I

Explore this link on the map →

saved by

related reading