CONSTRAINER: Promptable Graph-Structured Optimization via Constraint Conditioning
Zeeshan Memon, Mingke Tian, Xinyuan Song, Hongwei Jin, Kibaek Kim, Liang Zhao
NeurIPS 2026
TL;DR. We propose CONSTRAINER, a promptable framework for graph-structured optimization that conditions a shared model on encoded constraints, achieving competitive or better solution quality and faster generalization to new problem variants.
Abstract. 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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a foundation model for graph-structured optimization problems. The problem is important, and the proposed approach is interesting. The proposed framework provides a practical mechanism for incorporating explicit constraint semantics into a shared model. The novelty of the proposed method should be positioned more clearly relative to existing learning-based optimization methods and foundation models for structured problems. The theoretical assumptions appear restrictive, and the paper should discuss the range of practical problems for which they are expected to hold. The presentation can be improved. The empirical evaluation is not yet sufficiently convincing. The results should be reported with variance or statistical significance. The proposed method should be compared with default classical optimization solvers under comparable computational or wall-clock time budgets.
Final justification
The rebuttal addressed the main concerns by clarifying the theoretical assumptions, strengthening the empirical analysis, and adding comparisons.
Read meta-review
Meta-review
This paper proposes a foundation model for graph-structured optimization problems. The problem is important, and the proposed approach is interesting. The proposed framework provides a practical mechanism for incorporating explicit constraint semantics into a shared model. The novelty of the proposed method should be positioned more clearly relative to existing learning-based optimization methods and foundation models for structured problems. The theoretical assumptions appear restrictive, and the paper should discuss the range of practical problems for which they are expected to hold. The presentation can be improved. The empirical evaluation is not yet sufficiently convincing. The results should be reported with variance or statistical significance. The proposed method should be compared with default classical optimization solvers under comparable computational or wall-clock time budgets.
Final justification
The rebuttal addressed the main concerns by clarifying the theoretical assumptions, strengthening the empirical analysis, and adding comparisons.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies constraint-aware neural optimization for graph-structured constrained problems. The authors propose CONSTRAINER, which represents constraints as operator-level DAGs and encodes them into constraint embeddings. These embeddings are injected into a shared heterogeneous graph transformer through cross-attention, allowing the model to condition its predictions on explicit constraint specifications. For continuous power-grid tasks, feasibility is encouraged through constraint-violation penalties, while for combinatorial optimization/MILP tasks, feasible actions are enforced by a masked autoregressive decoder. Experiments across power-grid, routing, packing, graph, and scheduling benchmarks show improved optimality gaps and transfer performance over multi-task and generalist neural optimization baselines.
Strengths and weaknesses
Strengths:
-
The core idea is valuable: explicitly modeling constraint semantics rather than relying solely on task-specific heads or implicit feasibility handling. This direction has significant potential for graph-structured optimization scenarios where constraints are frequently modified or reorganized.
-
The experiments cover a broad range of tasks, including power flow, AC/DC optimal power flow, transmission switching, expansion planning, and several MILP/combinatorial tasks. The reported results show consistent improvements over MTL, OPTFM, GOAL, and several single-task baselines.
-
The ablation studies are useful. Removing constraint conditioning, replacing the DAG encoder with language-based embeddings, and varying the cross-attention insertion layer help support the claim that structured constraint encoding is beneficial.
Weaknesses:
-
The stability theorem is derived for a simplified linear message-passing model, while the implemented architecture uses nonlinear GNN/HGT layers and attention. This limits its direct relevance to the actual model.
-
The stability analysis has a limited scope. It mainly bounds perturbations in the typed adjacency structure of the operator graph, while the operator graph also appears to contain informative node features such as constants, coefficients, RHS values, variable types, and operator embeddings. The paper should clarify whether such node-feature perturbations are covered by the analysis or provide empirical sensitivity tests for them.
-
The granularity of the constraint specifications is unclear, which weakens the scalability and “foundation model” claims. The paper does not specify whether operator graphs are constructed for every grounded constraint, for constraint templates/families, or at some intermediate level. This distinction is important: per-constraint graphs may not scale to large instances, while template-level graphs may ignore instance-specific information such as variable scopes, coefficients, and right-hand-side values. The authors should clarify the construction pipeline and report the average number and size of constraint specifications per instance for each task family.
-
Some experimental settings make the conclusions less clear. In combinatorial MILP tasks, the masked decoder ensures feasibility for all methods, so the benefit of constraint conditioning is primarily reflected in solution quality rather than feasibility. The authors should better separate the effects of constraint conditioning from those of the decoder mask.
-
The current results are not compared against default classical solvers under comparable time budgets, so the practical benefit of the predicted solutions remains unclear.
-
Several experimental details should be clarified to make the comparison more reproducible and easier to interpret. The paper should provide the full training objective for each task family. It should also report the settings of the classical solvers used to generate labels or reference optima, including time limits, average runtimes, and final solver gaps. The authors should clarify which baseline results were reproduced under the same setup and which were taken from prior papers; this is particularly important for single-task baselines with many missing entries and for the GAN baseline, which lacks a clear reference or implementation description.
-
The related work section should be strengthened. The authors are encouraged to discuss prior work on learning-based MILP solution prediction [1-4] more systematically.
References:
[1] Han et al., “A GNN-Guided Predict-and-Search Framework for MILP,” 2023.
[2] Huang et al., “Contrastive Predict-and-Search for Mixed Integer Linear Programs,” ICML 2024.
[3] Liu et al., “Apollo-MILP: An Alternating Prediction-Correction Neural Solving Framework for Mixed-Integer Linear Programming,” 2025.
[4] Geng et al., “Differentiable Integer Linear Programming,” ICLR 2025.
Questions
Questions:
-
How are constraint specifications constructed in practice? Are they defined per grounded constraint, per constraint family/template, or at another level of abstraction? For constraints of the same type but with different variable scopes, coefficients, or right-hand-side values, are they treated as distinct specifications? Please report the average number and size of constraint specifications per instance for each task family, as this is important for evaluating scalability and reproducibility.
-
Could the authors clarify why feasibility is handled differently across domains—via constraint-violation penalties for power-grid tasks, but via masked autoregressive decoding for combinatorial optimization/MILP tasks—and how this affects the interpretation of the role of constraint conditioning?
Limitations
Yes.
Final justification
The rebuttal addresses most of my major concerns, especially by clarifying the template-level construction of constraint specifications, extending the stability discussion to node-feature perturbations, adding sensitivity analyses, and providing additional solver-budget comparisons and experimental details.
These clarifications substantially improve the reproducibility and interpretation of the results. I still think the final version should clearly include these additions and carefully state the scope of the theoretical claims, but overall the response resolves my main concerns. I am willing to raise my score to 4.
Formatting concerns
I did not identify any major issues.
3 comments
I thank the authors for the detailed response. The rebuttal addresses my main concerns, especially on constraint-specification granularity, stability under node-feature perturbations, and additional experimental details, so I am willing to raise my score to 4.
We thank the reviewer for the constructive engagement and for raising the score.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a generic model for graph structured optimisation problems, composed of a shared backbone and problem specific adapters. Contrary to prior art, an adapter is not learnt independently for each new problem. Instead, the problem specific constraints are passed to a constraint embedding network whose output is injected into the backbone. This adapter network can thus share some components across different problems (at least the embeddings of the standard operators used in constraint definitions, sometimes more when the problems are close).
Strengths and weaknesses
The paper addresses an important issue in the design of a foundation model for graph structured (usually combinatorial) optimisation problems: for a new problem unseen at training, how to obtain its "adapter", i.e. a mapping from the features of the problem instance into some input to the generic backbone. In prior art (esp. GOAL), adapter models are learnt independently per task by fine-tuning on some task instances. CONSTRAINER proposes to improve this fine-tuning by leveraging some commonality between adapters: they all encode task specific constraints, which can be expressed in a common syntax and embedded accordingly.
Overall, the paper describes a practical method to realise this objective. The technical choices are clearly described, if not always immediately intuitive. An attempt to theoretically justify some of the choices is given in Sec. 4, but it remains unclear. It provides bounds on the distance between embeddings of constraints which are "admissible reparametrisation of each other". This important notion is not defined in the main body of the paper. Appendix A gives some indication, but remains too abstract.
In particular, examples of feasibility preserving transformations in would be welcome. Here, the bound is given in terms of the difference between the matrix representations of the constraints before and after transformation. This assumes they are exactly aligned (same variables and operators), which works for things like commutativity or associativity laws, but not much beyond: and are equivalent but do not involve the same operators. MILP solvers heavily rely on such pre-processing transformations (even eliminating or introducing variables). Worse, some feasible sets can sometimes be characterised equivalently with integral or with Boolean variables.
In practice, it means that for the same feasible set, there is a wide range of admissible constraint expressions to choose from, which may have an impact on the result. The sensitivity to that choice is not measured in the experiments. It has likely been implicitly biased by some prior on which expressions work well with what has been seen at training.
Overall the paper remains too abstract. Examples would be welcome to illustrate the main points.
Questions
Can you refute the following argument (I may have overlooked something) ? If not, do you agree this is a serious flaw ?
The argument is as follows. Assume a node has two features with value and with value . According to Eq. (9) they are represented as (for ) where encodes the feature type of . Now, according to Eq. (10) with sum-pooling aggregation (l.222) the node representation is , which is invariant to a permutation of . In other words, with value and with value is indistinguishable from with value and with value .
Limitations
Limitations are not explicitly discussed, esp. regarding the huge diversity of ways to express feasibility constraints.
Final justification
The rebuttal satisfactorily addresses all my concerns, so I upgrade the rating to accept.
Formatting concerns
No concern.
3 comments
Rebuttal
We thank the reviewer for the feedback and address each point below.
W1 — Theoretical justification in Sec. 4 remains unclear
We will promote the definition into the main text (Sec. 4). An admissible reparameterization is a transformation T of a constraint c that preserves the feasible set it induces,
𝒳(c) = 𝒳(T(c))
(equality holding after projecting out any auxiliary variables that T introduces, such as slacks), with both c and T(c) expressible in the operator vocabulary of the encoder. The intuition is the familiar one of reparameterization: two parameterizations describe the same underlying object in different coordinates and are compared in a common parameter space. Here the underlying object is the feasible region, the representations are operator DAGs, and they are compared in a common index space. The family generated by c is the orbit 𝓕 = {T(c) : T admissible}, and Theorem 4.3 bounds the embedding distance between members of the same family.
W2 — No examples of feasibility-preserving transformations
Examples of admissible, feasibility-preserving transformations include:
- positive rescaling of a linear constraint,
a'x ≤ b → (κa)'x ≤ κbforκ > 0; - operand reordering and associativity within a sum, e.g.
x₁ + x₂ ≤ b → x₂ + x₁ ≤ b; - splitting an equality into two inequalities,
a'x = b → {a'x ≤ b, a'x ≥ b}; - introducing a slack variable,
a'x ≤ b → a'x + s = b, s ≥ 0; - big-M versus indicator encodings of the same disjunction.
Rescaling, operand reordering, and slack introduction reduce to an identical DAG under the parser's canonicalization (measured embedding distance d = 0.000; see the response to W4), or are covered directly by the stability analysis of Sec. 4 (Theorem 4.3 and its node-feature extension). Equality splitting and big-M versus indicator encodings change the operator set beyond what canonicalization reduces; these are handled by the contrastive objective over admissible reparameterizations (Sec. 3.3). For encodings of the same feasible set such as big-M (a positive pair in Table 12), the residual embedding shift is small (quantified in the response to W4). We will include this list, with the corresponding operator DAGs, in the revised Sec. 4.
W3 — The bound assumes exactly aligned constraints
In Theorem 4.3 the budget δ = maxᵣ ‖A_{c,r} − A_{c',r}‖₂ is defined between typed-adjacency matrices under a shared node indexing, so the deterministic bound is stated for reparameterizations that preserve the variable and operator set. This is the intended scope of that bound, which we will make explicit in §4; the broader reformulations raised are covered as follows.
-
Term rearrangement (the
x + y ≤ 1vsy ≤ 1 − xexample). Our parser canonicalizes linear and affine constraints to standard form (terms collected asa·x ⊙ b) before building the DAG, so these two forms yield the same operator DAG (a = [1,1], b = 1), givingδ = 0. Rearrangements that move terms across the relation reduce to this canonical form exactly, so no bound is needed. -
Variable elimination/introduction (presolve-style transformations). When a rewrite changes the node count, padding both DAGs to
n = max(n_c, n_c')places inserted/removed nodes at unmatched indices, and the bound extends to the joint form‖z_c − z_c'‖ ≤ C_H‖ΔH⁽⁰⁾‖_F + C_A δ, without the equal-node-count assumption of Lemma B.2. -
Integer/Boolean (and other vocabulary-changing) recodings. These are outside the scope of the deterministic bound and are instead handled by contrastive training over admissible reparameterizations (Eq. 8; Table 12 includes "integer vs continuous versions"), with generalization characterized by the coverage-radius bound of Theorem A.7, which does not require alignment.
W4 — Sensitivity to the choice of formulation is not measured
Sensitivity to formulation is measurable, and we report it directly. Formulation choice is controlled by two mechanisms: the parser first canonicalizes admissible rewrites to a standard form, so rewrites that preserve the feasible set map to the same operator DAG and the same embedding; for rewrites that canonicalization does not reduce, the encoder itself produces the residual. We measured the normalized embedding distance d (d ≈ 1 for an unrelated constraint):
| Rewrite | d |
|---|---|
| canonicalized (rescale, reorder, term-move, slack, negate-flip, term-split, dummy-var) | 0.000 |
| big-M reformulation (held-out) | 0.007 |
| affine recoding (held-out) | 0.20 |
operator flip (≤ → ≥, feasibility change) |
0.85 |
| unrelated constraint (reference) | ~1.0 |
The common rewrites, including the reviewer's x+y≤1 vs y≤1−x, map to identical embeddings (d = 0.000). Because this invariance comes from canonicalization, which is independent of the training data, it cannot be biased toward the formulations seen in training. The rewrites not reduced by canonicalization, which are held-out formulations not seen in training, produce only bounded shifts (0.007 to 0.20), all far below the shift from a genuine feasibility change (operator flip, d = 0.85) or an unrelated constraint (d ≈ 1.0), so the model responds to changes in meaning rather than to surface form. By the Lipschitz continuity of the predictor (Assumption A.3), these bounded shifts translate into proportionally bounded changes in the prediction. This supports the central contribution of the paper: the constraint set itself is used as the signal that conditions a shared model across tasks and lets it adapt to a new task by supplying that task's constraints, which requires the constraint signal to be stable across the equivalent ways a problem is written. We will add this analysis to the paper.
W5 — The paper remains too abstract
To make the conditioning mechanism concrete, we will add an end-to-end worked example, alongside the definition (W1) and example transformations (W2) that we will incorporate into Sec. 4 in the revision. It traces a single constraint through the full pipeline: a representative constraint (e.g. knapsack Σ wᵢ xᵢ ≤ W) shown as its operator DAG, then the pooled constraint embedding, the cross-attention over the decision variables, and the resulting prediction. This makes the mechanism of conditioning on a constraint more concrete.
Q1 — Permutation invariance in Eqs. (9)–(10)
We thank the reviewer for the careful reading. The actual operation uses attention-based sum pooling (the same kind of attention pooling as in Eq. 7); the writing at l.222 imprecisely calls it "sum pooling," which we will correct in the camera-ready version. Under attention-based sum pooling, each feature token is weighted by its feature type before being summed, so exchanging the two values changes h_i⁽⁰⁾; the type–value binding is preserved and the two assignments (f₁=v₁, f₂=v₂ versus f₁=v₂, f₂=v₁) map to different representations, so the indistinguishability does not arise. We also verify this directly on the trained model, at the Eq. (10) aggregation the reviewer questions: swapping the two feature values changes h_i⁽⁰⁾ on 100% of sampled nodes, never a collision, by an amount comparable to a 20% change in the feature value itself.
This addresses all the pending questions on my side. I trust the authors to integrate all these clarifications, and upgrade the rating to "accept".
We are glad the rebuttal addressed the reviewer's concerns, and we appreciate the thoughtful engagement throughout.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
To address the problems of neural methods being restricted to fixed formulations and treating feasibility constraints implicitly, this work proposes CONSTRAINER, a constraint-conditioned framework that treats constraints as structured inputs. The CONSTRAINER parses constraint specifications into operator graphs and encodes them using a graph neural network to produce invariant constraint embeddings. These embeddings explicitly condition a shared backbone model for solution prediction, enabling the systematic reuse of learned representations across related problem variants.
Strengths and weaknesses
Strengths
- The concept of treating mathematical constraints as explicit, structured "prompts" parsed into operator DAGs is novel and offers a good perspective for building foundation models in optimization.
- The paper is well-written and easy to follow.
- The architecture enables a shared neural backbone to systematically reuse learned representations across different problem variants, showing strong zero-shot generalization ability.
Weaknesses
- Lacking statistical significance.
- The assumption seems too strict.
Questions
-
When reporting the model's performance, the mean and standard deviation values were not reported.
-
The linear constraint encoder assumption (Assumption 4.1) seems too strict for the neural problems. Can you add additional discussion on it? Are the theoretical results still meaningful for the conducted experiments?
-
Table 11. The time cost increases rapidly with a larger number of nodes. Can you provide the order of the computational cost?
-
The performance improvement does not seem impressive compared with the MTL approach. I wonder if many SOTA MTL methods can achieve similar results.
Limitations
See Questions part.
Final justification
My concerns have been addressed. However, after considering the broader discussion and paper content, I will revise my rating to 4 (Still positive). The rebuttal and subsequent discussion have also clarified the paper substantially, allowing me to increase my confidence score.
Formatting concerns
No Paper Formatting Concerns
3 comments
Rebuttal
We thank the reviewer for the feedback and address each point below.
W1 & Q1 — Statistical significance
The per-task optimality gaps are reported in Tables 2–3. To evaluate significance, we run a Wilcoxon signed-rank test comparing CONSTRAINER against the strongest generalist foundation-model baseline on each task's test instances, and report the win-rate (the share of instances CONSTRAINER solves better).
| Task | Wilcoxon p | win-rate | outcome |
|---|---|---|---|
| ATSP | 1.3e-3 | 78% | significant |
| CVRP | 1.5e-3 | 83% | significant |
| CVRPTW | 4.2e-8 | 95% | significant |
| OP | 1.3e-2 | 77% | significant |
| JSSP | 2.0e-4 | 88% | significant |
| UMSP | 8.7e-10 | 86% | significant |
| MVC | — | 92% | parity |
| KP | — | 80% | parity |
CONSTRAINER significantly improves over the strongest generalist foundation-model baseline on 6 of 8 tasks (Wilcoxon, p < 1e-2), and is at parity on the two near-saturated tasks (MVC and KP), where all methods are close to optimal; on no task does that baseline significantly outperform CONSTRAINER. Even on the two parity tasks CONSTRAINER is better on the majority of instances (92% and 80% by win-rate). We will add these tests, together with the per-task mean and standard deviation over instances, to the results tables (Tables 2–3).
W2 — The assumption seems too strict
Assumption 4.1 is an analytical simplification, not a restriction on the deployed model. The stability argument extends to the nonlinear encoder (ReLU, LayerNorm, attention pooling) whenever the layer maps are Lipschitz, and the predicted stability is confirmed by direct measurement on the trained encoder. We give the full discussion under Q2.
Q2 — Assumption 4.1 too strict; are the theoretical results meaningful for the experiments?
Assumption 4.1 uses the linearized message-passing form standard in MPNN stability analysis (Gilmer et al., 2017; Zhou et al., 2020), chosen so that the effect of a structural perturbation can be isolated in closed form. The trained encoder additionally uses ReLU, LayerNorm, and attention pooling.
The analysis extends to this nonlinear encoder whenever the layer maps are Lipschitz, which holds for ReLU, LayerNorm, and attention with bounded inputs on the operating regime. The proof of Theorem 4.3 uses only the telescoping product identity and submultiplicativity of norms, both of which still hold; replacing each per-layer spectral norm by the corresponding Lipschitz constant leaves the form of the bound unchanged. Assumption 4.1 is therefore an analytical simplification rather than a restriction on the deployed architecture. We do not rely on the resulting constant being tight; its role is to show that the stability mechanism carries over, and its practical relevance is confirmed by measurement.
On whether the results are meaningful for the conducted experiments: we measured the embedding shift of the trained encoder under controlled node-feature perturbations. The shift stays small under numeric changes and grows smoothly with their magnitude (normalized distance 0.084 for a 20% change to all coefficients and 0.143 for a 20% change to the right-hand side, where an unrelated constraint sits at about 1.0), while a semantic change moves it much more (an operator flip ≤ → ≥ gives 0.85). This matches the stability the analysis predicts; the full sensitivity table is reported in the response to Reviewer kSGX (W2).
Q3 — Order of computational cost (Table 11)
The per-instance cost decomposes by module. The constraint encoder is O(Σ_c |E_c|·d), and its output is cached at inference (App. C.2), so its per-instance cost is O(1). The backbone is O(L·|E|·d); for the dense ATSP graph, |E| = O(n²) in the number of cities n, so this term grows with the number of edges. The constraint cross-attention is O(|V|·|C|·d), linear in the graph size |V| for a fixed, small constraint set (|C| ∈ [1,7], typically 3 to 4).
At the sizes in Table 11, absolute inference time is dominated by fixed per-call overhead, which is why it is nearly flat from n = 100 to 200; the backbone's edge term begins to show only at larger n. The growth with graph size therefore comes from the backbone over the problem graph, not from constraint conditioning: measuring the forward pass with and without the conditioning module, the conditioning adds no statistically significant overhead (within timing noise), consistent with the cached encoder. On sparser instances, where |E| is closer to linear in n, the growth is correspondingly milder. We will state these per-module orders explicitly in App. C.2.
Q4 — Improvement over MTL; would SOTA MTL methods match it?
The MTL baseline is a shared graph-transformer backbone with task-specific input/output adapters (Sec. 5), and it is also the ablation that removes constraint conditioning from our own model (Table 5, "No constraint conditioning"). The CONSTRAINER-versus-MTL gap therefore isolates the effect of conditioning under a fixed architecture. That effect is substantial where there is room to improve: ATSP 0.94 → 0.50 (47% relative), UMSP 3.89 → 2.14 (45%), CVRPTW 3.86 → 3.01, JSSP 4.18 → 3.68; on the near-saturated tasks (KP, MVC, gaps around 0.1–0.4%) the two are close, as expected.
Constraint conditioning is orthogonal to multi-task learning: it supplies the constraint set as an explicit input, which a multi-task optimizer does not. Our multi-task baseline is already trained with multi-task learning, so that axis is represented in the comparison, and CONSTRAINER improves over it; a stronger multi-task optimizer changes how the shared parameters are trained but adds no constraint information, so the two compose rather than substitute. To characterize the improvement beyond average gaps, we additionally report per-instance win-rates (W1): CONSTRAINER wins on the majority of instances on every task (77–95%), including the two parity tasks.
My concerns have been addressed. However, after considering the broader discussion and paper content, I will revise my rating to 4 (Still positive). The rebuttal and subsequent discussion have also clarified the paper substantially, allowing me to increase my confidence score.
We thank the reviewer for the thoughtful engagement throughout the discussion, and are glad the rebuttal helped clarify the paper. We remain happy to address any further points during the discussion period.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the feedback and address each point below.
The linear form is an analytical simplification that isolates structural perturbations in closed form; the argument extends to the nonlinear encoder (ReLU, LayerNorm, attention) whenever the layer maps are Lipschitz, since the proof uses only the telescoping identity and submultiplicativity of norms. The predicted stability is confirmed by direct measurement on the trained encoder (W2). The full discussion is also given in response to Q2 of reviewer Ykch.
Node-feature perturbations are covered by the same analysis once an initial-feature term is added: with
η = ‖H_c⁽⁰⁾ − H_c'⁽⁰⁾‖_F, the bound becomes‖z_c − z_c'‖ ≤ C_H η + C_A δ, and the current theorem is the special caseη = 0. We also report a direct sensitivity test on the trained encoder (mean over 90 base constraints). The edits below preserve topology (δ = 0);dis a normalized embedding distance (d ≈ 1between two unrelated constraints), and the unrelated row is a calibration point.d≤ → ≥)Numeric perturbations produce small shifts that grow smoothly and stay bounded as their magnitude increases, so the encoder is stable in this regime. Semantic edits move the embedding much more: an operator flip gives
d = 0.85, about ten times a 20% coefficient change, and a variable-type change givesd = 0.265. The encoder is stable to numeric perturbations and sensitive to semantic ones, so node-feature changes are captured rather than smoothed away.Constraint specifications are defined at the template level: each constraint
cin a task's constraint set is encoded as its own operator DAG capturing its structural form (operators, comparison types, variable roles), fixed across instances, while instance-specific information (variable scopes, coefficients, right-hand sides) enters through the problem-graph features and the feasibility mask, with the cached template bound to each instance's variables through the cross-attention. Because the template is instance-independent, the constraint embedding is encoded once and cached, so its cost is O(1) per instance. Constraints of the same type that differ only in variable scopes, coefficients, or right-hand sides are the same specification and the same operator DAG; those values are instance data carried on the problem graph, not separate specifications.The number of specifications per instance is small (
|C| ∈ [1,7], typically 3 to 4), so encoding does not scale with instance size. Instance numerics are not lost: on a knapsack capacity sweep (0.4× to 1.6× training capacity) the predicted objective tracks the optimum with Pearson correlation about 0.9 and mean gap 0.35%.The template-level specification is the constraint signal the backbone conditions on via cross-attention (Eq. 13), shaping the shared representation from the constraint set itself; its contribution is isolated by the "No constraint conditioning" ablation (Table 5).
Constraint conditioning improves both feasibility and solution quality, and the two effects are separable. On the grid tasks, where feasibility is not enforced by construction, the feasibility improvement is direct: CONSTRAINER attains the highest feasibility on every grid task in Table 1 (e.g., 99.02% on DCOPF against 97.10% for the shared-backbone multi-task baseline). On the combinatorial tasks the mask is applied to every method equally; with it removed on KP, CONSTRAINER stays feasible on 75.1% of instances against about 55% without conditioning, and with the mask on the effect appears in solution quality (Ykch W1/Q1). The two are separate, complementary components: conditioning improves the representation, raising both feasibility (where the mask does not already guarantee it) and solution quality.
The practical benefit is clearest where obtaining a certified optimum requires substantial search. We compare CONSTRAINER against the exact solver CP-SAT at matched wall-clock, with optimality gaps measured against the exact optimum; CONSTRAINER runs batched inference on one A100, CP-SAT on CPU.
At the model's 53 ms budget CP-SAT is at 3.23% against CONSTRAINER's 0.32%, and needs about 13× the model's time to match its quality. Given seconds the solver does prove optimality (6.1 s), the irreducible cost of certification; the model instead supplies in 53 ms an incumbent the solver reaches only after roughly 700 ms. On throughput it produces near-optimal covers at 18.7 instances/s on one GPU against 3.9 instances/s for CP-SAT on 24 cores, about 5× more on parallel CPU. The same pattern holds on JSSP (10×10): CP-SAT needs about 1.5× the model's time to match its quality and 3.6× to prove optimality.
Where certified optimization is expensive, the predicted solutions deliver near-optimal quality at a fraction of the solver's time. We will add this matched-budget comparison to the paper.
We will expand the experimental details as follows.
We thank the reviewer for these references and will position them in the related work (Sec. 2). These works predict or differentiate solutions for a single fixed MILP instance (Han et al. 2023; Huang et al. ICML 2024; Liu et al. 2025; Geng et al. ICLR 2025), encoding it as a bipartite variable-constraint graph with the constraints consumed numerically. We differ in what is shared: we encode the algebraic form of the constraint set as a promptable input, so a related or reformulated problem becomes a new input to the same model. The two directions are complementary and composable: our prediction can serve as the prediction stage in such a pipeline.
The two mechanisms are chosen by what determines feasibility, not by domain. Masking gives feasibility by construction only when the binding constraints can be maintained incrementally over a discrete action set. In the combinatorial problems feasibility is itself combinatorial (visiting each node once, respecting a capacity), so an autoregressive decoder that masks infeasible actions at each step is feasible by construction, following GOAL (Drakulic et al., 2025). In the grid problems, including the mixed-integer DCOTS and DCTNEP, feasibility is dominated by continuous power-flow and thermal constraints that a discrete mask cannot enforce, so it is handled by a constraint-violation penalty, optionally composed with a projection or repair step when hard feasibility is required (Table 15, ACOPF). The binaries of DCOTS and DCTNEP are predicted as edge selections, and masking them alone would leave the continuous constraints unsatisfied.
Within each family the same feasibility setup applies to CONSTRAINER and the baselines, so any performance difference is attributable to conditioning, not to feasibility enforcement. Conditioning acts on the shared representation, separate from the decoder; where feasibility is not enforced by construction it also shows as higher feasibility (grid, Table 1). We will make this explicit in Sec. 3.4.