François Fleuret invents a compact notation for attention tensor ops

francoisfleuret · x · 2026-10-31

François Fleuret invented a compact one-line notation capturing the full attention-plus-FFN computation of a transformer block:

((Wq | Wk) < QK | Wv) < AV < Wo < (W1 | W2) < W3

Here | denotes parallel weight concatenation and < composition with the following operator (QK scoring, AV weighting), squeezing the whole block into a single pipeline-style expression.

Original post →

More from Fun

Fun channel →