Bilevel Optimization (Leader-Follower)

Decision Sciences
Introduced by
Jonathan Bard
Year
1998
Type
Hierarchical mathematical programming
Family
Mathematical programming

What does it do?

Bilevel optimization is a class of mathematical programming problems in which one optimization problem is nested inside another.

The upper-level (leader) problem optimizes its objective subject to constraints that include the solution of a lower-level (follower) problem. Jonathan Bard's 1998 monograph gives an algorithm- and application-oriented treatment of the framework, in which the leader anticipates the follower's rational response.

The intuition behind the method

Think of a government (leader) setting tax policy knowing that firms (followers) will adjust their production to maximize profit in response. The government cannot dictate firm behavior directly; it can only set the rules and then predict how firms will react. Bilevel optimization captures exactly this dynamic: the leader optimizes over outcomes that are themselves determined by another self-interested optimizer acting rationally. A minimal illustration: let the leader minimize F = x + y with x ≥ 0, and let the follower minimize f = (y − x)² over y. The follower's unique best response is y*(x) = x. Substituting into the leader's objective gives 2x, which is minimized over x ≥ 0 at x = 0, so the leader's optimum is x = 0 and y = 0. The leader's choice is only evaluated after the follower's reaction has been taken into account.

History

Bilevel optimization is closely related to Stackelberg games, a leader-follower framework from game theory in which a leader commits to a decision first and anticipates the follower's reaction. Jonathan Bard's 1998 monograph gives an algorithmic and application-oriented treatment of the bilevel problem. Colson, Marcotte, and Savard's 2007 overview surveys the theoretical foundations of the field.

When to use it

Use bilevel optimization when one agent makes a decision first and a second agent, with its own objective, reacts after observing it, and when the first agent can anticipate that reaction. Typical examples are principal-agent problems, toll-setting, network design, and adversarial machine learning. The model relies on follower rationality (the follower's response is optimal for its own problem) and on enough regularity for Ψ(x) to be well defined. Do not use it when the agents decide simultaneously, where a Nash equilibrium model fits better, or when no clear leader-follower order exists. Because the general problem is NP-hard, solves are expensive; for large instances, approximation schemes are usually needed.

Limitations and considerations

  • General bilevel programs are NP-hard; linear bilevel programs are also NP-hard, and integer variants are harder still.
  • The feasible set of a bilevel problem is generally non-convex, even when both levels are linear, so local solutions cannot in general be certified as global ones.
  • Replacing the lower-level problem with KKT conditions is only valid under strong regularity assumptions, such as convexity of the follower's problem and a constraint qualification.
  • When the follower's optimal response set Ψ(x) is not a singleton, the leader's problem is ill-defined without an additional assumption, and Ψ(x) may be discontinuous, which makes the leader's objective non-smooth.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models hierarchical, principal-agent decision structures that single-level programs cannot express, because the feasible set of the leader is defined through the follower's optimal response.
  • Captures cases where the leader can strategically exploit knowledge of how the follower will respond, for example by choosing a tax rate or a capacity level before the follower optimizes.
  • Accommodates continuous, integer, and mixed-integer decision variables at either level, although the computational methods differ across these cases.
  • Applies directly to toll-setting, network design, and adversarial machine learning, where the follower's optimization is a natural part of the system being designed.

Applications

  • Transportation network design: a planner (leader) designs road capacity, anticipating traffic assignment by commuters (followers) who minimize travel time.
  • Tax and tariff policy: a government sets tax rates knowing that firms or households will optimize their behavior in response.
  • Adversarial machine learning: an attacker perturbs data (follower) to fool a classifier trained by a defender (leader).
  • Supply chain pricing: a manufacturer (leader) sets wholesale prices knowing that retailers (followers) will optimize their own order quantities.
  • Environmental regulation: a regulator (leader) sets emission permits, anticipating firm-level abatement decisions (followers) to minimize compliance cost.

How it works

How it works

1

The upper-level problem specifies the leader's decision variable x and objective F(x, y), subject to constraints G(x, y) ≤ 0. The leader's problem is defined over both x and y, with y restricted to the follower's optimal response to x (y ∈ Ψ(x)). The leader controls x directly but cannot set y independently; y is determined by the follower's rational reaction, so every feasible leader choice must account for that response.

Formula
\min_{x} F(x, y) \quad \text{s.t.} \quad G(x, y) \leq 0
2

For each choice of x made by the leader, the follower solves its own problem, minimizing f(x, y) subject to g(x, y) ≤ 0. The follower's problem is parameterized by x, so the leader's decisions shape the environment in which the follower acts, while the follower keeps its own objective.

Formula
y \in \arg\min_{y} f(x, y) \quad \text{s.t.} \quad g(x, y) \leq 0
3

The optimal response set Ψ(x) collects all follower solutions for a given x. When the follower's problem is convex and a constraint qualification holds, Ψ(x) can be characterized through KKT conditions, which replace the lower-level problem with equivalent stationarity constraints. This step is typically the computational bottleneck, and Ψ(x) may be set-valued or discontinuous in x.

Formula
\Psi(x) = \{ y : y \in \arg\min_{y} f(x, y),\; g(x, y) \leq 0 \}
4

The bilevel problem is solved by minimizing the leader's objective over (x, y) jointly, subject to the upper-level constraints and the requirement y ∈ Ψ(x). Several solution approaches are used. Penalty methods replace the requirement y ∈ Ψ(x) with a penalized term that discourages gaps between the follower's actual objective value and its optimal value. KKT-based reformulation replaces the follower's problem with its stationarity conditions, and it is valid only when the follower is convex and a constraint qualification holds. Branch-and-bound handles integer variables at the lower level by systematically partitioning the search space. Descent methods operate on the follower's value function and require that function to be differentiable. Each method has its own applicability conditions. The result is a Stackelberg solution in which the leader has taken the follower's best response into account.

Formula
\min_{x, y} F(x, y) \quad \text{s.t.} \quad G(x, y) \leq 0,\; y \in \Psi(x)

Common pitfalls

  • Assuming a unique follower response: when Ψ(x) is set-valued, the optimistic or pessimistic assumption must be stated and justified, because the two give different leader objectives and optimal decisions.
  • Ignoring lower-level feasibility: values of x that make the follower's problem infeasible must be excluded or handled explicitly, otherwise the bilevel formulation is infeasible at those points.
  • Conflating bilevel with multi-objective optimization: a bilevel problem has a strict hierarchy with one leader and one follower acting in sequence, whereas a multi-objective problem balances several criteria for a single decision maker.
  • Applying gradient-based methods without checking the smoothness of the value function: it can be non-differentiable even when both level problems are smooth.

Frequently asked questions

How does bilevel optimization differ from a standard constrained optimization problem?

In standard constrained optimization all constraints are explicit algebraic expressions. In bilevel optimization the feasibility of the upper-level problem depends on the solution to a separate lower-level optimization problem. This nested structure means the feasible set of the leader is implicitly defined by another optimizer's rational behavior, fundamentally changing the problem's geometry and complexity.

What is the optimistic vs. pessimistic assumption, and when does it matter?

When the follower's optimal response set Ψ(x) contains multiple solutions, the optimistic assumption selects the follower response most favorable to the leader, while the pessimistic assumption selects the worst. These yield different leader objectives and optimal strategies. The choice must reflect the application context; in adversarial settings the pessimistic assumption is more appropriate.

Can bilevel optimization handle integer variables?

Yes. Mixed-integer bilevel programs allow integer variables at either or both levels. However, they are significantly harder than their continuous counterparts. KKT-based reformulations do not apply to integer lower levels; branch-and-bound strategies, cutting planes, and problem-specific decompositions are typically required, and global optimality guarantees are much harder to achieve.

Related methods

Sources

  1. Bard, J. F. (1998). Practical Bilevel Optimization: Algorithms and Applications. Kluwer Academic Publishers.

    ISBN: 978-0-7923-5458-7
  2. Colson, B., Marcotte, P., & Savard, G. (2007). An overview of bilevel optimization. Annals of Operations Research, 153(1), 235–256.

    Open DOI reference