Paper commentary
Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizon
Machine learning can replace hand-made heuristics in combinatorial optimization algorithms
- Problem Combinatorial optimization problems are NP-hard, so algorithms rely on hand-crafted heuristics for decisions that are too expensive or ill-defined to compute. Expert knowledge is hard to write down and often fits only the structures the community has studied.
- Method The authors let a learned policy make specific decisions inside a combinatorial optimization algorithm, while the algorithm keeps its structure. The policy is trained by imitating an expert or by learning from rewards.
- Results The survey sorts recent ML-for-CO work into imitation and experience settings, and argues that learned approximations can keep theoretical guarantees.
Why hard CO decisions stay with heuristics
Combinatorial optimization (CO) problems are NP-hard, and a polynomial-time algorithm for them is considered unlikely. They do so by exploiting special structure, such as the geometry of Euclidean TSPs, and by tuned parameters that experts accumulate.
That expert knowledge is hard to write down, and algorithms often fit only the structures the community has studied. The authors therefore ask how a learner could choose decisions for the distribution of instances a user actually faces. Their running example is a delivery company in Montreal that solves TSPs whose customers follow a recurring pattern.
Writing that pattern down explicitly is tedious and does not scale.
Learning the decisions, not the whole solver
The key idea is to let a learned model make particular algorithmic decisions inside a CO algorithm, so the algorithm itself stays intact. The authors call the decision-making function a policy, which returns an action from all the information available at that point. They frame the setting as a Markov decision process, where the algorithm's internal state is the environment.
The learning has two motivations, and each leads to a different training setting. In the first, an expert already knows which decisions to make, but a heavy computation should be replaced by a fast approximation. In the second, expert knowledge is unsatisfactory, so the policy is learned by exploring decisions and keeping the ones that perform best.
The authors argue that approximation need not remove theoretical guarantees, because the CO structure acts as a prior and splits the task into smaller learning tasks.
Imitation versus trial-and-error learning
In imitation, the policy is trained to reproduce an expert's action at each decision, by shrinking the discrepancy between the two actions. The learner is not trained to optimize a performance measure, so it simply mimics the expert. Because of this, imitation alone can at most marginally outperform the expert whose decisions are copied.
In the experience setting no expert is involved, and the policy is trained from a reward signal that may be delayed. The goal is to maximize the expected sum of future rewards, and the authors note that bandit, genetic or local search methods can also serve. The authors contrast the two settings this way: imitation teaches what to do, while reinforcement learning encourages quick accumulation of rewards.
Examples of demonstration-based decisions
Baltean-Lugojan et al. (2018) train a neural network to approximate the lower bound gain from cutting planes on non-convex quadratic programs. The network approximates an SDP relaxation that is strong but time-consuming, so it can select submatrices quickly. Cutting plane selection is therefore the policy that is ultimately learned.
Strong branching is accurate for choosing branching variables but is computationally expensive, because it solves many LP relaxations at each decision. Marcos Alvarez et al. approximate it with a decision tree, while Khalil et al. (2016) learn a linear model on the fly for each instance.
ML inside the algorithm rather than in place of it
In algorithm configuration, ML supplies a parametrization or a choice that a CO algorithm then uses. Kruber et al. (2017) predict whether a Dantzig-Wolfe decomposition will make solving faster. Bonami et al. (2018) predict whether linearizing a mixed-integer quadratic problem will solve faster than a QP branch-and-bound.
The authors read the parametrization in a broad sense, so it can also cover generating candidates that a CO algorithm then refines. Mahmood et al. (2018) use a GAN to produce radiation plans that inverse optimization then makes feasible.
A second pattern calls one model repeatedly inside a master algorithm, such as branch-and-bound. Khalil et al. (2017b) predict whether running a given heuristic will beat the best solution found so far. Because the model only selects valid cuts, any cut it selects remains valid and the algorithm stays exact.
Choosing the distribution of training instances
The authors model the problems of interest as a set of instances I with a probability distribution P over I. A policy is learned from a finite sample of this distribution, so it must generalize to unseen instances from the same distribution. A learned predictor generalizes well within its training distribution but has more difficulty outside it.
Choosing how broad the distribution should be is hard, for example whether a company expanding to other cities needs one policy per city. For synthetic distributions the authors suggest two axes, structure and size. Gasse et al. (2019) assess their method on three distributions, each with a fixed problem size, and then push the test distributions to larger sizes.
The authors describe the answer to whether the model generalizes to larger sizes as largely affirmative.
Single-instance learning trains a policy from scratch for each new instance, so learning time counts toward solving time. Khalil et al. (2016) follow this approach by learning on strong branching at the top of the tree and using the policy at the bottom.
Exactness, feasibility and scaling
A learned heuristic gives no guarantee of optimality, and the authors stress that feasibility is even more pressing. A learned bound used inside branch-and-bound can overestimate lower bounds and cause invalid pruning. Hottung et al. (2017) fall in this category, so their algorithm is not exact.
Networks trained by gradient descent must stay differentiable, which makes hard constraints such as permutations difficult. Pointer networks and the Sinkhorn layer are complex architectures built to make a network output a permutation. Learned TSP models degrade as instances grow beyond the sizes seen during training.
Historical data suits mimicking a behavior that the data already reflects. For unknown problems, generating instances is hard, and Malitsky et al. (2016) generate boolean satisfiability instances from the same distribution as industrial ones.
Where the field goes next
The authors suggest imitation pays off mainly when the learned policy is much faster to compute than the expert. Models trained with a reward signal could outperform current policies, given enough training and a supervised initialization. They also suggest combining ML with current CO algorithms, so that the theoretical guarantees and state-of-the-art algorithms remain available.
The authors still describe the approaches as at an exploratory level of deployment.
Paper info
- Authors
- Yoshua Bengio, Andrea Lodi, Antoine Prouvost
- Venue
- arXiv · Preprint
- First published
- 2018-11-15
- Added
- 2026-11-12
- Updated
- 2020-3-12
- Version
- v2
- arXiv
- 1811.06128
- Category
- cs.LG · stat.ML
- Original paper terms
- CC BY-NC-SA 4.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Yoshua Bengio, Andrea Lodi, Antoine Prouvost (2018). Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizon. arXiv:1811.06128v2. https://arxiv.org/abs/1811.06128v2
BibTeX
@misc{bengio2018machine,
title = {{Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizon}},
author = {Yoshua Bengio and Andrea Lodi and Antoine Prouvost},
year = {2018},
eprint = {1811.06128},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1811.06128v2}
}