cs.LGMay 20, 2025

Learning with Local Search MCMC Layers

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

Abstract

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

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Regularized Large Neighborhood Search

    Jun 1, 2026Germain Vivier-Ardisson, Laurent Demonet, Axel Parmentier +1Markov Chain Monte CarloMetaheuristic Optimization

  2. Recurrent State Encoders for Efficient Neural Combinatorial Optimization

    Sep 5, 2025Tim Dernedde, Daniela Thyssens, Lars Schmidt-ThiemeRecurrent Neural NetworksCombinatorial Optimization

  3. Leader Reward for POMO-Based Neural Combinatorial Optimization

    May 22, 2024Chaoyang Wang, Pengzhi Cheng, Jingze Li +1Traveling Salesperson ProblemReward Shaping