Skip to main content

Improving Machine Translation and Summarization with the Sinkhorn Divergence

  • Conference paper
  • First Online:
Advances in Knowledge Discovery and Data Mining (PAKDD 2023)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 13938))

Included in the following conference series:

  • 641 Accesses

Abstract

Important natural language processing tasks such as machine translation and document summarization have made enormous strides in recent years. However, their performance is still partially limited by the standard training objectives, which operate on single tokens rather than on more global features. Moreover, such standard objectives do not explicitly consider the source documents, potentially affecting their alignment with the predictions. For these reasons, in this paper, we propose using an Optimal Transport (OT) training objective to promote a global alignment between the model’s predictions and the source documents. In addition, we present an original implementation of the OT objective based on the Sinkhorn divergence between the final hidden states of the model’s encoder and decoder. Experimental results over machine translation and abstractive summarization tasks show that the proposed approach has been able to achieve statistically significant improvements across all experimental settings compared to our baseline and other alternative objectives. A qualitative analysis of the results also shows that the predictions have been able to better align with the source sentences thanks to the supervision of the proposed objective.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    We remark that there are a few misaligned sentence pairs in the official release of this dataset, which end up affecting the test BLEU score. For more details, please refer to https://github.com/pytorch/fairseq/issues/4146. Herein, we report the BLEU scores on the corrected dataset.

  2. 2.

    https://github.com/pytorch/fairseq/tree/main/examples/translation.

  3. 3.

    https://nlp.stanford.edu/projects/nmt/data/iwslt15.en-vi.

  4. 4.

    https://huggingface.co/bert-base-multilingual-cased.

  5. 5.

    https://huggingface.co/datasets/gigaword.

References

  1. Alqahtani, S., Lalwani, G., Zhang, Y., Romeo, S., Mansour, S.: Using optimal transport as alignment objective for fine-tuning multilingual contextualized embeddings. In: EMNLP (2021)

    Google Scholar 

  2. Chen, L., et al.: Improving sequence-to-sequence learning via optimal transport. In: ICLR, pp. 1–16 (2019)

    Google Scholar 

  3. Chen, Y.C., Gan, Z., Cheng, Y., Liu, J., Liu, J.: Distilling knowledge learned in bert for text generation. In: ACL (2020)

    Google Scholar 

  4. Cuturi, M.: Sinkhorn distances: lightspeed computation of optimal transport. In: NIPS, pp. 2292–2300 (2013)

    Google Scholar 

  5. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: pre-training of deep bidirectional transformers for language understanding. In: NAACL (2019)

    Google Scholar 

  6. Feydy, J., Séjourné, T., Vialard, F.X., Amari, S., Trouvé, A., Peyré, G.: Interpolating between optimal transport and mmd using sinkhorn divergences. In: AISTATS (2019)

    Google Scholar 

  7. Garg, S., Peitz, S., Nallasamy, U., Paulik, M.: Jointly learning to align and translate with transformer models. In: EMNLP (2019)

    Google Scholar 

  8. Jauregi Unanue, I., Parnell, J., Piccardi, M.: Berttune: fine-tuning neural machine translation with bertscore. In: ACL/IJCNLP (2021)

    Google Scholar 

  9. Koehn, P.: Statistical significance tests for machine translation evaluation. In: EMNLP (2004)

    Google Scholar 

  10. Kusner, M.J., Sun, Y., Kolkin, N.I., Weinberger, K.Q.: From word embeddings to document distances. In: ICML (2015)

    Google Scholar 

  11. Lewis, M., et al.: Bart: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv abs/1910.13461 (2020)

    Google Scholar 

  12. Li, C., et al.: Improving text generation with student-forcing optimal transport. In: EMNLP, pp. 9144–9156 (2020)

    Google Scholar 

  13. Lin, C.Y.: Rouge: a package for automatic evaluation of summaries. In: ACL 2004 (2004)

    Google Scholar 

  14. Luong, T., Pham, H., Manning, C.D.: Effective approaches to attention-based neural machine translation. In: EMNLP (2015)

    Google Scholar 

  15. Nguyen, T., Luu, A.T.: Improving neural cross-lingual summarization via employing optimal transport distance for knowledge distillation. arXiv abs/2112.03473 (2021)

    Google Scholar 

  16. Papineni, K., Roukos, S., Ward, T., Zhu, W.J.: Bleu: a method for automatic evaluation of machine translation. In: ACL (2002)

    Google Scholar 

  17. Parnell, J., Unanue, I.J., Piccardi, M.: A multi-document coverage reward for relaxed multi-document summarization. In: ACL (2022)

    Google Scholar 

  18. Post, M.: A call for clarity in reporting bleu scores. In: WMT (2018)

    Google Scholar 

  19. Ranzato, M., Chopra, S., Auli, M., Zaremba, W.: Sequence level training with recurrent neural networks. CoRR abs/1511.06732 (2016)

    Google Scholar 

  20. Sennrich, R., Haddow, B., Birch, A.: Neural machine translation of rare words with subword units. arXiv abs/1508.07909 (2016)

    Google Scholar 

  21. Shaw, P., Uszkoreit, J., Vaswani, A.: Self-attention with relative position representations. In: NAACL (2018)

    Google Scholar 

  22. Shi, X., Huang, H., Jian, P., Tang, Y.-K.: Case-Sensitive Neural Machine Translation. In: Lauw, H.W., Wong, R.C.-W., Ntoulas, A., Lim, E.-P., Ng, S.-K., Pan, S.J. (eds.) PAKDD 2020. LNCS (LNAI), vol. 12084, pp. 662–674. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-47426-3_51

    Chapter  Google Scholar 

  23. Sutskever, I., Vinyals, O., Le, Q.V.: Sequence to sequence learning with neural networks. In: NIPS (2014)

    Google Scholar 

  24. Vaswani, A., et al.: Attention is all you need. arXiv abs/1706.03762 (2017)

    Google Scholar 

  25. Zhang, T., Kishore, V., Wu, F., Weinberger, K.Q., Artzi, Y.: BERTscore: evaluating text generation with BERT. arXiv abs/1904.09675 (2020)

    Google Scholar 

  26. Zhao, W., Peyrard, M., Liu, F., Gao, Y., Meyer, C.M., Eger, S.: Moverscore: text generation evaluating with contextualized embeddings and earth mover distance. arXiv abs/1909.02622 (2019)

    Google Scholar 

  27. Zhou, Q., Yang, N., Wei, F., Zhou, M.: Selective encoding for abstractive sentence summarization. In: ACL (2017)

    Google Scholar 

  28. Zhou, Q., Yang, N., Wei, F., Zhou, M.: Sequential copying networks. In: AAAI (2018)

    Google Scholar 

Download references

Acknowledgements

The first author is funded by the China Scholarship Council (CSC) from the Ministry of Education of the P. R. of China.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Massimo Piccardi .

Editor information

Editors and Affiliations

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (pdf 356 KB)

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, S., Unanue, I.J., Piccardi, M. (2023). Improving Machine Translation and Summarization with the Sinkhorn Divergence. In: Kashima, H., Ide, T., Peng, WC. (eds) Advances in Knowledge Discovery and Data Mining. PAKDD 2023. Lecture Notes in Computer Science(), vol 13938. Springer, Cham. https://doi.org/10.1007/978-3-031-33383-5_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33383-5_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33382-8

  • Online ISBN: 978-3-031-33383-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics