ArticleslgStudy

computer science

Min-max optimization

Min-max optimization is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Min-max optimization rather than just read about it. In short: A min-max optimization (MMO) problem is a mathematical optimization problem of the following form: min x ∈ R d x max y ∈ R d y f ( x , y ) such that g ( x , y ) ≤ 0 {\displaystyle \min _{\mathbf {x} \in \mathbb {R} ^{d_{x}}}\max _{\mathbf {y} \in \mathbb {R} ^{d_{y}}}f(\mathbf {x} ,\mathbf {y} )~~~{\text{ such that }}~~~g(\mathbf {x} ,\mathbf {y} )\leq 0} , where f is a bounded function and g is a convex function. M…

Key takeaways

  • Min-max optimization belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Min-max optimization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Min-max optimization from memory before moving on to harder problems.

Reference excerpt

A min-max optimization (MMO) problem is a mathematical optimization problem of the following form:

min x ∈ R d x max y ∈ R d y f ( x , y ) such that g ( x , y ) ≤ 0 {\displaystyle \min _{\mathbf {x} \in \mathbb {R} ^{d_{x}}}\max _{\mathbf {y} \in \mathbb {R} ^{d_{y}}}f(\mathbf {x} ,\mathbf {y} )~~~{\text{ such that }}~~~g(\mathbf {x} ,\mathbf {y} )\leq 0} , where f is a bounded function and g is a convex function. MMO problems play a central role in game theory, convex optimization and online machine learning. The solution of an MMO problem involves finding a feasible pair of vectors (x*,y*) that is a saddle point, that is, it satisfies the following two conditions simultaneously:

f(x*,y*) ≤ f(x,y*) for all x with g(x,y*) ≤ 0; f(x*,y*) ≥ f(x*,y) for all y with g(x*,y) ≤ 0. Note that the optimization is not done sequentially (maximize f(x,y) over y for every fixed x, then maximize the resulting function over x). It is done simultaneously: the solution should both be minimum over x for the given y*, and maximum over y for the given x*. The solution to an MMO problem is a Nash equilibrium in a two-player zero-sum game, where the payoff of the y player is f(x,y) (and the payoff of the x player is -f(x,y)). Thus, solving an MMO problem is a special case of Nash equilibrium computation.

Convex-concave objective The function f is called convex-concave if it is a convex function of x for any fixed y, and a concave function of y for any fixed x. When f is continuous and convex-concave, and the constraint set is a convex compact space, MMO always has a solution, which can be computed efficiently using convex programming. This was proved by Rosen in 1965 and was used to prove the existence of Nash equilibria in concave games. Sion's minimax theorem (1958) proves an even more general statement: if f is a quasiconvex function of x for any fixed y, and a quasiconcave function of y for any fixed x, and the constraint set is a convex compact space, MMO always has a solution, which can be computed by sequentially computing the maximum and then the minimum, or the minimum and then the maximum (the two sequential computations lead to identical outcomes in this case). If f is L-smooth, the problem can be solved using first-order methods, achieving an approximation error polynomial in L and 1/T in T iterations. If f is also strongly convex-concave, linear convergence rate is possible.

Non convex-concave objective In deep learning, it is often required to solve MMO with objectives that are not convex-concave. This is particularly useful for testing the robustness of deep learning systems against adversaries, as we want to compute the minimum (over all attack strategies) of the maximum (over all defense strategies) of our payoff. In non convex-concave MMO, a solution might not exist even when the feasible set is compact (this is in contrast to standard minimization or maximization problems, where a solution always exists even when the objective is neither convex nor concave). An example is when f(x,y) = (x-y)2 and the feasible set is the unit cube [0,1]x[0,1]. Here, for every fixed x, the maximum over y is attained at either y=0 (if x>0.5) or y=1 (if x<0.5). However, for every fixed y, the minimum over x is attained at x=y. Hence, no point is simultaneously maximum over y and minimum over x. Checking whether a given MMO problem has a solution is NP-hard. It remains NP-hard even in the special case in which the feasible region is a box [0,1]d, the function f is G-Lipschitz and L-smooth, and only an epsilon-approximate solution is allowed (where 1/epsilon, G and L are polynomial in the dimension d). First order methods to not work well for such problems. Daskalakis, Skoutakis and Zampetakis study such MMO with linear constraints (the feasible set is a polytope). They analyze the run-time complexity of computing approximatre local min-max equilibria as a function of the approximation parameters, the smoothness and the Lipschitz constant of the objective function.

See also Lexicographic max-min optimization - a different kind of optimization problem (multi-objective rather than single objective). Folk theorem (game theory) - a theorem in which minmax payments are important. They are known as "punishment points" or "threat points", since a player cannot be punished beyond that. Cooperative bargaining - another field in which minmax payments are important. Here, they are better known as "disagreement points" or "status quo points". Minimax theorem - gives conditions on games, guaranteeing that the minimax value equals the maximin value.

References

Worked examples

Example 1 — a first encounter with Min-max optimization

Start with the simplest possible case. Write down what Min-max optimization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Min-max optimization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Min-max optimization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Min-max optimization

In research
Min-max optimization appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Min-max optimization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Min-max optimization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Convex optimization, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Min-max optimization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Min-max optimization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Min-max optimization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Min-max optimization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Min-max optimization in simple terms?

A min-max optimization (MMO) problem is a mathematical optimization problem of the following form: min x ∈ R d x max y ∈ R d y f ( x , y ) such that g ( x , y ) ≤ 0 {\displaystyle \min _{\mathbf {x} \in \mathbb {R} ^{d_{x}}}\max _{\mathbf {y} \in \mathbb {R} ^{d_{y}}}f(\mathbf {x} ,\mathbf {y} )~~~…

Why does Min-max optimization matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Min-max optimization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Min-max optimization.

Tags

  • Convex optimization
  • Optimization algorithms and methods

Keep exploring