Advanced

Multi-objective Optimization

Multi-objective Optimization

Estimated duration
30 minutes
Related questions
4
Related algorithms
3
Status
Log in to track

Lesson objectives

  • Define dominance and the Pareto front.
  • Understand NSGA-II.
  • Choose front quality metrics.

Explanation

We rarely want a single objective: accuracy versus inference time, or accuracy versus the number of features. There is no single best solution, but a set of trade-offs.

A solution x dominates y if it is not worse in any objective and is better in at least one. The Pareto front is the set of non-dominated solutions.

NSGA-II (Deb et al. 2002) ranks the population into fronts by non-dominated sorting and uses crowding distance to keep diversity on the front, with elitism by merging parents and offspring.

Quality metrics: Hypervolume, and IGD when the true front is known. Warning: higher accuracy is not an overall improvement if time or size doubles.

Objective 1 (e.g. error) →Objective 2Dominated pointsPareto front
Minimizing two objectives: no single solution is best in both objectives at once.

Mathematics

Dominance

x \prec y \iff \forall i: f_i(x)\le f_i(y)\ \wedge\ \exists j: f_j(x) < f_j(y)

Python code

def dominates(a, b):
    return all(x <= y for x, y in zip(a, b)) and any(x < y for x, y in zip(a, b))
def pareto_front(points):
    return [p for p in points if not any(dominates(q, p) for q in points)]
print(pareto_front([(0.10, 5), (0.08, 9), (0.12, 3), (0.11, 6)]))

Simplified teaching code that works with NumPy only; for research experiments use a documented library and fix the random seed.

Practical exercise

In the Neural Networks Lab enable the composite objective (error + network size) and watch the trade-off between accuracy and the number of parameters.

Common mistakes

  • Turning objectives into a weighted sum without justifying the weights and then presenting it as a front.
  • Relying on accuracy alone in problems where cost matters.

Summary

Multi-objective optimization produces a front of trade-offs; NSGA-II is a common basis, and hypervolume is a standard metric.

References

Related papers in the repository

Short quiz

4 questions are chosen at random from 4 questions linked to this lesson, and the quiz is graded on the server.

Links within the lab

Algorithms
Optimization types
Related lessons
In the paths