Learning Lagrangian Multipliers for the Travelling Salesman Problem

Augustin Parjadis, Quentin Cappart, Bistra Dilkina, Aaron M. Ferber, Louis-Martin Rousseau · DOI

Introduction

The Traveling Salesman Problem (TSP) remains a cornerstone of combinatorial optimization. While modern heuristics can find near-optimal solutions rapidly, proving optimality requires exact solvers using branch-and-bound techniques. These solvers rely heavily on "dual bounds"—mathematical guarantees that no tour can be shorter than a specific value. The Held-Karp relaxation is the standard method for generating these bounds, utilizing Lagrangian multipliers to transform the problem. However, the traditional iterative process for finding these multipliers is computationally intensive, creating a significant bottleneck in exact solving.

A Predictive Approach to Lagrangian Multipliers

Researchers have proposed a paradigm shift: replacing the slow, iterative optimization of multipliers with a fast, predictive model. By employing an edge-featured Graph Attention Network (GAT), the system can capture the spatial structure of a TSP instance and output high-quality multipliers in a single forward pass.

Comparison between the traditional iterative Held-Karp approach and the proposed GNN-based predictive approach.

Unlike standard supervised learning, this model is trained in an unsupervised manner. The network is optimized to maximize the Held-Karp bound directly. Since the relaxation process is differentiable, the system uses backpropagation to update GNN weights, effectively learning to "push" the lower bound as high as possible without needing labeled optimal multipliers.

Improving the Lower Bound

The core mechanism involves modifying edge costs using the predicted multipliers ($\theta$). By adjusting costs such that $c'_{i,j} = c_{i,j} + \theta_i + \theta_j$, the solver can find a minimum 1-tree that provides a tighter lower bound.

Example of how Lagrangian multipliers improve the lower bound. (a) Initial instance. (b) Initial 1-tree yields a bound of 50. (c) Modified costs with multipliers yield a tighter bound of 59.

As shown in the example above, the initial lower bound of 50 (a 20% gap from the optimal 62) is improved to 59 (a 5% gap) simply by applying the learned multipliers. This tighter bound allows the branch-and-bound algorithm to prune larger sections of the search tree much earlier.

Performance and Impact

The integration of GNN-predicted multipliers into a Constraint Programming (CP) solver yielded significant improvements across various TSP distributions:

  • Efficiency: Solved instances saw a 10% reduction in execution time.
  • Tightness: For unsolved instances, the optimality gap was reduced by approximately 50% (e.g., from 1.82% to 0.59% on 200-city random instances).
  • Pruning: The "filtering level" (the ability to eliminate suboptimal edges) improved by up to 27% in clustered scenarios.

Crucially, because the Held-Karp bound remains mathematically valid regardless of the multipliers used, the GNN's predictions never compromise the exactness of the solver; they only accelerate the convergence toward a proof of optimality.

Conclusion

By treating Lagrangian relaxation as a differentiable layer, this research demonstrates that deep learning can significantly enhance classical optimization algorithms. Future work aims to scale this approach to thousands of nodes and adapt it to more complex TSP variants, such as those involving time windows or dynamic costs.

Summary updated

BibTeX
@inproceedings{parjadis2024learning,
  author = {Augustin Parjadis and Quentin Cappart and Bistra Dilkina and Aaron M. Ferber and Louis-Martin Rousseau},
  title = {{Learning Lagrangian Multipliers for the Travelling Salesman Problem}},
  booktitle = {CP},
  year = {2024},
  doi = {10.4230/lipics.cp.2024.22},
}
Figure