facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.18k stars 6.37k forks source link

NMT, What if we do not pass input for decoder? #1135

Closed guotong1988 closed 5 years ago

guotong1988 commented 5 years ago

For transformer-based neural machine translation (NMT), take English-Chinese for example, we pass English for encoder and use decoder input(Chinese) attend to encoder output, then final output.

What if we do not pass input for decoder and consider it as a 'memory' model for translation. Is it possible and what will happen?

It seems decoder could be removed and there only exist encoder. Could I do translation task like text generation? See: https://github.com/salesforce/ctrl/blob/master/generation.py https://einstein.ai/presentations/ctrl.pdf

Thank you!

guotong1988 commented 5 years ago

https://datascience.stackexchange.com/questions/60258/nmt-what-if-we-do-not-pass-input-for-decoder