1 - AIML426 Final Exam

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

27 Terms

1
New cards

What is evolutionary computation?

  • EC is a group of techniques inspired by biological evolution.

    • It includes nature-inspired techniques (EA) and population or social-based approaches (Swarm intelligence)

  • Rather than directly construct the optimal solution, EC searches for good solutions through repeated improvement


2
New cards

What is the central process of evolutionary computation?

  1. Start with a population of candidate solutions

  2. Evaluate how good each solution is using a fitness function

  3. Select promising solutions to influence the next generation

  4. Generate new solutions, often by combining or randomly modifying existing ones

  5. Repeat to gradually improve the quality of the population


3
New cards

How do Evolutionary Algorithms work / what are their principles?

  • Initialisation

    • population of candidate solutions (competing for limited resources)

  • Fitness evaluation

    • measure the quality of each individual, provides info to guide selection

  • Parent selection and offspring generation / evolution

    • Dynamically changing population

    • Variational inheritance: offspring closely resemble parents but aren’t identical


4
New cards

Why is EC useful / what are its advantages?

  • Little prior domain knowledge required

  • No strict mathematical assumption

  • Easy to handle constraints

  • Can simultaneously learn model structure and parameters

  • Population-based search ideal for multi-objective optimisation


5
New cards

Explain phenotype vs genotype representation, and why the distinction matters. What is the ideal genotype-phenotype mapping.

  • Phenotypic representation

    • Individual corresponds directly to a solution (e.g. a route, a clustering)

  • Genotypic representation

    • Individual is an encoded solution that must be decoded (e.g. binary chromosome 101 represents 5)

^ Distintion matters b/c evolutionary operators modify the representation, not necessarily the final solution directly.

  • Genotype-phenotype mapping

    • A slight change in the genotype can lead to a small or large permutation in the phenotype, SO we want to make the mapping smooth (small change in genotype always leads to small change in phenotype)


6
New cards

List four constraint-handling strategies.

  1. Feasibility-based comparison

  2. Penalty functions

  3. Feasibility-preserving representation (encoding + decoding procedure)

  4. Feasibility-preserving genetic operators (crossover, mutation operations)


7
New cards

What is the most important general design principle in EC? How is it managed?

  • Balance between exploration and exploitation

    • Favoring exploration too heavily can lead to the algorithm searching new regions without sufficiently refining good solutions it has already found

    • Favoring exploitation too heavily can lead to the population becoming very similar and converging prematurely to a poor local optimum

  • Controlled by

    • Parent selection, environmental selection, breeding operators

      • ^ These are connected under concept of selection pressure


8
New cards

What are the two types of selection and the four selection schemes?

  • Selection

    • Parent selection: Parents selected to generate offspring

    • Environmental selection: M individuals of M+N individuals selected for next generation

  • Selection Schemes

    • Unifom

    • Roulette Wheel (probability proportional to fitness)

    • Tournament Selection (select highest fitness from group of K individuals)

    • Truncation (Select only highest-fitness individuals)


9
New cards

How does a genetic algorithm (GA) work? What are the important mechanisms?

  • A GA evolves a population of encoded candidate solutions using selection, crossover, and mutation

  • Representation

    • GA encodes each candidate solution as a chromosome; each bit is a gene (interpretation depends on the problem)

  • Selection

  • Crossover

    • One-point crossover, Two-point, Uniform

  • Mutation

    • Flip mutation


10
New cards

What changes for GA for a problem like traveling salesman?

  • Representation

    • Adjacency matrix

      • every row and column must contain exactly one 1

    • Adjacency list

      • each node must have one distinct element

    • Permutation

      • sequence specifying visiting order

  • Crossover

    • ordinary crossover doesn’t work: some nodes could be missing, others duplicated

    • order crossover (OX): copy segment from one parent and fill remaining position according to order in other parent


11
New cards

Explain the two forms of feature subset evaluation.

  • Filter-based fitness

    • Measures statistical relevance

    • Evaluates feature quality independently of any model

    • Ex: Mutual Info I(Y; X) = H(Y) - H(Y | X)

  • Wrapper-based fitness

    • Measures classifier performance of selected subset

    • More computationally expensive

    • Depends on chosen classifier; often better tailored to the prediction task


12
New cards

Why makes EP similar to and different from GA?

  • Both are population-based search strategies

  • But EP generates offspring using only mutation (no crossover/recombination)


13
New cards

What does Basic EP do / what is the objective?

  • Basic EP optimises a continuous-valid solution vector (x) by adding normally distributed random noise.

    • The goal is to minimise the cost function f(x) by finding x*


14
New cards

What is the mutation formula for Basic EP? What is important about it and why is it potentially problematic?

  • The random vector provides the direction and randomness of the mutation, while the square-root term scales how large the mutation is.

  • Because mutation magnitude depends on cost, worse solutions receive larger random changes, while better solutions receive smaller changes for more precise refinement.

    • This makes the algorithm sensitive to how the cost function is scaled, so it’s problematic if the cost function has a very different scale from the solution space. Mutation can become too large or small (overshoot valid search range or be tiny movements)


<ul><li><p>The random vector provides the direction and randomness of the mutation, while the square-root term scales how large the mutation is.</p></li><li><p>Because mutation magnitude depends on cost, worse solutions receive larger random changes, while better solutions receive smaller changes for more precise refinement.</p><ul><li><p>This makes the algorithm sensitive to how the cost function is scaled, so it’s problematic if the cost function has a very different scale from the solution space. Mutation can become too large or small (overshoot valid search range or be tiny movements)</p></li></ul></li></ul><p></p>
15
New cards

What is the Basic EP workflow?

  1. Randomly initialise N solutions.

  2. Evaluate their costs.

  3. Mutate every solution to produce one offspring.

  4. Combine parents and offspring.

  5. Select the best N individuals for the next generation.

  6. Repeat.


16
New cards

How does meta-EP differ from basic EP? Why is it useful?

  • Basic EP controls mutation magnitude through the cost function and global parameters

  • Meta-EP instead gives each individual its own variance vector, allowing different dimensions to have different mutation magnitudes

    • Useful because some dimensions may benefit from larger exploratory steps, while others require finer adjustments. Meta EP can adapt those mutation scales independently.


17
New cards

What does Fast EP change and how does it help?

  • Samples mutation noise from a Cauchy distribution rather than Gaussian

    • Cauchy is fat-tailed, which makes larger mutations more probable than thin-tailed Gaussian

      • Large jumps can help escape local optima and explore distant promising regions, but large jumps can also overshoot good solutions


18
New cards

Compare the EP variants: what their key mechanism is and why.

  • Basic EP:

    • Gaussian mutation scaled by solution cost

    • Simple continuous optimisation

  • Meta-EP:

    • mutates both solutions and variance vectors

      • what changed: evolves a variance vector

    • adapts mutation magnitudes instead of relying on a cost-dependent scale

  • Fast EP (FEP):

    • replaces Gaussian noise with Cauchy noise

    • increases the chance of larger jumps to escape local optima


19
New cards

What is a finite state machine and how do you represent a solution for it?

  • An FSM is a system with a finite set of internal states. It generates a sequence of outputs as a function of an internal state and a sequence of inputs.

  • Genotypic representation

    • To evolve an FSM, its transition and output rules need to be encoded into a chromosome

    • Each state n with m possible input symbols requires a chromosome of length 2mn

      • Each state needs two genes per possible input: one for the output and one for the next state


20
New cards

What is ES and how does it differ from EP?

  • ES is a family of evolutionary algorithms used primarily to solve continuous numerical optimisation problems.

  • Like EP, ES emphasises mutation as a way to explore the solution space. However, population-based ES also uses recombination to produce offspring.


21
New cards

Explain 1+1 ES.

  • One parent generates one offspring, and the better of the two survives.

Process:

  • Candidate solution initialised with mutation variance 𝜎²

  • Offspring generated by adding random Gaussian noise: x’ ← x + r, r ~ N(0, 𝜎²)


22
New cards

Explain the motivation for adaptive 1+1 ES and what the ideal mutation success rate is. What does it mean if you are too low or high?

  • 1+1 ES mutation is isotropic, which makes search distribution circular; this could waste many samples if the promising region is a narrow diagonal

  • Performance of 1+1 ES depends heavily on 𝜎²

    • 𝜎 should be large enough to properly cover solution space and small enough to find high-precision solutions; can be dynamically reduced during evolutionary process

  • 1/5 rule: 20% of mutations should result in fitness improvements

    • mutation success rate > 20%, mutation level too low (too conservative)

    • < 20%, too high (too ambitious)


23
New cards

Explain population-based ES methods and which is more suitable for what problem.

  • (𝜇 + 𝜆) and (𝜇, 𝜆) generate 𝜆 children from 𝜇 parents, with two parents randomly selected and recombination used to obtain child

    • (𝜇 + 𝜆) selects 𝜇 best from parents and offspring

      • elitist selection is suitable for discrete search spaces

    • (𝜇, 𝜆) selects 𝜇 best from offspring only

      • non-elitist selection, forces continual improvement and can help avoid stagnation when objective is noisy, time-varying, or contains many poor local optima

      • suitable for unbounded search space


24
New cards

Explain why the 1/5 rule doesn’t work for population-based ES and what self-adaptive ES does instead. Why is it effective?

  • 1/5 adjusts mutation parameter based on overall success rate; hard to identify what produced the change when both recombination and mutation are involved

  • Self-adaptive ES solves this by making the mutation levels self-adaptive

    • Mutates individual’s solution vector and a vector 𝜎 of mutation standard deviations that control the size of changes to each variable

  • Effective b/c environmental selection preserves both promising solutions and the mutation behaviours that helped produced them

    • So ES is evolving part of its own search strategy


25
New cards

What assumption does classical ES follow? What do modern approaches do instead?

  • Classical ES follows independence assumption: assumes independence between variables, which allows them to be mutated independently

  • But this assumption can hinder performance when variables interact, so modern ES learn the relationships between variables using a covariance matrix

    • also means the mutation is non-isotropic


26
New cards

Explain what CMA-ES and CMSA-ES do.

  • CMA-ES: learns the covariance matrix to adapt search direction, shape, and correlations

    • The idea is to move from an initially broad search distribution toward one that is concentrated in and effectively searches the promising region

  • CMSA-ES: Covariance adaptation combined with mutation step-size self-adaptation


27
New cards

For GA, EP, and ES, explain:

  • main emphasis

  • role of crossover

  • typical representation

  • mutation control strategy

  • key strength



<p></p>