ViTSP: A Vision Language Models Guided Framework for Solving Large-Scale Traveling Salesman Problems

Zhuoli Yin, Yi Ding, Reem Khir, Hua Cai

TL;DR

ViTSP is a novel hybrid framework that uses pre-trained Vision Language Models (VLMs) to visually identify suboptimal subregions in large-scale Traveling Salesman Problem (TSP) tours. By passing these localized subproblems to an off-the-shelf exact solver, ViTSP achieves an exceptional average optimality gap of 0.24% on massive real-world instances (up to 88,000 nodes) completely zero-shot, outperforming both deep learning neural solvers and state-of-the-art operations research heuristics.

What Problem Does This Paper Address?

The Traveling Salesman Problem (TSP) is a classic NP-hard combinatorial optimization problem with massive relevance to logistics, chip design, and DNA sequencing. While exact solvers like Concorde guarantee optimal solutions, their computation time becomes intractable as problem sizes scale into thousands of nodes. Conversely, traditional heuristics like LKH-3 are fast but require tedious, domain-specific parameter tuning.

Recently, machine learning researchers have introduced "neural solvers" to learn TSP patterns. However, these models suffer from poor generalization when faced with out-of-distribution (OOD) data and fail to scale beyond small graphs (<1,000 nodes). Purely text-based Large Language Model (LLM) approaches also fall short because text strings of coordinates fail to convey the global geometric and spatial structures of large-scale routing problems.

Methods

ViTSP repositions VLMs from error-prone end-to-end solvers into intelligent, visual decomposition heuristics. The framework operates via four main modules:

  1. Solution Initialization: The problem is warm-started using a heuristic solver (LKH-3) under its default, untuned settings to establish a baseline tour.
  2. Visual Selection by VLMs: The current tour is plotted as a 2D image where nodes are red dots and paths are black lines. This image is fed into a VLM (such as GPT-4 or o4-mini) along with a text prompt containing meta-instructions, a history of prior selection trajectories, and a queue of pending subproblems. The VLM outputs bounding box coordinates $(x_{min}, x_{max}, y_{min}, y_{max})$ targeting regions that look messy or crossed over. For highly dense regions, a "zoom-in reselection" mechanism triggers to let the VLM inspect fine-grained patterns.
  3. Subproblem Optimization: The nodes inside the bounding box are treated as "free nodes," while the paths outside are aggregated into "super nodes." This subproblem is mathematically reformulated from a partially asymmetric TSP (ATSP) into a standard symmetric TSP (STSP) using dummy nodes, allowing it to be solved to optimality by Concorde within a strict time limit ($T_{max} = 10$ seconds).
  4. Asynchronous Orchestration: Because VLM API calls are I/O-intensive (introducing network latency) and exact solvers are CPU-intensive, ViTSP decouples them. It deploys a master-slave architecture where multiple parallel "slave solvers" screen subproblems from a shared queue, and a single "master solver" updates the global solution.
Figure 1: The vision-guided framework (ViTSP) for large-scale TSP, where pre-trained VLMs and off- the-shelf solvers are asynchronously coordinated to identify and optimize subproblems, respectively.

Datasets

The authors evaluated ViTSP on two primary benchmarks:

  • TSPLIB: A standard open-source library of real-world TSP instances. The authors selected all 33 instances containing more than 1,000 nodes, scaling all the way up to 85,900 nodes (pla85900).
  • Synthetic TSP-10K: A dataset consisting of 16 instances, each containing 10,000 uniformly distributed nodes.

Key Insights and Ideas

  • Graphs as Images: Instead of forcing a model to learn complex graph embeddings, treating a TSP instance as a 2D image allows pre-trained VLMs to leverage their innate, general-purpose spatial reasoning to spot visual suboptimality (like crisscrossed lines).
  • Generative Models as Guides, Not Closers: Trying to make an LLM or VLM output an exact sequence of thousands of nodes fails due to context limits and hallucinations. ViTSP succeeds by delegating the high-level strategy (decomposition) to the VLM and the low-level execution (precision optimization) to a classical exact solver.
  • Zero-Shot Scalability: Because the framework relies entirely on commercial, pre-trained foundation models, it bypasses the expensive data curation, training, and retraining loops that plague traditional neural solvers when deploying to edge devices.

Key Results

  • State-of-the-Art Accuracy: ViTSP achieved an average optimality gap of just 0.24% across the TSPLIB instances, outperforming Concorde (0.34%) and LKH-3 with extended runs (0.31%) under the same runtime budgets.
  • Global Optimality: The framework successfully discovered the exact global optimum in 11 out of the 33 TSPLIB instances.
  • Superior Large-Scale Scaling: On very-large-scale instances ($N > 10,000$), ViTSP significantly accelerated the reduction of optimality gaps over time compared to LKH-3, which tended to plateau early.
Figure 2: Optimality gaps over time on selected instances between ViTSP and LKH-3 (more RUNS).

Limitations and Future Work

Despite its strong performance, the authors note a few limitations:

  1. Decomposition Shape: The framework is currently restricted to rectangular box-based subproblem selection. Ablation studies hinted that allowing the VLM to select arbitrary sequences of nodes might yield faster gap reductions in certain instances.
  2. Coordination Overhead: The trade-off between solving a single large subproblem with a longer runtime versus multiple smaller subproblems simultaneously is not yet mathematically optimized.
  3. Throughput: Future iterations could benefit from exploring batch-parallel execution to optimize multiple distinct TSP instances at the same time.

Summary updated

BibTeX
@inproceedings{yin2026vitsp,
  author = {Zhuoli Yin and Yi Ding and Reem Khir and Hua Cai},
  title = {{ViTSP: A Vision Language Models Guided Framework for Solving Large-Scale Traveling Salesman Problems}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=2LoaiaGKuV},
}
Figure