Deep Paper Reading › Module 2: Notation and maths
Reading an equation out loud
Lesson 2 of 3 · 2 min
An equation is a sentence. If you can say it out loud in plain words, you understand it. If you cannot, you have found exactly what to study.
The method
- Name the output. What does the left side give you?
- Read each term. Say each symbol using your symbol table.
- Say what the operations do. Divide, add up, take the largest, squash between 0 and 1.
- Ask why each part is there. What would break if you removed it?
A real example: attention
The Transformer paper defines attention as:
Attention(Q, K, V) = softmax(Q Kᵀ / √d_k) V
Read out loud:
- Q K ᵀ: compare every question (query) with every label (key), giving a score for each pair.
- / √d_k: shrink the scores, so they do not get too large when vectors are long.
- softmax(...): turn each row of scores into weights that add up to 1.
- ... V: use those weights to take a weighted average of the values.
In one sentence: each word looks at every other word, decides how much to pay attention to each, and mixes their information by those amounts.
The "why" step matters most
The paper explains the √d_k part directly: without it, large dot products push softmax into regions where learning is very slow. Asking "why is this here?" is how you find the design decisions that make a method work.
RememberIf you can say the equation in one plain sentence, you understand it. If you can say why each part is there, you understand the paper.