Multi-letter names
A run of italic letters like pos or model is usually one name, not a product of single letters.
In ML papers
In math, letters written side by side are multiplied: is times . But papers often write whole words in italics, like , or , and they mean one name. In the Transformer paper (Vaswani et al. 2017), is the positional encoding at position , and is the model's width; nothing is being multiplied.
The cleaner way is upright type: for a function (with \operatorname, which also adds the right spacing) and or for a label. Italic words come from typing them without those commands. Read a run of italic letters as a single name whenever it spells a word.
How to type it
| LaTeX | Shows |
|---|---|
\operatorname{softmax}(x) a function name | |
d_{\mathrm{model}} a label | |
\text{pos} |
A worked example
Same meaning, written two ways; the upright one makes it clear that "model" is a label.
Common confusions
- Sometimes the letters really are separate: is times , and is a product of two matrices. If the letters do not spell a word and are defined one by one, they multiply.