Skip to main content
QUICK REVIEW

[Paper Review] Matrix Encoding Networks for Neural Combinatorial Optimization

Yeong‐Dae Kwon, Jinho Choo|arXiv (Cornell University)|Jun 21, 2021
Metaheuristic Optimization Algorithms ResearchComputer Science36 references16 citations
TL;DR

This paper introduces Matrix Encoding Network (MatNet), a deep learning architecture designed to encode matrix-structured relationship data in combinatorial optimization problems. By processing distance or interaction matrices between two item sets, MatNet enables end-to-end neural solvers for previously unsolved problems like asymmetric TSP and flexible flow shop scheduling, achieving near-optimal solutions significantly outperforming traditional MIP and metaheuristic methods.

ABSTRACT

Machine Learning (ML) can help solve combinatorial optimization (CO) problems better. A popular approach is to use a neural net to compute on the parameters of a given CO problem and extract useful information that guides the search for good solutions. Many CO problems of practical importance can be specified in a matrix form of parameters quantifying the relationship between two groups of items. There is currently no neural net model, however, that takes in such matrix-style relationship data as an input. Consequently, these types of CO problems have been out of reach for ML engineers. In this paper, we introduce Matrix Encoding Network (MatNet) and show how conveniently it takes in and processes parameters of such complex CO problems. Using an end-to-end model based on MatNet, we solve asymmetric traveling salesman (ATSP) and flexible flow shop (FFSP) problems as the earliest neural approach. In particular, for a class of FFSP we have tested MatNet on, we demonstrate a far superior empirical performance to any methods (neural or not) known to date.

Motivation & Objective

  • To address the lack of neural network models capable of processing matrix-form relationship data in combinatorial optimization problems.
  • To enable end-to-end deep learning-based solvers for classical NP-hard problems such as asymmetric TSP and flexible flow shop scheduling, which have not been previously solved with neural networks.
  • To demonstrate that a learned neural heuristic based on MatNet can outperform established operations research methods, including mixed-integer programming and metaheuristics, in both solution quality and inference speed.
  • To provide a permutation-invariant, scalable, and general-purpose encoder for matrix-type data that captures global structural relationships between two distinct sets of items.

Proposed method

  • MatNet processes a matrix $\mathbf{D} \in \mathbb{R}^{M \times N}$ representing pairwise relationships between two unordered item sets $\tilde{A}$ and $\tilde{B}$, preserving permutation invariance across rows and columns.
  • The model employs a dual-branch encoder with shared weights to embed items from both sets, using multi-head attention and feed-forward networks to aggregate relational information across the matrix.
  • It applies learnable positional encodings to handle the relative ordering of items, while maintaining invariance to row and column permutations through symmetric aggregation.
  • The final representations of items in $\tilde{A}$ and $\tilde{B}$ are used as input to a reinforcement learning policy network for greedy solution construction in end-to-end training.
  • The framework supports multi-feature matrices (e.g., $f > 1$) by processing each feature channel independently before fusion, enabling modeling of complex relationships.
  • The model is trained via reinforcement learning with a policy gradient objective, optimizing for makespan minimization in scheduling and tour length minimization in TSP.

Experimental results

Research questions

  • RQ1Can a deep neural network effectively encode matrix-structured data representing pairwise relationships between two unordered sets of items in combinatorial optimization problems?
  • RQ2Can MatNet enable end-to-end neural solvers to achieve state-of-the-art performance on classical NP-hard problems such as asymmetric TSP and flexible flow shop scheduling?
  • RQ3Does a learned neural heuristic based on MatNet outperform traditional operations research methods, including mixed-integer programming and metaheuristics, in solution quality and inference speed?
  • RQ4To what extent does MatNet generalize across different problem instances and scales, particularly in problems with dense, fixed matrix structures?

Key findings

  • For flexible flow shop scheduling (FFSP), MatNet-based reinforcement learning achieved a mean makespan of 89.7 on 100-job instances, outperforming all conventional methods, including MIP and metaheuristics, which failed to find valid solutions within 600 seconds.
  • On 50-job FFSP instances, MatNet achieved a mean makespan of 49.6 with inference time of only 8 minutes per instance, compared to 6 hours for CPLEX with 600-second timeout.
  • In the asymmetric TSP, MatNet achieved a mean tour length of 51.5 on 100-city instances with inference time of just 14 seconds, significantly faster than baseline methods.
  • Even under extended time budgets (up to 48 hours), conventional OR methods like CPLEX and PSO could not surpass MatNet’s performance, confirming its superiority in solution quality.
  • The MatNet-based model achieved a 27.3% gap to optimal solution on 20-job FFSP instances, improving to 25.4% with 128x data augmentation, demonstrating strong scalability and generalization.
  • The model’s performance was robust across different problem sizes and configurations, with consistent superiority over both heuristic and exact methods in both runtime and solution quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.