Pointer Network
A Pointer Network is an attention-based sequence-to-sequence neural architecture that outputs positions or elements selected from its input sequence.
Optimization Algorithms: AI techniques for design, planning, and control problems
A pointer network is a sequence-to-sequence neural architecture that outputs positions or elements from its input sequence through attention-based pointers.
- How it is used
- Uses input-pointing sequence models for end-to-end combinatorial optimization.
- How deep it goes
- Explains attention-based selection and encoder-decoder operation, then demonstrates supervised training and evaluation with helper implementations.
- Examples
- Uses convex hull point selection and a traveling salesman problem to illustrate variable-sized inputs and outputs.
- What you can do after
- Apply it via PyTorch and ConvexNet to train and evaluate a convex hull predictor.
Sutskever's List
A Pointer Network is an attention-based sequence model that selects positions in an input sequence as its outputs.
- How it is used
- Selects positions in variable-length inputs when outputs must come from the input rather than a fixed vocabulary.
- How deep it goes
- Defines attention as a distribution over input positions and outlines encoder-decoder operation, but gives no implementation derivation.
- Examples
- Uses convex-hull detection, Delaunay triangulation, traveling-salesperson tours, sorting, and scheduling as selection tasks.
- What you can do after
- Understand how attention can select input elements for combinatorial outputs that fixed-vocabulary decoding cannot directly represent.
Related concepts
- attentionuses · Attention is a neural-network mechanism that computes input-dependent relevance weights among representations and uses them to combine information for a context-dependent computation.
- Bahdanau attentionuses · Bahdanau attention is an attention mechanism that computes alignment weights between decoder states and encoder outputs in sequence-to-sequence translation.
- categorical distributionproduces · A categorical distribution is a discrete probability distribution over a finite set of mutually exclusive categories or outcomes.
- decoding strategyhas part · A decoding strategy is a procedure for converting an encoded or internal representation into a target output, including selecting tokens during sequence generation.
- encoderhas part · An encoder is a component or process that transforms input into an encoded or internal representation for subsequent processing, transmission, or decoding.
- RPW encodercontrasts with · The Read-Process-Write encoder is an encoder architecture that embeds set elements into shared memory and repeatedly reads and refines that memory with attention.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

