Skip to main content

Using Deep Learning for Implementing Paraphrasing in a Social Robot

  • Conference paper
  • First Online:
Ambient Intelligence—Software and Applications—13th International Symposium on Ambient Intelligence (ISAmI 2022)

Abstract

Social robotics is intended for interacting and communicating with people. This communication needs to be natural and fluid, similar to a human conversation. For instance, people do not always use exactly the same words when transmitting the same message in different situations. One way to imitate this is through paraphrase generation, allowing the robot to use different sentences while keeping the same meaning. In this paper we propose the application of deep learning models to generate these paraphrases in a social robot speaking in Spanish. This application has been integrated into the Mini robot both in English and Spanish, and can be run locally or from an external server. We integrated and evaluated 3 different models. The T5 and Pegasus Transformers have been considered as a base, and we have chosen three different models finetuned for paraphrase generation, one based on Pegasus, and the other two on T5 (Finetuned T5 and Parrot). Compared to the Parrot and Pegasus models, that provide similar results, the Finetuned T5 model can generate paraphrases that do not vary as much from the original sentence, but keep more of the meaning. However, the main advantage of the Finetuned T5 model is its average execution time, around one second faster than the other considered models.

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 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.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.

    https://huggingface.co/ceshine/t5-paraphrase-paws-msrp-opinosis.

  2. 2.

    https://huggingface.co/prithivida/parrot_paraphraser_on_T5.

  3. 3.

    https://huggingface.co/tuner007/pegasus_paraphrase.

  4. 4.

    https://youtube.com/shorts/rERpBROzhtw?feature=share.

  5. 5.

    https://youtube.com/shorts/WGWZ4NN6fz8?feature=share.

References

  1. Bannard, C., Callison-Burch, C.: Paraphrasing with bilingual parallel corpora. In: ACL’05, pp. 597–604. ACL, Michigan, USA (2005)

    Google Scholar 

  2. Egonmwan, E., Chali, Y.: Transformer and seq2seq model for paraphrase generation. In: WNGT, pp. 249–255. ACL, Hong Kong (2019)

    Google Scholar 

  3. Fenogenova, A.: Russian paraphrasers: paraphrase with transformers. In: BSNLP, pp. 11–19. ACL, Kiyv, Ukraine (2021)

    Google Scholar 

  4. Mallinson, J., Sennrich, R., Lapata, M.: Paraphrasing revisited with neural machine translation. In: EACL, vol. 1, Long Papers, pp. 881–893. ACL, Valencia, Spain (2017)

    Google Scholar 

  5. Papineni, K., Roukos, S., Ward, T., Zhu, W.: BLEU: a method for automatic evaluation of machine translation. In: ACL’02, pp. 311–318. ACL, Philadelphia, USA (2002)

    Google Scholar 

  6. Prakash, A., Hasan, S.A., Lee, K., Datla, V., Qadir, A., Liu, J., Farri, O.: Neural paraphrase generation with stacked residual LSTM networks. In: COLING 2016: Technical Papers, pp. 2923–2934. COLING, Osaka, Japan (2016)

    Google Scholar 

  7. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., Liu, P.J.: Exploring the limits of transfer learning with a unified text-to-text transformer. JMLR 21(140), 1–67 (2020)

    Google Scholar 

  8. ROS Messages. http://wiki.ros.org/Messages. Last accessed 19 Apr 2022

  9. Salichs, M.A., Castro González, Á., Salichs, E., Fernández Rodicio, E., Maroto Gómez, M., Gamboa Montero, J.J., Marqués Villarroya, S., Castillo, J.C., Alonso Martín, F., Malfaz, M.: Mini: a new social robot for the elderly. Int. J. Soc. Robot. (12), 1231–1249 (2020)

    Google Scholar 

  10. Shiwa, T., Kanda, T., Imai, M., Ishiguro, H., Hagita, N., Anzai, Y.: How quickly should communication robots respond? In: ACM/IEEE International Conference on HRI, pp. 153–160 (2008)

    Google Scholar 

  11. Sutskever, I., Vinyals, O., Le, Q. V.: Sequence to sequence learning with neural networks. In: NIPS, vol. 2, pp. 3104–3112. Montreal, Canada (2014)

    Google Scholar 

  12. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A., Kaiser, Ł., Polosukhin, I.: Attention is all you need. In: NIPS, pp. 6000–6010. California, USA (2017)

    Google Scholar 

  13. Witteveen, S., Andrews, M.: Paraphrasing with large language models. In: WNGT, pp. 215–220. ACL, Hong Kong (2019)

    Google Scholar 

  14. Xue, L., Constant, N., Roberts, A., Kale, M., Al-Rfou, R., Siddhant, A., Barua, A., Raffel, C.: mT5: a massively multilingual pre-trained text-to-text transformer. In: NAACL: Human Language Technologies, pp. 483–498. ACL (2021)

    Google Scholar 

  15. Yang, Y., Zhang, Y., Tar, C., Baldridge, J.: PAWS-X: a cross-lingual adversarial dataset for paraphrase identification. In: IJCNLP, pp. 3685–3690. ACL, Hong Kong, China (2019)

    Google Scholar 

  16. Zhang, T., Kishore, V., Wu, F., Weinberger, K.Q., Artzi, Y.: BERTScore: evaluating text generation with BERT. In: ICLR (2020)

    Google Scholar 

  17. Zhang, J., Zhao, Y., Saleh, M., Liu, P.: PEGASUS: pre-training with extracted gap-sentences for abstractive summarization. In: ICML, pp. 11328–11339 (2020)

    Google Scholar 

Download references

Acknowledgement

This work was partially supported by project Robots sociales para estimulación física, cognitiva y afectiva de mayores (ROSES) RTI2018-096338-B-I00 funded by Agencia Estatal de Investigación (AEI), Ministerio de Ciencia, Innovación y Universidades. This publication is part of the R &D &I project PLEC2021-007819 funded by MCIN/AEI/10.13039/501100011033 and by the European Union NextGenerationEU/PRTR. This work has been supported by the Madrid Government (Comunidad de Madrid-Spain) under the Multiannual Agreement with UC3M (“Fostering Young Doctors Research”, SMM4HRI-CM-UC3M), and in the context of the V PRICIT (Research and Technological Innovation Regional Programme).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Laura Martín Galván .

Editor information

Editors and Affiliations

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

Martín Galván, L., Fernández-Rodicio, E., Sevilla Salcedo, J., Castro-González, Á., Salichs, M.A. (2023). Using Deep Learning for Implementing Paraphrasing in a Social Robot. In: Julián, V., Carneiro, J., Alonso, R.S., Chamoso, P., Novais, P. (eds) Ambient Intelligence—Software and Applications—13th International Symposium on Ambient Intelligence. ISAmI 2022. Lecture Notes in Networks and Systems, vol 603. Springer, Cham. https://doi.org/10.1007/978-3-031-22356-3_21

Download citation

Publish with us

Policies and ethics