Sequence to Sequence Learning with Neural Networks
Sutskever et al., 2014, Sequence to Sequence Learning with Neural Networks (Advances in Neural Information Processing Systems 27 (NIPS 2014))
Subscriber deck — free during early access
2 cards in “3.2 Decoding and Rescoring” · whole deck
3.2 Decoding and Rescoring
- How is seq2seq trained and decoded?Training maximizes \(\frac{1}{|\mathcal{S}|} \sum_{(T, S) \in \mathcal{S}} \log p(T \mid S)\) over the training set. Decoding searches for \(\arg\max_T p(T \mid S)\) with a left-to-right beam search keeping the \(B\) best prefixes; a hypothesis ending in ⟨EOS⟩ is complete.
- Sutskever et al., 2014, Sequence to Sequence Learning with Neural Networks (Advances in Neural Information Processing Systems 27 (NIPS 2014)), §3.2
- How much did beam size matter for seq2seq translation?Little: a beam of 1 (greedy) already worked well, and a beam of 2 gave most of the benefit. An ensemble of 5 LSTMs got 33.00 BLEU with beam 1, 34.50 with beam 2 and 34.81 with beam 12.
- Sutskever et al., 2014, Sequence to Sequence Learning with Neural Networks (Advances in Neural Information Processing Systems 27 (NIPS 2014)), §3.2
Source
- Ilya Sutskever, Oriol Vinyals and Quoc V. Le. 2014. Sequence to Sequence Learning with Neural Networks. In Advances in Neural Information Processing Systems 27 (NIPS 2014). https://papers.nips.cc/paper/2014/hash/5a18e133cbf9f257297f410bb7eca942-Abstract.html