id stringlengths 47 47 | model stringclasses 1
value | family stringclasses 1
value | family_code stringclasses 1
value | size_range stringclasses 3
values | n_vars int64 135 338 | n_cons int64 149 363 | geometry listlengths 2 2 | instance stringlengths 385 435 | mps stringlengths 42.8k 108k | prompt_seed int64 2,026B 2,026B | exemplar stringclasses 3
values | prompt stringclasses 36
values | sha256 stringlengths 64 64 | feasibility stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MILP-OptiScribe-12B/bin_packing/111-170/0000000 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 144 | 159 | [
15,
9
] | MILP bin_packing min
set I 15
set B 9
par s[I]
par cap[B]
var x[I,B] 0 1 binary
var y[B] 0 1 binary
obj min sum b in B: y[b]
con assign: for i in I: sum b in B: x[i,b] = 1
con capacity: for b in B: sum i in I: s[i]*x[i,b] <= cap[b]*y[b]
con link: for i in I, b in B: x[i,b] - y[b] <= 0
DATA: {"s":[31,44,39,49,30,40,33,4... | * SCIP STATISTICS
* Problem name : model
* Variables : 144 (144 binary, 0 integer, 0 implicit integer, 0 continuous)
* Constraints : 159
NAME model
OBJSENSE
MIN
ROWS
N Obj
E c1
E c2
E c3
E c4
E c5
E c6
E c7
E c8
E c9
E c10
E c11
E c12
E c13
E ... | 2,026,172,783,360 | BPPa | Write ONE mixed-integer linear program in the format shown by the example below.
FAMILY: bin packing (put every item into one of identical bins; open as few bins as possible).
MANDATORY MATHEMATICS (the names are yours; the structure is not):
- BINARY assignment variables indexed by TWO sets, x[I,B] (item, bin)
- ... | d0347417ea7ae2d23ad15be4674a35935855dde7ac974d4d66a33cc395c734a8 | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000001 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 144 | 159 | [
15,
9
] | MILP bin_packing min
set I 15
set B 9
par s[I]
par cap[B]
var x[I,B] 0 1 binary
var y[B] 0 1 binary
obj min sum b in B: y[b]
con assign: for i in I: sum b in B: x[i,b] = 1
con capacity: for b in B: sum i in I: s[i]*x[i,b] <= cap[b]*y[b]
con link: for i in I, b in B: x[i,b] - y[b] <= 0
DATA: {"s":[34,41,30,38,44,49,32,3... | * SCIP STATISTICS
* Problem name : model
* Variables : 144 (144 binary, 0 integer, 0 implicit integer, 0 continuous)
* Constraints : 159
NAME model
OBJSENSE
MIN
ROWS
N Obj
E c1
E c2
E c3
E c4
E c5
E c6
E c7
E c8
E c9
E c10
E c11
E c12
E c13
E ... | 2,026,172,783,361 | BPPb | Write ONE mixed-integer linear program in the format shown by the example below.
FAMILY: bin packing (put every item into one of identical bins; open as few bins as possible).
MANDATORY MATHEMATICS (the names are yours; the structure is not):
- BINARY assignment variables indexed by TWO sets, x[I,B] (item, bin)
- ... | 75922da2887ad125cf139f8a96e30d4e6f4d79b892dbbc873124c09f201581cd | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000002 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 136 | 152 | [
16,
8
] | MILP bin_packing min
set I 16
set B 8
par s[I]
par cap[B]
var x[I,B] 0 1 binary
var y[B] 0 1 binary
obj min sum b in B: y[b]
con assign: for i in I: sum b in B: x[i,b] = 1
con capacity: for b in B: sum i in I: s[i]*x[i,b] <= cap[b]*y[b]
con link: for i in I, b in B: x[i,b] - y[b] <= 0
DATA: {"s":[31,44,48,36,40,45,39,3... | * SCIP STATISTICS
* Problem name : model
* Variables : 136 (136 binary, 0 integer, 0 implicit integer, 0 continuous)
* Constraints : 152
NAME model
OBJSENSE
MIN
ROWS
N Obj
E c1
E c2
E c3
E c4
E c5
E c6
E c7
E c8
E c9
E c10
E c11
E c12
E c13
E ... | 2,026,172,783,362 | BPPc | Write ONE mixed-integer linear program in the format shown by the example below.
FAMILY: bin packing (put every item into one of identical bins; open as few bins as possible).
MANDATORY MATHEMATICS (the names are yours; the structure is not):
- BINARY assignment variables indexed by TWO sets, x[I,B] (item, bin)
- ... | aaca471498b7fc74c694c8af5c93f79845560bace796db156c30b097aea1bdf2 | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000003 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 136 | 152 | [
16,
8
] | "MILP bin_packing min\nset I 16\nset B 8\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 136 (136 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,363 | BPPb | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | 7257fc609d846086433e988aaf39d5d3911c2d21fbb9d8c3907d5c81b3981c9b | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000004 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 162 | 179 | [
17,
9
] | "MILP bin_packing min\nset I 17\nset B 9\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 162 (162 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,364 | BPPb | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | 0bd81f627d9ea169debe3ccdc09d4614da80b206dacd1c1342b2032fb4bce03d | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000005 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 144 | 159 | [
15,
9
] | "MILP bin_packing min\nset I 15\nset B 9\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 144 (144 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,365 | BPPb | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | e19eed8f1953bce4c26aac2343a452df094e9b5e516416a3f5ce218ae4d4553d | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000006 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 136 | 152 | [
16,
8
] | "MILP bin_packing min\nset I 16\nset B 8\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 136 (136 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,366 | BPPc | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | addfeea42231497bf2b5dceca2d798db70d74ff3b2a56aca3d0c9648bca6aa45 | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000007 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 135 | 149 | [
14,
9
] | "MILP bin_packing min\nset I 14\nset B 9\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 135 (135 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,367 | BPPc | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | 6cac27666d1e0b535ed9dfbbd8c4a6197445aa169d40cdb14c9809882ec2b1ce | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000008 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 144 | 159 | [
15,
9
] | "MILP bin_packing min\nset I 15\nset B 9\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 144 (144 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,368 | BPPc | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | 266c9327f5db4af34f554e57b44f00addfa682ea6a5ea18b190e2c5cb9313419 | sollimit |
MILP-OptiScribe-12B/bin_packing/111-170/0000009 | MILP-OptiScribe-12B | bin_packing | BPP | 111-170 | 136 | 152 | [
16,
8
] | "MILP bin_packing min\nset I 16\nset B 8\npar s[I]\npar cap[B]\nvar x[I,B] 0 1 binary\nvar y[B] 0 1 (...TRUNCATED) | "* SCIP STATISTICS\n* Problem name : model\n* Variables : 136 (136 binary, 0 integer,(...TRUNCATED) | 2,026,172,783,369 | BPPb | "Write ONE mixed-integer linear program in the format shown by the example below.\n\nFAMILY: bin pac(...TRUNCATED) | c7f3e88aebe7fa6ddc9c85130a53dd76f901b99cfb46c2324a85d86261445199 | sollimit |
MILP-OptiScribe-Dataset-1M
Developed by: PSquareLab and SinglaLab, IIT Roorkee (joint work). Hugging Face organization: PSquare-SinglaLab-IITR.
Paper: Teaching LLMs to Generate Challenging MILP Instances via Solver Feedback. The paper calls the two models OptiScribe-12B and OptiScribe-4B; on Hugging Face their names start with MILP.
1,000,000 mixed-integer linear programming (MILP) instances written by two language models fine-tuned for MILP instance generation, MILP-OptiScribe-12B (Gemma-4-12B) and MILP-OptiScribe-4B (Qwen3.5-4B): 500,000 from each, covering five problem families × four size ranges (111-500 variables) × 25,000 per model. Every instance passed the checks listed below, and SCIP found a feasible solution for each. Each instance is given as the model wrote it, as an MPS file that any MILP solver reads, and with the exact prompt that produced it.
Both models were given the same prompts with the same seeds, so the two halves are paired rather than independent. Exact copies were removed within each model, family and size range. Across the two models, 3 instances are identical (Bin packing 111-170: 2, Bin packing 171-225: 1); they are kept, because each model wrote them.
from datasets import load_dataset
repo = "PSquare-SinglaLab-IITR/MILP-OptiScribe-Dataset-1M"
cfl = load_dataset(repo, "all", split="cfl") # both models (the `model` column tells them apart)
cfl_12b = load_dataset(repo, "MILP-OptiScribe-12B", split="cfl") # one model
big = cfl.filter(lambda r: r["size_range"] == "351-500") # one size range
peek = load_dataset(repo, "all", split="max_cut", streaming=True) # look at a few rows without downloading a split
for row in peek.take(3):
print(row["id"], row["n_vars"], row["n_cons"])
sample = load_dataset(repo, "release_sample", split="train") # solver results of the 10,000-instance sample
Solve an instance with any MILP solver through its mps column (SCIP shown; Gurobi, HiGHS, CPLEX and others read the
same file):
import pyscipopt
row = cfl[0]
with open("instance.mps", "w") as fh:
fh.write(row["mps"])
m = pyscipopt.Model()
m.readProblem("instance.mps")
m.optimize()
print(row["id"], m.getStatus(), m.getObjVal())
One file can also be read directly, for example with pandas (needs huggingface_hub installed):
import pandas as pd
df = pd.read_parquet(f"hf://datasets/{repo}/data/MILP-OptiScribe-4B/gisp/351-500/part-00000.parquet")
Contents
Configurations: all (default, both models), MILP-OptiScribe-12B, MILP-OptiScribe-4B (one model each), each with one split per
family, and release_sample (the solver results below).
| Family (split) | 111-170 | 171-225 | 226-350 | 351-500 | Total |
|---|---|---|---|---|---|
Bin packing (bin_packing) |
50,000 | 50,000 | 50,000 | 50,000 | 200,000 |
CFL, capacitated facility location (cfl) |
50,000 | 50,000 | 50,000 | 50,000 | 200,000 |
FCMCNF, fixed-charge multi-commodity network flow (fcmcnf) |
50,000 | 50,000 | 50,000 | 50,000 | 200,000 |
GISP, generalized independent set problem (gisp) |
50,000 | 50,000 | 50,000 | 50,000 | 200,000 |
Max-Cut (max_cut) |
50,000 | 50,000 | 50,000 | 50,000 | 200,000 |
| Total | 250,000 | 250,000 | 250,000 | 250,000 | 1,000,000 |
Each cell is 25,000 instances from each model. Both models were also trained on knapsack; knapsack is not in this release.
Files: data/<model>/<family>/<size range>/part-0000N.parquet, 10,000 instances per file (the last file of each range
holds 5,000).
Fields
| Field | Meaning |
|---|---|
id |
<model>/<family>/<size range>/<index> |
model |
MILP-OptiScribe-12B or MILP-OptiScribe-4B |
family, family_code, size_range |
where the instance comes from |
n_vars, n_cons |
variables and constraints of the parsed instance |
geometry |
the family's size parameters as requested and declared (for example facilities, customers) |
instance |
the instance exactly as the model wrote it (algebraic text format with a JSON data block) |
mps |
the same instance in MPS format, readable by any MILP solver |
prompt |
the full prompt the model was given (the user message; the model's chat template was applied with thinking off) |
prompt_seed, exemplar |
that prompt's seed and the name of the worked example it showed |
sha256 |
fingerprint of the instance's numbers, used to drop exact copies |
feasibility |
SCIP's status when it stopped at the first feasible solution |
How the instances were made and checked
- Generated with the training prompts at temperature 1.0, top-p 0.95, one sample per prompt, prompt seeds
20261120 x 100003 + k (k = 0, 1, ...), sampling seed = prompt seed. Each row's
promptcolumn holds the exact prompt. - Kept only if: it parses; the declared sizes equal the requested sizes; every data list has its declared length; values are inside the ranges the prompt states; the family checks pass (family structure, finite variable bounds, no aggregated linking constraints, coefficient range); the variable count is inside the size range; SCIP finds a feasible solution within 120 s; and its numbers are not identical to an instance already kept for the same model, family and size range.
- Kept in generation order until each model, family and size range reached 25,000.
Pass rates
Generation for each model, family and size range continued until 25,000 instances had passed. The 25,000 released are the first ones that passed. Instances that passed after a range was full were not released.
MILP-OptiScribe-12B
539,000 prompts gave 531,919 instances that passed every check (98.7%).
| Family | Size range | Prompts | Passed all checks | Pass rate | Exact copies removed | Most common rejection |
|---|---|---|---|---|---|---|
| Bin packing | 111-170 | 26,500 | 26,500 | 100.0% | 0 | none |
| Bin packing | 171-225 | 26,500 | 26,500 | 100.0% | 0 | none |
| Bin packing | 226-350 | 26,500 | 26,500 | 100.0% | 0 | none |
| Bin packing | 351-500 | 26,500 | 26,499 | 99.9% | 0 | does not parse: 1 |
| CFL | 111-170 | 28,500 | 28,496 | 99.9% | 0 | a data list longer than declared: 2 |
| CFL | 171-225 | 28,500 | 26,085 | 91.5% | 0 | a data list longer than declared: 2,359 |
| CFL | 226-350 | 27,000 | 26,384 | 97.7% | 0 | a data list longer than declared: 408 |
| CFL | 351-500 | 28,000 | 27,022 | 96.5% | 0 | a data list longer than declared: 507 |
| FCMCNF | 111-170 | 27,000 | 26,775 | 99.2% | 0 | values outside the stated ranges: 138 |
| FCMCNF | 171-225 | 27,000 | 26,465 | 98.0% | 0 | values outside the stated ranges: 215 |
| FCMCNF | 226-350 | 27,000 | 26,707 | 98.9% | 0 | values outside the stated ranges: 214 |
| FCMCNF | 351-500 | 27,000 | 26,598 | 98.5% | 0 | values outside the stated ranges: 300 |
| GISP | 111-170 | 26,500 | 26,483 | 99.9% | 0 | values outside the stated ranges: 16 |
| GISP | 171-225 | 26,500 | 26,472 | 99.9% | 0 | values outside the stated ranges: 28 |
| GISP | 226-350 | 26,500 | 26,456 | 99.8% | 0 | values outside the stated ranges: 44 |
| GISP | 351-500 | 26,500 | 26,010 | 98.2% | 0 | values outside the stated ranges: 468 |
| Max-Cut | 111-170 | 26,500 | 26,499 | 99.9% | 0 | values outside the stated ranges: 1 |
| Max-Cut | 171-225 | 26,500 | 26,120 | 98.6% | 0 | does not parse: 376 |
| Max-Cut | 226-350 | 27,000 | 26,667 | 98.8% | 0 | does not parse: 297 |
| Max-Cut | 351-500 | 27,000 | 26,681 | 98.8% | 0 | values outside the stated ranges: 297 |
MILP-OptiScribe-4B
569,500 prompts gave 528,277 instances that passed every check (92.8%).
| Family | Size range | Prompts | Passed all checks | Pass rate | Exact copies removed | Most common rejection |
|---|---|---|---|---|---|---|
| Bin packing | 111-170 | 26,500 | 26,484 | 99.9% | 16 | exact copy: 16 |
| Bin packing | 171-225 | 26,500 | 26,488 | 99.9% | 12 | exact copy: 12 |
| Bin packing | 226-350 | 27,000 | 26,932 | 99.7% | 2 | a data list shorter than declared: 66 |
| Bin packing | 351-500 | 27,000 | 26,556 | 98.4% | 8 | a data list shorter than declared: 383 |
| CFL | 111-170 | 26,500 | 26,444 | 99.8% | 0 | values outside the stated ranges: 29 |
| CFL | 171-225 | 26,500 | 26,299 | 99.2% | 0 | a data list shorter than declared: 155 |
| CFL | 226-350 | 26,500 | 25,975 | 98.0% | 0 | a data list shorter than declared: 386 |
| CFL | 351-500 | 47,000 | 25,923 | 55.2% | 0 | a data list shorter than declared: 17,500 |
| FCMCNF | 111-170 | 26,500 | 26,375 | 99.5% | 0 | values outside the stated ranges: 112 |
| FCMCNF | 171-225 | 27,500 | 25,612 | 93.1% | 0 | infeasible (SCIP): 1,771 |
| FCMCNF | 226-350 | 26,500 | 26,366 | 99.5% | 0 | values outside the stated ranges: 125 |
| FCMCNF | 351-500 | 27,000 | 26,784 | 99.2% | 0 | values outside the stated ranges: 204 |
| GISP | 111-170 | 26,500 | 26,483 | 99.9% | 0 | values outside the stated ranges: 17 |
| GISP | 171-225 | 26,500 | 26,418 | 99.7% | 0 | a data list shorter than declared: 46 |
| GISP | 226-350 | 27,000 | 25,968 | 96.2% | 0 | a data list shorter than declared: 719 |
| GISP | 351-500 | 39,000 | 27,485 | 70.5% | 4 | a data list shorter than declared: 9,053 |
| Max-Cut | 111-170 | 26,500 | 26,499 | 99.9% | 0 | a data list shorter than declared: 1 |
| Max-Cut | 171-225 | 26,500 | 26,493 | 99.9% | 0 | values outside the stated ranges: 5 |
| Max-Cut | 226-350 | 26,500 | 26,438 | 99.8% | 0 | a data list shorter than declared: 51 |
| Max-Cut | 351-500 | 30,000 | 26,255 | 87.5% | 7 | a data list shorter than declared: 3,452 |
How hard and varied they are
Hardness and variety were measured on a random sample: 250 instances per family and size range, drawn uniformly at random from the 25,000 released (5,000 per model; seeded, so the sample is reproducible). Each was solved with SCIP 10.0 (PySCIPOpt 6.2.1) and Gurobi 13.0.3, one thread each, default settings, seed 0, node limit 50,000. For comparison, each model's untrained base model (Gemma-4-12B and Qwen3.5-4B) was given the same prompts with the same seeds and sampling settings, and its outputs were checked in the same way. Up to 250 that passed per family and size range were solved with the same settings. These base-model instances are not part of this release.
MILP-OptiScribe-12B
Each panel shows one metric for one family. In every size range, the left column is Gemma-4-12B (grey rings) and the right column is MILP-OptiScribe-12B (dots). Each dot is one instance; for variety, each dot is one Vendi draw. Solid line: median; dashed line: mean. Dotted line: the 50,000-node cap, or the seeded random generator's variety.
| Family | Pass rate | SCIP nodes (median) | SCIP at node cap | Gurobi nodes (median) | Root gap (median) | LP gap (median) | Variety (Vendi) | Variety, seeded random |
|---|---|---|---|---|---|---|---|---|
| Bin packing | 99.9% (72.1%) | 175 (5) | 8.8% (1.9%) | 1 (1) | 0.0% (0.0%) | 12.4% (8.1%) | 94.0 (82.9) | 95.8 |
| CFL | 96.4% (17.2%) | 594 (46†) | 5.0% (0.6%†) | 39 (22†) | 2.4% (0.9%†) | 20.4% (15.1%†) | 91.5 (95.1†) | – |
| FCMCNF | 98.7% (15.3%) | 1 (1) | 0.0% (0.0%) | 1 (1) | 0.0% (0.0%) | 42.0% (44.6%) | 93.4 (83.5) | 96.0 |
| GISP | 99.5% (59.2%) | 51 (7) | 0.0% (0.0%) | 27 (1) | 13.5% (0.0%) | 248.9% (198.4%) | 86.7 (86.7) | 93.2 |
| Max-Cut | 99.0% (45.7%) | 1,098 (150†) | 0.6% (0.0%†) | 1,686 (277†) | 18.1% (5.3%†) | 77.2% (58.0%†) | 85.9 (91.7†) | 95.6 |
Bold: MILP-OptiScribe-12B; in brackets: the untrained Gemma-4-12B on the same prompts. Each value weights the four size ranges equally (medians over the family's instances with equal weight per range; pass rate and variety: mean over the ranges). † the base model has fewer than 250 passing instances in some ranges (CFL 226-350: 246; Max-Cut 351-500: 165). Variety, seeded random: our own generator for the same sizes with fresh random numbers (none for CFL).
MILP-OptiScribe-4B
Each panel shows one metric for one family. In every size range, the left column is Qwen3.5-4B (grey rings) and the right column is MILP-OptiScribe-4B (dots). Each dot is one instance; for variety, each dot is one Vendi draw. Solid line: median; dashed line: mean. Dotted line: the 50,000-node cap, or the seeded random generator's variety.
| Family | Pass rate | SCIP nodes (median) | SCIP at node cap | Gurobi nodes (median) | Root gap (median) | LP gap (median) | Variety (Vendi) | Variety, seeded random |
|---|---|---|---|---|---|---|---|---|
| Bin packing | 99.5% (22.6%) | 174 (2) | 7.3% (3.0%) | 1 (1) | 0.0% (0.0%) | 11.4% (9.0%) | 89.1 (82.9) | 95.8 |
| CFL | 88.1% (4.7%) | 365 (14†) | 3.9% (0.9%†) | 39 (7†) | 2.2% (0.5%†) | 24.6% (12.1%†) | 90.4 (90.9†) | – |
| FCMCNF | 97.8% (24.8%) | 1 (1) | 0.0% (0.0%) | 1 (1) | 0.0% (0.0%) | 54.5% (49.7%) | 93.3 (91.0) | 96.0 |
| GISP | 91.6% (23.4%) | 169 (5) | 0.0% (0.0%) | 59 (1) | 15.0% (0.0%) | 231.9% (177.6%) | 68.1 (71.4) | 93.2 |
| Max-Cut | 96.8% (49.7%) | 1,191 (259) | 0.9% (0.0%) | 1,869 (979) | 19.5% (10.1%) | 79.3% (65.3%) | 85.6 (89.5) | 95.6 |
Bold: MILP-OptiScribe-4B; in brackets: the untrained Qwen3.5-4B on the same prompts. Each value weights the four size ranges equally (medians over the family's instances with equal weight per range; pass rate and variety: mean over the ranges). † the base model has fewer than 250 passing instances in some ranges (CFL 171-225: 209; CFL 226-350: 26; CFL 351-500: 188). Variety, seeded random: our own generator for the same sizes with fresh random numbers (none for CFL).
How to read the metrics:
- Branch-and-bound nodes: the nodes each solver needed to prove optimality. Instances that stop at the node cap count as 50,000. Node counts are not comparable across solvers. More nodes means harder for that solver at these settings.
- Root gap: |z* - z_root| / |z*|, where z* is the optimal value and z_root is Gurobi's bound after the root node (after cuts).
- LP gap: |z* - z_LP| / |z*|, where z_LP is the value of the LP relaxation. Both gaps need the optimal value z*, taken from Gurobi, or from SCIP when Gurobi did not prove optimality. Instances where neither solver proved optimality within the node cap have no gap (MILP-OptiScribe-12B: 4 of 5,000; MILP-OptiScribe-4B: 4 of 5,000). GISP's LP gap can exceed 100%.
- Variety: the Vendi score (Friedman and Dieng, TMLR 2023) of 100 instances, as the median of 200 random draws; the maximum is 100. The similarity of two instances is the share of positions where their free data arrays hold the same value, and 0 for different sizes. It detects copied or repeated numbers, not differences in structure.
- Pass rate: the share of prompts whose output passed every check, including the exact-copy check.
- Base-model numbers: they come only from base outputs that passed the checks. Where the base pass rate is low, those outputs may be the easier ones.
Per-instance results of the sample are in release_sample/solve_results.parquet
(config release_sample): released id, model, solver status, nodes, whether the node cap was hit, z*, z_LP, z_root
and both gaps. Solve times are left out because they were measured while other jobs shared the CPUs.
Limitations
- Sizes inside a range come from a fixed menu of 2-5 requested geometries per family and range.
- Only exact copies were removed; instances that are reorderings or near-copies of each other may remain.
- Every instance was checked for feasibility; hardness and variety were measured on the random sample above, not on every instance.
- FCMCNF instances are almost always solved at SCIP's root node.
Acknowledgements
Compute hardware support from Power Grid Corporation of India Limited (POWERGRID).
Two of the three worked CFL examples in the training prompts follow the constraint structure of two problem
classes, milp_776-medium and milp_430-easy, from Microsoft's
MILP-Evolve dataset (Li et al., Towards Foundation
Models for Mixed Integer Linear Programming, ICLR 2025). Their numbers were generated by our own code; no
MILP-Evolve data is included. The other examples were written by hand or generated by our own code.
License
CC BY-NC 4.0: free for non-commercial use (research, teaching) with attribution. Commercial use is not permitted without a separate licence from the authors; contact pareek@ee.iitr.ac.in and jsingla@bt.iitr.ac.in.
Citation
@misc{singla2026teachingllmsgeneratechallenging,
title={Teaching LLMs to Generate Challenging MILP Instances via Solver Feedback},
author={Jitin Singla and Parikshit Pareek and Pratik Jawanpuria and Parag Singla},
year={2026},
eprint={2609.37356},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2609.37356},
}
- Downloads last month
- 8

