[Paper Review] Partition-based formulations for mixed-integer optimization of trained ReLU neural networks
The paper develops a class of partition-based MILP formulations for trained ReLU networks that balance model size and tightness by partitioning node inputs and constructing convex hulls over partitions, yielding stronger relaxations than big-M with competitive computation times.
This paper introduces a class of mixed-integer formulations for trained ReLU neural networks. The approach balances model size and tightness by partitioning node inputs into a number of groups and forming the convex hull over the partitions via disjunctive programming. At one extreme, one partition per input recovers the convex hull of a node, i.e., the tightest possible formulation for each node. For fewer partitions, we develop smaller relaxations that approximate the convex hull, and show that they outperform existing formulations. Specifically, we propose strategies for partitioning variables based on theoretical motivations and validate these strategies using extensive computational experiments. Furthermore, the proposed scheme complements known algorithmic approaches, e.g., optimization-based bound tightening captures dependencies within a partition.
Motivation & Objective
- Provide strong, scalable MILP formulations for trained ReLU neural networks that improve relaxation tightness while controlling model size.
- Enable capturing input dependencies within partitions to improve optimization tasks on NNs.
- Offer a hierarchy of relaxations that interpolate between big-M and full convex hull formulations.
- Assess the formulations on tasks like optimal adversarial examples, robust verification, and minimally distorted adversaries.
Proposed method
- Model each ReLU neuron as a two-part disjunction and partition its input sum into z_n = sum_{i in S_n} w_i x_i for N partitions.
- Form the convex hull over the partitioned sums z_n rather than over all inputs, yielding a lifted MILP with N auxiliary variables (N ≤ η).
- Derive a complete disjunctive programming formulation that reduces to big-M when N = 1 and to the convex hull when N = η (with bounded inputs).
- Provide bounds for z_n^a and z_n^b through interval arithmetic or optimization-based bound tightening (OBBT) to strengthen relaxations.
- Discuss partition selection strategies (equal-size and equal-range partitions) to balance relaxation tightness and computational size.
- Incorporate optimization-based bound tightening to capture dependencies within partitions and improve relaxation quality.
Experimental results
Research questions
- RQ1How can ReLU neural networks be encoded into MILP with stronger relaxations than standard big-M while keeping a manageable model size?
- RQ2How does partitioning inputs into subsets and forming convex hulls over partitions affect relaxation strength and solver performance?
- RQ3What are effective strategies for partition design and bound tightening to maximize the efficiency of MILP formulations for NN verification/adversarial tasks?
- RQ4How do partition-based formulations perform on optimal adversary, robustness verification, and minimally distorted adversary problems compared to big-M?
- RQ5How does the hierarchy of formulations (varying number of partitions N) trade off tightness, size, and computation time?
Key findings
- Partition-based MILP formulations outperform standard big-M in solved instances and speed for adversarial and verification tasks across several datasets.
- The approach yields up to 2.2x speedups on solved problems and about 25% more problems solved within 1 hour on certain settings.
- Increasing the number of partitions N tightens the relaxation and can improve performance, with intermediate N often offering the best trade-off between size and tightness.
- Optimization-based bound tightening (OBBT) significantly improves relaxation strength and solution times across formulations.
- Partition strategies that equalize partition sizes or equalize weight ranges generally outperform random or uneven partitions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.