Compute attention one tile at a time, keeping a running max, sum and output per row, so the n × n table of scores never goes to slow memory, and the answer is exactly plain attention’s.
This interactive visualization needs JavaScript.