Original transformer scales with soft dot-product attention
The author explains the mechanics and efficiency of scaled dot-product attention in the original transformer from first principles, comparing soft and hard lookups, self-attention, and cross-attention. The post demonstrates how learned queries, keys, and values are combined with positional encodings, causal masking, and multi-headed attention to model sequence dependencies. Open article →