liveBook · Manning

RPW encoder

As explained in Sutskever's List

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.

The Read-Process-Write (RPW) encoder addresses the sensitivity to input order found in sequential models. It embeds set elements in shared memory, then uses an LSTM controller and attention to read and refine that memory into an order-invariant representation. section 5.6

Three sentence orderings

The examples compare “This is a sentence,” its reverse, and a fixed three-word reversal that disrupts natural word groupings. These orderings illustrate how arbitrary rearrangement can make patterns harder to learn. section 5.6

Figure 5.9 Read-Process-Write reads an input sequence into memory, processes it with an LSTM-based recurrent controller, and writes an output sequence. The Read module encodes the inputs, the Process module iteratively updates a hidden state while attending to memory, and the Write module generates outputs one token at a time, feeding its own predictions back as inputs. The arrows between the decoder’s outputs highlight the autoregressive loop, where each generated token influences the next. Used with permission granted by the lead author (Oriol Vinyals).
figure

See how the encoder reads inputs into memory, iteratively processes them with attention, and writes outputs. section 5.6

How Sutskever's List covers it

How deep it goes
Traces shared-memory embedding, iterative attention, and memory refinement through the read, process, and write stages.
Examples
Compares natural, reversed, and fixed three-word-reversal orderings of a sentence.
What you can do after
Understand how shared memory and attention help limit sensitivity to input ordering.
How it connects
Connects attention and LSTMs to pointer networks, contrasting representational memory with memory used for output pointing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Sutskever's List. The section links point to the parts of the book it draws on.