Authors: Germain Vivier-Ardisson, Mathieu Blondel, Axel Parmentier
Organizations: Google DeepMind & CERMICS, Paris, France · Google DeepMind, Paris, France · CERMICS, CNRS, ENPC, Institut Polytechnique de Paris, Marne-la-Vallée, France
Integrating combinatorial optimization layers into neural networks has recently attracted significant research interest. However, many existing approaches lack theoretical guarantees or fail to perform adequately when relying on inexact solvers. This is a critical limitation, as many operations research problems are NP-hard, often necessitating the use of neighborhood-based local search heuristics. In this paper, we introduce a principled approach for learning with such inexact solvers. Inspired by the connection between simulated annealing and Metropolis-Hastings, we transform the problem specific neighborhood systems used in local search heuristics into proposal distributions, implementing MCMC on the set of feasible solutions. This allows us to construct differentiable, stochastic combinatorial layers and associated loss functions. Replacing an exact solver with a local search strongly reduces the computational burden of learning on many applications. We demonstrate our approach on a dynamic vehicle routing problem with time windows, binary vector and k-subset prediction tasks, as well as a multi-dimensional knapsack decision-focused learning problem.
Figures & tables
Regularization
Oracle
Approach
Differentiable DP ( 2009 ; 2018 )
Entropy
Exact marginal
DP
SparseMAP ( 2018 )
Quadratic
Exact MAP
Frank-Wolfe
Barrier FW ( 2015 )
TRW Entropy
Exact MAP
Frank-Wolfe
IntOpt ( 2020 )
Log barrier
Interior point solver
Primal-Dual
Perturbed optimizers ( 2020 )
Implicit via noise
Exact MAP
Monte-Carlo
DYS-net ( 2024 )
Quadratic
Projection oracles
Davis-Yin Splitting
Table 1: The proposed approach leverages the neighborhood systems used by local search heuristics (inexact solvers) to obtain a differentiable combinatorial layer when usual oracles are not available.
Figure 2
Figure 1: Overview of the vehicle routing pipeline, represented at request wave ω .
relocate
Removes a single request from its route and re-inserts it at a different position in the solution.
relocate pair
Removes two consecutive requests from their route and re-inserts them at a different position.
swap
Exchanges the position of two requests in the solution.
swap pair
Exchanges the positions of two pairs of consecutive requests in the solution.
2-opt
Reverses a route segment in the solution.
serve request
Inserts a currently unserved request into the solution.
remove request
Removes a request from the solution.
Table 2: Local search moves used for creating neighborhoods in our vehicle routing experiments.
Figure 2: Test relative cost (%) w.r.t. f⋆ . Left : varying initialization method. Center : varying number of Markov iterations K , random initialization. Right : varying K , ground-truth initialization.
Time limit (ms)
1
5
10
50
100
1000
PFY with y~
65.2±5.8
13.1±3.4
8.7±1.9
6.5±1.1
6.3±0.8
5.5±0.4
Proposed ( y(0)=y )
10.0±1.7
12.0±2.6
11.8±2.8
9.1±1.7
8.4±1.7
7.7±1.1
Proposed ( y(0)=heuristic(y) )
7.8±0.8
7.2±0.6
6.3±0.7
6.2±0.8
5.9±0.7
5.9±0.6
Table 3: Best test relative cost (%) w.r.t. f⋆ for different training methods and time limits.
Figure 3: Squared distance ∣∣θ^n−θ0∣∣22 to the true parameter over optimization steps.
Figure 4: Benchmark results on the MKP.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 5: Convergence to exact expectation on the hypercube and the top- κ polytope, for varying number of burn-in iterations K0 . We conclude that burn-in is not beneficial to the estimation, and taking K0=0 is the best option.
Figure 6: Convergence to exact expectation on the hypercube and the top- κ polytope, for varying final temperature t (small scale experiment). We conclude that lower temperatures facilitate the estimation.
Figure 7: Convergence to exact expectation on the hypercube and the top- κ polytope, for varying final temperature t (large scale experiment). Contrary to the small scale case, larger temperatures are beneficial to the estimation when the solution set is combinatorially large.
Figure 8: Convergence to exact expectation on the hypercube and the top- κ polytope, for varying number of parallel Markov chains C . Running 10 times more chains in parallel provides roughly the same benefit as extending each chain by 10 times more iterations, highlighting the advantage of massively parallelized estimation.
Figure 9: Comparison of stochastic gradient trajectories for a SA / M-H oracle on Y2 and unbiased stochastic gradients obtained via Monte Carlo sampling. Increasing the number of Markov chain iterations yields smoother trajectories, similar to the effect of using more Monte Carlo samples in the case of perturbation-based methods [ Berthet et al., 2020 ] .
Figure 10: Convergence to the true parameter on the hypercube (left) and the top- κ polytope (right), for varying number of Markov chain iterations K . Longer chains improve learning.
Figure 11: Convergence to the true parameter on the hypercube (left) and the top- κ polytope (right), for varying number of parallel Markov chains C . Adding Markov chains improves estimation.
Figure 12: Convergence to the true parameter on the hypercube (left) and the top- κ polytope (right), for varying Markov chain initialization method. The persistent and data-based initialization methods significantly outperform the random initialization method.
Figure 13: Convergence to the true parameter on the hypercube (left) and the top- κ polytope (right), for varying number of samples N in the dataset. As the dataset is different for each task, the empirical risk LN , which is the minimized objective function (contrary to other experiments, where we minimize Lθ0 ), also varies. Although empirical risks associated to smaller datasets appear easier to minimize, increasing the dataset size reduces the bias and thus the distance to θ0 , as expected.
Figure 14: Convergence to the true parameter on the hypercube, with different mixtures of neighborhood systems {N=rs}s=1S : comparing rs∈{5} to rs∈{1,5} (left), and comparing rs∈{6} to rs∈{1,2,3,6} (right). Using more neighborhoods in the mixture improves learning.
Init. Method Setting
Unconditional
Conditional, Batch
Conditional, Mini-Batch
Persistent
y(n+1,0)=y(n,K)
yi(n+1,0)=yi(n,K)
/
Data-Based
y(n+1,0)=yj , with j∼U([[1,N]])
yi(n+1,0)=yi
yi(n+1,0)=yi
Random
y(n+1,0)∼U(Y)
yi(n+1,0)∼U(Y)
yi(n+1,0)∼U(Y)
Appendix
Table 4: Possible Markov chain initialization methods under each learning setting
Name
Description
relocate
removes request i from its route and re-inserts it before or after request j
relocate pair
removes pair of requests (i,next(i)) from their route and re-inserts them before or after request j
swap
exchanges the position of requests i and j in the solution
swap pair
exchanges the positions of the pairs (i,next(i)) and (j,next(j)) in the solution
2-opt
reverses the route segment between i and j
serve request
inserts currently undispatched request i before or after request j
Appendix
Table 5: PC-VRPTW Local search moves
Move
Vs1(y)
Vs2(y)[i]
relocate
D(y)∖D1(y)
D(y)
relocate pair
D(y)∖{D2(y)∪Dlast(y)}
D(y)∖{next(i)}
swap
D(y)
D(y)
swap pair
D(y)∖Dlast(y)
D(y)∖{Dlast(y)∪{prev(i),next(i)}}
2-opt
D(y)∖D2(y)
D(y)∖D2(y)
serve request
Dˉ(y)
D(y)∪ID(y)
Appendix
Table 6: Sets of valid clients for each move. D(y) contains all dispatched clients in solution y . D1(y) contains all dispatched clients that are the only client in their route. D2(y) contains all dispatched clients that are in a route with 2 clients or less. Dlast(y) contains all dispatched clients that are the last of their route. Dˉ(y) contains all non-dispatched clients. ID(y) contains the depot of the first empty route, if it exists (all routes may be non-empty), or else is the empty set. I1(y) contains the only client in the last non-empty route if it contains exactly one client, or else is the empty set.
Figure 15: Test relative cost (%). Left : varying temperature t with random initialization. Right : varying temperature t with ground-truth initialization.
Figure 16: Performance comparison on the MKP across varying training time limits for the combinatorial layer. Left: Best test relative regret for LS-MCMC, PFY using Gurobi, and PFY using the last local search iterate as a black-box oracle. Right: Average MIPGap achieved by the Gurobi solver over the same time limits. At the most restrictive time limit (0.1ms), the MIPGap is unavailable because the solver returns a feasible solution before computing an initial dual bound.
Operations research practitioners typically tackle NP-hard combinatorial problems using large neighborhood search (LNS), a scalable heuristic that iteratively refines a current solution by locally re-optimizing subsets of its variables. In contrast, most existing approaches for integrating combinatorial optimization layers into neural networks still assume access to an exact global solution, which is computationally intractable. We bridge this gap by introducing regularized LNS (RLNS). By regularizing or perturbing local subproblems, we turn the LNS heuristic into an efficient MCMC sampler over the combinatorial set of feasible solutions, with associated Fenchel-Young losses. Under entropic regularization, we prove that RLNS performs exact block Gibbs sampling. Furthermore, adjusting the number of RLNS iterations allows us to interpolate between pseudolikelihood and exact maximum likelihood estimation, for end-to-end learning without global solvers. We demonstrate our approach on k-subset selection, generalized assignment, and stochastic vehicle scheduling problems.
Germain Vivier-Ardisson, Laurent Demonet, Axel Parmentier +1
Google DeepMind & CERMICS Paris, France · Google Research Paris, France · CERMICS, ENPC, CNRS, IPP Marne-la-Vallée, France +1
The primary paradigm in Neural Combinatorial Optimization (NCO) consists of construction methods, where a neural network is trained to sequentially add one solution component at a time until a complete solution is formed. We observe that the typical changes to the state between two steps are small, since usually only the node added to the solution is removed from the state. An efficient model should be able to reuse computation from prior steps. To that end, we propose a recurrent encoder that computes state embeddings based not only on the current state but also on embeddings from the previous state. We show that this recurrent encoder can achieve equivalent or better performance than a non-recurrent encoder even with 3× fewer layers, thus significantly improving latency. We demonstrate our findings on three different problems: the Traveling Salesman Problem (TSP), the Capacitated Vehicle Routing Problem (CVRP), and the Orienteering Problem (OP), and integrate the models into a large neighborhood search algorithm to showcase the practical relevance of our findings.
Tim Dernedde, Daniela Thyssens, Lars Schmidt-Thieme
Information Systems and Machine Learning Lab (ISMLL) Institute of Computer Science University of Hildesheim
Deep neural networks based on reinforcement learning (RL) for solving combinatorial optimization (CO) problems are developing rapidly and have shown a tendency to approach or even outperform traditional solvers. However, existing methods overlook an important distinction: CO problems differ from other traditional problems in that they focus solely on the optimal solution provided by the model within a specific length of time, rather than considering the overall quality of all solutions generated by the model. In this paper, we propose Leader Reward and apply it during two different training phases of the Policy Optimization with Multiple Optima (POMO) model to enhance the model's ability to generate optimal solutions. This approach is applicable to a variety of CO problems, such as the Traveling Salesman Problem (TSP), the Capacitated Vehicle Routing Problem (CVRP), and the Flexible Flow Shop Problem (FFSP), but also works well with other POMO-based models or inference phase's strategies. We demonstrate that Leader Reward greatly improves the quality of the optimal solutions generated by the model. Specifically, we reduce the POMO's gap to the optimum by more than 100 times on TSP100 with almost no additional computational overhead.