Fraction
Division: the top divided by the bottom.
In ML papers
is divided by . In papers fractions often normalize (divide by a total so things sum to 1, as in softmax), average (), or scale (). When the top and bottom are 's or 's, it is a derivative, not a division: see Derivative (d/dx) and Partial derivative.
How to type it
| LaTeX | Shows |
|---|---|
\frac{a}{b} | |
\tfrac{a}{b} small, inline |
A worked example
The in front of a sum turns it into an average.
Equations that use it
- Scaled dot-product attention
- Cross-entropy loss
- Adam update
- Layer normalization
- RMSNorm
- KL divergence
- LoRA
- Batch normalization
- PPO clipped objective
- DPO loss
- AdamW
- Cosine learning-rate schedule
- Perplexity
- Logistic regression
- Principal component analysis (PCA)