Boosting Ant Colony Optimization via Solution Prediction and Machine Learning

Yuan Sun, Sheng Wang, Yunzhuang Shen, Xiaodong Li, Andreas T. Ernst, Michael Kirley · DOI

TL;DR

This paper introduces ML-ACO, a novel hybrid approach that combines machine learning (ML) with Ant Colony Optimization (ACO) to significantly boost ACO's performance in solving complex combinatorial optimization problems. By training an ML model to predict "high-quality" edges likely to be part of an optimal solution, ML-ACO guides ACO's search more effectively, leading to faster convergence and better solution quality.

What Problem Does This Paper Address?

Combinatorial optimization problems, such as the orienteering problem, are notoriously difficult to solve optimally, especially for large instances. While meta-heuristics like Ant Colony Optimization (ACO) offer a practical way to find good solutions within a reasonable time, their performance can be limited by their heuristic nature and the exploration of suboptimal paths. The challenge is to enhance ACO's search efficiency and solution quality without sacrificing its ability to find near-optimal solutions within computational constraints. This paper aims to bridge this gap by leveraging machine learning to provide a more informed guidance to the ACO algorithm.

Methods

The core of the proposed ML-ACO algorithm lies in a two-phase approach:

  1. ML-based Solution Prediction (Training Phase):
    • Small instances of the target problem (e.g., orienteering problem) are solved to optimality using an exact solver (CPLEX).
  2. Edges within these solved graphs are characterized using a set of problem-specific features and statistical measures.
  3. A binary classification model (e.g., SVM, Logistic Regression, GCN) is trained to distinguish edges that are part of the optimal route (positive examples) from those that are not (negative examples).
  4. ML-Enhanced ACO (Testing Phase):
    • The trained ML model predicts the probability of each edge belonging to an optimal route for a new, unsolved problem instance.
  5. These predicted probabilities are then incorporated into the ACO algorithm in one of two ways:
  6. Modifying Heuristic Weights ($\eta$): The predicted probabilities are used directly or in combination with existing heuristic rules to guide the ants' selection of edges.
  7. Initializing Pheromone Matrix ($\tau$): The predicted probabilities are used to seed the initial pheromone levels on the edges.

This approach aims to bias ACO's exploration towards edges that the ML model has identified as promising, thereby accelerating the discovery of high-quality solutions.

Datasets

  • Training Data: Small, optimally-solved instances of the orienteering problem. These were generated with 50 vertices and solved using CPLEX.
  • Testing Data:
    • Synthetic Instances: Larger orienteering problem instances (200, 300, 400, 500 vertices) generated similarly to the training data.
  • Benchmark Instances: Square-shaped benchmark instances from Chao et al. (1996) with 66 vertices and varying distance budgets.
  • Real-world Instances: Six datasets for tourist trip planning from Europe, with dimensions ranging from 81 to 154 vertices.
  • Maximum Weighted Clique Problem (MWCP) Instances: Fifteen larger graphs (|V| ≥ 1000) from the DIMACS library were used to test ML-ACO's adaptability to other problems.

Key Insights and Ideas

  • ML as a "Greedy" Guide for ACO: The ML model's predictions act as a more informed and "greedy" heuristic than traditional rules, effectively guiding ACO towards promising solution components early on.
  • Generalization is Key: A crucial finding is that an ML model trained on small, synthetic problem instances can generalize remarkably well to larger synthetic, benchmark, and even real-world problem instances, demonstrating the robustness of the approach.
  • Hybridization is More Than Initialization: Modifying the heuristic weights ($\eta$) using ML predictions proved more effective than simply using predictions to initialize the pheromone matrix ($\tau$).
  • Simpler ML Models Can Be Highly Effective: Surprisingly, a simple linear SVM model often performed as well as or better than a deep GCN model, suggesting that for this specific task, feature engineering and problem representation might be more critical than model complexity.
  • Broad Applicability: The ML-ACO framework is presented as a generic approach, adaptable to other combinatorial optimization problems (demonstrated with the Maximum Weighted Clique Problem), highlighting its potential for wider impact.

Key Results

  • Significant Performance Boost: ML-ACO consistently outperformed classic ACO variants (AS and MMAS) across various problem sizes and types.
  • Improved Solution Quality: SVM-MMAS achieved improvements of over 10% in best objective values for larger problem instances compared to MMAS.
  • Faster Convergence: ML-enhanced ACO algorithms showed significantly faster convergence rates, reaching better solutions with fewer computational resources. For instance, SVM-MMAS achieved a better solution than MMAS at only 4% of the computational budget.
  • Generalization Success: ML-ACO, trained on small instances, showed strong performance on larger synthetic, benchmark, and real-world instances, with improvements becoming more pronounced as problem dimensionality increased.
  • Competitive with State-of-the-Art: When adapted for the Maximum Weighted Clique Problem, ML-ACO demonstrated competitive performance against specialized solvers and other state-of-the-art heuristics.

Limitations and Future Work

  • ML Model Complexity vs. Performance: While SVM performed well, the authors note that deeper GCN models might achieve even better results with further hyper-parameter tuning, though this requires significant computational resources.
  • Edge Representation: The current ML model focuses on edge representation for the orienteering problem. Future work could explore vertex representation, which would lead to a multiclass classification problem.
  • Dynamic and Multi-Objective Problems: The authors suggest that the ML-ACO approach could be particularly effective for dynamic optimization problems where optimal solutions change over time, due to the greedy nature of solution prediction.
  • Broader Problem Scope: Extending the ML-ACO framework to other combinatorial and continuous optimization problems, including dynamic and multi-objective scenarios, is a promising avenue for future research.
  • Accuracy of Solution Prediction: While SVM showed high effectiveness, further improvements in the accuracy of solution prediction could lead to even greater gains in meta-heuristic performance.

Summary updated

BibTeX
@article{sun2020boosting,
  author = {Yuan Sun and Sheng Wang and Yunzhuang Shen and Xiaodong Li and Andreas T. Ernst and Michael Kirley},
  title = {{Boosting Ant Colony Optimization via Solution Prediction and Machine Learning}},
  journal = {Comput. Oper. Res.},
  year = {2020},
  doi = {10.1016/j.cor.2022.105769},
}
Figure