What is the bottleneck of traditional sequence-to-sequence encoder-decoder architectures with fixed context vectors?

Last updated 22 November 2026

The encoder must compress the entire source sequence into one fixed-size vector, and the decoder sees only that vector. This becomes an information bottleneck: long or complex inputs lose detail, and translation quality degrades sharply as sentence length grows.

  • Fixed capacity, variable input:

    • A 5-word and a 50-word sentence both map to the same-sized final hidden state, so information per token shrinks as length grows.

    • Empirically, RNN encoder-decoders (Cho et al., 2014) performed well on short sentences and degraded quickly on long ones.

  • Recency bias

  • The final hidden state is dominated by recent tokens; early tokens must survive many recurrent updates, which is hard even with LSTM/GRU gating.

  • No selective access: Every decoding step uses the same summary, although different output words depend on different source words (e.g. alignment in translation).

  • Long gradient paths: Errors at the decoder must backpropagate through the whole encoder chain to reach early tokens, which worsens vanishing gradients.

  • The fix: attention (Bahdanau et al., 2014): Keep all encoder hidden states and build a fresh, weighted context vector at each decoding step. Transformers then generalized this idea to attention everywhere.

  • https://quiddityml.com/blog/what-is-attention-in-deep-learning/
  • https://datarekha.com/nlp/rnn-attention/
  • https://datarekha.com/nlp/seq2seq/
All Transformers interview questions