Genetic algorithm (GA)
A genetic algorithm is a search and optimisation method, modelled on natural selection, that evolves a population of encoded candidate solutions through selection, crossover and mutation.
A genetic algorithm borrows the vocabulary of biology. Each candidate solution is encoded as a chromosome, often a string of bits or numbers. The algorithm creates a random population, scores every member with a fitness function, and picks fitter members more often as parents. Crossover builds offspring by combining pieces of two parents, and mutation makes small random changes to keep variety. Generation follows generation until a solution is good enough, a time or computing budget runs out, or progress stalls.
Many versions carry the best few solutions into the next generation unchanged, a technique called elitism, so the best answer found never gets worse. The fitness function is where the problem lives: it might be the cost of a delivery schedule, the strength of a structure in a simulation, or how well a design meets a specification.
A well known success is a spacecraft antenna. For NASA's ST5 mission, launched in 2006, an evolutionary design program produced an antenna with an unusual shape, chosen for the best radiation pattern, the kind of design an engineer would be unlikely to draw by hand.
The ideas are old. Alan Turing suggested a learning machine based on evolutionary principles in 1950, Nils Aall Barricelli ran computer simulations of evolution in 1954 and Alex Fraser published work on simulated selection from 1957. John Holland popularised genetic algorithms in the early 1970s, especially through his 1975 book Adaptation in Natural and Artificial Systems.
Genetic algorithms are a tool for search, not a route to intelligence. Each fitness evaluation can be expensive, sometimes taking hours for a complex simulation; the population can converge on a good but not optimal answer; and for some problems other methods such as simulated annealing or hill climbing get there faster. Today's large language models are trained with gradient descent, not genetic algorithms, though evolutionary search still appears in AI research, as in Google DeepMind's AlphaEvolve.
Evolutionary algorithm is the umbrella term for methods that imitate natural selection. A genetic algorithm is the most popular kind, usually encoding solutions as strings and relying on crossover as well as mutation. Evolution strategies and genetic programming are other kinds. Two parent solutions are split and recombined to make offspring. With bit strings, for example, a child might take the first part of one parent's string and the rest of the other's. The hope is that good pieces from each parent combine into a better whole. They are used for optimisation problems where good solutions can be scored but are hard to calculate directly, such as scheduling and engineering design. NASA's evolved antenna for the ST5 mission, launched in 2006, is a frequently cited example. Rarely for large models. Neural networks, including large language models, are trained with gradient descent, which is far more efficient when a gradient is available. Evolutionary methods are used more for searching over designs or settings, or in research on alternatives to reinforcement learning.Common questions
What is the difference between a genetic algorithm and an evolutionary algorithm?
How does crossover work in a genetic algorithm?
What are genetic algorithms used for?
Are genetic algorithms used to train neural networks?
Search for "genetic algorithm example", "crossover and mutation" or "evolved antenna" to see the method in action. Reliable sources include textbooks on evolutionary computation, university course notes and encyclopedia articles that cite the original work by Holland and others. Claims that a genetic algorithm found an optimal solution deserve scrutiny, since the method offers no guarantee of optimality.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.