arXiv:2611.00621math.OCOct 2026

Manuscript Offprint

arXiv:2611.00621

Log-Driven Semantic Tuning for Mixed Integer Programming Solvers

Zhengzhong Ricky You, Kaizhao Sun, Zeping Min, Wotao Yin, Xinshang Wang

Zhengzhong Ricky You, Kaizhao Sun, Zeping Min, Wotao Yin, Xinshang Wang ∗^{*}

Alibaba Group US, Bellevue, WA, USA

∗^{*}Correspondence: Xinshang Wang, xinshang.w@alibaba-inc.com

Abstract. Automated configuration of mixed-integer programming (MIP) solvers largely relies on black-box optimization. Each trial requires an expensive solver run and provides only a scalar outcome, so tuning can require many such evaluations. Human experts take a different approach. They inspect solver logs, identify performance bottlenecks, and adjust the parameters that address them. We propose Log-Driven Semantic Tuning (LDST), which uses a large language model (LLM) to automate this process. LDST extracts compact diagnostics from solver logs, uses the LLM to propose sparse edits to the current best configuration based on parameter meanings and observed solver behavior, and validates each proposal before execution. A regime-adaptive objective selects the tuning signal according to the information available from a time-limited run, while a log-based completion signal estimates completion time from branch-and-bound tree growth recorded in ordinary solver logs, so that solved and unsolved runs share one time scale. On 215 instances from five benchmark sets, LDST reduces geometric-mean loss by 43.9% on easy instances and 16.7% on intermediate instances relative to the best of SMAC3, RBFOPT, and random search. In both regimes, LDST achieves a lower loss with 10 proposals than any of these baselines achieves with 50. Configurations that LDST tunes on a single instance also transfer better than baseline configurations to unseen instances of the same family.

Key words: mixed-integer programming; algorithm configuration; large language models; parameter tuning; SCIP

1. Introduction

The performance of mixed-integer programming (MIP) solvers such as SCIP (Achterberg 2009) depends heavily on parameter configuration, and instance-specific or class-specific tuning can yield order-of-magnitude speedups (Hutter et al. 2010). Yet most automated configuration methods rely on black-box optimization (BBO; Schede et al. 2022, Hoos 2012, Hutter et al. 2009, 2011, Lindauer et al. 2022, López-Ibáñez et al. 2016, Ansótegui et al. 2009, Xu et al. 2011, Hutter et al. 2014, Eggensperger et al. 2019). These methods typically use only scalar feedback, such as runtime or a derived loss, making the search highly sample inefficient when solver evaluations are expensive. A run that times out because of weak heuristics may be difficult to distinguish from one slowed by excessive linear programming (LP) relaxation work without additional evaluations. Human experts take a different approach. They examine solver logs, infer performance bottlenecks from process signals, and make targeted parameter changes. For example, a run that finds primal solutions early but makes little progress on the dual bound requires a different intervention from one dominated by the computational cost of strong branching.

We show that solver-process information can systematically guide algorithm configuration. We propose Log-Driven Semantic Tuning (LDST), which extracts compact diagnostics from solver logs and uses a large language model (LLM) to propose sparse edits to the current best configuration. Each edit changes only a limited number of parameters from a predefined whitelist, while all other parameter values are inherited from the current best configuration. The tuning loop combines diagnostic summaries, memory centered on the best configuration, and explicit validation of the LLM's advice, allowing semantic reasoning to guide the search while each validated configuration is evaluated through an actual solver run. By modifying the current best configuration rather than constructing each candidate from scratch, LDST maintains a local and stable search, makes individual parameter changes easier to interpret, and uses information from earlier runs to inform subsequent decisions.

The tuning loop also uses a regime-adaptive objective, as the most informative progress signal depends on the outcome of the default run at the time limit. Case 1 contains easy instances solved by the default configuration, Case 2 contains intermediate instances with a feasible solution but no proof of optimality, and Case 3 contains hard instances with only dual-bound progress. For easy instances, solve time is the natural objective, but a configuration that reaches the time limit has no observed solve time. Solved status, final gap, and the primal–dual integral cannot be compared with observed solve times, and existing tree-size estimators are built into specific solvers (Hendel et al. 2022). We therefore introduce a log-based completion signal that estimates the completion time of an unfinished run from branch-and-bound tree growth, which MIP solver logs commonly report. Solved and unsolved runs then share one time scale, so a single Case 1 objective ranks both. In a retrospective ranking study, the signal also orders unfinished runs more accurately than a proxy for the primal–dual integral. Across 215 instances from five benchmark sets, LDST achieves final geometric-mean losses of 0.274 and 0.557 in Cases 1 and 2 after 50 proposals, respectively, 43.9% and 16.7% below the best scalar-feedback baselines (0.490 and 0.668). By trial 10, LDST already reaches losses of 0.396 and 0.660, lower than any baseline achieves after 50 proposals, while the corresponding baseline losses at trial 10 remain at 0.588–0.706 and 0.763–0.807.

We make the following contributions.

  • We propose LDST, a log-driven semantic tuner for MIP solvers. LDST extracts compact diagnostics from solver logs and uses an LLM to propose sparse edits to the current best configuration. Each proposal undergoes schema, domain, novelty, and settings-loading checks before evaluation. This provides a process-aware alternative to scalar-feedback tuning without requiring task-specific training, solver-source modifications, or access to internal solver states.

  • We introduce a regime-adaptive tuning objective with a log-based completion signal for easy instances. The objective uses estimated completion time for easy instances, the primal–dual integral (Berthold 2013) for intermediate instances with feasible solutions, and normalized dual improvement for hard instances with only dual progress. For easy instances, T^∞\widehat{T}_{\infty} estimates the completion time of unfinished runs by fitting a simple surrogate of branch-and-bound tree growth to log snapshots, which places solved and unsolved runs on one time scale. In a retrospective ranking study, it orders 26 of 34 configuration pairs correctly, against 17 for a proxy for the primal–dual integral (Appendix G).

  • We show that log-driven semantic tuning improves configuration quality under matched budgets in the easy and intermediate regimes. We evaluate LDST on a released benchmark of 215 instances from five benchmark sets, with generated formulations for repeated SCIP tuning and fixed regime labels. In single-instance tuning, LDST reduces geometric-mean loss by 43.9% and 16.7% in the easy and intermediate regimes, respectively, and achieves lower losses with 10 proposals than the baselines attain with 50. On Case 1, mechanism isolation attributes the gain to the combination of parameter semantics and log diagnostics, while configurations tuned by LDST on a single instance outperform baseline configurations when transferred to unseen instances of the same family.

The remainder of the paper is organized as follows. Section 2 reviews related work. Section 3 defines the regime-adaptive objective and the log-based completion signal, and Section 4 presents the LDST framework. Section 5 reports the experimental results, and Section 6 concludes the paper. The appendices provide details on the benchmark, comparison protocol, parameter space, log parser, prompt construction, validation of the completion signal, and additional results. Code, generated benchmark instances, and analysis scripts are available at https://github.com/Zhengzhong-You/LDST.

References (44)