Why Linear Algebra Matters for AI
Almost everything a modern AI system computes is linear algebra.
Foundations & Learning Resources
10 entriesCore ideas and where to learn them.
01Linear Algebra (MIT OCW 18.06, Gilbert Strang)The widely used free university course.
02Linear Algebra Done Right (Axler)Proof-based textbook, free to download.
03Essence of Linear Algebra (3Blue1Brown)Visual video series building geometric intuition.
04Mathematics for Machine LearningFree book covering linear algebra, analytic geometry and decompositions.
05Introduction to Linear Algebra for Applied Machine Learning with PythonFree online notes with Python examples.
06Linear Algebra and Its Applications (Khan Academy)Gentle introduction with exercises.
07Linear Algebra (Deep Learning book, ch. 2)Concise chapter written for deep learning readers.
08The Matrix CookbookReference of matrix identities and derivatives.
09Matrix Calculus for Deep LearningGradients of vector and matrix expressions.
10Immersive Linear AlgebraInteractive online textbook.
Matrix Decompositions & Dimensionality Reduction
2 entriesFactorizations that reveal structure in data.
Linear Algebra Inside Neural Networks
13 entriesWhere matrices and tensors appear in models.
13The Illustrated TransformerVisual walkthrough of the matrix operations in a transformer.
14Efficient Estimation of Word Representations in Vector SpaceWord2vec embeddings and vector arithmetic.
15GloVe: Global Vectors for Word RepresentationEmbeddings learned from a word co-occurrence matrix.
16Deep Residual Learning for Image RecognitionResNet; layers as linear maps with skip connections.
17Batch NormalizationNormalization of layer inputs.
18Backpropagation (matrix form), Neural Networks and Deep Learning ch. 2Matrix-based derivation of backpropagation.
19Dive into Deep Learning: linear algebraExecutable notes on tensors and linear algebra.
20Attention Is All You NeedThe Transformer paper: scaled dot-product attention built from matrix products.
21FlashAttentionExact attention computed with tiling that is aware of GPU memory traffic, avoiding the full score matrix.
22FlashAttention-2Faster attention with better parallelism and work partitioning on GPUs.
23RoFormer (rotary position embedding)Encodes token position by rotating query and key vectors.
24DeepSeek-V2 (multi-head latent attention)Mixture-of-experts model paper that introduces multi-head latent attention to shrink the KV cache with a low-rank projection.
25MambaLinear-time sequence modelling with selective state spaces, an alternative to attention.
Low-Rank Methods & Efficient AI
7 entriesUsing structure in matrices to cut cost.
26LoRA: Low-Rank Adaptation of Large Language ModelsFine-tunes with low-rank updates to weight matrices.
27QLoRAFine-tuning with a quantized base model and low-rank adapters.
28Hugging Face PEFTLibrary for LoRA and other parameter-efficient methods. GitHub lists v0.22.0 as the latest release, from 19 November 2026.
29GaLore: Memory-Efficient LLM Training by Gradient Low-Rank ProjectionLow-rank projection of gradients during training.
30LinformerSelf-attention with linear complexity using low-rank projections.
31DoRAWeight-decomposed low-rank adaptation, a refinement of LoRA.
32SVD-LLMTruncation-aware singular value decomposition for compressing large language models.
Matrix-Aware Optimizers
4 entriesOptimizers that treat weights as matrices instead of flat vectors of numbers.
33ShampooPreconditioned stochastic tensor optimization that keeps one preconditioning matrix per tensor dimension.
34SOAPImproves and stabilises Shampoo using Adam.
35MuonOptimizer for hidden layers that applies a Newton-Schulz iteration to approximately orthogonalise each update matrix, per its author.
36Muon is Scalable for LLM TrainingPaper on scaling the Muon optimizer to large language model training.
Numerical Linear Algebra & Hardware
7 entriesComputing with matrices accurately and fast.
37Numerical Linear Algebra (Trefethen & Bau)Standard text on the algorithms and their stability.
38Matrix Computations (Golub & Van Loan)Reference on matrix algorithms.
39Fast.ai Computational Linear AlgebraCourse focused on practical algorithms.
40BLAS (Basic Linear Algebra Subprograms)Standard interface for vector and matrix kernels.
41NVIDIA cuBLASGPU-accelerated BLAS.
42TritonLanguage and compiler for writing GPU kernels, used for custom matrix and attention kernels.
43Discovering faster matrix multiplication algorithms with reinforcement learningNature paper on AlphaTensor, which searches for matrix multiplication algorithms.
Libraries & Tools
7 entriesSoftware for linear algebra in Python, Julia and more.
44NumPy linear algebraMatrix and decomposition routines.
45SciPy linalgExtended linear algebra and sparse routines.
46PyTorchTensor library with linear algebra operations and autograd.
47einopsReadable tensor reshaping and reductions.
48SymPy matricesSymbolic linear algebra in Python.
49Julia LinearAlgebraStandard library for linear algebra in Julia.
50EigenC++ template library for linear algebra.
Related Pages
5 entriesNeighbouring pages on this site.