Cookie Consent
Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.
Read our Privacy Policy
VOCABULARY

Evolutionary Algorithms

Evolutionary algorithms (EAs) are a subset of evolutionary computation in artificial intelligence that uses mechanisms inspired by biological evolution, such as reproduction, mutation, recombination, and selection. These algorithms are used in optimization and problem-solving applications as they can find solutions that other algorithms might miss due to their iterative and evolutionary approach.

How Evolutionary Algorithms work

The working process of evolutionary algorithms involves four main steps: initialization, selection, genetic operators, and termination.

1. Initialization

‍A population of potential solutions to the problem at hand is generated randomly. These solutions, often referred to as individuals, can represent possible paths, configurations, or decision sequences.

2. Selection

‍This step involves choosing individuals from the current population to form a new generation. This selection is typically based on their fitness, or how well they solve the problem. Usually, individuals with higher fitness have a better chance of being selected, mimicking the "survival of the fittest" principle in natural evolution.

3. Genetic Operators

‍After selecting the fittest individuals, the algorithm applies genetic operators such as mutation (random changes in some individuals) and crossover (combining parts of two individuals to create one or more offspring). These operations add diversity to the population and enable the exploration of the solution space.

4. Termination

‍The algorithm repeats the selection and genetic operators steps for several generations or until a stopping condition is met, for example, reaching a maximum number of generations, finding a satisfactory solution, or not observing significant improvement over a number of iterations.

The evolutionary algorithm's output is the best solution found, that is, the individual with the highest fitness. The main advantage of evolutionary algorithms is their ability to navigate large, complex, and unpredictable search spaces to find satisfactory, if not optimal, solutions.

Lakera LLM Security Playbook
Learn how to protect against the most common LLM vulnerabilities

Download this guide to delve into the most common LLM security risks and ways to mitigate them.

Related terms
Activate
untouchable mode.
Get started for free.

Lakera Guard protects your LLM applications from cybersecurity risks with a single line of code. Get started in minutes. Become stronger every day.

Join our Slack Community.

Several people are typing about AI/ML security. 
Come join us and 1000+ others in a chat that’s thoroughly SFW.