Papers › Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer

Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer

6 Oct 2021NeurIPS 2021 12arXiv:2110.02544archive 2025-07-28

Yining Ma, Jingwen Li, Zhiguang Cao, Wen Song, Le Zhang, Zhenghua Chen, Jing Tang

Recently, Transformer has become a prevailing deep architecture for solving vehicle routing problems (VRPs). However, it is less effective in learning improvement models for VRP because its positional encoding (PE) method is not suitable in representing VRP solutions. This paper presents a novel Dual-Aspect Collaborative Transformer (DACT) to learn embeddings for the node and positional features separately, instead of fusing them together as done in existing ones, so as to avoid potential noises and incompatible correlations. Moreover, the positional features are embedded through a novel cyclic positional encoding (CPE) method to allow Transformer to effectively capture the circularity and symmetry of VRP solutions (i.e., cyclic sequences). We train DACT using Proximal Policy Optimization and design a curriculum learning strategy for better sample efficiency. We apply DACT to solve the traveling salesman problem (TSP) and capacitated vehicle routing problem (CVRP). Results show that our DACT outperforms existing Transformer based improvement models, and exhibits much better generalization performance across different problem sizes on synthetic and benchmark instances, respectively.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2110.02544")

Code

Syntology Ran 9 of 16 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran; community (archive-listed): 5 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yining043/VRP-DACT officialmentioned in papermentioned on GitHubpytorch report
yining043/TSP-improve mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 9 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
7unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

EmbeddingNet yining043/VRP-DACT/nets/actor_network.py official repository ran MIT (permissive) · d32eca8fe0b18c43 · report
FFandNormsubLayer yining043/VRP-DACT/nets/actor_network.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 850da12d3368c65a · report
MLP yining043/VRP-DACT/nets/actor_network.py official repository ran · metamorphic tier: invariant MIT (permissive) · 355814dd5ff90a73 · report
MultiHeadAttention yining043/VRP-DACT/nets/actor_network.py official repository ran MIT (permissive) · fa54d99ecac04864 · report
MultiHeadCompat yining043/VRP-DACT/nets/actor_network.py official repository ran · metamorphic tier: invariant MIT (permissive) · 211b65805e3d00f5 · report
MultiHeadDecoder yining043/VRP-DACT/nets/actor_network.py official repository ran MIT (permissive) · 30b971afd000a522 · report
Normalization yining043/VRP-DACT/nets/actor_network.py official repository ran · metamorphic tier: invariant MIT (permissive) · 08bc67177889a2b3 · report
Actor yining043/VRP-DACT/nets/actor_network.py official repository unverified MIT (permissive) · c62ea025f6578059 · report
MultiHeadAttentionsubLayer yining043/VRP-DACT/nets/actor_network.py official repository unverified MIT (permissive) · 500395d982e1b1bb · report
MultiHeadEncoder yining043/VRP-DACT/nets/actor_network.py official repository unverified MIT (permissive) · 8147e91b3d0fe9f1 · report
mySequential yining043/VRP-DACT/nets/actor_network.py official repository unverified MIT (permissive) · b48a3565db4b5491 · report
MultiHeadAttention yining043/TSP-improve/nets/attention_model.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 3e9c7f43e77628ea · report
MultiHeadDecoder yining043/TSP-improve/nets/attention_model.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 5b8ea40ba7cb0c66 · report
AttentionModel yining043/TSP-improve/nets/attention_model.py community (archive-listed) unverified MIT (permissive) · afcbe0b62b04095b · report
EmbeddingNet yining043/TSP-improve/nets/attention_model.py community (archive-listed) unverified MIT (permissive) · 5a3c7c6596133237 · report
MultiHeadAttentionLayer yining043/TSP-improve/nets/attention_model.py community (archive-listed) unverified MIT (permissive) · 1905f5c7465accec · report

Tasks

Traveling Salesman Problem

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections