HackerPapers

arXiv:1506.03134stat.ML

Pointer Networks

Oriol Vinyals, Meire Fortunato, Navdeep Jaitly

Abstract

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.

arXiv comments
Journal reference
DOI
Subjects
stat.MLMachine Learning (Statistics) cs.CGComputational Geometry cs.LGMachine Learning cs.NENeural and Evolutionary Computing

On Hacker News

Linked by 5 identifiable commenters in 6 comments across 5 threads, from Mar 2016 to Jul 2026.

Comments linking this paper, per year.

Discussed in comments5 threads

    • https://colah.github.io/posts/2015-08-Understanding-LSTMs/ https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436... https://papers.nips.cc/paper_files/paper/2012/file/c399862d3... https://arxiv.org/pdf/1512.03385 https://arxiv.org/pdf/1511.07122…

      gooobView on HNParent context

    • No need stupid moving texts. CS231n: Convolutional Neural Networks for Visual Recognition - https://cs231n.github.io/ The Unreasonable Effectiveness of Recurrent Neural Networks - https://karpathy.github.io/2015/05/21/rnn-effectiveness/ Understanding LSTM Networks…

      cute_boiView on HNParent context

    • a backup just in case https://nlp.seas.harvard.edu/annotated-transformer/ https://scottaaronson.blog/?p=762 https://karpathy.github.io/2015/05/21/rnn-effectiveness/ https://colah.github.io/posts/2015-08-Understanding-LSTMs/ https://arxiv.org/pdf/1409.2329.pdf…

      is_trueView on HNParent context

    • >Deep learning is still mere perception. It doesn't handle memory or processing, There's more going on than convolutional neural nets. Architectures with memory and attention mechanisms do exist. As examples: https://arxiv.org/abs/1506.03134…

      zardoView on HNParent context

  1. Fizz Buzz in Tensorflow 1 comment
    • Well, there is a variety of possible answers here. Giving the direct integer ("1", "23") to a simple deep network won't work. - RNN with LSTM might be a better approach, since it will more based on the value of the ordered bits than their "disposition", and could scale to an…

      BenderVView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.