arXiv:2608.30103cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30103

Graph4BiLO: Graph Neural Network Approximation for Bilevel Mixed-Integer Linear Optimization

Jessica D. Elrefaei, Kaixun Hua, Seungbae Kim, Hoang Nam Tran, Juan S. Borrero

Jessica D. Elrefaei, Kaixun Hua, Seungbae Kim, Hoang Nam Tran, and Juan S. Borrero

Abstract—Bilevel mixed-integer linear optimization problems model hierarchical decision processes in which a leader anticipates the optimal response of a follower. Although expressive, these problems are computationally challenging because lower-level optimality is embedded in the leader's feasible region. Value-function reformulations replace the nested follower optimization with a constraint involving the follower's optimal value, but evaluating this value function exactly can itself be expensive. This paper introduces Graph4BiLO, a graph neural network (GNN) approach for learning bilevel value functions from variable-constraint graph representations. In contrast to fixed-length multilayer perceptron (MLP) representations, the GNN uses shared message-passing parameters and can therefore be applied across multiple problem sizes with a single trained model. The learned ReLU network is encoded exactly as mixed-integer linear constraints and embedded in an approximate single-level formulation. A repair step subsequently re-solves the follower problem for the selected leader decision to recover a bilevel-feasible follower response. We evaluate Graph4BiLO on knapsack interdiction instances with 20–100 items against the exact MibS solver and the learning-based Neur2BiLO method. Graph4BiLO obtains objective values comparable to Neur2BiLO across all tested sizes while avoiding size-specific neural networks. An additional out-of-distribution experiment demonstrates zero-shot transfer from 20-item training instances to previously unseen 40- and 60-item instances. However, embedding message passing at every graph node substantially increases the resulting mixed-integer formulation size and solve time. These results identify a central tradeoff between size-generalizable graph representations and the computational cost of embedding GNNs within optimization models.

Index Terms—bilevel optimization, mixed-integer linear optimization, graph neural networks, value-function approximation, machine learning for optimization

I. INTRODUCTION

Bilevel optimization models hierarchical decision making between two optimization problems, where a leader acts while anticipating the optimal response of a follower [1], [2]. When integrality restrictions are present, bilevel mixed-integer linear optimization problems (BMILPs) can represent interdiction, pricing, network design, and other strategic decision problems, but the nested optimality requirement makes them substantially more difficult than conventional single-level mixed-integer linear programs [3].

A useful perspective is provided by the lower-level value function. For a fixed leader decision, the value function returns the follower's optimal objective value. This allows the nested follower optimization to be expressed through follower feasibility together with a value-function optimality constraint [4]. The resulting formulation is single-level in form, but it does not altogether eliminate the fundamental computational difficulty: evaluating the exact value function may require solving a mixed-integer optimization problem for each leader decision encountered during optimization [3].

Recent learning-based methods address this bottleneck by approximating the lower-level value function with a neural network. Neur2BiLO, for example, combines a permutation-invariant DeepSets representation with a multilayer perceptron (MLP) predictor to learn bilevel value functions [5]. Zhou et al. developed a learning-based approach for bilevel programs with binary tender in which a MLP approximates the lower-level optimal value as a function of the linking binary variables, and the learned value function is then embedded in a single-level mixed-integer reformulation [6]. ReLU networks are particularly attractive in this setting because a trained network can be represented exactly using mixed-integer linear constraints and embedded directly in an optimization model [7], [8].

Although the set-based Neur2BiLO architecture is in principle compatible with variable-sized instances, its reported knapsack-interdiction experiments train a separate neural network for each problem size [5], [9]. In contrast, we explicitly evaluate Graph4BiLO using a single model across multiple problem sizes, including zero-shot transfer to previously unseen sizes without retraining or fine-tuning. Optimization problems also possess natural relational structure: variables participate in constraints through coefficients, and the sparsity pattern of the constraint matrix defines a graph. GNNs provide a natural mechanism for exploiting this structure because their local update rules share parameters across nodes and can operate on variable-sized graphs. Recent work has further demonstrated that trained GNNs can be formulated using mixed-integer programming and embedded directly within larger optimization models [10].

Graph-based representations have consequently been used in a variety of single-level combinatorial and mixed-integer optimization settings, including learning branch-and-bound policies [11], GNN-guided predict-and-search methods [12], and scalable primal heuristics [13]. More recently, GNNs have also been applied to bilevel interdiction problems. Kwon et al. developed a GNN-based heuristic for the knapsack interdiction problem [14], while Zhang et al. proposed a multipartite

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

GNN framework for network interdiction problems [15]. To our knowledge, however, prior GNN-based bilevel approaches have not considered learning the lower-level value function from a variable–constraint representation and embedding the resulting GNN surrogate directly within a value-function reformulation.

Knapsack interdiction itself has been studied extensively from both complexity and exact-optimization perspectives. Caprara et al. analyze the computational complexity of bilevel knapsack variants [16] and develop exact methods for bilevel knapsack problems with interdiction constraints [17]. Fischetti et al. further study interdiction games and structural monotonicity properties with applications to knapsack problems [18].

This paper introduces Graph4BiLO, a GNN-based value-function approximation framework for BMILPs. Graph4BiLO represents an optimization instance as a variable-constraint graph, trains a GNN to predict the lower-level value function from sampled leader decisions, encodes the trained ReLU network as mixed-integer linear constraints, and embeds the prediction in a single-level approximation. We study the framework using knapsack interdiction and compare it with MibS [19] and Neur2BiLO [5].

The principal contributions are:

  • a variable–constraint graph representation for learning bilevel value functions;

  • a GNN surrogate whose shared parameters permit one trained model to process multiple problem sizes;

  • an end-to-end optimization framework that embeds the trained ReLU GNN in a mixed-integer approximation and repairs the resulting follower solution; and

  • a computational study comparing Graph4BiLO with exact and learning-based baselines, evaluating zero-shot generalization to unseen problem sizes, and quantifying the predictive and computational tradeoffs associated with GNN depth and global information sharing.

References (24)