Papers › Pointer Networks

Pointer Networks

9 Jun 2015NeurIPS 2015 12arXiv:1506.03134archive 2025-07-28

Oriol Vinyals, Meire Fortunato, Navdeep Jaitly

We introduce a new neural architecture to learn the conditional probability of an output sequence with elements that are discrete tokens corresponding to positions in an input sequence. Such problems cannot be trivially addressed by existent approaches such as sequence-to-sequence and Neural Turing Machines, because the number of target classes in each step of the output depends on the length of the input, which is variable. Problems such as sorting variable sized sequences, and various combinatorial optimization problems belong to this class. Our model solves the problem of variable size output dictionaries using a recently proposed mechanism of neural attention. It differs from the previous attention attempts in that, instead of using attention to blend hidden units of an encoder to a context vector at each decoder step, it uses attention as a pointer to select a member of the input sequence as the output. We call this architecture a Pointer Net (Ptr-Net). We show Ptr-Nets can be used to learn approximate solutions to three challenging geometric problems -- finding planar convex hulls, computing Delaunay triangulations, and the planar Travelling Salesman Problem -- using training examples alone. Ptr-Nets not only improve over sequence-to-sequence with input attention, but also allow us to generalize to variable size output dictionaries. We show that the learnt models generalize beyond the maximum lengths they were trained on. We hope our results on these tasks will encourage a broader exploration of neural learning for discrete problems.

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="1506.03134")

Code

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

By repository: community (archive-listed): 16 samples from 3 repositories, 2 ran; 7 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

21 repositories listed; official and paper-mentioned ones first.

Guillem96/pointer-nn-pytorch mentioned on GitHubpytorch report
Howardhuang98/Pointer_network mentioned on GitHubtf report
KolodziejczykWaldemar/universal-ptr-network mentioned on GitHubpytorchMIT report
NTT123/pointer-networks mentioned on GitHubjaxMIT report
Nina-Konovalova/TSP-RL-Skoltech_project mentioned on GitHubpytorch report
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
danifuertes/top_transformer mentioned on GitHubpytorchMIT report
gchaperon/pointer-networks mentioned on GitHubpytorchMIT report
mits58/Pointer-Networks mentioned on GitHubMIT report
rizwan09/paper mentioned on GitHub report
sblayush/Tensorflow-Attention mentioned on GitHubtf report
sblayush/summarization mentioned on GitHubtf report
shirgur/pointernet mentioned on GitHubpytorch report
thomlake/pytorch-attention mentioned on GitHubpytorchBSD-2-Clause report
victorDD1/PointerNet 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

23 samples harvested; 9 ran; 3 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.

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

Licence: 7 of the 23 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 3 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

add_argument_group devsisters/pointer-network-tensorflow/config.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 6d80592fd6d47b2d · report
str2bool devsisters/pointer-network-tensorflow/config.py community (archive-listed) ran · violated contract MIT (permissive) · 248284f69adfeaad · report
compute_convex_hull NTT123/pointer-networks/utils.py community (archive-listed) unverified MIT (permissive) · 808b77f0d68bfa3b · report
decoder_rnn devsisters/pointer-network-tensorflow/layers.py community (archive-listed) unverified MIT (permissive) · 1d70016e058df0c1 · report
dot thomlake/pytorch-attention/attention/attention.py community (archive-listed) unverified BSD-2-Clause (permissive) · 9cd6b612674a71c5 · report
download_file_from_google_drive devsisters/pointer-network-tensorflow/download.py community (archive-listed) unverified MIT (permissive) · 20f31737837ced8e · report
fill_context_mask thomlake/pytorch-attention/attention/attention.py community (archive-listed) unverified BSD-2-Clause (permissive) · 01ecdf1ea44311c2 · report
generate_one_example devsisters/pointer-network-tensorflow/data_loader.py community (archive-listed) unverified MIT (permissive) · 144491703e61223e · report
get_confirm_token devsisters/pointer-network-tensorflow/download.py community (archive-listed) unverified MIT (permissive) · 135b3dc835ffe6ad · report
get_left_most_point NTT123/pointer-networks/utils.py community (archive-listed) unverified MIT (permissive) · 8ff08ad475614f0a · report
index_matrix_to_pairs devsisters/pointer-network-tensorflow/layers.py community (archive-listed) unverified MIT (permissive) · 91e306bf0f9b04bc · report
length devsisters/pointer-network-tensorflow/data_loader.py community (archive-listed) unverified MIT (permissive) · f9e1ca751b8d078c · report
mask3d thomlake/pytorch-attention/attention/attention.py community (archive-listed) unverified BSD-2-Clause (permissive) · fc2318f83f2edd7e · report
on_left_side NTT123/pointer-networks/utils.py community (archive-listed) unverified MIT (permissive) · 0719b12a34b7a290 · report
solve_tsp_dynamic devsisters/pointer-network-tensorflow/data_loader.py community (archive-listed) unverified MIT (permissive) · cd74738f6e87dded · report
trainable_initial_state devsisters/pointer-network-tensorflow/layers.py community (archive-listed) unverified MIT (permissive) · 4719eb1221618d56 · report
PreProcessOutput identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · b337a9636b389167 · report
PreProcessOutput_batch identical code first harvested elsewhere ran · fixture could not drive it fingerprinted licence of this copy not recorded · d88d8c4f9d624404 · report
Reward identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 7c3324bc44451062 · report
batch identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 796b2511367209ba · report
sample identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 8b887331144b7967 · report
sequence_mask identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 0c43e7290e581e42 · report
tensor_sort identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 926944485fdd4f48 · report

Tasks

Combinatorial OptimizationPoint Cloud Completion

Datasets

Introduced by this paper, per the archive.

PTR_NETS

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Point Cloud Completion ShapeNet TestNet Chamfer Distance 100 #9 of 11 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Pointer Network

LSTMPointer NetworkSigmoid ActivationSoftmaxTanh Activation

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