Floating-Point Numbers
Level 2
Coming soon
This lesson is being written. Explore the graph meanwhile.
You will need
Unlocks
- Beam SearchBeam search finds a high-probability output sequence by keeping the B best partial sequences at each step, a middle path between greedy choice and trying everything.
- Compute-Optimal TrainingFor a fixed compute budget, a language model reaches its lowest loss when its parameter count and its training tokens grow together, at roughly 20 tokens per parameter.
- Finite Difference MethodThe finite difference method replaces a derivative with a difference between nearby function values, turning a differential equation into algebra a computer can solve.
- Gaussian EliminationGaussian elimination solves a system of linear equations by subtracting multiples of one equation from the others until the unknowns can be read off one at a time.
- GPU Memory HierarchyA GPU has very fast arithmetic units but slow access to its large memory, so a program runs at the speed of its memory traffic unless it reuses data on-chip.
- Gradient Norm ClippingGradient norm clipping caps the total size of the gradient at a threshold and keeps its direction, so one huge step cannot wreck training.
- IO ComplexityIO complexity counts how many values an algorithm moves between slow and fast memory, which often predicts real speed better than counting operations.
- Matrix ExponentialThe matrix exponential e^A is the power series of e^x with a square matrix in place of x, and it solves linear systems of differential equations x' = Ax.
- Matrix RankThe rank of a matrix counts how many of its rows or columns are truly independent, which is the number of directions its outputs can reach.
- QuantizationQuantization stores a network's weights and activations as low-precision integers, such as 8-bit, instead of 32-bit floats, cutting memory and speeding up arithmetic at the cost of a small rounding error.
- Singular Value Decomposition (SVD)Every matrix, square or not, splits into a rotation, a stretch along the coordinate axes, and another rotation, so its action is easy to see and to approximate.
- SoftmaxSoftmax turns a list of arbitrary scores into positive numbers that sum to one, so a network can report a probability for each class.
- Vector NormA vector norm is a single non-negative number that gives a vector's length, and the Euclidean norm is the length you would measure with a ruler.