Probing Neural Combinatorial Optimization Models

Zhiqin Zhang, Yining Ma, Zhiguang Cao, Hoong Chuin Lau

Introduction

Neural Combinatorial Optimization (NCO) has emerged as a powerful alternative to traditional human-designed heuristics for solving NP-hard problems like the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP). Despite their impressive performance, these deep learning models have largely remained "black boxes," leaving researchers and practitioners uncertain about how they represent geometric constraints or make strategic decisions.

Presented at NeurIPS 2025, this research introduces a diagnostic framework called Coefficient Significance Probing (CS-Probing). By analyzing the internal representations of high-performing NCO models, the authors reveal how these systems organize knowledge and why certain architectures generalize better to larger, unseen problems than others.

Methodology: Decoding Hidden Representations

To peer inside the models, the researchers adapted "probing" techniques originally developed for Natural Language Processing. The methodology consists of two primary stages:

  1. Linear Probing: The authors take a pre-trained, frozen NCO model and extract its internal embeddings—the high-dimensional vectors representing nodes or cities. They then train a simple linear model (the probe) to predict specific properties, such as the Euclidean distance between nodes, using only these embeddings. Success in this task indicates that the NCO model has internally "learned" that specific property.
  2. CS-Probing (The Innovation): Moving beyond simple prediction, CS-Probing analyzes the statistical significance of the probe's coefficients. This allows researchers to pinpoint exactly which dimensions (or "neurons") within the embedding are responsible for specific types of knowledge, providing a granular map of the model's internal logic.

The study focused on three representative architectures: the Attention Model (AM), POMO, and the Light Encoder Heavy Decoder (LEHD) model.

Experimental Framework

The models were evaluated using standard routing benchmarks, including TSP and CVRP instances ranging from 20 to 1,000 nodes. To test real-world applicability and out-of-distribution generalization, the authors utilized TSPLib, a library of non-synthetic TSP instances. Ground truth labels for training the probes were generated using exact solvers like Gurobi and high-performance heuristics like HGS.

Key Insights: Spatial Awareness and Strategic Reasoning

The probing analysis revealed a clear hierarchy of knowledge within NCO models:

  • Shallow Knowledge: Early layers in the network focus on low-level spatial relations. While raw input features cannot represent distance linearly, models achieve high distance awareness (with $R^2$ values up to 0.94) after just a single attention layer.
  • Deep Reasoning: Deeper layers transition from simple geometry to "strategic reasoning," learning to avoid myopic, short-sighted decisions in favor of global optimality.
  • The Inductive Bias of Generalization: The most successful model, LEHD, exhibited a distinct internal organization. It concentrates its knowledge into a few specific embedding dimensions and reuses these same "expert" dimensions when solving larger, unseen problems. In contrast, weaker models like AM and POMO display "disorganized" representations that shift unpredictably when the problem size changes.

Results and Practical Implications

The findings from CS-Probing are not merely theoretical; they offer actionable paths for model improvement:

  • Extreme Efficiency: In the LEHD model, the authors discovered they could zero out 126 of the 128 embedding dimensions. As long as the two "key" dimensions identified by CS-Probing were preserved, the model maintained its performance. Conversely, zeroing out those two specific dimensions caused the optimality gap to explode from 0.57% to over 60%.
  • Performance Boosting via Regularization: Recognizing that sparsity correlates with better generalization, the authors introduced a simple $\ell_1$ sparsity-promoting penalty to the training process. This minor modification improved LEHD's performance on the TSPLib benchmark, reducing the optimality gap from 5.26% to 4.94%.

Conclusion and Future Directions

This research demonstrates that interpretability is a powerful tool for optimization. By identifying the specific dimensions that drive decision-making, researchers can move toward more robust and efficient AI solvers.

While the current study focused on routing problems, the authors suggest that future work should extend CS-Probing to other domains like Bin Packing or Scheduling. Furthermore, the discovery that models rely on a fraction of their embedding dimensions suggests significant opportunities for model pruning and distillation, potentially allowing complex NCO solvers to run efficiently on edge devices.

Summary updated

BibTeX
@inproceedings{zhang2025probing,
  author = {Zhiqin Zhang and Yining Ma and Zhiguang Cao and Hoong Chuin Lau},
  title = {{Probing Neural Combinatorial Optimization Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ycnc9aLnQu},
}
Figure