TL;DR
Researchers have developed an automated pipeline that uses Large Language Models (LLMs) to translate diverse constraint optimization problems into a uniform graph format. This "problem-agnostic" representation allows a single framework to automatically select the best search strategies across 20 different problem domains, doubling the performance of the best fixed configuration and outperforming a standard Gurobi solver baseline on many complex tasks.
What Problem Does This Paper Address?
Large Neighborhood Search (LNS) is a powerful metaheuristic for solving hard combinatorial optimization problems. It works by iteratively selecting a subset of variables (a "neighborhood"), freezing the rest, and using an exact solver to optimize that small sub-problem.
The "secret sauce" of LNS is variable selection: if you pick variables that are tightly coupled by constraints, the solver can make significant progress. However, designing these selection strategies usually requires months of manual engineering by domain experts for every new problem type (e.g., one strategy for vehicle routing, another for scheduling). The authors aim to eliminate this manual bottleneck by creating a system that automatically understands problem structure and applies effective local improvement strategies without human expert intervention for each specific domain.
Methods
The authors introduce a two-stage pipeline that bridges the gap between problem-specific models and a general-purpose solver framework called SLIM (Structure-Based Local Improvement).
- Problem-Specific Stage (LLM as Semantic Compiler): The system takes a MiniZinc model (a standard constraint modeling language) and feeds it to an LLM (Claude Opus) along with "semantic guidelines." The LLM acts as a compiler, generating a Python script (a Graph Generator) tailored to that problem type.
- Problem-Agnostic Stage: This generated script transforms any specific instance into a uniform weighted graph. In this graph:
- Nodes represent decision variables (weighted by their importance to the objective).
- Edges represent constraints (weighted by coupling strength).
With this uniform graph, the SLIM framework can perform variable selection using generic algorithms like Breadth-First Search (BFS) to find "local" clusters of variables. Furthermore, because the graph format is identical across all problems, the authors can extract 54 topological and statistical features to train an Algorithm Selector. This selector predicts which of 30 possible SLIM configurations (varying budget, timeout, and search strategy) will work best for a given, unseen instance.
Datasets
The researchers evaluated their pipeline on a diverse set of instances from the MiniZinc Competitions (2008–2025). They filtered the data to include only "hard" instances: those where a commercial solver (Gurobi) could find a feasible solution within 10 minutes but could not prove optimality within an hour.
The final benchmark suite covered 20 distinct problem types, including:
- Resource-Constrained Project Scheduling (RCPSP)
- Vehicle Routing Problem (VRP)
- Job-shop Scheduling
- Graph Coloring
- Rectangle Packing
Key Insights and Ideas
- LLMs as Domain Translators: Instead of using LLMs to solve the optimization problem directly (which they often struggle with), the authors use them to generate the logic (Python code) that extracts structural information. This leverages the LLM's coding and reasoning abilities while maintaining the precision of traditional solvers.
- Semantic vs. Syntactic Weighting: Standard graph representations of constraints often treat all constraints equally. The authors' "semantic guidelines" instruct the LLM to give higher weights to objective-related variables and lower weights to massive global constraints (like
alldifferentover 50 variables) to prevent "clique domination" in the graph. - Cross-Problem Learning: By mapping everything to a uniform graph, the researchers proved that a machine learning model can learn to pick optimization strategies across completely different domains (e.g., learning from scheduling to help solve routing).
Key Results
The automated SLIM framework proved highly effective against a "one-shot" Gurobi baseline (running the solver on the full problem for 60 minutes):
- Win Rates: On several problem types like
tdtspandspot5, SLIM achieved win rates of 88% to 100% over the baseline. - Algorithm Selection Power: Using the ML-based selector to choose configurations per instance resulted in a 39.6% average win rate. This is more than double the win rate of the best single static configuration (19.3%).
- Generalization: Even without problem-specific tuning, SLIM matched or beat Gurobi on 18 out of 20 problem domains.
Limitations and Future Work
While the results are promising, the authors note a few hurdles:
- Domain Gaps: SLIM struggled with specific problems like VRP and Rectangle Packing, where it lost to the Gurobi baseline more than 50% of the time. This suggests the LLM-generated graph approximations might miss some critical geometric or routing-specific semantics.
- LLM Hallucinations: Although the generated code is validated, it remains an approximation of the true constraint semantics.
- Dynamic Updates: The current graphs are static. Future work could involve "probing" the problem during the search to dynamically adjust edge weights based on which constraints are currently hardest to satisfy.
Summary updated