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

Latent Guided Sampling for Combinatorial Optimization

Sobihan Surendran, Adeline Fermanian, Sylvain Le Corff

Combinatorial Optimization (CO) problems, such as the Traveling Salesman Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP), are ubiquitous in logistics, manufacturing, and drug discovery. Because they are NP-hard, exact solutions are computationally intractable at scale. Neural Combinatorial Optimization (NCO) has emerged as a promising alternative, leveraging deep learning to construct solutions.

However, NCO models typically suffer from a severe "generalization gap"—a model trained on 100-node instances often fails on 150-node instances or out-of-distribution geometries. Furthermore, existing latent space models either require expensive labeled datasets or rely on instance-independent distributions that fail to capture the unique geometry of new problems. To address these limitations, researchers have introduced LGS-Net, a novel architecture paired with an adaptive inference mechanism called Latent Guided Sampling (LGS).

LGS-Net: Instance-Conditioned Latent Spaces

Unlike previous approaches that use a standard, one-size-fits-all Gaussian prior, LGS-Net employs an encoder that conditions the latent space on the specific problem instance. It maps a discrete problem instance $x$ into a continuous, instance-specific latent representation $z$. A decoder then processes both $x$ and $z$ to generate a solution.

The entire framework is trained via Reinforcement Learning (RL) using a cost-weighted loss. This eliminates the need for optimal labeled data (a "teacher") and encourages the model to explore diverse, low-cost solutions purely through trial, error, and cost feedback.

Latent Guided Sampling: Inference as Learning

The most significant contribution of this work is its inference mechanism. At test time, rather than relying on a single forward pass or basic sampling, LGS runs multiple interacting Markov Chain Monte Carlo (MCMC) chains to explore the latent space. Concurrently, it employs Stochastic Approximation (SA) to fine-tune the decoder's parameters for that specific instance.

To maintain computational efficiency, only the final layer of the decoder is updated, avoiding the massive overhead of full backpropagation. This "sampling-while-learning" approach allows the model to effectively "forget" suboptimal biases acquired during general training and adapt to the quirks of unseen problems on-the-fly. Bridging the gap between empirical deep learning and formal probability theory, the authors provide rigorous mathematical proofs demonstrating that this process forms a time-inhomogeneous Markov Chain guaranteed to converge to the optimal target distribution.

Empirical Performance and Generalization

LGS-Net was evaluated on standard CO benchmarks, including TSP, CVRP, and the Knapsack Problem. The researchers specifically tested generalization by training on 100-node instances and evaluating on larger out-of-distribution instances (125, 150, and 200 nodes).

The results establish a new state-of-the-art for learning-based solvers:

  • Outperforming Classical Heuristics: On CVRP with 100 and 125 nodes, LGS-Net achieved negative optimality gaps relative to LKH3, a premier classical heuristic. This indicates that the neural model consistently found better solutions than one of the field's most respected traditional algorithms.
  • Robust Generalization: As problem sizes scaled to 150 nodes, competing models saw their performance degrade sharply. LGS-Net maintained highly competitive performance, significantly outperforming other state-of-the-art NCO methods like COMPASS and EAS.

Limitations and Future Directions

Despite its success, the autoregressive nature of the decoder presents a bottleneck for very large instances (e.g., $n > 500$), as decoding time scales linearly with the number of nodes. Additionally, while local constraints (like preventing a vehicle from visiting the same city twice) can be managed via masking, enforcing complex global constraints remains challenging step-by-step. Future work may explore "divide-and-conquer" strategies, allowing LGS-Net to solve smaller sub-problems and stitch them together for massive-scale optimization.

Summary updated

BibTeX
@inproceedings{surendran2026latent,
  author = {Sobihan Surendran and Adeline Fermanian and Sylvain Le Corff},
  title = {{Latent Guided Sampling for Combinatorial Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=k5xsXvNYQS},
}
Figure