First Passage Attention
Yuxuan Liu
University of Bergen
Published October 15, 2026 · on the feed October 20, 2026 · ▲ 1 · arXiv 2610.22714
The abstract
Augmenting softmax attention with forget gates typically relies on summing decay contributions along the key--query path. Because such accumulation is monotonic, these mechanisms cannot selectively erase intermediate context while preserving older, structurally relevant tokens. We propose First Passage Attention (FPA), which shifts from path summation to path extrema by lowering a key's logit proportionally to the deepest dip of a learned scalar field below that key's level over the intervening span. FPA encompasses the Forgetting Transformer (FoX) as a special case, and when the field and levels follow a shared learned walk, the alive keys with unpenalised logits naturally form a stack. We show that a constant-dimension FPA head realises any subset of keys left alive by subsequent dips, whereas softmax heads with positional biases or token-level forget gates require a head dimension linear in the number of keys. In synthetic experiments, one-layer FPA heads converge to these target sets while comparable softmax and FoX baselines fail on every seed. Scaling to a 110M-parameter language model, FPA matches FoX in perplexity and uniquely achieves perfect passkey retrieval at 8times the training length, even with its key--value cache compressed to about 25%.
The Brief
2:09A short podcast summary of the paper. Written and voiced by AI.
Transcript
First Passage Attention. By Yuxuan Liu, from the University of Bergen. Published on the fifteenth of October. Its code repository is public but slight: three source files.
One way to let softmax attention forget is to add forget gates, and these typically work by summing decay contributions along the path from a key to a query. That accumulation is monotonic. It rules out a particular kind of selectivity: such a mechanism cannot erase intermediate context while preserving older tokens that are still structurally relevant.
First Passage Attention, or FPA, replaces path summation with path extrema. A key's logit is lowered in proportion to the deepest dip of a learned scalar field below that key's level, over the span that lies between the key and the query. What counts is not how much decay piled up along the way, but how low the field ever went.
Two structural facts follow. FPA contains the Forgetting Transformer, FoX, as a special case. And when the field and the levels follow a shared learned walk, the keys left alive, with unpenalised logits, naturally form a stack. On expressiveness, the author shows that one FPA head of constant dimension can realise any subset of keys left alive by subsequent dips. Softmax heads with positional biases, or with token-level forget gates, need a head dimension that grows linearly with the number of keys.
In synthetic experiments, one-layer FPA heads converge to these target sets, while comparable softmax and FoX baselines fail on every seed. Scaled up to a language model of one hundred and ten million parameters, FPA matches FoX in perplexity. It is also the only model compared to achieve perfect passkey retrieval at eight times the training length, and it does so even with its key-value cache compressed to about twenty-five percent.
Moving from a sum to an extreme is a small change of formula with a large change of reach. A sum can only grow with distance, so a gate built on it forgets in order of age. A deepest dip depends on what happened in between, which is what lets older, relevant tokens stay alive while intermediate context is dropped. Passkey retrieval far past the training length, under a compressed cache, is where that shows up in practice.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free