Optimization algorithm
An optimization algorithm is a step-by-step method for finding the inputs that minimise or maximise a function, such as gradient descent for training neural networks or the simplex method for linear programming.
An optimisation problem says what counts as best; an optimisation algorithm is the recipe for finding it. Wikipedia sorts these recipes into three groups. Some finish in a finite number of steps, like George Dantzig's simplex algorithm for linear programming. Some are iterative methods that move step by step towards a solution, like gradient descent and Newton's method. And some are heuristics, which give useful approximate answers without any guarantee of finding the best one; evolutionary algorithms are an example.
Iterative methods differ in how much information they use at each step. Gradient methods use the slope of the function. Newton's method also uses its curvature, captured in second derivatives, which lets it reach a solution in fewer steps but makes each step far more expensive: Wikipedia notes the work per step grows with the square of the number of variables, against roughly in proportion for a simple gradient method. For a neural network with billions of parameters, that square is prohibitively large, which is why deep learning relies on first-order, gradient-based methods.
Within that family, the most common choices are variants of stochastic gradient descent, which estimates the slope from a small random batch of examples rather than the whole dataset. Adam, published in December 2014 by Diederik Kingma and Jimmy Ba, adds adaptive step sizes based on running estimates of the gradients; the authors described it as easy to implement, light on memory and well suited to problems with large amounts of data or parameters. Google's machine learning glossary lists it among the popular optimisers for training neural networks.
Heuristics fill the gaps where gradients are unavailable. A March 2024 study by Takuya Akiba and colleagues, for instance, used an evolutionary search to find good recipes for merging existing models, a problem with no convenient slope to follow.
New optimisation algorithms are announced often, usually with claims of faster training. The useful questions are whether the gains hold at the scale of real models and whether they survive fair comparison with a well-tuned standard method.
Gradient descent and its stochastic variants, Adam, Newton's method, the simplex method for linear programming, and heuristics such as genetic and other evolutionary algorithms. Neural network training relies almost entirely on gradient-based methods. Newton's method needs second-derivative information whose cost grows with the square of the number of parameters. With billions of parameters that is impractical, while gradient methods cost roughly in proportion to the parameter count. Gradient methods need more steps, but each step is affordable. Optimisation algorithm is the general mathematical term for any method of finding a minimum or maximum. Optimiser usually means the specific software component in a machine learning framework, such as PyTorch's Adam or SGD, that implements one of those algorithms to update a model's weights. No. Exact methods such as the simplex algorithm do for the problems they are designed for, and iterative methods do for convex problems. On non-convex problems like neural network training, iterative methods can settle in local minima, and heuristics make no guarantee at all.Common questions
What are some examples of optimization algorithms?
Why does deep learning use gradient descent instead of Newton's method?
What is the difference between an optimization algorithm and an optimizer?
Do optimization algorithms always find the best solution?
Search for "list of optimization algorithms", "first-order vs second-order optimization" or "Adam optimizer explained" to compare methods. Reliable sources include optimisation textbooks and university course notes, the original papers on arXiv and encyclopedia articles that cite them. Treat claims that a new algorithm trains models much faster with care until they have been reproduced on large models by independent groups.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.