liveBook · Manning

Bidirectional encoder

As explained in Sutskever's List

A bidirectional encoder processes a sequence in both forward and backward directions to represent information from both contexts.

In neural machine translation, a bidirectional encoder processes the source sequence in both directions, capturing forward and backward context. This lets the model learn long-range alignments without reversing the input. section 5.7

Reversal versus two-direction encoding

Reversing the source improved unidirectional RNN encoders, but empirical comparisons found that bidirectional encoders outperformed unidirectional encoders even with reversal. The reversal advantage also declined as encoder depth increased. section 5.7

How Sutskever's List covers it

How deep it goes
Describes two-direction processing and its alignment benefit, but gives no implementation details.
Examples
Compares bidirectional encoders with reversed unidirectional encoders and notes the effect of encoder depth.
What you can do after
Evaluate encoder choices by comparing bidirectional processing with source reversal in unidirectional models.
How it connects
Links bidirectional encoders to recurrent neural networks, attention mechanisms, and positional encodings.

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.