MDAM
An attention model for routing problems with one encoder and several decoders that learn different policies.
Reinforcement learning and control · 8,459 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 1.2M
- Operations
- 8,459
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- AAAI 2021
- Cited by
- 139 (as of 24 October 2026)
- Authors
- Liang Xin, Wen Song, Zhiguang Cao, Jie Zhang
- Source
- rl4co 0.7.0
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18064
- Graph hash
- a7efd31f8f326d2c81de6aeeca7592acb11cf937632d8e59997c88596fe89da0
- Skeleton hash
- ef68713b0eaeccd807b44e44e245a6a01abe8552f0e14095c6de2d681f9327b3
- Architecture hash
- 39cbf07f9534f18b6afc3e8f78f64424c1178c8b2c2f3ef58b3d5c39a00a4151
- Diagram SHA-256
- c0c0324127e207ae2bc8125c85a15566b59569568d2fd77f297d9710882f6e78
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MDAM, the Multi-Decoder Attention Model, learns to construct solutions to vehicle routing problems and is trained with deep reinforcement learning. Its main design choice is to train several different policies instead of one, to raise the chance of finding a good solution.
The network has one encoder and several decoders that share a structure but not parameters. At each construction step, every decoder takes the node embeddings and outputs a probability of visiting each valid node. During training, a Kullback-Leibler divergence loss pushes the decoders toward different distributions over the next node. The top encoder layer is the Embedding Glimpse layer, which masks out the attention weights of nodes that no longer matter as an approximation of re-embedding the remaining nodes.
In the paper's setup the encoder has 3 layers with 128-dimensional features and 8 attention heads, the top one being the Embedding Glimpse layer. The number of decoders is 5. At search time, a beam search keeps a separate beam for each decoder. The paper runs experiments on six routing problems. The code is developed from the attention-learn-to-route repository of Kool, van Hoof and Welling.
Key idea. MDAM trains multiple decoders as diverse routing policies and adds an Embedding Glimpse layer that gives each policy more informative embeddings.
- MDAM
- Multi-Decoder Attention Model
- Embedding Glimpse
- vehicle routing
- TSP
- CVRP
- neural combinatorial optimization
- construction heuristics
- deep reinforcement learning routing
- beam search
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{xin2020multidecoderattentionmodelembedding,
title={Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problems},
author={Liang Xin and Wen Song and Zhiguang Cao and Jie Zhang},
year={2020},
eprint={2012.10638},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2012.10638},
}