How a causal mask hides the future

Single-head attention with N = 4 tokens and dk = dv = 2. Row i of the grid holds query i scored against every key. The 1/√dk scaling is left out to keep the numbers small.