CONSTRAINER GitHub
NeurIPS 2026

CONSTRAINER

Promptable Graph-Structured Optimization via Constraint Conditioning

Zeeshan Memon1 Mingke Tian1 Xinyuan Song1 Hongwei Jin2 Kibaek Kim2 Liang Zhao1,3
1Emory University 2Argonne National Laboratory 3Causal Dynamics Lab
arXiv GitHub Contact us BibTeX
16 MILP problems 6 power-grid tasks
thermal_limit.constraint
1# a line-flow limit from AC optimal power flow
2P2 + Q2 ≤ Smax2
operator graph (DAG)
≤
├── +
│   ├── pow(P, 2)
│   └── pow(Q, 2)
└── pow(Smax, 2)
encoder output
z_c ∈ ℝd   # conditions every node of the problem graph
01Abstract

Constraints as structured inputs.

Neural methods for graph-structured optimization have achieved strong performance within individual problem classes, but are typically trained for fixed formulations, limiting reuse across related problem variants. Recent progress in foundation models has motivated shared neural backbones trained across multiple graph-structured optimization tasks; however, existing approaches primarily share instance-level representations while treating feasibility constraints implicitly. A key source of shared structure across constrained optimization problems is the constraint set itself, which often exhibits substantial overlap across tasks.

We propose CONSTRAINER, a constraint-conditioned framework for graph-structured optimization that treats constraints as structured inputs. Constraint specifications are parsed into operator graphs and encoded using a graph neural network to produce invariant constraint embeddings, which condition a shared backbone model for solution prediction. We evaluate our approach on power grid optimization and mixed-integer linear programming problems, where it shows improved solution optimality and enables efficient transfer learning and generalization compared to baseline methods.

02Method

Parse, encode, condition.

CONSTRAINER overview: constraints are parsed into operator graphs and encoded by a GNN; the constraint embeddings condition a graph transformer through a cross-attention block placed between HGT layers, followed by a task decoder.
(a) Methodology overview. (b) The constraint encoder parses a constraint into a DAG and encodes it with a GNN. (c) Constraint-conditioning block: each node attends to all constraints.
  1. 01

    Parse constraints into operator graphs

    Each constraint specification is parsed into a directed acyclic graph of operators and operands, such as ≤, + and pow over the variables of the problem.

  2. 02

    Encode them with a GNN

    A graph neural network turns each operator graph into a constraint embedding that stays stable under admissible reparameterizations of the constraint.

  3. 03

    Condition a shared backbone

    A graph transformer over the problem graph G = (V, E) reads the constraint embeddings through a cross-attention block, and a task decoder predicts the solution.

03Contributions

What the paper contributes.

Constraint-conditioned foundation model

A structured constraint encoder parses constraint specifications into operator graphs and learns invariant constraint embeddings.

Structured conditioning

A constraint-conditioning backbone generalizes across constraint families and supports compositional transfer across reformulated tasks with shared objectives and variables.

Stability guarantees

Learned constraint embeddings are provably stable under admissible constraint reparameterizations.

Validation across domains

Experiments on mixed-integer linear programming and power-grid optimization benchmarks show improved generalization and more efficient transfer.

04Results

One model across routing, scheduling, packing and power grids.

CONSTRAINER is trained jointly across tasks and compared with multi-task baselines (OPTFM, MTL, GOAL) on MILP problems and with single- and multi-task neural baselines on power-grid optimization. The tables reproduce the main-paper results; the paper also lists single-task neural solvers for each MILP problem.

MILP problems · optimality gap (%) · lower is better
RoutingPacking · Graph · Scheduling
MethodATSPCVRPCVRPTWOPKPMVCUMSPJSSP
OPTFM0.973.233.900.470.140.403.954.27
MTL0.943.193.860.450.130.383.894.18
GOAL0.913.163.820.430.120.373.844.13
CONSTRAINER0.502.983.010.270.110.382.143.68
100-node instances · JSSP 10×10 · UMSP 100×20
Power-grid optimization (IEEE-118) · feasibility (%) ↑ · optimality gap (%) ↓
PFACOPFDCOPFDCOTSDCTNEP
MethodACPF FeasDCPF FeasGapFeasGapFeasGapFeasGapFeas
GNN (CANOS)95.1197.144.8093.003.6094.206.1088.455.4085.32
GAT96.4297.864.1094.353.0595.655.3089.964.6086.71
GT (MTL)97.8898.723.5595.602.3597.104.9090.853.8087.94
CONSTRAINER99.0399.503.0196.101.5099.024.5091.222.9088.91
Finetuning on 8 unseen MILP tasks
Optimality gap versus finetuning time on eight unseen MILP tasks (TRP, SOP, MIS, SDCVRP, PCTSP, MCLP, OCVRP, OSSP), comparing training from scratch with finetuning GOAL, OPTFM, MTL and CONSTRAINER; the CONSTRAINER curve reaches the lowest gap on each task.
Finetuning CONSTRAINER on 8 unseen MILP tasks vs baselines. Optimality gap (%) over finetuning time; the highlighted values are CONSTRAINER's final gaps.
05Citation

BibTeX

@inproceedings{memon2026constrainer,
  title     = {{CONSTRAINER}: Promptable Graph-Structured Optimization
               via Constraint Conditioning},
  author    = {Memon, Zeeshan and Tian, Mingke and Song, Xinyuan and
               Jin, Hongwei and Kim, Kibaek and Zhao, Liang},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}
06Contact

Contact us

Questions about the paper are welcome.

Email Zeeshan Memon zeeshan.memon@emory.edu