Interactive Diagram: Self-Attention vs. Cross-Attention Visualized

ProfTomYeh · x · 2026-08-16

Prof. Tom Yeh released an interactive diagram illustrating the difference between self-attention and cross-attention. Self-attention is likened to neighbors querying each other (N×N matrix), while cross-attention resembles neighbors querying a different group of teens (N×M matrix). The post includes T/F questions to test understanding of QKV dimensions.

Original post →

More from Research

Research channel →