Type at least 2 letters. Enter opens the first result, Esc closes.

    Glossary

    The technical terms of this track, with short definitions (and the Persian term where available). Each term links to the lesson where it is introduced.

    action
    In mechanics, the functional S[q]=∫(kinetic−potential energy) dtS[q] = \int (\text{kinetic} - \text{potential energy})\,dt. Its Euler–Lagrange equation is Newton's law (Hamilton's principle). Introduced in: Lesson 13
    activation
    The output al=φ(zl)a^l = \varphi(z^l) of a layer after the elementwise activation function φ\varphi (ReLU, tanh, ...). Introduced in: Lesson 6
    adjoint
    In reverse mode, the gradient uˉ=∂ℓ/∂u\bar u = \partial \ell/\partial u of the final scalar output with respect to an intermediate value uu. It has the same shape as uu. Introduced in: Lesson 4
    antiderivative
    A function GG with G′=fG' = f. By the fundamental theorem of calculus, ∫abf(x) dx=G(b)−G(a)\int_a^b f(x)\,dx = G(b) - G(a). Introduced in: Lesson 10
    automatic differentiation (AD)
    Computing exact derivatives of a program (up to rounding) by applying the chain rule to each primitive operation. The cost is a small constant times the cost of the program. Introduced in: Lesson 5
    backpropagation
    Reverse-mode AD applied to a neural network: one backward sweep gives the gradient of the loss with respect to every weight. Introduced in: Lesson 6
    baseline (control variate)
    A constant bb subtracted in the score-function estimator, (f(x)−b) sθ(x)(f(x) - b)\,s_\theta(x). It keeps the estimator unbiased, because the score has mean zero, and can reduce its variance. Introduced in: Lesson 12
    Bayesian information criterion (BIC)
    BIC=−2log⁡p(D∣θ^)+dlog⁡n\mathrm{BIC} = -2\log p(D \mid \hat\theta) + d\log n, a large-nn form of the Laplace evidence for dd parameters and nn data points. Smaller is better. Introduced in: Lesson 11
    calculus of variations
    The calculus of functionals: how J[u]J[u] changes when the function uu changes, and the conditions for uu to minimize or make JJ stationary. Introduced in: Lesson 13
    catastrophic cancellation
    The loss of correct digits when two nearly equal floating-point numbers are subtracted. Introduced in: Lesson 7
    centering matrix
    The matrix Π=I−1D11⊤\Pi = I - \frac1D \mathbf 1 \mathbf 1^\top. Πx\Pi x subtracts the mean of the entries of xx from each entry. Introduced in: Lesson 6
    central difference
    D0(h)=f(x+h)−f(x−h)2hD_0(h) = \frac{f(x+h) - f(x-h)}{2h}. Its truncation error is O(h2)O(h^2) (second order). Introduced in: Lesson 7
    chain rule
    The derivative of a composition is the product of the derivatives: D(g∘f)(x)=Dg(f(x)) Df(x)D(g \circ f)(x) = Dg(f(x))\,Df(x). In one variable, rates multiply. Introduced in: Lesson 4
    change-of-variables formula
    For a diffeomorphism TT: ∫T(V)f(x) dx=∫Vf(T(y)) ∣det⁡DT(y)∣ dy\int_{T(V)} f(x)\,dx = \int_V f(T(y))\,|\det DT(y)|\,dy. Small volumes scale by ∣det⁡DT∣|\det DT|. Introduced in: Lesson 10
    checkpointing
    Storing only some intermediate values in the forward run and recomputing the others in the backward run. It trades extra compute for less memory. Introduced in: Lesson 5
    complex-step derivative
    The approximation f′(x)≈Im⁡f(x+ih)/hf'(x) \approx \operatorname{Im} f(x + ih)/h for a real-analytic ff. It has no subtraction, so the step can be tiny and the result is accurate to machine precision. Introduced in: Lesson 7
    computational graph
    A directed acyclic graph with one node per intermediate value of a program and an edge j→ij \to i when viv_i is computed from vjv_j. Introduced in: Lesson 4
    condition number
    For a quadratic bowl, the ratio κ\kappa of the largest to the smallest curvature (Hessian eigenvalue). A large κ\kappa means long thin contour ellipses and slow, zig-zag gradient descent. Introduced in: Lesson 2
    continuously differentiable (C1C^1)
    A function whose partial derivatives all exist and are continuous. Such a function is differentiable. Introduced in: Lesson 2
    contour plot
    A drawing of a function of two variables by its level sets (contour lines) in the plane, like the height lines of a map. Introduced in: Lesson 2
    convex function
    A function whose chords lie on or above its graph: f(λa+(1−λ)b)≤λf(a)+(1−λ)f(b)f(\lambda a + (1-\lambda) b) \le \lambda f(a) + (1-\lambda) f(b) for λ∈[0,1]\lambda \in [0, 1]. A twice differentiable function of one variable is convex exactly when f′′≥0f'' \ge 0. Introduced in: Lesson 1
    cotangent
    The output weighting vector uu in a VJP u⊤Ju^\top J. In reverse mode it is the adjoint that flows backward. Introduced in: Lesson 5
    critical point
    A point where the derivative is zero (f′(x∗)=0f'(x^*) = 0, or ∇f(x∗)=0\nabla f(x^*) = 0 in many variables). Every inner local minimum or maximum of a differentiable function is one, but not every critical point is an extremum. Introduced in: Lesson 1
    deep equilibrium model (DEQ)
    A network whose output is a fixed point z∗=f(z∗,x;θ)z^* = f(z^*, x; \theta) of one layer. It is trained with an implicit gradient, so memory does not grow with the number of solver iterations. Introduced in: Lesson 9
    definite integral
    The limit ∫abf(x) dx\int_a^b f(x)\,dx of Riemann sums as the strips get thin, the signed area under the graph of ff. Introduced in: Lesson 10
    degenerate critical point
    A critical point whose Hessian is singular (has a zero eigenvalue). When the other eigenvalues all have one sign, the second-order test cannot decide its type. Introduced in: Lesson 3
    derivative
    The number f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}, when this limit exists. It is the slope of the tangent line and the rate of change of ff at xx. Introduced in: Lesson 1
    diffeomorphism
    A one-to-one map TT onto its image such that TT and T−1T^{-1} both have continuous derivatives. Introduced in: Lesson 10
    difference quotient
    The slope f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h} of a secant line. The derivative is its limit as h→0h \to 0. Introduced in: Lesson 1
    differentiable
    A function is differentiable at xx if its derivative exists there, that is, if f(x+h)=f(x)+f′(x) h+o(h)f(x+h) = f(x) + f'(x)\,h + o(h). In many variables: if a linear map Df(x)Df(x) with f(x+h)=f(x)+Df(x) h+o(∥h∥)f(x+h) = f(x) + Df(x)\,h + o(\|h\|) exists. Introduced in: Lesson 1
    directional check
    A cheap gradient check along one random direction vv: compare f(x+hv)−f(x−hv)2h\frac{f(x + hv) - f(x - hv)}{2h} with g⊤vg^\top v. Introduced in: Lesson 7
    directional derivative
    The rate of change of ff at xx along a vector vv: Dvf(x)=lim⁡t→0f(x+tv)−f(x)tD_v f(x) = \lim_{t \to 0} \frac{f(x + tv) - f(x)}{t}. For a differentiable ff it equals ∇f(x)⊤v\nabla f(x)^\top v. Introduced in: Lesson 2
    Dirichlet energy
    The functional ∫(12∣∇u∣2−fu) dx\int \big(\frac12 |\nabla u|^2 - f u\big)\,dx. Its Euler–Lagrange equation is the Poisson equation −Δu=f-\Delta u = f. Introduced in: Lesson 13
    dual number
    A number a+bεa + b\varepsilon with ε2=0\varepsilon^2 = 0. Then f(a+bε)=f(a)+f′(a) b εf(a + b\varepsilon) = f(a) + f'(a)\,b\,\varepsilon, so arithmetic on dual numbers is forward-mode AD. Introduced in: Lesson 5
    energy (Ritz) loss
    A physics loss that minimizes the energy functional J[uθ]J[u_\theta] of a network directly, as in the Deep Ritz method. Introduced in: Lesson 13
    error signal
    In backpropagation, δl=∂ℓ/∂zl\delta^l = \partial \ell/\partial z^l, the gradient of the loss with respect to the pre-activation of layer ll. Introduced in: Lesson 6
    essential boundary condition
    A boundary condition that prescribes the value of uu (a Dirichlet condition). It must be imposed on the admissible functions. Introduced in: Lesson 13
    Euler–Lagrange equation
    The condition Lu−ddxLu′=0L_u - \frac{d}{dx} L_{u'} = 0 that a smooth minimizer (or stationary point) of ∫L(x,u,u′) dx\int L(x, u, u')\,dx must satisfy. Introduced in: Lesson 13
    expectation
    E[f(X)]=∫f(x) pX(x) dx\mathbb E[f(X)] = \int f(x)\,p_X(x)\,dx, the average of f(X)f(X) weighted by the density of XX. Introduced in: Lesson 10
    exploding gradients
    The gradient of early layers grows exponentially with depth because it is a product of many Jacobians that stretch vectors. Introduced in: Lesson 6
    expression swell
    The fast growth of the size of a formula, and of its symbolic derivative, when a program with repeated subexpressions is written as one expression. Introduced in: Lesson 5
    fan-out
    A value fans out when several later operations use it. Its adjoint is the sum of the contributions of all its uses. Introduced in: Lesson 4
    finite difference
    An approximation of a derivative by a difference of function values divided by a step, such as (f(x+h)−f(x))/h(f(x+h) - f(x))/h. Introduced in: Lesson 7
    first variation
    The directional derivative of a functional: δJ[u;η]=ddϵJ[u+ϵη]∣ϵ=0\delta J[u; \eta] = \frac{d}{d\epsilon} J[u + \epsilon\eta]\big|_{\epsilon=0}. Introduced in: Lesson 13
    Fisher information matrix
    F=E[∇θlog⁡pθ(y) ∇θlog⁡pθ(y)⊤]F = \mathbb E[\nabla_\theta \log p_\theta(y)\,\nabla_\theta \log p_\theta(y)^\top], with yy drawn from the model. For exponential-family outputs with natural parameters, it equals the Gauss-Newton matrix. Introduced in: Lesson 8
    fixed point
    A point x∗x^* with x∗=f(x∗,θ)x^* = f(x^*, \theta). Its derivative is dx∗/dθ=(I−fx)−1fθdx^*/d\theta = (I - f_x)^{-1} f_\theta when I−fxI - f_x is invertible. Introduced in: Lesson 9
    forward difference
    D+(h)=f(x+h)−f(x)hD_+(h) = \frac{f(x+h) - f(x)}{h}. Its truncation error is O(h)O(h) (first order). Introduced in: Lesson 7
    forward mode
    AD that carries a tangent next to each value and computes one JVP JvJv per run. Good for few inputs and many outputs. Introduced in: Lesson 5
    functional
    A map from a function uu to a number J[u]J[u], for example the length of a curve or an energy ∫abL(x,u,u′) dx\int_a^b L(x, u, u')\,dx. Introduced in: Lesson 13
    functional derivative
    The function δJ/δu\delta J/\delta u with δJ[u;η]=∫δJδu η dx\delta J[u; \eta] = \int \frac{\delta J}{\delta u}\,\eta\,dx for all admissible η\eta. It is the gradient of JJ in the L2L^2 inner product. Introduced in: Lesson 13
    Gauss-Newton matrix
    For a loss L(θ)=ℓ(r(θ))L(\theta) = \ell(r(\theta)), the matrix G=J⊤∇2ℓ(r) JG = J^\top \nabla^2 \ell(r)\,J with J=Dr(θ)J = Dr(\theta). It drops the curvature of rr and is positive semidefinite when ℓ\ell is convex. Introduced in: Lesson 8
    Gaussian integral
    ∫Rde−12x⊤Ax+b⊤x dx=(2π)ddet⁡A  e12b⊤A−1b\int_{\R^d} e^{-\frac12 x^\top A x + b^\top x}\,dx = \sqrt{\frac{(2\pi)^d}{\det A}}\; e^{\frac12 b^\top A^{-1} b} for symmetric positive definite AA. In 1-D, ∫e−x2dx=π\int e^{-x^2}dx = \sqrt\pi. Introduced in: Lesson 11
    Gaussian smoothing
    Estimating ∇μE[f(μ+σϵ)]=E[f(μ+σϵ) ϵ]/σ\nabla_\mu \mathbb E[f(\mu + \sigma\epsilon)] = \mathbb E[f(\mu + \sigma\epsilon)\,\epsilon]/\sigma from function values only (evolution strategies). Introduced in: Lesson 12
    Gauss–Hermite quadrature
    A KK-node rule ∫e−t2g(t) dt≈∑kwk g(tk)\int e^{-t^2} g(t)\,dt \approx \sum_k w_k\,g(t_k) that is exact for polynomials gg of degree up to 2K−12K - 1. It turns Gaussian expectations into short sums. Introduced in: Lesson 11
    gradient
    The vector ∇f(x)\nabla f(x) of all partial derivatives of a scalar function ff. It points in the direction of steepest increase and is orthogonal to the level set through xx. Introduced in: Lesson 2
    gradient check
    A test of a gradient implementation: compare it with finite differences and require a small relative error. Introduced in: Lesson 7
    gradient descent
    The iteration xt+1=xt−η ∇f(xt)x_{t+1} = x_t - \eta\,\nabla f(x_t): take a small step against the gradient to decrease ff. Introduced in: Lesson 1
    gradient estimator
    A random vector g^\hat g computed from samples that estimates ∇θEpθ[f(x)]\nabla_\theta \mathbb E_{p_\theta}[f(x)]. It is unbiased if E[g^]\mathbb E[\hat g] equals the true gradient. Introduced in: Lesson 12
    gradient flow
    The evolution ut=−δJ/δuu_t = -\delta J/\delta u, the continuous-time limit of gradient descent on a functional. For the Dirichlet energy it is the heat equation. Introduced in: Lesson 13
    Hessian
    The n×nn \times n matrix ∇2f(x)\nabla^2 f(x) of second partial derivatives ∂2f/∂xi∂xj\partial^2 f/\partial x_i \partial x_j of a scalar function. It is symmetric when ff is C2C^2, and it describes the curvature of ff. Introduced in: Lesson 3
    Hessian-vector product (HVP)
    The product Hv=ddt∇f(x+tv)∣t=0Hv = \frac{d}{dt} \nabla f(x + tv)\big|_{t=0}. AD computes it exactly for a few times the cost of a gradient, without forming HH. Introduced in: Lesson 8
    Hutchinson estimator
    The trace estimate 1S∑s=1Szs⊤Azs\frac1S \sum_{s=1}^S z_s^\top A z_s with random probes zsz_s such that E[zz⊤]=I\mathbb E[zz^\top] = I. It needs only products AzsAz_s. Introduced in: Lesson 8
    implicit differentiation
    Differentiating the solution of an equation F(x,θ)=0F(x, \theta) = 0 through the equation itself, with one linear solve at the solution, instead of through the solver's iterations. Introduced in: Lesson 9
    implicit function theorem
    If F(x0,θ0)=0F(x_0, \theta_0) = 0, FF is C1C^1 and FxF_x is invertible there, then the solution x∗(θ)x^*(\theta) is a C1C^1 function near θ0\theta_0 with Dx∗(θ)=−Fx−1FθDx^*(\theta) = -F_x^{-1} F_\theta. Introduced in: Lesson 9
    implicit reparameterization
    A pathwise gradient for distributions without a simple sampling path, from the CDF: ∇θx=−∇θC(x;θ)/pθ(x)\nabla_\theta x = -\nabla_\theta C(x; \theta)/p_\theta(x). Introduced in: Lesson 12
    inflection point
    A point where the graph changes from curving up to curving down, or back. Example: x3x^3 at 0. Introduced in: Lesson 1
    iterated integral
    An integral over several variables computed one variable at a time. Fubini's and Tonelli's theorems say when the order does not matter. Introduced in: Lesson 10
    Jacobian
    The m×nm \times n matrix Df(x)Df(x) of a map f:Rn→Rmf: \R^n \to \R^m, with entries ∂fi/∂xj\partial f_i/\partial x_j. It is the derivative of the map: f(x+h)≈f(x)+Df(x) hf(x + h) \approx f(x) + Df(x)\,h. Introduced in: Lesson 3
    Jacobian-vector product (JVP)
    The product JvJv of a Jacobian with an input direction vv. Forward mode computes JVPs without forming JJ. Introduced in: Lesson 4
    knowledge distillation
    Training a student model on the softmax outputs of a teacher model, often with a temperature TT. Introduced in: Lesson 6
    label smoothing
    Training with a soft target distribution qq instead of a one-hot vector. For softmax cross-entropy the gradient with respect to the logits is p−qp - q. Introduced in: Lesson 6
    Lagrangian
    The integrand L(x,u,p)L(x, u, p) of a functional J[u]=∫abL(x,u(x),u′(x)) dxJ[u] = \int_a^b L(x, u(x), u'(x))\,dx, where pp stands for u′u'. Introduced in: Lesson 13
    Laplace approximation
    The Gaussian N(θ^,H−1)N(\hat\theta, H^{-1}) that approximates a posterior, with θ^\hat\theta the MAP estimate and HH the Hessian of the negative log joint there. Introduced in: Lesson 11
    Laplace's method
    Approximating ∫e−Ψ(θ)dθ\int e^{-\Psi(\theta)}d\theta by replacing Ψ\Psi with its second-order Taylor expansion at the minimum: ≈e−Ψ(θ^)(2π)d/2det⁡(H)−1/2\approx e^{-\Psi(\hat\theta)} (2\pi)^{d/2} \det(H)^{-1/2}. Introduced in: Lesson 11
    level set
    The set {x:f(x)=c}\{x : f(x) = c\} of all inputs where ff has the fixed value cc. In 2-D it is a contour line. Introduced in: Lesson 2
    Levenberg-Marquardt
    A damped Gauss-Newton method that solves (G+μI)δ=−∇L(G + \mu I)\delta = -\nabla L with μ>0\mu > 0. Introduced in: Lesson 8
    local derivative
    The derivative ∂vi/∂vj\partial v_i/\partial v_j of one primitive operation with respect to one of its inputs, with the other inputs fixed. It sits on the edge j→ij \to i of the graph. Introduced in: Lesson 4
    log-derivative trick
    The identity ∇θpθ(x)=pθ(x) ∇θlog⁡pθ(x)\nabla_\theta p_\theta(x) = p_\theta(x)\,\nabla_\theta \log p_\theta(x). It turns the gradient of an expectation into an expectation. Introduced in: Lesson 12
    log-partition function
    The log A(z)A(z) of the normalizing constant of an exponential family with natural parameter zz. Its gradient is the mean and its Hessian is the covariance of the sufficient statistic. Introduced in: Lesson 6
    log-sum-exp
    The function lse⁡(z)=log⁡∑kezk\operatorname{lse}(z) = \log \sum_k e^{z_k}. Its gradient is softmax⁡(z)\operatorname{softmax}(z); compute it stably as m+log⁡∑kezk−mm + \log\sum_k e^{z_k - m} with m=max⁡kzkm = \max_k z_k. Introduced in: Lesson 6
    logits
    The unnormalized scores z∈RCz \in \R^C of the output layer, one per class. Softmax turns them into probabilities. Introduced in: Lesson 6
    machine epsilon
    The relative spacing of floating-point numbers near 1: about 2.2⋅10−162.2 \cdot 10^{-16} in float64 and 1.2⋅10−71.2 \cdot 10^{-7} in float32. Introduced in: Lesson 7
    MAP estimate
    The maximum a posteriori estimate θ^=arg⁡max⁡θp(θ∣D)=arg⁡min⁡θΨ(θ)\hat\theta = \arg\max_\theta p(\theta \mid D) = \arg\min_\theta \Psi(\theta). Introduced in: Lesson 11
    marginal likelihood (evidence)
    The probability of the data with the parameters integrated out: p(D)=∫p(D∣θ) p(θ) dθp(D) = \int p(D \mid \theta)\,p(\theta)\,d\theta. Introduced in: Lesson 11
    midpoint rule
    A Riemann sum with the value of ff at the middle of each strip. Its error is O(h2)O(h^2). Introduced in: Lesson 10
    Monte Carlo integration
    Estimating an integral as an average of the integrand at random points, for example ∫abf≈(b−a)1n∑if(ui)\int_a^b f \approx (b - a)\frac1n \sum_i f(u_i) with uniform uiu_i. The error falls like 1/n1/\sqrt n in any dimension. Introduced in: Lesson 10
    natural boundary condition
    A boundary condition that the minimization itself produces at a free end, Lu′=0L_{u'} = 0 there; for the Dirichlet energy it is u′=0u' = 0. Introduced in: Lesson 13
    negative log joint
    Ψ(θ)=−log⁡p(D∣θ)−log⁡p(θ)\Psi(\theta) = -\log p(D \mid \theta) - \log p(\theta). In deep learning it is the training loss with weight decay, up to a constant. Introduced in: Lesson 11
    Neumann series
    The series (I−A)−1=I+A+A2+⋯(I - A)^{-1} = I + A + A^2 + \cdots, which converges when the spectral radius of AA is below 1. Introduced in: Lesson 9
    Newton step
    The step h=−H−1gh = -H^{-1} g to the critical point of the quadratic model. It is the minimizer of the model when HH is positive definite. Introduced in: Lesson 3
    normalizing flow
    A generative model x=T(z)x = T(z) with an invertible map TT and a simple base density, so that log⁡pX(x)=log⁡pZ(z)−log⁡∣det⁡DT(z)∣\log p_X(x) = \log p_Z(z) - \log|\det DT(z)| is exact. Introduced in: Lesson 10
    numerical differentiation
    Approximating derivatives by finite differences of function values. It has truncation and rounding errors and needs about two evaluations per input. Introduced in: Lesson 5
    Occam factor
    In the Laplace evidence, the factor p(θ^)(2π)d/2det⁡(H)−1/2p(\hat\theta)(2\pi)^{d/2}\det(H)^{-1/2}, roughly the posterior volume divided by the prior volume. It penalizes models that are more flexible than the data need. Introduced in: Lesson 11
    one-hot vector
    The vector eye_y with 1 in entry yy and 0 elsewhere. It encodes the true class yy. Introduced in: Lesson 6
    one-sided derivative
    The limit of the difference quotient when hh goes to 0 only from the right (h>0h > 0) or only from the left (h<0h < 0). The derivative exists when both exist and are equal. Introduced in: Lesson 1
    operator overloading
    Redefining ++, ×\times and other operators for a new number type, so that ordinary code also computes derivatives. Introduced in: Lesson 5
    partial derivative
    The derivative of f(x1,…,xn)f(x_1, \dots, x_n) with respect to one variable xix_i, with all other variables kept fixed. Written ∂f/∂xi\partial f/\partial x_i. Introduced in: Lesson 2
    pathwise estimator (reparameterization trick)
    Write x=g(ϵ,θ)x = g(\epsilon, \theta) with fixed noise ϵ\epsilon and use ∇θf(g(ϵ,θ))\nabla_\theta f(g(\epsilon, \theta)). It needs a differentiable ff and path, and usually has much lower variance. Introduced in: Lesson 12
    pre-activation
    The value zl=Wlal−1+blz^l = W^l a^{l-1} + b^l of a layer before the elementwise activation function. Introduced in: Lesson 6
    precision matrix
    The inverse A=Σ−1A = \Sigma^{-1} of a covariance matrix. It is the matrix in the quadratic exponent of a Gaussian density. Introduced in: Lesson 11
    preconditioned gradient
    A gradient multiplied by a positive definite matrix, −P−1∇f-P^{-1}\nabla f. It is the steepest direction in the norm defined by PP; with PP the Hessian it is Newton's direction. Introduced in: Lesson 2
    primitive operation
    A small operation whose derivative is known in closed form, such as ++, ×\times, exp⁡\exp, tanh⁡\tanh or a matrix product. Programs are compositions of primitives. Introduced in: Lesson 4
    probability density
    A function pX≥0p_X \ge 0 with ∫pX=1\int p_X = 1 and P(X∈B)=∫BpX(x) dxP(X \in B) = \int_B p_X(x)\,dx. It is probability per unit volume, so it can be larger than 1. Introduced in: Lesson 10
    quadratic model
    The second-order Taylor approximation m(h)=f(x)+g⊤h+12h⊤Hhm(h) = f(x) + g^\top h + \frac12 h^\top H h with g=∇f(x)g = \nabla f(x) and H=∇2f(x)H = \nabla^2 f(x). Introduced in: Lesson 3
    quadrature rule
    An approximation of an integral by a weighted sum of function values at chosen nodes. Introduced in: Lesson 11
    Rademacher vector
    A random vector whose entries are independent and equal to +1+1 or −1-1 with probability 1/2 each. Introduced in: Lesson 8
    relative error
    For gradients, ∥g−gnum∥2/max⁡(∥g∥2,∥gnum∥2)\|g - g_{\text{num}}\|_2 / \max(\|g\|_2, \|g_{\text{num}}\|_2). It does not depend on the scale of the gradient. Introduced in: Lesson 7
    residual (PINN) loss
    A physics loss that penalizes the squared residual of the differential equation at collocation points, as in physics-informed neural networks. Introduced in: Lesson 13
    residual connection
    A layer of the form y=x+F(x)y = x + F(x). Its Jacobian is I+DFI + DF, so the identity path passes the gradient back unchanged. Introduced in: Lesson 4
    reverse mode
    AD that runs the program forward, records it, then propagates adjoints backward to compute one VJP u⊤Ju^\top J per run. One backward run gives the full gradient of a scalar loss. Introduced in: Lesson 5
    Richardson extrapolation
    Combining approximations with steps hh and h/2h/2 to cancel the leading error term, for example (4D0(h/2)−D0(h))/3=f′(x)+O(h4)(4D_0(h/2) - D_0(h))/3 = f'(x) + O(h^4). Introduced in: Lesson 7
    Riemann sum
    The sum ∑if(ξi) h\sum_i f(\xi_i)\,h of the areas of thin rectangles under a curve. Its limit, when it exists, is the integral. Introduced in: Lesson 10
    Ritz method
    Minimizing a functional over trial functions uc=∑kckφku_c = \sum_k c_k \varphi_k (or a network uθu_\theta). The finite element method is the Ritz method with piecewise polynomials. Introduced in: Lesson 13
    rounding error
    The error from storing numbers with finite precision. In a finite difference it grows like ε/h\varepsilon/h as the step hh shrinks. Introduced in: Lesson 7
    saddle point
    A critical point where ff goes up in some directions and down in others. Its Hessian has both positive and negative eigenvalues. Introduced in: Lesson 3
    saturation
    An activation function saturates where its derivative is almost 0, for example sigmoid and tanh for large ∣x∣|x|. Gradients that pass through it become very small. Introduced in: Lesson 1
    score
    The gradient of the log-density with respect to the parameters, sθ(x)=∇θlog⁡pθ(x)s_\theta(x) = \nabla_\theta \log p_\theta(x). Its mean under pθp_\theta is zero. Introduced in: Lesson 12
    score-function estimator (REINFORCE)
    The estimator f(x) ∇θlog⁡pθ(x)f(x)\,\nabla_\theta \log p_\theta(x) with x∼pθx \sim p_\theta. It needs only values of ff and works for discrete samples, but it is often noisy. Introduced in: Lesson 12
    secant line
    The line through two points of a graph, at xx and x+hx + h. Its slope is the difference quotient. Introduced in: Lesson 1
    second derivative
    The derivative f′′f'' of the derivative f′f'. It says how the slope changes, so it measures curvature. Introduced in: Lesson 1
    second difference
    f(x+h)−2f(x)+f(x−h)h2=f′′(x)+O(h2)\frac{f(x+h) - 2f(x) + f(x-h)}{h^2} = f''(x) + O(h^2), an approximation of the second derivative. Introduced in: Lesson 7
    second variation
    The second derivative d2dϵ2J[u+ϵη]\frac{d^2}{d\epsilon^2} J[u + \epsilon\eta] at ϵ=0\epsilon = 0. Like the Hessian, it decides whether a stationary point is a minimum. Introduced in: Lesson 13
    softplus
    The function log⁡(1+ez)\log(1 + e^z), a smooth version of ReLU. Its derivative is the sigmoid σ(z)\sigma(z). Introduced in: Lesson 6
    steepest descent direction
    Among all unit vectors (in the Euclidean norm), −∇f/∥∇f∥-\nabla f/\|\nabla f\| decreases ff fastest. In another norm, the steepest direction changes (for example, −A−1∇f-A^{-1}\nabla f for the norm v⊤Av\sqrt{v^\top A v}). Introduced in: Lesson 2
    Stein's lemma
    For X∼N(0,1)X \sim N(0, 1) and a differentiable ff with E∣f′(X)∣<∞\mathbb E|f'(X)| < \infty: E[Xf(X)]=E[f′(X)]\mathbb E[X f(X)] = \mathbb E[f'(X)]. Introduced in: Lesson 10
    step size (learning rate)
    The number η>0\eta > 0 that scales each gradient-descent step. For f(x)=a2x2f(x) = \frac a2 x^2 with a>0a > 0, gradient descent converges exactly when η<2/a\eta < 2/a. Introduced in: Lesson 1
    strict local minimum
    A point x∗x^* with f(x)>f(x∗)f(x) > f(x^*) for all x≠x∗x \ne x^* near it. A critical point whose Hessian is positive definite is one. Introduced in: Lesson 3
    subgradient
    For a convex ff, a number gg with f(y)≥f(x)+g (y−x)f(y) \ge f(x) + g\,(y - x) for all yy. At a kink there are many; for ReLU at 0, every g∈[0,1]g \in [0, 1] is one. Introduced in: Lesson 1
    symbolic differentiation
    Differentiation of a formula into a new formula, as in computer algebra systems. The result can grow very large (expression swell). Introduced in: Lesson 5
    tangent
    In forward mode, the rate of change v˙\dot v of a value vv when the input moves along a chosen direction. Also the name of the input vector vv in a JVP JvJv. Introduced in: Lesson 5
    tangent line
    The line y=f(x0)+f′(x0)(x−x0)y = f(x_0) + f'(x_0)(x - x_0) that touches the graph at x0x_0. It is the best linear approximation of ff near x0x_0. Introduced in: Lesson 1
    tangent plane
    The graph of the linear approximation f(x)+∇f(x)⊤hf(x) + \nabla f(x)^\top h of a scalar function of several variables. Introduced in: Lesson 3
    tape
    The record of the operations and intermediate values of a forward run, which reverse mode reads backward. Introduced in: Lesson 5
    Taylor polynomial
    The polynomial of order kk that matches ff and its first kk derivatives at x0x_0: ∑j=0kf(j)(x0)j!(x−x0)j\sum_{j=0}^{k} \frac{f^{(j)}(x_0)}{j!}(x - x_0)^j. Introduced in: Lesson 1
    Taylor test
    A gradient check: the error ∣f(x+th)−f(x)−t g⊤h∣|f(x + th) - f(x) - t\,g^\top h| must shrink like t2t^2 when gg is the correct gradient, and only like tt when it is wrong. Introduced in: Lesson 3
    Taylor's theorem
    A smooth function is close to a polynomial near a point, with a known error. For a scalar ff: f(x+h)=f(x)+∇f(x)⊤h+12h⊤∇2f(x) h+o(∥h∥2)f(x + h) = f(x) + \nabla f(x)^\top h + \frac12 h^\top \nabla^2 f(x)\,h + o(\|h\|^2). Introduced in: Lesson 3
    topological order
    An order of the nodes of a graph in which every node comes after all of its parents. The forward pass visits nodes in this order and the backward pass in the reverse order. Introduced in: Lesson 4
    trapezoid rule
    An integration rule that joins the end values of each strip by a straight line. Its error is O(h2)O(h^2). Introduced in: Lesson 10
    truncation error
    The error of an approximation formula in exact arithmetic, for example the gap between a secant slope and the tangent slope. It shrinks as the step hh shrinks. Introduced in: Lesson 7
    unrolling
    Differentiating through all KK iterations of a solver by backpropagation. It stores every iterate and differentiates the algorithm, not only the solution. Introduced in: Lesson 9
    vanishing gradients
    The gradient of early layers shrinks exponentially with depth because it is a product of many Jacobians with norm below 1. Introduced in: Lesson 6
    vector-Jacobian product (VJP)
    The product u⊤Ju^\top J (or J⊤uJ^\top u) of an output vector uu with a Jacobian JJ. Reverse mode computes VJPs without forming JJ. Introduced in: Lesson 4