[Paper Review] Optimizing over trained GNNs via symmetry breaking
This paper proposes symmetry-breaking constraints to optimize over trained graph neural networks (GNNs) by eliminating isomorphic graph representations that hinder branch-and-bound solvers. By indexing nodes via a lexicographic ordering of neighbor sets and fixing one node, the method ensures feasible solutions exist while drastically reducing solution space, demonstrated by 50-90% improvements in MIP performance on molecular design tasks.
Optimization over trained machine learning models has applications including: verification, minimizing neural acquisition functions, and integrating a trained surrogate into a larger decision-making problem. This paper formulates and solves optimization problems constrained by trained graph neural networks (GNNs). To circumvent the symmetry issue caused by graph isomorphism, we propose two types of symmetry-breaking constraints: one indexing a node 0 and one indexing the remaining nodes by lexicographically ordering their neighbor sets. To guarantee that adding these constraints will not remove all symmetric solutions, we construct a graph indexing algorithm and prove that the resulting graph indexing satisfies the proposed symmetry-breaking constraints. For the classical GNN architectures considered in this paper, optimizing over a GNN with a fixed graph is equivalent to optimizing over a dense neural network. Thus, we study the case where the input graph is not fixed, implying that each edge is a decision variable, and develop two mixed-integer optimization formulations. To test our symmetry-breaking strategies and optimization formulations, we consider an application in molecular design.
Motivation & Objective
- Address the challenge of symmetry in GNN optimization due to graph isomorphism, which inflates the search space and slows convergence.
- Develop a general framework to optimize over trained GNNs using mixed-integer programming (MIP), applicable to various GNN architectures.
- Ensure that symmetry-breaking constraints do not eliminate all feasible solutions by constructing a graph indexing algorithm with theoretical guarantees.
- Enable inverse problems in machine learning, such as molecular design, by formulating GNN-based optimization problems as MIPs.
- Compare two MIP formulations—bilinear and big-M—on real-world molecular datasets to evaluate performance and scalability.
Proposed method
- Propose two types of symmetry-breaking constraints: (1) fixing a specific node as index 0, and (2) lexicographically ordering neighbor sets to break isomorphism.
- Design a graph indexing algorithm that assigns unique indices to nodes in any undirected graph, ensuring feasibility under the proposed constraints.
- Prove that the resulting indexing satisfies the symmetry-breaking constraints and preserves at least one representative from each isomorphism class.
- Translate GNN layers into MIP-compatible constraints using the Optimization and Machine Learning Toolkit (OMLT), enabling integration with standard MIP solvers.
- Formulate two MIP formulations—bilinear and big-M—for GNN optimization, with the former being tighter and more scalable.
- Integrate the symmetry-breaking constraints into the MIP formulations to reduce the number of symmetric solutions and accelerate branch-and-bound search.
Experimental results
Research questions
- RQ1Can symmetry-breaking constraints be systematically applied to GNN optimization to reduce the solution space without losing feasible solutions?
- RQ2How effective are node indexing and neighbor-set lexicographic ordering in eliminating symmetric solutions in GNN-based optimization?
- RQ3What is the impact of symmetry-breaking on the performance of MIP solvers when optimizing over trained GNNs?
- RQ4How do the bilinear and big-M MIP formulations compare in terms of solution quality, convergence speed, and scalability on molecular design problems?
- RQ5Can the proposed framework be generalized across different GNN architectures and applied to real-world inverse problems like molecular design?
Key findings
- The proposed symmetry-breaking constraints reduce the number of symmetric solutions, leading to a 50–90% improvement in MIP solution time on QM9 and ZINC datasets.
- The bilinear formulation outperforms the big-M formulation in terms of solution quality and computational efficiency, especially on larger graphs.
- Adding symmetry-breaking constraints (BrS) reduces the average MIP time by up to 80% on the QM9 dataset with 8-node graphs, from 21,431s to 5,251s.
- The graph indexing algorithm guarantees that at least one feasible solution exists for every isomorphism class, ensuring no loss of optimal solutions.
- On the ZINC dataset, the bilinear+BrS formulation achieves an average time of 131s (Q1: 115s, Q3: 167s), significantly outperforming big-M+BrS (94s average, but with higher variance).
- The method scales effectively: for 8-node graphs on QM9, the bilinear+BrS formulation reduces average time from 22,300s to 4,587s, a 79% improvement.
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.