Adaptive solution prediction for combinatorial optimization

Yunzhuang Shen, Yuan Sun, Xiaodong Li, Andrew C. Eberhard, Andreas T. ErnstEur. J. Oper. Res 2022

Abstract

This paper aims to predict optimal solutions for combinatorial optimization problems (COPs) via machine learning (ML). To find high-quality solutions efficiently, existing work uses a ML prediction of the optimal solution to guide heuristic search, where the ML model is trained offline under the supervision of solved problem instances with known optimal solutions. To predict the optimal solution with sufficient accuracy, it is critical to provide a ML model with adequate features that can effectively characterize decision variables. However, acquiring such features is challenging due to the high complexity of COPs. This paper proposes a framework that can better characterize decision variables by harnessing feedback from a heuristic search over several iterative steps, enabling an offline-trained ML model to predict the optimal solution in an adaptive manner. We refer to this approach as adaptive solution prediction (ASP). Specifically, we employ a set of statistical measures as features, which can extract useful information from feasible solutions found by a heuristic search and inform the ML model as to which value a decision variable is likely to take in high-quality solutions. Our experiments on three NP-hard COPs show that ASP substantially improves the prediction quality of an offline-trained ML model and achieves competitive results compared to several heuristic methods in terms of solution quality. Furthermore, we demonstrate that ASP can be used as a heuristic-pricing method for column generation, to boost an exact branch-and-price algorithm for solving the graph coloring problem.

Introduction

Combinatorial Optimization Problems (COPs), such as the Traveling Salesman Problem (TSP) or Maximum Weight Clique, are foundational to logistics, scheduling, and networking. Due to their NP-hard nature, researchers often employ heuristics to find near-optimal solutions within reasonable timeframes.

Recent advancements have integrated Machine Learning (ML) to guide these heuristics by predicting the likelihood of decision variables (e.g., edges in a graph) belonging to an optimal solution. However, traditional "single-shot" ML methods rely on static features—like edge length—which often fail to capture the intricate complexity of large-scale instances. This leads to degraded prediction accuracy and sub-optimal search performance.

Methodology: Adaptive Solution Prediction (ASP)

The proposed ASP framework addresses the limitations of static features by introducing a feedback loop that combines offline learning with online adaptation.

Overview of the Adaptive Solution Prediction (ASP) framework during the inference phase.

The process consists of four main stages:

  1. Offline Training: A classifier (e.g., a linear Support Vector Machine) is trained on small, solved instances to learn the mapping between initial variable features and their presence in optimal solutions.
  2. Probabilistic Sampling (PS): For a new, unseen instance, the ML model generates initial predictions. These are used to construct a probability distribution from which feasible solutions are sampled.
  3. Statistical Feedback: ASP extracts dynamic features from the sampled solutions, such as a Ranking Score (frequency in high-quality solutions) and Pearson Correlation (correlation between variable presence and objective value).
  4. Iterative Refinement: These instance-specific statistical features are fed back into the ML model to refine its predictions. This iterative cycle allows the model to adapt to the specific structure of the test instance as the search progresses.

Experimental Evaluation

The framework was evaluated across several NP-hard problems:

  • Maximum Weight Clique Problem (MWCP): Tested on Barabási-Albert and Erdős-Rényi random graphs.
  • Traveling Salesman Problem (TSP): Instances with up to 1,000 cities.
  • Orienteering Problem (OP): Routing with prizes under a budget.
  • Graph Coloring Problem (GCP): Evaluated using DIMACS benchmarks to test ASP as a pricing heuristic within an exact Branch-and-Price algorithm.

Results and Discussion

The core strength of ASP lies in its ability to use the search process as a feature generator. By observing which variables consistently appear in "good" solutions, the ML model corrects its initial biases.

Evolution of variable separability in the feature space from Iteration 1 to Iteration 5.

As shown in the figure above, the separability between optimal (red triangles) and non-optimal (blue dots) variables significantly improves over iterations. In MWCP tests, the Average Precision of predictions more than doubled through this feedback loop.

Key findings include:

  • Scalability: ASP maintains high performance on large instances (e.g., 1,000-node TSPs) where static features typically lose discriminative power.
  • Exact Solver Enhancement: In Graph Coloring, ASP-boosted Branch-and-Price solved difficult instances like queen9_9 in 12.6 seconds, whereas standard greedy-based versions frequently timed out after 8,000 seconds.

Conclusion and Future Work

ASP bridges the gap between historical data-driven ML heuristics and online sampling-based metaheuristics. While highly effective, the approach can occasionally converge prematurely to local optima if initial sampling lacks diversity. Future research will explore applying ASP to more complex routing problems, such as Vehicle Routing, and integrating it into other decomposition-based exact methods like Dantzig-Wolfe.

Summary updated

BibTeX
@article{shen2022adaptive,
  author = {Yunzhuang Shen and Yuan Sun and Xiaodong Li and Andrew C. Eberhard and Andreas T. Ernst},
  title = {{Adaptive solution prediction for combinatorial optimization}},
  journal = {Eur. J. Oper. Res.},
  year = {2022},
}
Figure