工作生活

Attention, Learn to Solve Routin

2019-06-30  本文已影响0人  MasterXiong

Attention, Learn to Solve Routing Problems

Wouter Kool, Herke van Hoof, Max Welling
University of Amsterdam
Published in ICLR 2019

Motivation

From a high-level perspective, there is a shift in learning paradigm from human engineering to machine learning in recent years.

Machine learning algorithms have replaced humans as the engineers of algorithms to solve various tasks.

For combinatorial optimization, exact methods and heuristics are two main approaches to make decisions.

Heuristics are typically expressed in the form of rules, which can be interpreted as policies to make decisions. We believe that these policies can be parameterized using DNNs, and be trained to obtain new and stronger algorithms for many different combinatorial optimization problems.

The objective of this paper is to design better models and better training methods to replace handcrafted heuristics by learning to route.

we propose to use a powerful model based on attention and train this model using REINFORCE with a simple but effective greedy rollout baseline.

The value of the proposed method is not to outperform existing human-designed heuristics on specific tasks, but to scale to different routing problems with high flexibility.

This is important progress towards the situation where we can learn strong heuristics to solve a wide range of different practical problems for which no good heuristics exist.

Attention Model

The attention model consists of an encoder and a decoder. The encoder is used to learn the representation of each node and the graph. The decoder is used to predict the routing.

Encoder

Decoder

Remarks: the graph structure seems only to be used to calculate the compatibility between different nodes by changing it to negative infinity for nonadjacent nodes?

REINFORCE With Greedy Rollout Baseline

Motivation

The goal of a baseline is to estimate the difficulty of the instance s. The difficulty of an instance can (on average) be estimated by the performance of an algorithm applied to it

Method

The baseline is defined as the cost of a solution from a deterministic greedy rollout of the policy defined by the best model so far.

The full training algorithm is shown in the figure below.

Experiments

Experimental Setup

Train:

Test:

Baseline:

Problems

Observation on Experimental Results

Conclusion

From a high-level perspective,

We believe that our method is a powerful starting point for learning heuristics for other combinatorial optimization problems defined on graphs, if their solutions can be described as sequential decisions.

Specifically, compared to previous work,

Compared to previous works, by using attention instead of recurrence (LSTMs) we introduce invariance to the input order of the nodes, increasing learning efficiency.

For future work,

Scaling to larger problem instances is an important direction for future research. Another challenge is that many problems of practical importance have feasibility constraints that cannot be satisfied by a simple masking procedure.

上一篇 下一篇

猜你喜欢

热点阅读