σ — standard deviation, singular value, or sigmoid
Read "sigma". Usually it is the standard deviation: a typical distance of values from their average. With a numbered subscript (section 20.2) it is a singular value, and written as a function, σ(z), it is the sigmoid.
. Taking the square root puts the spread back in the same units as the data, so you can compare it with the values themselves. is the variance.
In Section 20.2 the same letter is used for singular values , which say how strongly a matrix stretches along each of its main directions. The two meanings are unrelated; a numbered subscript (, ) usually means a singular value.
Written as a function, is the sigmoid, which squashes any number into the range 0 to 1. That is its meaning in Swish, , in section 15.4: the sigmoid acts as a soft on/off switch on .
Example
Square the distances from the mean, average them to get the variance, then take the square root.
Where the course uses it
- 3.1 Random Variables, Distributions, and Sampling · Module 3, Probability and Informationfirst use
- 3.2 Expectation and Variance · Module 3, Probability and Information
- 3.6 The Sigmoid and Preferences Between Pairs · Module 3, Probability and Information
- 5.4 Vanishing and Exploding Gradients · Module 5, Sequences Before Transformers
- 6.3 Why Divide by the Square Root of the Key Width · Module 6, Attention
- 7.3 LayerNorm · Module 7, The Block and the Full Model
- 15.4 SwiGLU · Module 15, The LLaMA Block
- 20.2 The Singular Value Decomposition · Module 20, Adaptation: Fine-Tuning, LoRA, Distillation
- 21.4 Reward Models From Preferences · Module 21, Preference Learning: RL, RLHF and DPO
- 21.6 Direct Preference Optimization · Module 21, Preference Learning: RL, RLHF and DPO
Related terms
- Var — varianceRead "the variance of X". It measures how spread out a random quantity is around its average. Its square root is the standard deviation.
- SVD — singular value decompositionRead "W equals U Sigma V transpose". Any matrix can be split into three steps: a rotation, a stretch along each axis, and another rotation.