Combinatorial Optimization with Policy Adaptation using Latent Space Search
Felix Chalumeau, Shikha Surana, Clement Bonnet, Nathan Grinsztajn, Arnu Pretorius, Alexandre Laterre, Thomas D. Barrett
TL;DR
COMPASS addresses the challenge of solving NP-hard combinatorial optimization problems by learning a continuous latent space of diverse and specialized policies conditioned on a latent vector $\mathbf{z} \in [-1,1]^{16}$. At inference, it searches this space with CMA-ES (using multiple components and Voronoi initialization) to rapidly adapt to each instance without re-training, while training only the best latent-conditioned policy per instance via REINFORCE. Evaluated on TSP, CVRP, and JSSP, COMPASS achieves state-of-the-art performance across 11 tasks and demonstrates robust generalization to procedurally transformed, out-of-distribution instances, often outperforming strong baselines with lower computational cost than competitive active-search methods. The work also provides extensive analyses of the latent space, search dynamics, and practical considerations such as code releases and runtime implications, highlighting COMPASS’s potential for industrial CO tasks and future improvements in latent-space regularization and diversity.
Abstract
Combinatorial Optimization underpins many real-world applications and yet, designing performant algorithms to solve these complex, typically NP-hard, problems remains a significant research challenge. Reinforcement Learning (RL) provides a versatile framework for designing heuristics across a broad spectrum of problem domains. However, despite notable progress, RL has not yet supplanted industrial solvers as the go-to solution. Current approaches emphasize pre-training heuristics that construct solutions but often rely on search procedures with limited variance, such as stochastically sampling numerous solutions from a single policy or employing computationally expensive fine-tuning of the policy on individual problem instances. Building on the intuition that performant search at inference time should be anticipated during pre-training, we propose COMPASS, a novel RL approach that parameterizes a distribution of diverse and specialized policies conditioned on a continuous latent space. We evaluate COMPASS across three canonical problems - Travelling Salesman, Capacitated Vehicle Routing, and Job-Shop Scheduling - and demonstrate that our search strategy (i) outperforms state-of-the-art approaches on 11 standard benchmarking tasks and (ii) generalizes better, surpassing all other approaches on a set of 18 procedurally transformed instance distributions.
