skip to main content
10.1145/3573428.3573464acmotherconferencesArticle/Chapter ViewAbstractPublication PageseitceConference Proceedingsconference-collections
research-article

Unsupervised Sentiment and Style Transfer from Massive Texts

Published:15 March 2023Publication History

ABSTRACT

Unsupervised style transfer aims to transfer the intrinsic style of text while preserving its content without parallel datasets. Many sophisticated methods using reinforcement learning and neural networks have been developed to address this problem, however, their performance is not very ideal yet. We observe that given massive unpaired texts, there would exist high-quality sentence pairs that have similar style-independent content but different style words. Inspiring by this observation, in this paper, we propose a simple yet effective method without any neural network. Specifically, we consider both embedding similarity and BLEU score to locate similar sentences of different styles for a pseudo-parallel dataset construction. From this pseudo-parallel dataset, we distill the style words and align them into pairs based on statistical signals. We further refine our pseudo-parallel dataset by ignoring the identified style words during similarity calculation. After the style word pairs converged, we put them together as a lookup table to recognize and replace style words for style transfer. Extensive experiments demonstrate that our method is effective in different style transferring settings, such as sentiment and formality, outperforming state-of-the-art methods.

References

  1. M. ARTETXE, G. LABAKA, E. AGIRRE and K. CHO. 2017. Unsupervised neural machine translation. CoRR, abs/1710.11041. https://doi.org/10.48550/arXiv.1710.11041.Google ScholarGoogle Scholar
  2. Z. FU, X. TAN, N. PENG, D. ZHAO and R. YAN. 2017. Style transfer in text: Exploration and evaluation. In Proceedings of the AAAI Conference on Artificial Intelligence. AIII, New Orleans, USA, Vol.32. https://doi.org/10.1609/aaai.v32i1.11330.Google ScholarGoogle Scholar
  3. L. HAN, T. FININ, P. MCNAMEE, A. JOSHI and Y. YESHA. 2013. Improving word similarity by augmenting pmi with estimates of word polysemy. IEEE Transactions on Knowledge and Data Engineering, 25, pp. 1307–1322. https://doi.org/10.1109/TKDE.2012.30.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. J. HE, X. WANG, G. NEUBIG and T. BERG-KIRKPATRICK. 2020. A probabilistic formulation of unsupervised text style transfer. https://doi.org/10.48550/arXiv.2002.03912.Google ScholarGoogle Scholar
  5. Z. HU, Z. YANG, X. LIANG, R. SALAKHUTDINOV and E. P. XING. 2017. Controllable text generation. CoRR, abs/1703.00955. https://doi.org/10.48550/arXiv.1703.00955.Google ScholarGoogle Scholar
  6. V. JOHN, L. MOU, H. BAHULEYAN and O. VECHTOMOVA. 2019. Disentangled representation learning for non-parallel text style transfer, In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, Association for Computational Linguistics, pp. 424–434. https://doi.org/10.18653/v1/P19-1041.Google ScholarGoogle ScholarCross RefCross Ref
  7. G. LAMPLE, M. OTT, A. CONNEAU, L. DENOYER and M. RANZATO. 2018. Phrase-based & neural unsupervised machine translation, CoRR, abs/1804.07755,pp.5039-5049. https://doi.org/10.48550/arXiv.1804.07755.Google ScholarGoogle Scholar
  8. J. H. LAU and T. BALDWIN. 2016. An empirical evaluation of doc2vec with practical insights into document embedding generation. In Proceedings of the 1st Workshop on Representation Learning for NLP, Rep4NLP@ACL 2016, Berlin, Germany, pp. 78-86. https://doi.org/10.18653/v1/W16-1609.Google ScholarGoogle ScholarCross RefCross Ref
  9. J. LI, R. JIA, H. HE and P. LIANG. 2018. Delete, retrieve, generate: a simple approach to sentiment and style transfer. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Vol.1, New Orleans, Louisiana, Association for Computational Linguistics, pp. 1865–1874 https://doi.org/10.18653/v1/N18-1169.Google ScholarGoogle ScholarCross RefCross Ref
  10. D. LIU, J. FU, Y. ZHANG, C. PAL and J. LV. 2019. Revision in continuous space: Fine-grained control of text style transfer. CoRR, abs/1905.12304. https://doi.org/10.48550/arXiv.1905.12304.Google ScholarGoogle Scholar
  11. F. LUO, P. LI, J. ZHOU, P. YANG, B. CHANG, Z. SUI and X. SUN. 2019. A dual reinforcement learning framework for unsupervised text style transfer. In Proceedings of the IJCAI 2019, pp.5116-5122. abs/1905.10060. https://doi.org/10.48550/arXiv.1905.10060.Google ScholarGoogle ScholarCross RefCross Ref
  12. I. MELNYK, C. N. DOS SANTOS, K. WADHAWAN, I. PADHI and A. KUMAR. 2017. Improved neural text attribute transfer with non-parallel data. In Proceedings of the NIPS 2017 Workshop on Learning Disentangled Representations: from Perception to Control. abs/1711.09395. https://doi.org/10.48550/arXiv.1711.09395.Google ScholarGoogle Scholar
  13. K. PAPINENI, S. ROUKOS, T. WARD and W. JING ZHU. 2002. Bleu: a method for automatic evaluation of machine translation, In Proceedings of the 40th Annual Meeting on Association for Computational Linguistics (ACL '02). Association for Computational Linguistics, USA, pp.311–318. https://doi.org/10.3115/1073083.1073135.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. S. PRABHUMOYE, Y. TSVETKOV, R. SALAKHUTDINOV and A. W. BLACK. 2018. Style transfer through backtranslation. In Proceedings of ACL 2018., abs/1804.09000. https://doi.org/10.48550/arXiv.1804.09000.Google ScholarGoogle Scholar
  15. S. RAO and J. R. TETREAULT. 2018. Dear sir or madam, may I introduce the YAFC corpus: Corpus, benchmarks and metrics for formality style transfer. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. abs/1803.06535. https://doi.org/10.48550/arXiv.1803.06535.Google ScholarGoogle Scholar
  16. T. SHEN, T. LEI, R. BARZILAY and T. S. JAAKKOLA. 2017. Style transfer from non-parallel text by cross-alignment. In Proceedings of NIPS 2017. abs/1705.09655. https://doi.org/10.48550/arXiv.1705.09655.Google ScholarGoogle Scholar
  17. S. SUBRAMANIAN, G. LAMPLE, E. M. SMITH, L. DENOYER, M. RANZATO and Y. BOUREAU. 2018. Multiple-attribute text style transfer. CoRR, abs/1811.00552. https://doi.org/10.48550/arXiv.1811.00552.Google ScholarGoogle Scholar
  18. J. XU, X. SUN, Q. ZENG, X. REN, X. ZHANG, H. WANG and W. LI. 2018. Unpaired sentiment-tosentiment translation: A cycled reinforcement learning approach. In Proceedings of ACL 2018. abs/1805.05181 . https://doi.org/10.48550/arXiv.1805. 05181.Google ScholarGoogle Scholar

Index Terms

  1. Unsupervised Sentiment and Style Transfer from Massive Texts

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      EITCE '22: Proceedings of the 2022 6th International Conference on Electronic Information Technology and Computer Engineering
      October 2022
      1999 pages
      ISBN:9781450397148
      DOI:10.1145/3573428

      Copyright © 2022 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 15 March 2023

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited

      Acceptance Rates

      Overall Acceptance Rate508of972submissions,52%
    • Article Metrics

      • Downloads (Last 12 months)28
      • Downloads (Last 6 weeks)2

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format .

    View HTML Format