MatNet
Neural network for combinatorial optimization problems given as a matrix, such as ATSP and flexible flow shop.
Reinforcement learning and control · 1,127 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
- 5.6M
- Operations
- 1,127
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS 2021
- Cited by
- 43 (as of 30 October 2026)
- Authors
- Yeong-Dae Kwon, Jinho Choo, Iljoo Yoon and others
- Source
- GitHub: yd-kwon/MatNet
- 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
- m18343
- Graph hash
- 2b8d526cf2b14206ff4ee949d73a7fa7b2f549637fe80047c3685a85edf49db3
- Skeleton hash
- 08b726dcec0714ba20390dafb05672b54d641fd6c99b8d9c9f2da09d7b710375
- Architecture hash
- d678ae5ab07738385aaf65929db7996cf4f8ea4518c4d03ef8281f5c1878d600
- Diagram SHA-256
- 961501915ffac3b510bb7ee5d0dd1896d00fec80191e7486af5e8ec4630bb7cb
- 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
MatNet, the Matrix Encoding Network, is a neural network for combinatorial optimization problems whose parameters come as a matrix. The paper starts from the observation that many practically important problems can be specified as a matrix of parameters quantifying the relationship between two groups of items. It states that no neural network model at the time took such matrix-style relationship data as input, which had kept these problems out of reach for machine learning engineers.
Using an end-to-end model based on MatNet, the authors solve two such problems, the asymmetric traveling salesman problem (ATSP) and the flexible flow shop problem (FFSP), and describe this as the earliest neural approach to them. For the class of FFSP they tested, the paper reports far better empirical performance than any method known at that date, neural or not.
The reference implementation is written in PyTorch and provides code for both problems. Trained ATSP models ship with the code, while the FFSP models are offered as separate downloads because their files are too large to upload. As published, the training script is set to problems of size N=20.
Key idea. MatNet is a neural network that takes matrix-style relationship data as input, and the paper uses it to solve asymmetric traveling salesman and flexible flow shop problems.
- MatNet
- Matrix Encoding Network
- neural combinatorial optimization
- combinatorial optimization
- asymmetric traveling salesman problem
- ATSP
- flexible flow shop problem
- FFSP
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kwon2021matrixencodingnetworksneural,
title={Matrix Encoding Networks for Neural Combinatorial Optimization},
author={Yeong-Dae Kwon and Jinho Choo and Iljoo Yoon and Minah Park and Duwon Park and Youngjune Gwon},
year={2021},
eprint={2106.11113},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2106.11113},
}