don t until the final verb wait reinforcement learning
play

Dont Until the Final Verb Wait: Reinforcement Learning for - PowerPoint PPT Presentation

Dont Until the Final Verb Wait: Reinforcement Learning for Simultaneous Machine Translation Alvin Grissom II, He He, Jordan Boyd-Graber, John Morgan, and Hal Daum III http://www.umiacs.umd.edu/~alvin/simtrans University of Colorado,


  1. Don’t Until the Final Verb Wait: Reinforcement Learning for Simultaneous Machine Translation Alvin Grissom II, He He, Jordan Boyd-Graber, John Morgan, and Hal Daumé III http://www.umiacs.umd.edu/~alvin/simtrans University of Colorado, Boulder University of Maryland, College Park

  2. Real-time Interpretation Videoconference Nuremberg Trials 2

  3. Outline • SOV-SVO Simultaneous MT • Why this is difficult • Verb Prediction • Reinforcement Learning • Translation System • Experiments and Results • Related Work • Future Work 3

  4. Simultaneous Translation • Begin translating before a sentence ends. • First introduced on a large scale with Nuremberg Trials. • Requires judgments about when to translate fragments. • Skill learned from experience. 4

  5. Simultaneous Machine Translation • Most prior approaches have been rule- based. • We would like to use machine learning. • Difficult for humans, who must learn from experience. 5

  6. SOV-SVO Simultaneous Translation • Many languages (e.g., German, Japanese) are verb-final (SOV); other (e.g. English) are SVO. • Translator must wait for verb, or predict. 6

  7. Verb Prediction • Predict the final verb to produce a grammatical sentence. • We use language models to predict the main verb and next word in the sentence. 7

  8. Verb Prediction Apple ist zum wertvollsten Konzern aller Zeiten avanciert Nein, mit dem Virus ist es noch lange nicht getan Eine vielbefahrene Brücke in New Jersey wurde grundlos gesperrt Mit Drohen und Interpretieren ist es nicht getan Frankfurter Flughafen für Passagiere weitgehend gesperrt 8

  9. Verb Prediction Apple ist zum wertvollsten Konzern aller Zeiten avanciert Nein, mit dem Virus ist es noch lange nicht getan Eine vielbefahrene Brücke in New Jersey wurde grundlos gesperrt Mit Drohen und Interpretieren ist es nicht getan Frankfurter Flughafen für Passagiere weitgehend gesperrt 9

  10. Verb Prediction • Build a language model for each verb. • For any input text, x , we make a verb prediction: 10

  11. Verb Prediction • Most predictions will be incorrect. • Leads to terrible translations. 11

  12. Learn When to Trust Predictions • Learn under which circumstances to trust predictions. • Translate when confident and wait for more information otherwise. • Learn a policy , π , to do this. 12

  13. Reinforcement Learning for Simultaneous Machine Translation • State: • Observations (words), predictions (next word and verb) and prediction scores. • Actions: • WAIT for more words. • Input: Word. Output: None. • Translate with predicted VERB. • Input: Word, verb prediction: Output: translated segment with verb. • We can also predict the next word . • COMMIT to partial translation. • Input: word. Output: translated segment. 13

  14. Action Output Output: Ø WAIT Input: Mit dem Zug bin ich nach COMMIT Output: With the train I’m after Verb Prediction: gefahren VERB Output: I traveled by train to

  15. Reward • We want to capture translation quality and translation latency. • Optimal translations are both accurate and prompt . • Incrementalize (sentence-level) BLEU. • Score partial translations; sum their scores. 15

  16. Reward from Many Translations • Calculate BLEU score each time an action is executed. 16

  17. Reward from Many Translations • Sum weighted translations over course of sentence. • Higher scores earlier mean higher final score. 17

  18. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation Prediction He went to He went He went the store to the Bad Translation 18

  19. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 19

  20. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 20

  21. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 21

  22. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 22

  23. Policy Comparison Source Sentence T Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 23

  24. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 24

  25. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 25

  26. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 26

  27. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 27

  28. Policy Comparison Source Sentence T Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 28

  29. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 29

  30. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 30

  31. Policy Comparison Source Sentence β Er ist zum Laden gegangen Good Translation Psychic He went to the store Bad Translation Monotone He He to the store Good Translation He to the He to the store went Bad Translation Batch Good Translation He went to the store Bad Translation Policy Good Translation He Prediction He went to He went He went the store to the Bad Translation 31

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend