Proceedings

Constraints First: A New MDD-based Model to Generate Sentences Under Constraints

Download BibTeX Cite

Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. Main Track. Pages 1893-1901.

https://doi.org/10.24963/ijcai.2023/210

Abstract

This paper introduces a new approach to generating strongly constrained texts. We consider standardized sentence generation for the typical application of vision screening. To solve this problem, we formalize it as a discrete combinatorial optimization problem and utilize multivalued decision diagrams (MDD), a well-known data structure to deal with constraints. In our context, one key strength of MDD is to compute an exhaustive set of solutions without performing any search. Once the sentences are obtained, we apply a language model (GPT-2) to keep the best ones. We detail this for English and also for French where the agreement and conjugation rules are known to be more complex. Finally, with the help of GPT-2, we get hundreds of bona-fide candidate sentences. When compared with the few dozen sentences usually available in the well-known vision screening test (MNREAD), this brings a major breakthrough in the field of standardized sentence generation. Also, as it can be easily adapted for other languages, it has the potential to make the MNREAD test even more valuable and usable. More generally, this paper highlights MDD as a convincing alternative for constrained text generation, especially when the constraints are hard to satisfy, but also for many other prospects.

  1. [Akers, 1978] Sheldon B. Akers. Binary decision diagrams. IEEE Transactions on Computers, C(27):509-516, June 1978.
  2. [Amilhastre et al., 2014] Jérôme Amilhastre, Hélène Fargier, Alexandre Niveau, and Cédric Pralet. Compiling csps: A complexity map of (non-deterministic) multival- ued decision diagrams. International Journal on Artificial Intelligence Tools, 23(04):1460015, 2014.
  3. [Bergman et al., 2016] David Bergman, Andre A. Cire, Willem-Jan Hoeve, and John Hooker. Decision Diagrams for Optimization. Springer Publishing Company, Incorpo- rated, 1st edition, 2016.
  4. [Brown et al., 1992] Peter F. Brown, Stephen A. Della Pietra, Vincent J. Della Pietra, Jennifer C. Lai, and Robert L. Mercer. An estimate of an upper bound for the entropy of English. Computational Linguistics, 18(1):31-40, 1992.
  5. [Brown et al., 2020] Tom Brown, Benjamin Mann, Nick Ry- der, Melanie Subbiah, Jared D Kaplan, Prafulla Dhari- wal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing sys- tems, 33:1877-1901, 2020.
  6. [Calabrese et al., 2016] Aurélie Calabrese, Cynthia Owsley, Gerald McGwin, and Gordon E. Legge. Development of a reading accessibility index using the MNREAD acuity chart. JAMA Ophthalmol., 134(4):398-405, April 2016.
  7. [Cheng and Yap, 2010] Kenil C.K. Cheng and Roland H.C. Yap. An MDD-based generalized arc consistency algo- rithm for positive and negative table constraints and some global constraints. Constraints, 15:265-304, 2010.
  8. [Crossland et al., 2008] Michael D. Crossland, Gordon E. Legge, and Steven C. Dakin. The development of an au- tomated sentence generator for the assessment of reading speed. Behavioral and Brain Functions, 4(1):14, 2008.
  9. [Gentzel et al., 2022] Rebecca Gentzel, Laurent Michel, and Willem-Jan van Hoeve. Heuristics for MDD Propagation in HADDOCK. In Christine Solnon, editor, 28th Inter- national Conference on Principles and Practice of Con- straint Programming (CP 2022), volume 235 of Leibniz International Proceedings in Informatics (LIPIcs), pages 24:1-24:17, Dagstuhl, Germany, 2022. Schloss Dagstuhl -Leibniz-Zentrum für Informatik.
  10. [Gillard and Schaus, 2022] Xavier Gillard and Pierre Schaus. Large neighborhood search with decision dia- grams. In International Joint Conference on Artificial Intelligence, 2022. IJCAI
  11. [Hokamp and Liu, 2017] Chris Hokamp and Qun Liu. Lex- ically constrained decoding for sequence generation us- ing grid beam search. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1535-1546, Vancouver, Canada, July 2017. Association for Computational Lin- guistics. [Jung and Régin, 2022] Victor Jung and Jean-Charles Régin. Efficient operations between mdds and constraints. In Pierre Schaus, editor, Integration of Constraint Program- ming, Artificial Intelligence, and Operations Research, pages 173-189, Cham, 2022. Springer International Pub- lishing.
  12. [Jurafsky and Martin, 2009] Dan Jurafsky and James H. Martin. Speech and language processing : an introduction to natural language processing, computational linguistics, and speech recognition. Pearson Prentice Hall, Upper Sad- dle River, N.J., 2009.
  13. [Lecoutre, 2011] Christophe Lecoutre. STR2: Optimized simple tabular reduction for table constraints. Constraints, 16(4):341-371, oct 2011.
  14. [Liu et al., 2021] Yixian Liu, Liwen Zhang, Wenjuan Han, Yue Zhang, and Kewei Tu. Constrained text generation with global guidance -case study on commongen. CoRR, abs/2103.07170, 2021.
  15. [Lu et al., 2022] Ximing Lu, Sean Welleck, Peter West, Li- wei Jiang, Jungo Kasai, Daniel Khashabi, Ronan Le Bras, Lianhui Qin, Youngjae Yu, Rowan Zellers, Noah A. Smith, and Yejin Choi. NeuroLogic A*esque decoding: Con- strained text generation with lookahead heuristics. In Pro- ceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 780-799, Seattle, United States, July 2022. Association for Computational Linguistics.
  16. [Lété et al., 2004] Bernard Lété, Liliane Sprenger-Charolles, and Pascale Colé. Manulex : A grade-level lexical database from french elementary-school readers. Be- havior Research Methods, Instruments & Computers, 36:166-176, 2004.
  17. [Mansfield et al., 1993] J. Stephen Mansfield, Sonia J. Ahn, Gordon E. Legge, and Andrew Luebker. A new reading- acuity chart for normal and low vision. Ophthalmic and Visual Optics/Noninvasive Assessment of the Visual Sys- tem Technical Digest, 3:232-235, 1993.
  18. [Mansfield et al., 2019] J. Stephen Mansfield, Nilsu Atilgan, Angela Lewis, and Gordon Legge. Extending the MN- READ sentence corpus: Computer-generated sentences for measuring visual performance in reading. Vision re- search, 158:11-18, 2019.
  19. [Michel et al., 2011] Jean-Baptiste Michel, Yuan Kui Shen, Aviva Presser Aiden, Adrian Veres, Matthew K. Gray, The Google Books Team, Joseph P. Pickett, Dale Hoiberg, Dan Clancy, Peter Norvig, Jon Orwant, Steven Pinker, Mar- tin A. Nowak, and Erez Lieberman Aiden. Quantitative analysis of culture using millions of digitized books. Sci- ence, 331(6014):176-182, 2011.
  20. [Pachet and Roy, 2011] Franc ¸ois Pachet and Pierre Roy. Markov constraints: Steerable generation of markov se- quences. Constraints, 16(2):148-172, apr 2011.
  21. [Papadopoulos et al., 2014] Alexandre Papadopoulos, Pierre Roy, and Franc ¸ois Pachet. Avoiding plagiarism in markov sequence generation. In Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, AAAI'14, page 2731-2737. AAAI Press, 2014.
  22. [Papadopoulos et al., 2015] Alexandre Papadopoulos, Pierre Roy, Jean-Charles Régin, and Franc ¸ois Pachet. Generating all Possible Palindromes from Ngram Corpora. In IJCAI 2015, Buenos Aires, Argentina, July 2015. IJCAI
  23. [Perez and Régin, 2015] Guillaume Perez and Jean-Charles Régin. Efficient operations on mdds for building con- straint programming models. In Proceedings of the 24th International Conference on Artificial Intelligence, pages 374-380, 2015. IJCAI
  24. [Perez and Régin, 2017] Guillaume Perez and Jean-Charles Régin. MDDs: Sampling and probability constraints. In Proceedings of the International Conference on Principles and Practice of Constraint Programming, page 226-242, 2017.
  25. [Perez, 2017] Guillaume Perez. Diagrammes de décision : contraintes et algorithmes. PhD thesis, Université Côte d'Azur, 2017.
  26. [Perrin et al., 2015] Jean-Luc Perrin, Damien Paillé, and Thierry Baccino. A new sentence generator providing ma- terial for maximum reading speed measurement. Behav Res, 47:055-1064, 2015.
  27. [Post and Vilar, 2018] Matt Post and David Vilar. Fast lexi- cally constrained decoding with dynamic beam allocation for neural machine translation. In Proceedings of the 2018 Conference of the North American Chapter of the Asso- ciation for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1314-1324, New Orleans, Louisiana, June 2018. Association for Com- putational Linguistics.
  28. [Roush et al., 2022] Allen Roush, Sanjay Basu, Akshay Moorthy, and Dmitry Dubovoy. Most language models can be poets too: An AI writing assistant and constrained text generation studio. In Proceedings of the Second Work- shop on When Creative AI Meets Conversational AI, pages 9-15, Gyeongju, Republic of Korea, October 2022. Asso- ciation for Computational Linguistics.
  29. [Roy et al., 2016] Pierre Roy, Guillaume Perez, Jean- Charles Régin, Alexandre Papadopoulos, F. Pachet, and M. Marchini. Enforcing structure on temporal sequences: the Allen constraint. In International conference on principles and practice of constraint programming, page 786-801. Springer, 2016.
  30. [Rudich et al., 2022] Isaac Rudich, Quentin Cappart, and Louis-Martin Rousseau. Peel-and-bound: Generating stronger relaxed bounds with multivalued decision dia- grams. In Christine Solnon, editor, 28th International Conference on Principles and Practice of Constraint Pro- gramming, CP 2022, July 31 to August 8, 2022, Haifa, Israel, volume 235 of LIPIcs, pages 35:1-35:20. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2022.
  31. [Schmid, 2013] Helmut Schmid. Probabilistic part-of- speech tagging using decision trees. In New methods in language processing, page 154, 2013. [Simoulin and Crabbé, 2021] Antoine Simoulin and Benoit Crabbé. Un modèle Transformer Génératif Pré-entrainé pour le franc ¸ais. In Pascal Denis, Natalia Grabar, Amel Fraisse, Rémi Cardon, Bernard Jacquemin, Eric Kergosien, and Antonio Balvet, editors, Traitement Au- tomatique des Langues Naturelles, pages 246-255, Lille, France, 2021. ATALA.
  32. [Trick, 2003] Michael Trick. A dynamic programming ap- proach for consistency and propagation for knapsack con- straints. Annals of Operations Research, 118:73-84, 2003.
  33. [van Hoeve, 2022] Willem-Jan van Hoeve. Graph color- ing with decision diagrams. Mathematical Programming, 192(1):631-674, 2022.
  34. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Sys- tems, pages 5998-6008, 2017.
  35. [Verhaeghe et al., 2018] Hélène Verhaeghe, Christophe Lecoutre, and Pierre Schaus. Compact-mdd: Efficiently filtering (s) MDD constraints with reversible sparse bit-sets. In Twenty-Seventh International Joint Conference on Artificial Intelligence IJCAI-18, 2018. IJCAI
  36. [Verhaeghe et al., 2019] Hélène Verhaeghe, Christophe Lecoutre, and Pierre Schaus. Extending compact-diagram to basic smart multi-valued variable diagrams. In Integra- tion of Constraint Programming, Artificial Intelligence, and Operations Research: 16th International Conference, CPAIOR 2019, Thessaloniki, Greece, June 4-7, 2019, Proceedings, pages 581-598. Springer, 2019.
  37. [Wang and Yap, 2022] Ruiwei Wang and Roland H.C. Yap. Encoding multi-valued decision diagram constraints as bi- nary constraint trees. Proceedings of the AAAI Conference on Artificial Intelligence, 36(4):3850-3858, Jun. 2022.
  38. [Wang et al., 2018] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. CoRR, abs/1804.07461, 2018.
  39. [Wolf et al., 2020] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Fun- towicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of- the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Lan- guage Processing: System Demonstrations, Online, Octo- ber 2020. Association for Computational Linguistics.
  40. [Zhou et al., 2021] Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wan- cai Zhang. Informer: Beyond efficient transformer for long sequence time-series forecasting. Proceedings of the AAAI Conference on Artificial Intelligence, 35(12):11106- 11115, May 2021.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards