One idea, 4 fields
Gradient Descent Optimization
The unifying principle
Let a state be a vector and a scalar objective we want to minimize. The gradient
points in the direction of steepest ascent. By first-order Taylor expansion,
To decrease maximally for a fixed step size , Cauchy–Schwarz says choose . This gives the update
with learning rate / step size . A minimum is a fixed point where and the Hessian (positive semidefinite). Convergence is guaranteed for convex with -Lipschitz gradient when . That's the whole engine—everything below is the same equation with renamed.
How it shows up in each field
Maths — the pure optimization problem
Here is any differentiable objective and descent is a numerical root-finder for . Notation is the canonical one above. Continuous-time it becomes the gradient flow ODE: so is a Lyapunov function—it only ever decreases. Example: minimize (convex, ). Then , and descent iteratively solves the linear system .
AI-ML — minimizing loss over parameters
becomes model weights , and is the empirical loss . Because is huge, we estimate the gradient on a minibatch (stochastic gradient descent): Same idea: the landscape is non-convex, so we settle into some good local basin. Backpropagation is just the chain rule computing . Example: logistic regression with , , gives the clean update .
Physics — energy minimization / relaxation to equilibrium
is potential energy ; the force is . Overdamped (friction-dominated) motion is literally gradient flow: A system relaxes to the state of least energy exactly as descent finds a minimum; stable equilibria are the minima. Adding noise gives Langevin dynamics , the physical analog of stochastic descent—and the thermal cousin of momentum/SGD noise. Example: a spring, , ; the mass slides to , the potential's minimum.
Stock-Market — portfolio optimization
becomes portfolio weights (fractions per asset). Markowitz mean–variance minimizes risk penalized against return: with covariance , expected returns , risk-aversion . Projected gradient descent: The "steepest slope" is now steepest reduction in risk-adjusted loss; equilibrium is the efficient-frontier allocation. Example: two anticorrelated assets—descent naturally diversifies, pushing weight into the pair that lowers , the quadratic risk bowl.
Why this bridge matters
- Intuition transfer (Physics → ML): thinking of loss as energy explains why momentum helps—it's inertia rolling a ball past shallow ridges: , . Simulated annealing and Langevin sampling come straight from thermodynamics.
- Convexity transfer (Maths → Finance): the Markowitz quadratic is convex, so math guarantees a unique global optimum—no bad local minima, unlike deep nets.
- Landscape transfer (ML → Physics): non-convex loss surfaces, saddle points, and "wide vs sharp minima" import directly into understanding glassy energy landscapes.
- Shared failure modes: vanishing gradients (flat regions), ill-conditioning (large Hessian eigenvalue ratio → zig-zagging), and step-size instability ( diverges) are the same pathology whether you're training a net, relaxing a crystal, or rebalancing a book.
The unifying takeaway: an objective + a gradient = a dynamical system that flows to equilibrium. Learn it once, wield it four ways.
Connections
- 03-Convex-Optimization
- 07-Gradient-Flow-and-Lyapunov-Functions
- 12-Stochastic-Gradient-Descent
- 14-Backpropagation
- 21-Potential-Energy-and-Equilibrium
- 23-Langevin-Dynamics
- 31-Markowitz-Mean-Variance
- 34-Risk-Adjusted-Returns
#bridge