arXiv:2611.05726cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05726

Do Language Models Know Which Constraints Belong Together?

Junbo Jacob Lian, Kaixuan Chen, Hanzhang Qin, Huiling Chen, Chaoyu Zhang, Chung-Piaw Teo

Abstract

Dantzig–Wolfe reformulation strengthens the linear relaxation of a mixed-integer program by convexifying a chosen set of constraint families, and every candidate costs a column generation run. The choice is hard when families strengthen the bound only together, because a search that adds one family at a time then stops at the linear relaxation. The classical inequalities of lot sizing, network design and facility location rest on such zero-marginal groups. We prove that when each evaluation convexifies at most ss of kk families, any method that observes only bounds needs a covering number of evaluations, of order kwk^w, to find a hidden group of ww families, also on actual Dantzig–Wolfe relaxations. A prediction that misses ee members reduces the cost to Θ(ke)\Theta(k^e), through one staged search that does not need to know ee, so the evaluations a prediction saves measure what the predictor knows. We study two sources of predictions. A one-pass lookahead at an optimal LP dual is provably blind to groups whose families share no variable, and a language model reads the names and text of the model. JointDW verifies the prediction of the language model with the staged search and interleaves it with the lookahead at a bounded loss. Groups that strengthen the bound only jointly appear in a quarter of the MIPLIB-NL models whose bound can be improved. There the strongest language models identify them about as often as the lookahead, their predictions rest on the names for textbook models, and reasoning about doubles the accuracy of the same model. On larger models with distracting families, the lookahead

finds the group in one evaluation of three families. Language models given only the text seldom name it, while one reasoning model given every coefficient names it in all but one answer and then needs fewer evaluations than the lookahead for pairs of families. Code is available at github.com/junbolian/JointDW.

1. Introduction

Dantzig–Wolfe (DW) reformulation (Dantzig & Wolfe, 1960) replaces some constraints of a mixed-integer linear program (MILP) by the convex hull of their integer solutions, and column generation solves the resulting relaxation. Its bound is never weaker than that of the linear programming (LP) relaxation, and it is the basis of branch-and-price methods for lot sizing, vehicle routing and scheduling (Vanderbeck & Wolsey, 2010). The bound depends on which constraints are convexified, and the bound of a candidate is known only after a column generation run. Modelers make this choice from knowledge of the model class, for example by convexifying the balance and setup rows of a lot-sizing model together. Generic solvers such as GCG detect block structure in a MILP and reformulate it automatically (Gamrath & Lübbecke, 2010; Bergner et al., 2015; Hojny et al., 2025). Without the modeler's knowledge a detector must compare candidates, and a model with kk constraint families has 2k2^k of them. This paper asks how many evaluations that knowledge replaces, and whether a language model that reads the model can supply it.

The choice is hard for a specific reason, which Figure 1 shows on a lot-sizing instance with two items and two periods. Convexifying the balance rows, the setup rows or the capacity rows alone leaves the LP bound unchanged, while convexifying the balance and setup rows together closes most of the integrality gap. Together the two families imply the (l,S)(l, S) inequalities of single-item lot sizing (Bárány et al., 1984), which neither implies alone. A search that adds one family at a time while the bound improves therefore returns the LP relaxation, and a score that evaluates each family by itself sees no gain. We call a set of families with this property a zero-marginal group. The classical strong formulations of lot sizing, network design and facility location rest on such groups, since their inequalities need two fami-

¹Institute of Operations Research and Analytics, National University of Singapore, Singapore ²Wenzhou Buyi Pharmacy, Wenzhou, China ³McCormick School of Engineering, Northwestern University, Evanston, IL 60208, USA ⁴College of Computer Science and Artificial Intelligence, Wenzhou University, Wenzhou, China ⁵Department of Decision Analytics and Operations, City University of Hong Kong, Hong Kong, China. Correspondence to: Hanzhang Qin hzqin@nus.edu.sg, Huiling Chen chenhuiling.jlu@gmail.com, Chung-Piaw Teo bizteocp@nus.edu.sg.

Preprint.

Figure

Figure 1. Share of the integrality gap closed by every family-level DW relaxation of a lot-sizing instance with two items and two periods, with B, S and C the balance, setup and capacity families. Edge width is proportional to the increase of the bound when one family is added, and gray edges add nothing. The shaded sets have gain zero, so a search that adds one family at a time while the bound improves never leaves ∅\emptyset. The pairs BS and CS are zero-marginal groups, and all three families together give the MILP optimum.

lies at once. What modelers know about these formulations is therefore the information that single-family evaluations cannot reveal. Bastubbe et al. (2018) computed the DW bounds of all constraint subsets of small integer programs, and Lübbecke & Witt (2018) related the strength of DW reformulations of the stable set problem to the convexified subgraph. A general account of when families must be convexified together, and of what it costs to find them, has been missing.

Bound evaluations alone find such groups slowly. On binary programs whose DW relaxations we construct exactly, a bound reveals only whether the convexified set contains a hidden group, and every method needs a covering number of evaluations to find it. A prediction of the group removes a factor of order kk from this cost for every member it gets right. With k=20k=20 families, evaluations of at most six families and a hidden group of three, a greedy covering needs 85 evaluations in the worst case, and a correct prediction needs one (Table 3). The evaluations a prediction saves thus measure what the predictor knows in units of computation, not by agreement with a reference answer. Two sources of predictions exist before any column generation run. Solving each block once at an optimal LP dual gives a lower bound on its gain, and we prove that this lookahead cannot see groups whose families share no variable. The text of the model is the other source. A modeler who knows lot sizing knows that balance and setup rows belong together, and language models now read such text when they formulate models (Huang et al., 2025; AhmadiTeshnizi et al., 2024; Liang et al., 2026; Lian et al., 2026b), check reformulations (Zhai et al., 2025; Robbins et al., 2026) and configure solvers (Lawless et al., 2024; Nie et al., 2026; Xu et al., 2026). Whether they know which constraints belong together is open. A correct prediction may come from the meaning of a model or only from familiar names, and its

value depends on the search that checks it. Our contributions are the following.

  • Zero-marginal groups. We define the family supports of a valid inequality and the zero-marginal groups of constraint families. We distinguish groups that need an inequality with a joint support from groups that arise from the geometry of the LP (Section 3).

  • The cost of finding them. When an evaluation may convexify at most ss of kk families, every method that observes only bounds needs Θ(kw)\Theta(k^w) evaluations to find a group of ww families, also on DW relaxations of stable-set programs. Randomization saves at most a factor of two, and greedy selection never finds the group (Theorem 1). A prediction that misses ee members reduces the cost to Θ(ke)\Theta(k^e) through one staged search that does not need to know ee, and the search costs only a lower-order term more when the prediction is entirely wrong (Theorem 2).

  • Two sources of predictions. The one-pass lookahead at an optimal LP dual is provably blind to groups whose families share no variable (Proposition 1). JointDW takes the prediction of a language model, verifies it with the staged search, and interleaves it with the lookahead at no more than twice the cost of the better of the two (Section 5).

  • A controlled measurement. We report a census of zero-marginal groups in MIPLIB-NL and measure five language-model configurations on instances with exact gains. Controlled presentations separate knowledge of a model from familiarity with its names, and we vary reasoning and whether the coefficients of the instance are shown (Section 6). Code and data are released.

The language models know what the textbooks say about these groups, and on textbook models they know it through the names: once the family names are permuted among the rows, GPT-6.1 Sol names no true group on the templates. Zero-marginal groups are common in MIPLIB-NL, and greedy selection misses the best decomposition on most models that have one. On these models the strongest language models identify the groups about as often as the lookahead and on partly different models, and reasoning roughly doubles the accuracy of the same model. On larger models with distracting families, the lookahead finds the group with its first evaluation of three families, while language models given only the text seldom name it. Given every coefficient, one reasoning model names the classical group of each class and needs fewer evaluations than the lookahead for pairs of families. Because the interleaved order bounds the loss from a wrong prediction, a more accurate language model can be adopted as soon as one exists, and Theorem 2 states what each avoided miss saves.