Deep Learning as a Competitive Feature-Free Approach for Automated Algorithm Selection on the Traveling Salesperson Problem

In this work we focus on the well-known Euclidean Traveling Salesperson Problem (TSP) and two highly competitive inexact heuristic TSP solvers, EAX and LKH, in the context of per-instance algorithm selection (AS). We evolve instances with 1,000 nodes where the solvers show strongly different performance profiles. These instances serve as a basis for an exploratory study on the identification of well-discriminating problem characteristics (features). Our results in a nutshell: we show that even though (1) promising features exist, (2) these are in line with previous results from the literature, and (3) models trained with these features are more accurate than models adopting sophisticated feature selection methods, the advantage is not close to the virtual best solver in terms of penalized average runtime and so is the performance gain over the single best solver. However, we show that a feature-free deep neural network based approach solely based on visual representation of the instances already matches classical AS model results and thus shows huge potential for future studies.


Anytime Behavior of Inexact TSP Solvers and Perspectives for Automated Algorithm Selection

The Traveling-Salesperson-Problem (TSP) is arguably one of the best-know...

Leveraging TSP Solver Complementarity via Deep Learning

The Travelling Salesman Problem (TSP) is a classical NP-hard problem and...

SATzilla: Portfolio-based Algorithm Selection for SAT

It has been widely observed that there is no single "dominant" SAT solve...

On the evaluation of (meta-)solver approaches

Meta-solver approaches exploits a number of individual solvers to potent...

Experience-based Optimization: A Coevolutionary Approach

This paper studies improving solvers based on their past solving experie...

Designing New Phase Selection Heuristics

CDCL-based SAT solvers have transformed the field of automated reasoning...

Transformation-based Feature Computation for Algorithm Portfolios

Instance-specific algorithm configuration and algorithm portfolios have ...

1 Introduction

The Traveling Salesperson Problem (TSP) is a classical -hard optimization problem of utmost relevance, e.g., in transportation logistics, bioinformatics or circuit board fabrication. The goal is to route a salesperson through a set of cities such that each city is visited exactly once and the tour is of minimal length. In the past decades tremendous progress has been made in the development of high-performing heuristic TSP solvers. The local search-based Lin-Kernigham Heuristic (LKH) [14]

and the genetic algorithm

Edge-Assembly-Crossover (EAX) [35], along with their respective restart versions introduced in Kotthoff et al. [24], undeniably pose the state-of-the-art in inexact TSP solving.

Automated Algorithm Selection (AS), originally proposed by Rice [39]

back in 1976, is a powerful framework to predict the best-performing solver(s) from a portfolio of candidate solvers by means of machine learning. It has been successfully applied to a wide spectrum of challenging optimization problems in both the combinatorial 

[25, 29, 30, 40, 48] and continuous domain [21, 4] with partly astonishing performance gains – see the recent survey by Kerschke et al. [19] for a comprehensive overview. In particular, the TSP was subject to several successful AS-studies [24, 20, 33, 34, 37] which exploited the complementary performance profiles of simple heuristics on the one hand and the state-of-the-art solvers LKH and EAX on classical TSP benchmark sets on the other hand.

In the classic setting, AS relies on characteristic problem instance properties, termed (instance) features

. These features are used as predictor variables for classical machine learning algorithms, e.g., random forests or support vector machines. The key idea – and ideal outcome – is that these features can easily be used to automatically derive decision rules that are well-suited to partition the instance space into ideally disjoint sub-spaces of instances, and which then are uniquely solved best by different solvers. However, features have many drawbacks: they are usually hand-crafted in a tedious process 

[15], partly require time-consuming calculations (which need to be taken into account by the model fitting step) and are problem-tailored (or at least specific to a problem domain, e.g., graph problems). Moreover, we usually prefer light-weight models with few features. Hence, training AS models is frequently combined with automated feature selection methods [11, 36, 46] or dimensionality reduction techniques [12].

Figure 1: PAR10 values (log-scaled) of EAX and LKH show complementary performance on the two subsets of instances (easy for EAX or LKH) and thereby suggest huge potential for automated algorithm selection.

Recently, Alissa et al. [1] took a promising new path after exploring first approaches to avoid manual feature-crafting [42, 43]. The authors proposed a deep learning based approach which does not rely on any a-priori calculated feature profiles. Instead, in their study on the 1D-Bin-Packing Problem (BPP) the neural network is given temporal sequence data of the BPP instance as the only input. They were able to achieve drastic improvements. In this paper we adopt and adapt this idea for the TSP. To this end, we evolve a set of instances where LKH and EAX show strongly different behaviour in terms of Penalized Average Runtime111

The PAR10-score is a common measure in AS for combinatorial optimization problems. For a stochastic algorithm

and an instances it is defined as the average of the running times of on where runs which did not reach the optimum within a given time limit are penalised by a factor of . (PAR10; [2]). We show that with classical AS we can clearly beat the Single Best Solver (SBS; the solver with best average performance). However, the gap to the Virtual Best Solver (VBS; perfectly predicting oracle) can only be reduced slightly with much room for improvement. This holds true even in the case when we enrich the machine learning pipeline with (1) hand-selected feature subsets (based on exploratory data analysis), (2) different feature selection methods, or (3) a combination of both. After that, we propose a feature-free deep learning approach where the neural networks are trained on the plain image representations of Euclidean TSP instances. This approach achieves competitive performance, but drops the need for manual feature derivation and calculation.

The remainder of this paper is structured as follows. We describe the benchmark set (generation) and pre-selection of feature subsets in Sections 2 and 3 respectively. In Section 4 we present the results that we achieve using classical feature-based AS approaches. Next, in Section 5, we detail our feature-free deep learning based approaches, and compare the results with the classical models. We close with a discussion and an outlook in Section 6.

2 Evolving TSP Instances

Our benchmark requires a set of Euclidean TSP instances that show strong differences in algorithmic performance. To this end, we adopt an evolutionary algorithm (EA) and creative mutation operators recently proposed by Bossek et al. [5]. Their method allows for the tailored generation222Various TSP benchmark libraries exist, e.g., TSPLIB [38] or classical Random Uniform Euclidean (RUE) instances. However, these instances are either inhomogeneous in size or exhibit very little structural difference. For the purpose of algorithm selection though a balanced and homogeneous benchmark set is highly beneficial. of TSP instances that (1) have the desired performance difference (in terms of the ratio of PAR10-scores), (2) show multifarious topologies in terms of point arrangement in the Euclidean plane333The mutation operators are designed to evolve structures that can be observed in real-world TSP instances, e.g., Very Large Scale Integration (VLSI) and are thus closer to the real-world than the often used random uniform problems., and (3) are well distributed in the space of instances characteristics/features; in particular the latter two properties were not achieved by evolutionary instance generation methods before [33, 34]. For sake of brevity we refer the reader to Bossek et al. [5] for more details.

We generated a balanced data set of TSP instances with nodes per instance using the EA parameters from [5]; each being uniquely faster solved to optimality by either EAX or LKH.444We work with the restart versions of EAX and LKH which trigger a restart once the internal stopping conditions are met [24] as long as the time limit is not reached. All generated data is available in a public GitHub repository (

Fig. 1 depicts the performance – measured by means of PAR10 – of EAX and LKH on the entire benchmark set. The plot highlights apparent potential for automated algorithm selection due to strong performance differences. On the other hand the data reveals the general superiority of the EAX solver since it is much harder to evolve instances that are hard for EAX (shown as orange points). There are just two instances for which the EAX hits the cutoff time seconds (1 hour) at least once in all of its ten independent runs on that instance. In contrast, LKH frequently gets stuck in local optima – see the cluster of green points between and in the top left corner.

3 Identifying Adequate Subsets of TSP Features

Figure 2: Exemplary visual representations of two TSP instances in terms of point cloud only (left), a minimum spanning tree (center) and the 5-nearest-neighbor graph (right). The top row shows the instance for which the highest mean PAR10 score was achieved by EAX, the bottom row shows the respective counterpart of LKH.

The state-of-the-art TSP-related feature sets [16, 33, 37]

consist of hundreds of hand-crafted features. Features range from statistics (mean, variance etc.) of edge lengths, angles of nearest neighbors, to more sophisticated features based on Minimum Spanning Trees (MST) or

-Nearest-Neighbor-Graphs (-NNG). Fig. 2 depicts visual impressions of MSTs and -NNGs on two evolved instances; these images will be a key ingredient to the neural network in Section 5.

Due to the size of feature sets, in the context of algorithm selection, automated feature selection methods have shown their suitability for automatically filtering a (small) subset of discriminating features [20]. Regardless of the sophistication of the feature selection method at hand, feature selection needs to cope with an exponentially sized search space of the underlying subset-selection problem. Hence, in order to assist our feature-based model fitting we conduct a simple univariate exploratory data analysis in order to identify a lucid subset of adequate features a-priori. To this end we adopt a simple greedy heuristic. First, all features are scaled to to allow for a fair comparison across the features. Then, we perform a two-sided non-parametric Wilcoxon-Mann-Whitney test [31] at significance level per feature

, to check the null hypothesis that the distributions of the EAX instances and the LKH instances with respect to

differ by a location shift equal to zero. We extract the 15 most relevant features according to the smallest -values. This procedure was done once for the entire benchmark set of salesperson features as the most comprehensive feature set (see Sec. 4) and was repeated for subsets of “hardest” instances of decreasing size. Hardest in this context relates to (a) each 300 and 150 hardest instances for each solver with respect to mean PAR10-score, or (b) the ratio of mean PAR10-scores. Both methods pursue to reduce the benchmark set to instances with maximal performance differences.

Figure 3: Distribution of 15 best features according to the significance-test based feature importance method on all instances (left) and the 300 hardest instances with respect to mean PAR10 performance (right).

Fig. 3 shows the distribution of selected features both across the whole benchmark set and the subset of each most difficult instances with respect to mean PAR10-score for each solver (marked with crosses in Fig. 1). Noticeably, the 15 most relevant features are identical for both sets. They are mainly composed of summary statistics on strong connected components of the nearest neighbor graph (nng_*) and properties based on minimum spanning trees (mst_*). This is very much in line with crucial features identified in most TSP-related AS-studies [33, 34, 37, 6, 7, 20] by sophisticated variable importance measurement. These features seem plausible since both MSTs and NNGs capture the global structure, e.g., existence of clusters etc., very well. A close look at Fig. 3

suggests, that instances that are easy for EAX cover a wider range of values which is derived from wider (green) boxes for the features while easy instances for LKH show much more narrow (orange) boxes, with many strong outliers though. The right hand plot, however, shows that the hardest instances seem to be better separable with the features. For instance, for the features in the top 4 rows we observe that

of feature values for LKH-friendly instances are higher than of the respective values for EAX-friendly instances.

4 Classical Algorithm Selection

Fig. 1

reveals very complementary performances of EAX and LKH, which gives us reason to assume that automated AS might work well in this setting. Further, as outlined in the univariate analysis of the TSP features (see Sec. 

3), the features also indicate their potential for distinguishing instances that are beneficial for EAX from instances for which LKH is preferable. As previous works [24, 20] already confirmed the effectivity of feature-based AS, we adopted their experimental setup – and only slightly modified it to the scenario at hand. Below, we will outline the considered machine learning algorithms, feature sets, as well as feature selection strategies, which have been used for training our final selectors.

4.1 Experimental Setup

All our candidate AS models are trained using PAR10 [18] as performance measure and assessed with a 10-fold cross-validation (CV). As indicated by Fig. 1, it is much more difficult for LKH to perform well on the instances that were evolved in favor of EAX (green points), rather than vice versa (orange). Therefore, the selectors will likely have a bias towards EAX instances. To adjust for this bias, we additionally tune the classification threshold for all trained models.

For training the potential automated AS models, we considered four different classifiers

[13] using the R-package mlr [3]

: decision trees

[45], random forests [27], support vector machines [17]

and gradient boosting

[9]. Each of them is trained using three different feature sets: the UBC features from Hutter et al. [16], a large set of features by Pihera and Musliu [37], as well as the TSP features from the R-package salesperson555The R-package salesperson is an efficient and more comprehensive extension of the tspmeta feature generator by [34]. [8]. The salesperson features provide the up-to-now most comprehensive collection of features; in fact, they are a strict superset of the Pihera and tspmeta features [34]. On the other hand, the UBC and Pihera features led to the best performing algorithm selectors in previous works [24, 20] – which did not consider the salesperson features as the package did not exist back then. Note that there is a large overlap across the three considered feature sets as outlined in [19]. To reduce the noise within and redundancy between the features, we additionally created five small subgroups from the salesperson feature set, consisting of 15 features each (see Sec. 3 for details).

In addition to the 32 potential AS models described above (8 feature sets 4 learners), the respective feature sets were further reduced using three automated feature selection strategies: sequential floating forward selection (sffs), sequential floating backward selection (sfbs), and – for the reduced feature sets – exhaustive search of the 15 features [23, 19]. This resulted in 84 further candidate selectors.

4.2 Findings

Tab. 1 summarizes the averaged PAR10 performances of all 116 considered AS models, with the best achieved scores highlighted in red. Of course, all shown PAR10-scores already include the costs for the computation of the TSP features. On average those costs account for merely 0.7s at most. According to the listed performances of the best models (61.21s), the SBS (67.47s) and the VBS (4.92s), the best classical AS approaches are able to reduce the SBS-VBS-gap by 10%.

The best found selectors are random forests, which reduced the top 15 features that they were given initially, to the following four features: the sum, arithmetic mean, median and coefficient of variation of the distances of the MST. Moreover, the tuned thresholds varied from 4% to 33% across the ten folds, implying that EAX has always been selected once the model predicted EAX with a probability of at least 33%. In consequence, out of all instances, in which LKH was actually the faster solver, it has only been selected 151 times (corresonding to roughly 30%). On the other hand, LKH has only been (wrongly) picked in 4% of the cases, in which EAX would have been the correct choice.

When starting with the full feature sets from Pihera, UBC and salesperson, a support vector machine based on a subset of the UBC features achieved the best performance (printed in bold in Tab. 1

). In fact, the PAR10-score of 56.67s is only slightly worse than the one of our best selector(s). Noticeably, the SVM also relied on MST features only: the arithmetic mean and standard deviation of the lengths of the edges in the MST, as well as the skewness of its node degrees.

Feature Sel.
All Features Top 15 Features
Pihera  UBC  Sales. all r150 r300 s150 s300
none rpart 67.25 69.35 67.70 67.32 67.32 67.52 68.12 67.32
rf 59.09 61.56 62.22 61.21 61.99 60.14 61.51 62.30
xgboost 65.40 67.00 67.57 65.53 65.53 64.51 65.78 65.53
ksvm 61.34 61.55 63.09 61.98 61.98 60.54 61.26 61.98
sffs rpart 66.20 67.92 67.26 66.82 66.82 66.82 66.82 66.82
rf 325.27 58.42 62.77 60.70 59.74 56.29 56.29 56.29
xgboost 65.45 66.60 62.61 64.20 64.20 64.20 64.20 64.20
ksvm 66.42 56.67 60.57 62.38 62.38 62.22 62.06 62.38
sfbs rpart 67.16 66.10 65.61 67.12 67.12 67.19 68.12 67.12
rf 60.01 61.56 63.24 62.05 61.95 59.62 62.19 62.17
xgboost 65.47 67.00 67.57 65.88 63.87 64.77 61.87 65.88
ksvm 61.25 63.07 62.88 60.66 60.62 59.40 62.75 60.47
exh. rpart 67.19 67.19 66.82 67.10 67.19
rf 86.70 59.68 56.29 60.57 63.58
xgboost 61.75 64.28 63.02 64.09 63.02
ksvm 62.16 62.16 62.16 62.07 62.16
Note: r300 (s300) indicates the set of 300 hardest instances w.r.t. PAR10-ratio (PAR10-score).
Table 1: Overview of all PAR10 results using the classical feature-based AS approach. The best PAR10-scores are highlighted in red. Note that we did not perform exhaustive feature selection on the non-reduced feature sets due to enormous computational costs.
Figure 4: PAR10-scores (log-scaled) of the best classical AS model reveal the improvement of the best selector over the SBS (left), and the gap towards the VBS (right).

Our findings are also confirmed by the left image of Fig. 4 as only few observations (20) are located above the diagonal. However, looking at the right image, it becomes nearly obvious that the selector is still quite far away from the performance of the VBS, as shown by the many misclassifications (381 out of all 1 000 instances) above the diagonal.

In an attempt to better understand the reason for these rather small thresholds, we investigated the misclassification costs in detail. Prior to tuning the threshold, LKH was predicted 154 times when EAX would have been the correct choice – and each of those misclassifications caused (on average) an overhead of 4 423.89s. In contrast, the 128 cases in which EAX was predicted instead of LKH only came with an average penalty of 95.95s. After tuning the thresholds, each of the 20 wrong predictions of LKH caused only 290.04s – compared to the average penalty of 126.07s for the 361 wrong predictions of EAX. Thus, by being rather conservative and only predicting LKH in cases, where the model is highly certain, the selector was able to reduce the misclassification costs significantly.

As our results indicate, the common feature-based approaches are able to improve over the SBS. However, it is also noticeable that the currently available features still have a very hard time in extracting sufficient information from the TSP instance to reliably predict the better solver. Therefore, we will test the suitability of deep learning neural networks as an alternative or supporting means for automated algorithm selection.

5 Deep Learning Based Approach

As demonstrated in the previous section, feature-based AS methods can outperform the SBS. However, these models come with three major drawbacks: they (1) are hand-crafted in a tedious process, (2) partly require time-consuming calculations, and (3) are problem tailored (see Sec. 1). To overcome these issues, we propose a novel, and sophisticated feature-free approach that is based on so-called Convolutional Neural Networks (CNN) [26].

5.1 Experimental Setup

To train CNN based AS models that are independent of the commonly used TSP features, we will produce different visual representations of our TSP instances (see Fig. 2) and use them for training the deep learning networks. Those images are created with a resolution of pixels and the coordinates of the instances are scaled to fill out the entire image as exemplarily shown in the two images in the left column of Fig. 2. In addition to these point clouds, images of corresponding Minimum Spanning Trees (MST, second column of Fig. 2) and -Nearest-Neighbor Graphs (-NNG, right column of Fig. 2) with were generated. We chose MST and -NNG as additional visual representations because we found in Section 3 that the 15 most important features are based almost exclusively on MST and -NNG graphs. In the -NNGs, not only mutual (strong) connections but also one-sided (weak) links were considered, in which one city belongs to the nearest neighbor set of another city, but not vice versa.

Admittedly, only networks whose generation was based exclusively on point clouds can be described as feature-free. For a better comparison, however, we have additionally evaluated feature-based networks that were trained with images of the corresponding MST and -NNG. Hence, we considered two different scenarios for our network-based approaches. In the first scenario (S1), the networks were trained based on (a) point clouds of the cities (Points), (b) MST images, and (c) -NNG images. In scenario (S2), we combined (a) the scatterplots with the MST images (as two input channels), and (b) the scatterplots with the MST and -NNG images (as three input channels). As the costs for generating the images are insignificant, we have not taken their generation time into account when computing the PAR10 scores of the deep learning models. For larger instances, though, these times would have to be taken into account.

Figure 6: Exemplary visualization of the operation principles of Convolutional Neural Networks. Left: Normal CNN layer with and . Middle: CNN layer with (reducing the output size by half). Right: CNN Layer with (increasing the receptive field without adding additional weights).
Figure 5: The chosen neural architecture. All convolutional blocks include a Group Normalization Layer and a Rectified Linear Unit activation (Conv GN ReLU). The strides are used to reduce the feature maps’ dimensions and the dilation are used to increase the receptive fields without adding additional parameters.

To process the visual representations of the instances, we used eight stacked convolutional layers (see Fig. 6). Three of them used to reduce the size of the feature maps and four of them used -Kernels to enlarge the receptive fields and, thus, gain a larger view of the instances (see Fig. 6 to compare the effects of Strides and Dilation). We used Rectified Linear Unit (ReLU) [10]

as activation function for all layers except for the last linear layer, for which we used a

Softmax activation. To improve the training speed, the outputs of all convolutional layers are normalized by using Group Normalization (GN) [47] with . The GN layers are in-between the convolutional layers and the ReLU activation. For transition from the three-dimensional convolutional () layers to the one-dimensional linear layer, a Global Average Pooling Layer (GPL) [28] is used. After the GPL, a Dropout (DP) [44]

layer with 25% dropout is added to improve regularization. The final layer is a single, linear layer with two output neurons – one for EAX and one for LKH (see Fig.

6). Last, we used 10-fold cross-validation to evaluate the performance of the neural networks. The folds were the same as for the classical feature-based approach. All networks were trained using mini-batches of eight, Adam [22] as optimizer and Cross-Entropy [32]

as loss function. Note that neural networks are most commonly trained using

Stochastic Gradient Descent [41], which strongly differs from the training methods used in Section 4.

5.2 Findings

The best performing classical approach achieved a mean PAR10-score of (see Tab. 1). Our feature-free networks, which were trained exclusively using the points, achieved a mean PAR10-score of after tuning the threshold and thus a similar performance (see Tab. 2) as the feature-based, classical approaches.

As stated before, we additionally investigated whether adding additional features to the networks could improve the models’ performances. Therefore, we also trained feature-based networks using MST and 5-NNG images. As shown in Tab. 2, both variants perform noticeably better. Besides, we found that while the thresholds between the points and the MST models are rather similar, the thresholds of the NNG models are on average higher. Next, the thresholds of the Points and MST models range from to , and to , respectively, while the thresholds of the NNG models range from to . Thus, networks trained on the NNG images appear to be less stable.

Moreover, the networks based on the Points correctly predicted EAX in 91.8% (and thus 459 times) of the cases, in which EAX was the better solver, compared to only 22.6% (113 cases) for the LKH-friendly cases. This behavior likely results from the fact that a misclassification of an instance, which is favorable for LKH, is cheaper than a misclassification of an instance that is easier for EAX. In contrast, the MST-based networks predict EAX in 91.6% (458) and LKH in 27.2% (136) cases, correctly. Thus, compared to the feature-free networks, which were exclusively based on Points, the MST networks benefit from correctly identifying LKH-friendly instances – without losing accuracy on the EAX-friendly instances. Noticeably, in case of the 5-NNG networks, only 84.6% (423) of the EAX-easy instances are classified correctly, compared to 34.8% (174) among the LKH-easy instances. Thus, despite the improvements among the instances that are favorable for LKH, the PAR10 score of the NNG-based networks is inferior to the MST-based selector, as misclassifying EAX-easy instances is more expensive.

Scenario S1 Scenario S2
Points MST NNG Points + MST Points+MST+NNG
1 34.40 0.19 30.91 0.27 31.35 0.64 27.13 0.21 32.95 0.14
2 78.88 0.15 57.95 0.17 76.99 0.18 54.65 0.14 58.06 0.22
3 67.43 0.14 64.14 0.19 57.94 0.32 62.40 0.25 62.15 0.15
4 50.50 0.13 45.89 0.19 59.35 0.03 54.92 0.19 56.58 0.13
5 52.41 0.29 57.76 0.16 59.40 0.43 58.50 0.24 61.43 0.25
6 58.07 0.15 45.28 0.21 56.09 0.35 64.59 0.17 54.95 0.19
7 50.32 0.40 58.91 0.29 42.49 0.05 49.47 0.25 54.76 0.22
8 36.89 0.23 35.35 0.20 26.08 0.73 63.47 0.29 32.07 0.27
9 93.07 0.31 95.44 0.23 95.41 0.41 96.89 0.16 93.57 0.27
10 41.10 0.34 48.79 0.35 44.52 0.13 52.09 0.42 48.66 0.14
56.31 0.23 54.04 0.23 54.96 0.33 58.41 0.23 55.52 0.20
Table 2: PAR10-scores of our deep neural networks for the different scenarios and across all ten CV-folds. In addition, we list the values of the tuned thresholds (TH).
Figure 7: PAR10-scores (log-scaled) of the points networks of scenario S1 (on the left) and the MST networks of scenario S1 versus the Single-Best-Solver (EAX).

To investigate whether the combination of the three different input variants would lead to networks that achieve better performances when predicting EAX- and LKH-easy instances, we combined Points and MST, as well as Points, MST and NNG into two and three input channels (Scenario 2), respectively. However, as shown in Tab. 2, combining the visual representations does not improve the networks’ overall performances. Also, while the network based on Points + MST classifies 31% (155) of the LKH-easy instances correctly, the selector based on Points + MST + NNG only succeeds in 17% (85) of the respective cases. We further observed that the threshold values are quite similar to the ranges of the Points and MST models from scenario S1.

As visualized in Fig. 7, the Points (left) and MST networks (right) prefer EAX over LKH – as there are far more observations below the diagonal. This is also confirmed by the low thresholds (see Tab. 2). Interestingly, the networks solely based on visual representations of the instance, even perform slightly better than the classical feature-based AS models – but are still clearly inferior to the VBS.

6 Conclusions and Outlook

The conducted experiments shed light on still existing shortcomings of classical feature-based per-instance algorithm selection on the TSP. While previous studies clearly reported successful approaches, the informative character of existing TSP feature sets reaches its limits for instances specifically evolved for maximum performance difference of the two state-of-the art heuristic solvers. Sophisticated mutation operators here lead to so far unobserved topological structures. Despite outperforming the SBS, the gap to the performance of the oracle-like VBS cannot be closed substantially, even after utilization of sophisticated preprocessing and feature selection approaches.

However, it again becomes obvious that the minimum spanning tree and nearest neighbor structures of the points are most informative in discriminating solver performances. We build on this information and enrich a deep neural network approach based on images of the instance topology by specific images visualizing the minimum spanning tree and the nearest neighbor graph. Most interestingly, our feature-free deep neural network nicely matches the performance of the quite complex classical AS approach (see Tab. 3), despite being solely based on an image of the instance’s points.

This proof-of-concept study thus shows the huge potential of deep learning, feature-free approaches in this domain which we will exploit in future studies by more sophisticated networks and altered loss functions specifically adapted to the designated performance indicators. Moreover, additional image channels will be added, e.g., in terms of heatmaps. Specific investigations have to be conducted with regard to the scaling behaviour of the approach, as image resolutions most probably will have to be carefully adapted to increasing instance sizes.

On the other hand, the observed limitations of classical TSP features show the necessity of enriching the library of TSP features by alternative sets which capture other kinds of — obviously important — instance structures. We will apply our approach to classical feature sets such as RUE or TSPLib as well for a comparison. However, it is specifically noteworthy that, in principle, the deep learning approach nicely generalizes to other graph-based optimization problems while instance features are almost exclusively tailored to the focused domain.

Measure Baseline Classical AS Deep Learning AS
VBS SBS (EAX) RF SVM Points MST Points + MST
PAR10 4.92 67.47 56.29 56.67 56.31 54.04 55.52
Accuracy 1.00 00.49 00.62 00.60 00.57 00.59 00.61
F1-Score 1.00 00.65 00.71 00.70 00.68 00.69 00.70
Table 3: Comparison of baseline (VBS and SBS) with our best models.


The authors acknowledge support by the European Research Center for Information Systems (ERCIS).


  • [1] M. Alissa, K. Sim, and E. Hart (2019)

    Algorithm selection using deep learning without feature extraction


    Proceedings of the Genetic and Evolutionary Computation Conference

    GECCO ’19, New York, NY, USA, pp. 198–206. External Links: ISBN 9781450361118, Link, Document Cited by: §1.
  • [2] B. Bischl, P. Kerschke, L. Kotthoff, M. Lindauer, Y. Malitsky, A. Fréchette, H. H. Hoos, F. Hutter, K. Leyton-Brown, K. Tierney, and J. Vanschoren (2016) ASlib: A benchmark library for algorithm selection. Artif. Intell. 237, pp. 41–58. External Links: Link, Document Cited by: §1.
  • [3] B. Bischl, M. Lang, L. Kotthoff, J. Schiffner, J. Richter, E. Studerus, G. Casalicchio, and Z. M. Jones (2016) Mlr: Machine Learning in R. Journal of Machine Learning Research (JMLR) 17 (170), pp. 1 – 5. External Links: Link Cited by: §4.1.
  • [4] B. Bischl, O. Mersmann, H. Trautmann, and M. Preuss (2012-07) Algorithm Selection Based on Exploratory Landscape Analysis and Cost-Sensitive Learning. In Proceedings of the 14th Annual Conference on Genetic and Evolutionary Computation (GECCO), pp. 313 – 320. External Links: Link, Document, ISBN 978-1-4503-0557-0 Cited by: §1.
  • [5] J. Bossek, P. Kerschke, A. Neumann, M. Wagner, F. Neumann, and H. Trautmann (2019) Evolving Diverse TSP Instances by Means of Novel and Creative Mutation Operators. In Proceedings of the 15 ACM/SIGEVO Workshop on Foundations of Genetic Algorithms (FOGA XV), T. Friedrich, C. Doerr, and D. Arnold (Eds.), Potsdam, Germany, pp. 58 – 71. Cited by: §2, §2.
  • [6] J. Bossek and H. Trautmann (2016) Evolving Instances for Maximizing Performance Differences of State-of-the-Art Inexact TSP Solvers. In Proceedings of the 10th International Conference on Learning and Intelligent Optimization (LION 2016), P. Festa, M. Sellmann, and J. Vanschoren (Eds.), Vol. 10079 LNCS, Ischia, Italy, pp. 48–59. External Links: ISBN 9783319503486, ISSN 16113349 Cited by: §3.
  • [7] J. Bossek and H. Trautmann (2016) Understanding Characteristics of Evolved Instances for State-of-the-Art Inexact TSP Solvers with Maximum Performance Difference. In

    AI*IA 2016 Advances in Artificial Intelligence

    , G. Adorni, S. Cagnoni, M. Gori, and M. Maratea (Eds.),
    Lecture Notes in Computer Science, Vol. 10037, Genova, Italy, pp. 3–12. External Links: Document, ISBN 9783319491295, ISSN 16113349 Cited by: §3.
  • [8] J. Bossek (2017) salesperson: Computation of Instance Features and R Interface to the State-of-the-Art Exact and Inexact Solvers for the Traveling Salesperson Problem. Note: R package version 1.0.0 External Links: Link Cited by: §4.1.
  • [9] T. Chen, T. He, M. Benesty, V. Khotilovich, Y. Tang, H. Cho, K. Chen, R. Mitchell, I. Cano, T. Zhou, M. Li, J. Xie, M. Lin, Y. Geng, and Y. Li (2019) xgboost: Extreme Gradient Boosting. Note: R package version External Links: Link Cited by: §4.1.
  • [10] X. Glorot, A. Bordes, and Y. Bengio (2011) Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011, Fort Lauderdale, USA, April 11-13, 2011, G. J. Gordon, D. B. Dunson, and M. Dudík (Eds.), JMLR Proceedings, Vol. 15, pp. 315–323. External Links: Link Cited by: §5.1.
  • [11] I. Guyon and A. Elisseeff (2006) An Introduction to Feature Extraction. In Feature Extraction, pp. 1 – 25. External Links: Link Cited by: §1.
  • [12] W. K. Härdle and L. Simar (2015) Applied multivariate statistical analysis. 4th edition, Springer, Berlin, Heidelberg. Cited by: §1.
  • [13] T. Hastie, R. Tibshirani, and J. Friedman (2009) The Elements of Statistical Learning: Data Mining, Inference, and Prediction. 2nd edition, Springer. External Links: Link Cited by: §4.1.
  • [14] K. Helsgaun (2000) An effective implementation of the lin–kernighan traveling salesman heuristic. European Journal of Operational Research 126 (1), pp. 106 – 130. External Links: ISSN 0377-2217 Cited by: §1.
  • [15] F. Hutter, L. Xu, H. H. Hoos, and K. Leyton-Brown (2014-01) Algorithm runtime prediction: methods & evaluation. Artif. Intell. 206, pp. 79–111. External Links: ISSN 0004-3702, Link, Document Cited by: §1.
  • [16] F. Hutter, L. Xu, H. H. Hoos, and K. Leyton-Brown (2014) Algorithm Runtime Prediction: Methods & Evaluation. Artificial Intelligence Journal (AIJ) 206, pp. 79 – 111. External Links: ISSN 0004-3702, Link Cited by: §3, §4.1.
  • [17] A. Karatzoglou, A. Smola, K. Hornik, and A. Zeileis (2004) kernlab – An S4 Package for Kernel Methods in R. Journal of Statistical Software (JSS) 11 (9), pp. 1 – 20. External Links: Link Cited by: §4.1.
  • [18] P. Kerschke, J. Bossek, and H. Trautmann (2018) Parameterization of State-of-the-Art Performance Indicators: A Robustness Study Based on Inexact TSP Solvers. In Proceedings of the 20th Genetic and Evolutionary Computation Conference (GECCO) Companion, Kyoto, Japan, pp. 1737 – 1744. Note: Publication status: Accepted External Links: Document, Link Cited by: §4.1.
  • [19] P. Kerschke, H. H. Hoos, F. Neumann, and H. Trautmann (2019) Automated Algorithm Selection: Survey and Perspectives. Evolutionary Computation (ECJ) 27 (1), pp. 3 – 45. Cited by: §1, §4.1, §4.1.
  • [20] P. Kerschke, L. Kotthoff, J. Bossek, H. H. Hoos, and H. Trautmann (2018) Leveraging TSP Solver Complementarity through Machine Learning. Evolutionary Computation (ECJ) 26 (4), pp. 597 – 620. Cited by: §1, §3, §3, §4.1, §4.
  • [21] P. Kerschke and H. Trautmann (2019) Automated algorithm selection on continuous black-box problems by combining exploratory landscape analysis and machine learning. Evolutionary Computation 27 (1), pp. 99–127. Note: PMID: 30365386 External Links: Document, Link, Cited by: §1.
  • [22] D. P. Kingma and J. Ba (2015) Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, Y. Bengio and Y. LeCun (Eds.), External Links: Link Cited by: §5.1.
  • [23] R. Kohavi, G. H. John, et al. (1997) Wrappers for feature subset selection. Artificial intelligence 97 (1-2), pp. 273 – 324. Cited by: §4.1.
  • [24] L. Kotthoff, P. Kerschke, H. H. Hoos, and H. Trautmann (2015-01) Improving the State of the Art in Inexact TSP Solving Using Per-Instance Algorithm Selection. In Proceedings of the 9th International Conference on Learning and Intelligent Optimization (LION), C. Dhaenens, L. Jourdan, and M. Marmion (Eds.), Lecture Notes in Computer Science (LNCS), Vol. 8994, pp. 202 – 217. External Links: Link, ISBN 978-3-319-19084-6, ISSN 0302-9743 Cited by: §1, §1, §4.1, §4, footnote 4.
  • [25] L. Kotthoff (2014) Algorithm Selection for Combinatorial Search Problems: A Survey. AI Magazine 35 (3), pp. 48 – 60. External Links: Link, ISSN 0738-4602, Document Cited by: §1.
  • [26] Y. LeCun, Y. Bengio, et al. (1995) Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks 3361 (10), pp. 1995. Cited by: §5.
  • [27] A. Liaw and M. Wiener (2002) Classification and Regression by randomForest. R News 2 (3), pp. 18 – 22. External Links: Link Cited by: §4.1.
  • [28] M. Lin, Q. Chen, and S. Yan (2014) Network in network. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, Y. Bengio and Y. LeCun (Eds.), External Links: Link Cited by: §5.1.
  • [29] T. M. Lindauer, H. H. Hoos, F. Hutter, and T. Schaub (2017-08) AutoFolio: An Automatically Configured Algorithm Selector (Extended Abstract). In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), pp. 5025 – 5029. External Links: Link, Document Cited by: §1.
  • [30] Y. Malitsky, A. Sabharwal, H. Samulowitz, and M. Sellmann (2013-08)

    Algorithm Portfolios Based on Cost-Sensitive Hierarchical Clustering

    In Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence (IJCAI), F. Rossi (Ed.), Vol. 13, pp. 608 – 614. External Links: Link Cited by: §1.
  • [31] H. B. Mann and D. R. Whitney (1947-03)

    On a test of whether one of two random variables is stochastically larger than the other

    Ann. Math. Statist. 18 (1), pp. 50–60. External Links: Document, Link Cited by: §3.
  • [32] S. Mannor, D. Peleg, and R. Y. Rubinstein (2005) The cross entropy method for classification. In Machine Learning, Proceedings of the Twenty-Second International Conference (ICML 2005), Bonn, Germany, August 7-11, 2005, L. D. Raedt and S. Wrobel (Eds.), ACM International Conference Proceeding Series, Vol. 119, pp. 561–568. External Links: Link, Document Cited by: §5.1.
  • [33] O. Mersmann, B. Bischl, J. Bossek, H. Trautmann, M. Wagner, and F. Neumann (2012-01) Local Search and the Traveling Salesman Problem: A Feature-Based Characterization of Problem Hardness. In Proceedings of 6th International Conference on Learning and Intelligent Optimization (LION), Y. Hamadi and M. Schoenauer (Eds.), Lecture Notes in Computer Science (LNCS), Vol. 7219, pp. 115 – 129. External Links: Document Cited by: §1, §2, §3, §3.
  • [34] O. Mersmann, B. Bischl, H. Trautmann, M. Wagner, J. Bossek, and F. Neumann (2013-10) A Novel Feature-Based Approach to Characterize Algorithm Performance for the Traveling Salesperson Problem. Annals of Mathematics and Artificial Intelligence 69 (2), pp. 151 – 182. External Links: Document, 1208.2318, ISSN 10122443, Link Cited by: §1, §2, §3, §4.1, footnote 5.
  • [35] Y. Nagata and S. Kobayashi (2013) A Powerful Genetic Algorithm Using Edge Assembly Crossover for the Traveling Salesman Problem. INFORMS Journal on Computing 25 (2), pp. 346 – 363. External Links: ISBN 10919856, ISSN 10919856 Cited by: §1.
  • [36] H. Peng, F. Long, and C. Ding (2005) Feature Selection Based on Mutual Information Criteria of Max-Dependency, Max-Relevance, and Min-Redundancy. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 27 (8), pp. 1226 – 1238. External Links: Link, Document Cited by: §1.
  • [37] J. Pihera and N. Musliu (2014) Application of machine learning to algorithm selection for TSP. In 26th IEEE International Conference on Tools with Artificial Intelligence, ICTAI 2014, Limassol, Cyprus, November 10-12, 2014, pp. 47 – 54. Cited by: §1, §3, §3, §4.1.
  • [38] G. Reinelt (1991) TSPLIB–a traveling salesman problem library. ORSA Journal on Computing 3 (4), pp. 376–384. Cited by: footnote 2.
  • [39] J. R. Rice (1976) The Algorithm Selection Problem. Advances in Computers 15, pp. 65 – 118. External Links: Link Cited by: §1.
  • [40] M. Rizzini, C. Fawcett, M. Vallati, A. E. Gerevini, and H. H. Hoos (2017) Static and Dynamic Portfolio Methods for Optimal Planning: An Empirical Analysis. International Journal on Artificial Intelligence Tools 26 (01), pp. 1 – 27. External Links: Link, Document Cited by: §1.
  • [41] H. Robbins and S. Monro (1951) A stochastic approximation method. The annals of mathematical statistics, pp. 400–407. Cited by: §5.1.
  • [42] P. Ross, S. Schulenburg, J. G. Marín-Bläzquez, and E. Hart (2002) Hyper-heuristics: learning to combine simple heuristics in bin-packing problems. In Proceedings of the 4th Annual Conference on Genetic and Evolutionary Computation, GECCO’02, San Francisco, CA, USA, pp. 942–948. External Links: ISBN 1558608788 Cited by: §1.
  • [43] K. Sim, E. Hart, and B. Paechter (2012) A hyper-heuristic classifier for one dimensional bin packing problems: improving classification accuracy by attribute evolution. In Parallel Problem Solving from Nature - PPSN XII - 12th International Conference, Taormina, Italy, September 1-5, 2012, Proceedings, Part II, C. A. C. Coello, V. Cutello, K. Deb, S. Forrest, G. Nicosia, and M. Pavone (Eds.), Lecture Notes in Computer Science, Vol. 7492, pp. 348–357. External Links: Link, Document Cited by: §1.
  • [44] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov (2014) Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15 (1), pp. 1929–1958. Cited by: §5.1.
  • [45] T. Therneau and B. Atkinson (2019) rpart: Recursive Partitioning and Regression Trees. Note: R package version 4.1-15 External Links: Link Cited by: §4.1.
  • [46] R. J. Urbanowicz, M. Meeker, W. La Cava, R. S. Olson, and J. H. Moore (2018-09) Relief-Based Feature Selection: Introduction and Review. Journal of biomedical informatics 85, pp. 189 – 203. External Links: Link, Document Cited by: §1.
  • [47] Y. Wu and K. He (2020) Group normalization. Int. J. Comput. Vis. 128 (3), pp. 742–755. External Links: Link, Document Cited by: §5.1.
  • [48] L. Xu, F. Hutter, H. H. Hoos, and K. Leyton-Brown (2012-06) Evaluating Component Solver Contributions to Portfolio-Based Algorithm Selectors. In Proceedings of the 15th International Conference on Theory and Applications of Satisfiability Testing (SAT), A. Cimatti and R. Sebastiani (Eds.), Lecture Notes in Computer Science (LNCS), Vol. 7317, pp. 228 – 241. Cited by: §1.