Papers › Neural Combinatorial Optimization with Reinforcement Learning

Neural Combinatorial Optimization with Reinforcement Learning

29 Nov 2016arXiv:1611.09940archive 2025-07-28

Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, Samy Bengio

This paper presents a framework to tackle combinatorial optimization problems using neural networks and reinforcement learning. We focus on the traveling salesman problem (TSP) and train a recurrent network that, given a set of city coordinates, predicts a distribution over different city permutations. Using negative tour length as the reward signal, we optimize the parameters of the recurrent network using a policy gradient method. We compare learning the network parameters on a set of training graphs against learning them on individual test graphs. Despite the computational expense, without much engineering and heuristic designing, Neural Combinatorial Optimization achieves close to optimal results on 2D Euclidean graphs with up to 100 nodes. Applied to the KnapSack, another NP-hard problem, the same method obtains optimal solutions for instances with up to 200 items.

PaperPDFCodeCode 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="1611.09940")

Code

Syntology Ran 6 of 20 code samples harvested from 5 repositories linked to this paper; 14 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 2 ran · fixture could not drive it.

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

Rintarooo/TSP_DRL_PointerNet mentioned on GitHubpytorchMIT report
Rintarooo/TSP_DRL_PtrNet mentioned on GitHubpytorch report
Rintarooo/TSP_RL_Pointer_Actor_Critic mentioned on GitHubpytorchMIT report
abdullah-al-masud/rl-optimize mentioned on GitHubpytorchMIT report
ahottung/EAS mentioned on GitHubpytorch report
chaitjo/learning-tsp mentioned on GitHubpytorch report
longkangli/pfss-il mentioned on GitHubpytorch report
pemami4911/neural-combinatorial-rl-pytorch mentioned on GitHubpytorchMIT 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

20 samples harvested; 6 ran; 1 honoured the contract we drafted; 14 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.

1ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
2ran · fixture could not drive it
14unverified

Licence: 5 of the 20 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 5 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.

PreProcessOutput JoseVillagranE/Pointer-Networks/TSP.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · b337a9636b389167 · report
PreProcessOutput_batch JoseVillagranE/Pointer-Networks/RLtraining.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · d88d8c4f9d624404 · report
Reward JoseVillagranE/Pointer-Networks/RLtraining.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 7c3324bc44451062 · report
sequence_mask JoseVillagranE/Pointer-Networks/pointer_network.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 0c43e7290e581e42 · report
str2bool pemami4911/neural-combinatorial-rl-pytorch/trainer.py community (archive-listed) ran · violated contract MIT (permissive) · 248284f69adfeaad · report
tensor_sort JoseVillagranE/Pointer-Networks/RLtraining.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 926944485fdd4f48 · report
comparison_table abdullah-al-masud/rl-optimize/utils.py community (archive-listed) unverified MIT (permissive) · 131a59fa13a6da38 · report
create_data_model abdullah-al-masud/rl-optimize/tsp_utils.py community (archive-listed) unverified MIT (permissive) · c5bf8b09fc4c7356 · report
create_dataset pemami4911/neural-combinatorial-rl-pytorch/sorting_task.py community (archive-listed) unverified MIT (permissive) · 06248b1d4ce6e73f · report
download_file_from_google_drive pemami4911/neural-combinatorial-rl-pytorch/tsp_task.py community (archive-listed) unverified MIT (permissive) · 20f31737837ced8e · report
get_2city_distance Rintarooo/TSP_DRL_PointerNet/env.py community (archive-listed) unverified MIT (permissive) · cb53b718ef642545 · report
get_confirm_token pemami4911/neural-combinatorial-rl-pytorch/tsp_task.py community (archive-listed) unverified MIT (permissive) · 135b3dc835ffe6ad · report
get_solution abdullah-al-masud/rl-optimize/tsp_utils.py community (archive-listed) unverified MIT (permissive) · 1080a3f43ce02c26 · report
inference_config abdullah-al-masud/rl-optimize/rlutils.py community (archive-listed) unverified MIT (permissive) · 603daec7955e6b32 · report
load_pkl Rintarooo/TSP_DRL_PtrNet/config.py community (archive-listed) unverified MIT (permissive) · cdefd51f0daf2843 · report
make_big abdullah-al-masud/rl-optimize/rlutils.py community (archive-listed) unverified MIT (permissive) · 2a2a3a02703e0cc3 · report
prepare_tsp_config abdullah-al-masud/rl-optimize/config.py community (archive-listed) unverified MIT (permissive) · d8ef9d8f7e4a2e47 · report
reward pemami4911/neural-combinatorial-rl-pytorch/sorting_task.py community (archive-listed) unverified MIT (permissive) · da119d24707d7943 · report
reward pemami4911/neural-combinatorial-rl-pytorch/tsp_task.py community (archive-listed) unverified MIT (permissive) · 570a2842c2ff2ab8 · report
solve_agent abdullah-al-masud/rl-optimize/rlutils.py community (archive-listed) unverified MIT (permissive) · 175f1ee7b5d44f2d · report

Tasks

Combinatorial OptimizationReinforcement LearningReinforcement Learning (RL)Traveling Salesman Problemreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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