NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the use of quality diversity algorithms for the traveling thief problem

Adel Nikfarjam, Aneta Neumann, Frank Neumann

TL;DR

This paper introduces the first application of Quality Diversity (QD) algorithms to the Traveling Thief Problem (TTP), a complex optimization task where travel routes and packing choices are deeply interdependent. By using a MAP-Elites-based approach, the researchers not only discovered several new "best-known" solutions for standard benchmarks but also created visual maps that reveal how traveling efficiency and packing profits trade off against one another.

What Problem Does This Paper Address?

Most real-world optimization problems aren't isolated; they are "multi-component," meaning several NP-hard problems interact. The Traveling Thief Problem (TTP) is a classic example that combines the Traveling Salesperson Problem (TSP) and the Knapsack Problem (KP).

In TTP, a thief must visit cities to collect items. The catch? The more items the thief carries, the slower they move, increasing the "rent" paid for the knapsack over time. This creates a nasty interdependency: a great route for a light knapsack might be terrible once the thief is weighed down. Traditional algorithms usually hunt for a single "optimal" solution, but this ignores the rich landscape of high-quality alternatives that might better suit a decision-maker's specific preferences for speed versus profit.

Methods

The authors propose the Bi-level MAP-Elites-based Evolutionary Algorithm (BMBEA). It breaks the problem down into two levels:

  1. The Behavioral Space: Instead of just looking at the final profit, the algorithm tracks two "behaviors": the TSP score (tour length) and the KP score (packing profit). It discretizes this 2D space into a grid (a "map").
  2. Bi-level Optimization:
    • Tour Generation: It uses advanced operators like Edge Assembly Crossover (EAX) to create new routes.
  3. Packing Optimization: For every new route, it calculates an optimal or near-optimal packing list using either Dynamic Programming (DP) or a simple (1+1) Evolutionary Algorithm.
  4. MAP-Elites Survival: A new solution only stays in the population if it is the best one found so far for its specific cell in the TSP/KP grid. This forces the algorithm to maintain a diverse "repertoire" of solutions.
  5. Relaxed Boundaries: To avoid manual tuning, the authors introduced a "Relaxed Map" method that automatically sets the grid's boundaries based on the performance of an initial population.

Datasets

The study utilizes the standard TTP benchmark suite developed by Polyakovskiy et al. (2014).

  • Instances: 34 different instances ranging from small (51 cities) to medium (up to 4,661 cities).
  • Complexity: The instances vary in how items are distributed and how their weights/values are correlated, providing a rigorous test for the algorithm's versatility.

Key Insights and Ideas

  • Diversity as a Catalyst: Surprisingly, maintaining a diverse set of "sub-optimal" solutions (e.g., a slightly longer tour that allows for better packing) actually helps the algorithm escape local optima and eventually find better global solutions than standard "greedy" evolutionary strategies.
  • Visualizing the Trade-off: The resulting maps (heatmaps of TTP profit across the TSP/KP space) show that the best solutions aren't usually found at the extreme edges of "perfect tour" or "perfect packing." There is a specific "sweet spot" in the behavioral space where the interdependency is most effectively balanced.
  • Operator Superiority: The experiments confirm that EAX is significantly more powerful than simpler operators like 2-OPT for generating high-quality tours within the TTP framework.
  • The "Aha" Moment: The authors found that a standard (μ + 1) EA often converges prematurely to a single point. In contrast, MAP-Elites continues to improve across the entire map as the number of iterations increases, proving that QD is a robust framework for multi-component problems.

Key Results

  • New State-of-the-Art: BMBEA improved the best-known solutions for several TTP benchmark instances (specifically instances 31 and 32 in their testing set).
  • Performance Gains: In head-to-head comparisons with a standard elitist evolutionary algorithm, BMBEA achieved higher average TTP scores in 16 out of 18 instances when given sufficient iterations ($10^5$).
  • Structural Discovery: The maps revealed that for some "unbalanced" instances, the TSP component is so dominant that high-quality solutions are clustered very tightly near the optimal tour length, a detail that was previously difficult to visualize.

Limitations and Future Work

  • Computational Intensity: Using Dynamic Programming for the packing sub-problem is computationally expensive. While the (1+1) EA is a faster alternative, it may sacrifice some solution quality on very large instances.
  • Grid Scaling: The current grid is a simple rectangular discretization. The authors suggest that more sophisticated partitioning methods, like Centroidal Voronoi Tessellations (CVT), could make the behavioral mapping even more precise.
  • Beyond TTP: The authors note that this QD approach could be applied to other multi-component problems, such as vehicle routing or patient admission scheduling, where understanding the "behavioral distribution" of solutions is just as important as finding a single top-tier result.

Summary updated

BibTeX
@inproceedings{nikfarjam2022use,
  author = {Adel Nikfarjam and Aneta Neumann and Frank Neumann},
  title = {{On the use of quality diversity algorithms for the traveling thief problem}},
  booktitle = {GECCO},
  year = {2022},
  doi = {10.1145/3512290.3528752},
}
Figure