Skip to main content

ESTD: Empathy Style Transformer with Discriminative Mechanism

  • Conference paper
  • First Online:
Advanced Data Mining and Applications (ADMA 2022)

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

Included in the following conference series:

  • 736 Accesses

Abstract

Language expressions without empathy can neither effectively convey the expresser’s concern and goodwill, but also have a negative effect on the emotional and mental health of the recipients of the information. Compared to harsh or aggressive expressions, expressions with a high empathetic level can produce positive emotions. Unfortunately, non-empathetic expressions are generated daily without intention, causing negative feelings. Existing work has achieved certain success on style transfer, however, there are still limitations in language style selection. This paper addresses this challenge by using a corpus with multiple language styles. To this end, we employ ESTD to transfer a lower-empathetic expression to a higher-empathic expression. Experimental results on empathy style transfer task shows that our model outperforms some currently available baseline methods.

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 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.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://github.com/behavioral-data/Empathy-Mental-Health/tree/master/dataset.

  2. 2.

    https://parl.ai/projects/bst/.

  3. 3.

    https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html.

  4. 4.

    https://github.com/masonzmz/ESTD.

  5. 5.

    https://github.com/google-research/bert.

  6. 6.

    https://parl.ai/.

  7. 7.

    https://github.com/aliannejadi/ClariQ.

  8. 8.

    https://github.com/facebookresearch/EmpatheticDialogues.

  9. 9.

    https://parl.ai/projects/wizard_of_wikipedia/.

  10. 10.

    https://www.sbert.net/docs/pretrained_models.html.

References

  1. Althoff, T., Clark, K., Leskovec, J.: Large-scale analysis of counseling conversations: an application of natural language processing to mental health. Trans. Assoc. Comput. Linguist. 4, 463–476 (2016)

    Article  Google Scholar 

  2. Bohm, D., Senge, P.M., Nichol, L.: On dialogue. Routledge (2004)

    Google Scholar 

  3. Castonguay, L.G., Hill, C.E.: How and why are some therapists better than others?: Understanding therapist effects. JSTOR (2017)

    Google Scholar 

  4. Dai, N., Liang, J., Qiu, X., Huang, X.: Style transformer: unpaired text style transfer without disentangled latent representation. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (2019)

    Google Scholar 

  5. Decety, J.: Empathy: From bench to bedside (2011)

    Google Scholar 

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

    Google Scholar 

  7. Fu, Z., Tan, X., Peng, N., Zhao, D., Yan, R.: Style transfer in text: exploration and evaluation. In: AAAI (2018)

    Google Scholar 

  8. Goodfellow, I., et al.: Generative adversarial nets. In: Advances in Neural Information Processing Systems (2014)

    Google Scholar 

  9. Hall, J.A., Schwartz, R., Duong, F.: How do laypeople define empathy? J. Soc. Psychol. 161(1), 5–24 (2021)

    Article  Google Scholar 

  10. Kazemnejad, A.: Transformer architecture: The positional encoding. kazemnejad.com (2019). https://kazemnejad.com/blog/transformer_architecture_positional_encoding/

  11. Kohut, H.: Introspection, empathy, and psychoanalysis an examination of the relationship between mode of observation and theory. J. Am. Psychoanal. Assoc. 7(3), 459–483 (1959)

    Article  Google Scholar 

  12. Lewis, M., et al.: Bart: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (2020)

    Google Scholar 

  13. Li, J., Jia, R., He, H., Liang, P.: Delete, retrieve, generate: a simple approach to sentiment and style transfer. In: NAACL-HLT (2018)

    Google Scholar 

  14. Lovaglia, M.J., Houser, J.A.: Emotional reactions and status in groups. American Sociological Review, pp. 867–883 (1996)

    Google Scholar 

  15. Luc, P., Couprie, C., Chintala, S., Verbeek, J.: Semantic segmentation using adversarial networks. In: NIPS Workshop on Adversarial Training (2016)

    Google Scholar 

  16. Ma, X., Sap, M., Rashkin, H., Choi, Y.: Powertransformer: unsupervised controllable revision for biased language correction. In: EMNLP (2020)

    Google Scholar 

  17. Madaan, A., et al.: Politeness transfer: a tag and generate approach. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (2020)

    Google Scholar 

  18. Matthews, T., et al.: Stories from survivors: privacy & security practices when coping with intimate partner abuse. In: CHI 2017, pp. 2189–2201 (2017)

    Google Scholar 

  19. Morris, R.R., Kouddous, K., Kshirsagar, R., Schueller, S.M.: Towards an artificially empathic conversational agent for mental health applications: system design and user perceptions. J. Med. Internet Res. 20(6), e10148 (2018)

    Article  Google Scholar 

  20. Nair, V., Hinton, G.E.: Rectified linear units improve restricted boltzmann machines. In: ICML (2010)

    Google Scholar 

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

    Google Scholar 

  22. Pedersen, R.: Empirical research on empathy in medicine-a critical review. Patient Educ. Couns. 76(3), 307–322 (2009)

    Article  Google Scholar 

  23. Pelau, C., Dabija, D.C., Ene, I.: What makes an ai device human-like? the role of interaction quality, empathy and perceived psychological anthropomorphic characteristics in the acceptance of artificial intelligence in the service industry. Comput. Hum. Behav. 122, 106855 (2021)

    Article  Google Scholar 

  24. Pfeil, U., Zaphiris, P.: Patterns of empathy in online communication. In: CHI (2007)

    Google Scholar 

  25. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I.: Language models are unsupervised multitask learners (2019)

    Google Scholar 

  26. Rao, S., Tetreault, J.R.: Dear sir or madam, may i introduce the gyafc dataset: corpus, benchmarks and metrics for formality style transfer. In: NAACL-HLT (2018)

    Google Scholar 

  27. Reddy, S., Knight, K.: Obfuscating gender in social media writing. In: Proceedings of the First Workshop on NLP and Computational Social Science (2016)

    Google Scholar 

  28. Reimers, N., Gurevych, I.: Sentence-bert: sentence embeddings using siamese bert-networks. In: EMNLP-IJCNLP. ACL (2019)

    Google Scholar 

  29. Shamasundar, C.: Understanding empathy and related phenomena. Am. J. Psychother. 53(2), 232–245 (1999)

    Article  Google Scholar 

  30. Sharma, A., Lin, I.W., Miner, A.S., Atkins, D.C., Althoff, T.: Towards facilitating empathic conversations in online mental health support: a reinforcement learning approach. In: WWW (2021)

    Google Scholar 

  31. Sharma, A., Miner, A.S., Atkins, D.C., Althoff, T.: A computational approach to understanding empathy expressed in text-based mental health support. In: EMNLP (2020)

    Google Scholar 

  32. Sharma, E., De Choudhury, M.: Mental health support and its relationship to linguistic accommodation in online communities. In: Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems (2018)

    Google Scholar 

  33. Shen, T., Lei, T., Barzilay, R., Jaakkola, T.: Style transfer from non-parallel text by cross-alignment. In: NeurIPS (2017)

    Google Scholar 

  34. Singhal, A., et al.: Modern information retrieval: a brief overview. IEEE Data Eng. Bull. 24(4), 35–43 (2001)

    Google Scholar 

  35. Smith, E.M., Williamson, M., Shuster, K., Weston, J., Boureau, Y.L.: Can you put it all together: evaluating conversational agents’ ability to blend skills. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (2020)

    Google Scholar 

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

    Google Scholar 

  37. Ten Have, P.: Doing conversation analysis. Sage (2007)

    Google Scholar 

  38. Vaswani, A., et al.: Attention is all you need. In: NeurIPS (2017)

    Google Scholar 

  39. Xu, W., Ritter, A., Dolan, W.B., Grishman, R., Cherry, C.: Paraphrasing for style. In: COLING (2012)

    Google Scholar 

  40. Yang, Z., Hu, Z., Dyer, C., Xing, E.P., Berg-Kirkpatrick, T.: Unsupervised text style transfer using language models as discriminators. In: NeurIPS (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Miao Xu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 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

Zhang, M., Yue, L., Xu, M. (2022). ESTD: Empathy Style Transformer with Discriminative Mechanism. In: Chen, W., Yao, L., Cai, T., Pan, S., Shen, T., Li, X. (eds) Advanced Data Mining and Applications. ADMA 2022. Lecture Notes in Computer Science(), vol 13726. Springer, Cham. https://doi.org/10.1007/978-3-031-22137-8_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-22137-8_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-22136-1

  • Online ISBN: 978-3-031-22137-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics