Generalization of Machine Learning for Problem Reduction: A Case Study on Travelling Salesman Problems

Yuan Sun, Andreas Ernst, Xiaodong Li, Jake WeinerOR Spectr 2020 · DOI

TL;DR

This paper explores using machine learning to reduce the complexity of large-scale optimization problems, specifically the Traveling Salesman Problem (TSP). They demonstrate that their ML-based approach can effectively identify and remove "unnecessary" decision variables (edges in the TSP graph) without significantly impacting the quality of the optimal solution, showing promising generalization capabilities across different problem characteristics, sizes, and types.

What Problem Does This Paper Address?

In the era of "big data," many real-world problems involve combinatorial optimization with an enormous number of decision variables. This massive scale poses a significant challenge for traditional solvers, making it difficult to find optimal or even good solutions within practical time constraints. For instance, finding the shortest route for a large number of cities (TSP) can become computationally intractable. To tackle this, researchers are exploring "problem reduction" techniques that aim to simplify the problem by removing variables that are unlikely to be part of an optimal solution, thereby speeding up the solving process. However, a key challenge is ensuring that these reduction techniques, especially those based on machine learning, can generalize well to new, unseen problem instances that might differ from the data they were trained on. This paper specifically investigates the generalization capabilities of a machine learning model for problem reduction on TSP.

Methods

The core of this work is an adaptation of a previously developed Machine Learning for Problem Reduction (MLPR) model. For TSP, this model treats each edge in the complete graph as a potential decision variable. The MLPR model is trained on optimally solved TSP instances, where edges belonging to the optimal tour are labeled as "positive" (1) and others as "negative" (-1).

The model extracts features to characterize each edge:

  • Graph Features: Four features are derived directly from the edge costs, considering the minimum and maximum costs from/to the connected cities, and their deviation from the average edge costs.
  • Statistical Measures: Two features are computed from randomly generated feasible routes:
  • Ranking-based measure: This captures how often an edge appears in high-quality (low-cost) sample routes.
  • Correlation-based measure: This quantifies the Pearson correlation between an edge's presence in a route and the route's overall cost.

A Support Vector Machine (SVM) is then trained to learn a decision boundary that separates the positive and negative edges based on these features. For unseen TSP instances, the trained MLPR model predicts which edges are unlikely to be part of an optimal solution and removes them, creating a sparser graph that is then solved by a standard solver. The authors also explore both linear and non-linear SVM variants and discuss strategies for handling imbalanced datasets (more negative than positive edges).

Datasets

The primary dataset used is from the MATILDA library, which contains 7 categories of symmetric TSP instances. These instances are designed to be challenging for specific heuristics. The authors also generated synthetic TSP instances for exploring problem size variations. For testing different problem types, they utilized instances from the TSP library (Reinelt, 1991) for asymmetric TSP and Sequential Ordering Problems (SOP).

Key Insights and Ideas

  • Generalization is Key: The paper's central theme is evaluating how well an MLPR model trained on one set of TSP instances performs on others, especially those with different characteristics, sizes, or even types. This is crucial for real-world applicability where problem distributions can shift.
  • TSP as a Testbed: TSP, being a well-studied combinatorial problem, serves as an excellent benchmark to rigorously test the generalization capabilities of ML-based problem reduction.
  • Feature Engineering Matters: The combination of graph-based features and statistical measures derived from sampling seems to be effective in capturing both local and global properties of edges, contributing to the model's generalization.
  • Trade-off Between Reduction and Accuracy: The study highlights a natural trade-off: more aggressive pruning (reducing problem size significantly) can sometimes lead to a larger optimality gap, especially when test instances are very different from training data.
  • Problem Type Transferability: While the model generalizes well within similar TSP variants, performance degrades as test instances become more dissimilar (e.g., from symmetric TSP to SOP). This suggests that while some transfer learning is possible, domain-specific training might still be necessary for vastly different problem types.

Key Results

  • Reasonable Generalization: The MLPR model generally generalized well across a wide range of TSP test instances with different characteristics or sizes.
  • Optimality Gap: When trained and tested on instances from the same category, the optimality gap was typically less than 0.2%. When testing on different categories, the gap increased, but the model still made "useful predictions" about edge elimination.
  • Problem Size Reduction: The model achieved significant problem size reduction, pruning around 85% of edges in some scenarios.
  • Speedup for Solvers: When used as a preprocessing step for CPLEX on SOP instances, the MLPR method achieved an average speedup of 2.68 times, and in some cases, CPLEX was able to find feasible solutions where it previously failed.
  • Comparison to Other Methods: The MLPR method outperformed other generic problem reduction methods (CBM and CMSA) in terms of edge removal while maintaining a 0% optimality gap on tested instances.

Limitations and Future Work

  • Deteriorating Accuracy with Dissimilarity: The accuracy of predicting unused variables naturally deteriorates as a test instance becomes further away from the training set. This is particularly evident when testing on different TSP variants.
  • Heuristic Nature: The MLPR method is heuristic, meaning it doesn't guarantee optimality. This can lead to capturing the original optimal solution in the reduced problem space, but it might not always capture the absolute optimal solution if the test instance is significantly different from the training data.
  • Solver Integration: While the MLPR method effectively reduces problem size, it doesn't inherently speed up specialized solvers like Concorde because they might not fully exploit the resulting sparsity. However, it shows promise for generic solvers like CPLEX.
  • Future Work: The authors suggest developing a more generic MLPR model that doesn't require re-training for different problem classes. They also aim to apply the method to real-world problems like trip planning and investigate its use with stronger MIP formulations for problems like SOP.

Summary updated

BibTeX
@inproceedings{sun2020generalization,
  author = {Yuan Sun and Andreas Ernst and Xiaodong Li and Jake Weiner},
  title = {{Generalization of Machine Learning for Problem Reduction: A Case Study on Travelling Salesman Problems}},
  booktitle = {OR Spectr},
  year = {2020},
  doi = {10.1007/s00291-020-00604-x},
}
Figure