Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 59 min ago
PreprintCC BY 4.0arXiv

Teaching LLMs to Generate Challenging MILP Instances via Solver Feedback

Abstract

Generating optimization instances that are both feasible and computationally challenging is crucial for benchmarking solvers and training learning-based optimization algorithms. Existing non-LLM generators rely on seed instances or parameter tuning, resulting in high test-time computational cost, while existing LLM generators lack explicit hardness measures. Recent reinforcement learning methods with verifier feedback evaluate only binary correctness, which is misaligned with generating challenging problems. We note that an optimization solver reports the cost of solving at several stages of its pipeline, and leverage this to design a reward that scores both the solvability and the hardness of generated problems, measured by branch-and-bound nodes and post-cut relaxation gaps. Our key idea is a challenger-solver asymmetric self-play approach, where an LLM challenger generates progressively harder instances and the solver verifies feasibility and hardness, so no seed or training MILP instances are required. We fine-tune Gemma-4-12B and Qwen3.5-4B with GRPO and a size curriculum into OptiScribe-12B and OptiScribe-4B, which generate feasible yet challenging MILP problems from natural language instructions. On capacitated facility location and max-cut, OptiScribe-12B raises median SCIP search nodes by 1.7-5x and post-cut gaps by 1.1-1.7x over its base model and improves the feasibility rate on facility location by 9-19 points, while OptiScribe-4B raises median nodes by up to 15.6x. The problems cover a wider difficulty range than public benchmarks of the same size, follow instructions on density and difficulty, and can tune solver settings for families that public libraries lack. These results indicate that optimization-specific rewards, used in self-play mode, can teach LLMs to generate high-difficulty optimization benchmarks. We will release our code and models publicly on acceptance.

Related

  1. Prime factorisation of stable-matching instances: uniqueness, simultaneous products, and an exact census
    Yoshiteru Ishida
    arXivPreprintCC BY 4.0Full textCombinatorics & discrete mathematicsarXiv
  2. Improved upper bounds for five IHTC-2024 benchmark instances via exact reoptimization of the nurse-to-room layer
    Alfonso Gippini Requeijo
    arXivPreprintarXiv licenceFull textOptimisation & controlarXiv
  3. Branch and Price for Railway Crew Scheduling: Benchmark Instances and Computational Study
    Bart van Rossum
    arXivPreprintCC BY 4.0Full textOptimisation & controlarXiv
  4. Some instances of modularity for residually reducible representations in the mixed case
    Luis V. Dieulefait
    arXivPreprintCC BY 4.0Full textAlgebra & number theoryarXiv
  5. Hard Instances on Demand
    Jamie Fravel, Martin Koutecký, Pavlo Tsitsei
    arXivPreprintarXiv licenceFull textOptimisation & controlarXiv
BibTeX
@misc{singla2026teaching,
  title = {{Teaching LLMs to Generate Challenging MILP Instances via Solver Feedback}},
  author = {Jitin Singla and Parikshit Pareek and Pratik Jawanpuria and Parag Singla},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.37356},
  eprint = {2609.37356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.37356},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Teaching LLMs to Generate Challenging MILP Instances via Solver Feedback
AU  - Jitin Singla
AU  - Parikshit Pareek
AU  - Pratik Jawanpuria
AU  - Parag Singla
PY  - 2026
DA  - 2026/09/29
PB  - arXiv
DO  - 10.48550/arxiv.2609.37356
UR  - https://arxiv.org/abs/2609.37356
AB  - Generating optimization instances that are both feasible and computationally challenging is crucial for benchmarking solvers and training learning-based optimization algorithms. Existing non-LLM generators rely on seed instances or parameter tuning, resulting in high test-time computational cost, while existing LLM generators lack explicit hardness measures. Recent reinforcement learning methods with verifier feedback evaluate only binary correctness, which is misaligned with generating challenging problems. We note that an optimization solver reports the cost of solving at several stages of its pipeline, and leverage this to design a reward that scores both the solvability and the hardness of generated problems, measured by branch-and-bound nodes and post-cut relaxation gaps. Our key idea is a challenger-solver asymmetric self-play approach, where an LLM challenger generates progressively harder instances and the solver verifies feasibility and hardness, so no seed or training MILP instances are required. We fine-tune Gemma-4-12B and Qwen3.5-4B with GRPO and a size curriculum into OptiScribe-12B and OptiScribe-4B, which generate feasible yet challenging MILP problems from natural language instructions. On capacitated facility location and max-cut, OptiScribe-12B raises median SCIP search nodes by 1.7-5x and post-cut gaps by 1.1-1.7x over its base model and improves the feasibility rate on facility location by 9-19 points, while OptiScribe-4B raises median nodes by up to 15.6x. The problems cover a wider difficulty range than public benchmarks of the same size, follow instructions on density and difficulty, and can tune solver settings for families that public libraries lack. These results indicate that optimization-specific rewards, used in self-play mode, can teach LLMs to generate high-difficulty optimization benchmarks. We will release our code and models publicly on acceptance.
ER  -