Combinatorial Optimization with Policy Adaptation using Latent Space Search

Felix Chalumeau, Shikha Surana, Clément Bonnet, Nathan Grinsztajn, Arnu Pretorius, Alexandre Laterre, Thomas D Barrett

Combinatorial Optimization (CO) is the mathematical backbone of global logistics, energy distribution, and manufacturing. It involves finding the optimal object from a finite set of objects—such as routing delivery trucks, scheduling factory jobs, or linking nodes in a network. While classical industrial solvers like LKH or Concorde are powerful, they are often computationally slow and require heavy hand-engineering.

Reinforcement Learning (RL) has emerged as a promising, versatile alternative for designing heuristics across problem domains. However, RL faces a significant "generalization gap" that has prevented it from supplanting industrial solvers. Most RL models learn a single, stochastic policy. At test time, they either sample many solutions from that one policy (which lacks strategic variety) or perform "active search" by fine-tuning the entire neural network on a single instance (which is computationally expensive).

To bridge this gap, researchers at InstaDeep introduced COMPASS (COMbinatorial optimization with Policy Adaptation using Latent Space Search), a novel RL framework that learns an infinite variety of specialized policies mapped to a continuous latent space.

The COMPASS Framework

Instead of training one "average" policy, COMPASS parameterizes a distribution of diverse and specialized policies. The architecture consists of two main phases:

  1. Training with Specialization: The policy is conditioned on a 16-dimensional continuous latent vector ($z$). During training, the model samples multiple latent vectors for a given problem instance. Crucially, it only updates the network weights based on the best-performing vector for that specific instance. This "winner-takes-all" approach forces different regions of the latent space to specialize in different types of problem structures.
  2. Inference with Latent Space Search: When faced with a new, unseen problem at test time, COMPASS uses CMA-ES (Covariance Matrix Adaptation Evolution Strategy)—a derivative-free optimization algorithm—to navigate the latent space. It searches for the specific $z$ that produces the optimal policy for that exact instance. To avoid local optima, the system uses a Voronoi Tesselation to initialize multiple search components across the space.
COMPASS Architecture: Training and Inference Phases

By anticipating search during pre-training, COMPASS creates a "structured" latent space where similar and effective policies are clustered together, making the model inherently "search-aware."

Key Insights

  • Diversity Over Stochasticity: Standard RL relies on the randomness of action selection to find good solutions. COMPASS relies on the diversity of the strategies themselves. It’s the difference between rolling the same die 100 times versus having 100 different dice and picking the one uniquely weighted for your specific game.
  • Efficiency via Low-Dimensionality: Adapting a 16-dimensional latent vector at inference time is orders of magnitude faster and less memory-intensive than backpropagating through a neural network with millions of parameters (the approach used by active search competitors like EAS).

Experimental Results

The researchers evaluated COMPASS on three canonical CO problems: the Traveling Salesman Problem (TSP), the Capacitated Vehicle Routing Problem (CVRP), and the Job-Shop Scheduling Problem (JSSP). They tested on standard benchmarks ($n=100$ nodes), generalization sets with larger sizes ($n=125, 150, 200$), and a set of 18 procedurally transformed distributions (mutated via rotation, clustering, etc.) to test Out-of-Distribution (OOD) performance.

  • State-of-the-Art Performance: COMPASS outperformed leading RL baselines in 9 out of 11 standard benchmarking tasks.
  • Closing the Optimality Gap: On TSP, COMPASS reduced the optimality gap (the distance from the perfect mathematical answer) by a factor of 6.5x compared to the training distribution.
  • Beating Industrial Solvers: On CVRP, COMPASS was the only RL-based method to outperform the specialized industrial solver LKH on the training distribution.
  • Superior Generalization: In the OOD tests across the 18 mutated distributions, COMPASS significantly surpassed all other approaches. The latent space search proved highly effective at finding "niche" policies for non-standard problem instances.
Generalization Performance Radar Chart

Limitations and Future Work

While COMPASS represents a major step forward for RL in combinatorial optimization, the authors note a few limitations. Currently, the latent space is sampled uniformly during training; adding explicit regularization (like those used in Variational Autoencoders) or unsupervised diversity rewards could make the space even easier to navigate.

Furthermore, the study utilized a 16D latent space. Future work will explore whether increasing this dimensionality allows for even more complex policy adaptation for massive, real-world industrial problems. Finally, the model's diversity is ultimately bounded by the variety of instances it sees during training—if the training set is too narrow, the latent space might lack the necessary "pockets" for radically different test cases.

Summary updated

BibTeX
@inproceedings{chalumeau2023combinatorial,
  author = {Felix Chalumeau and Shikha Surana and Clément Bonnet and Nathan Grinsztajn and Arnu Pretorius and Alexandre Laterre and Thomas D Barrett},
  title = {{Combinatorial Optimization with Policy Adaptation using Latent Space Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=vpMBqdt9Hl},
}
Figure