Skip to main content

How to Generate Reasonable Texts with Controlled Attributes

  • Conference paper
  • First Online:
  • 1740 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 12113))

Abstract

The controllable text generation (CTG) task is crucial for text-related applications, such as goal-oriented dialogue systems and text style-transfer applications, etc. However, existing CTG methods commonly ignore the co-occurrence dependencies between multiple controlled attributes, which are implicit in domain knowledge. As a result, rarely co-occurring controlled values are highly likely to be given by users, which finally leads to non-committal generated texts that are out of control. To address this problem, we initially propose the Dependency-aware Controllable Text Generation (DCTG) model that reduces trivial generations by automatically learning the co-occurrence dependencies and adjusting rarely co-occurring controlled values. Our DCTG highlights in (1) modeling the co-occurrence dependencies between controlled attributes with neural networks, (2) integrating dependency losses to guide each component of our model to collaboratively work for generating reasonable texts based on the learned dependencies, and (3) proposing a novel Reasonableness metric measuring to which degree generations comply with real co-occurrence dependencies. Experiments prove that DCTG outperforms state-of-the-art baselines on three datasets in multiple aspects.

Y. Zheng and Y. Wang—Both are first authors with equal contributions.

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

Buying options

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

Learn about institutional subscriptions

Notes

  1. 1.

    http://ai.stanford.edu/~amaas/data/sentiment/.

  2. 2.

    https://www.yelp.com/dataset.

  3. 3.

    https://www.imdb.com/interfaces/.

References

  1. Bowman, S.R., Vilnis, L., Vinyals, O., Dai, A.M., Jozefowicz, R., Bengio, S.: Generating sentences from a continuous space. In: CoNLL, pp. 10–21. ACL (2016)

    Google Scholar 

  2. Chen, X., Duan, Y., Houthooft, R., Schulman, J., Sutskever, I., Abbeel, P.: Infogan: interpretable representation learning by information maximizing generative adversarial nets. In: NIPS, pp. 2172–2180 (2016)

    Google Scholar 

  3. Fu, Z., Tan, X., Peng, N., Zhao, D., Yan, R.: Style transfer in text: exploration and evaluation. In: AAAI, pp. 663–670. AAAI Press (2018)

    Google Scholar 

  4. Ghosh, S., Chollet, M., Laksana, E., Morency, L.P., Scherer, S.: Affect-LM: a neural language model for customizable affective text generation. In: ACL (1), pp. 634–642. Association for Computational Linguistics (2017)

    Google Scholar 

  5. Higgins, I., et al.: beta-vae: learning basic visual concepts with a constrained variational framework. In: ICLR (Poster) (2017). https://openreview.net/

  6. Hu, Z., Yang, Z., Liang, X., Salakhutdinov, R., Xing, E.P.: Toward controlled generation of text. In: ICML, Proceedings of Machine Learning Research, vol. 70, pp. 1587–1596. PMLR (2017)

    Google Scholar 

  7. Ikeda, S., Amari, S., Nakahara, H.: Convergence of the wake-sleep algorithm. In: NIPS, pp. 239–245. The MIT Press (1998)

    Google Scholar 

  8. Kulkarni, T.D., Whitney, W.F., Kohli, P., Tenenbaum, J.B.: Deep convolutional inverse graphics network, In: NIPS. pp. 2539–2547 (2015)

    Google Scholar 

  9. Shen, X., Su, H., Niu, S., Demberg, V.: Improving variational encoder-decoders in dialogue generation. In: AAAI, pp. 5456–5463. AAAI Press (2018)

    Google Scholar 

  10. Sohn, K., Lee, H., Yan, X.: Learning structured output representation using deep conditional generative models. In: NIPS, pp. 3483–3491 (2015)

    Google Scholar 

  11. Wang, K., Wan, X.: Sentigan: generating sentimental texts via mixture adversarial networks. In: IJCAI, pp. 4446–4452 (2018). https://www.ijcai.org/

  12. Xing, C., et al.: Topic aware neural response generation. In: AAAI, pp. 3351–3357. AAAI Press (2017)

    Google Scholar 

  13. Zhao, T., Zhao, R., Eskenazi, M.: Learning discourse-level diversity for neural dialog models using conditional variational autoencoders. In: ACL (1), pp. 654–664. Association for Computational Linguistics (2017)

    Google Scholar 

  14. Zhou, M., Lapata, M., Wei, F., Dong, L., Huang, S., Xu, K.: Learning to generate product reviews from attributes. In: EACL (1), pp. 623–632. Association for Computational Linguistics (2017)

    Google Scholar 

Download references

Acknowledgements

The work was supported by the National Key Research and Development Program of China (No. 2019YFB1704003, No. 2016YFB1001101), the National Nature Science Foundation of China (No. 71690231, No. 61472207, No. 61773415), and Tsinghua BNRist.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Lijie Wen .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zheng, Y., Wang, Y., Wen, L., Wang, J. (2020). How to Generate Reasonable Texts with Controlled Attributes. In: Nah, Y., Cui, B., Lee, SW., Yu, J.X., Moon, YS., Whang, S.E. (eds) Database Systems for Advanced Applications. DASFAA 2020. Lecture Notes in Computer Science(), vol 12113. Springer, Cham. https://doi.org/10.1007/978-3-030-59416-9_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-59416-9_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-59415-2

  • Online ISBN: 978-3-030-59416-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics