Skip to main content

MDDs: Sampling and Probability Constraints

  • Conference paper
  • First Online:
Principles and Practice of Constraint Programming (CP 2017)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 10416))

Abstract

We propose to combine two successful techniques of Artificial Intelligence: sampling and Multi-valued Decision Diagrams (MDDs). Sampling, and notably Markov sampling, is often used to generate data resembling to a corpus. However, this generation has usually to respect some additional constraints, for instance to avoid plagiarism or to respect some rules of the application domain. We propose to represent the corpus dependencies and these side constraints by an MDD and to develop some algorithms for sampling the solutions of an MDD while respecting some probabilities or a Markov chain. In that way, we obtain a generic method which avoids the development of ad-hoc algorithms for each application as it is currently the case. In addition, we introduce new constraints for controlling the probabilities of the solutions that are sampled. We experiments our method on a real life application: the geomodeling of a petroleum reservoir, and on the generation of French alexandrines. The obtained results show the advantage and the efficiency of our approach.

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

    Order k Markov chains have a longer memory: the Markov property states that \(P(X_i |X_1, \ldots , X_{i-1}) = P(X_i |X_{i-k}, \ldots , X_{i-1})\). They are equivalent to order 1 Markov chains on an alphabet composed of k-grams, and therefore we assume only order 1 Markov chains [17].

  2. 2.

    vv(n) represents a vector of v(n).

  3. 3.

    We can also directly deal with products if we modify the costMDD propagator accordingly.

References

  1. Andersen, H.R., Hadzic, T., Hooker, J.N., Tiedemann, P.: A constraint store based on multivalued decision diagrams. In: Bessière, C. (ed.) CP 2007. LNCS, vol. 4741, pp. 118–132. Springer, Heidelberg (2007). doi:10.1007/978-3-540-74970-7_11

    Chapter  Google Scholar 

  2. Barbieri, G., Pachet, F., Roy, P., Esposti, M.D.: Markov constraints for generating lyrics with style. In: ECAI 2012–20th European Conference on Artificial Intelligence, pp. 115–120 (2012)

    Google Scholar 

  3. Bergman, D., Hoeve, W.-J., Hooker, J.N.: Manipulating MDD relaxations for combinatorial optimization. In: Achterberg, T., Beck, J.C. (eds.) CPAIOR 2011. LNCS, vol. 6697, pp. 20–35. Springer, Heidelberg (2011). doi:10.1007/978-3-642-21311-3_5

    Chapter  Google Scholar 

  4. Bryant, R.E.: Graph-based algorithms for Boolean function manipulation. IEEE Trans. Comput. 35(8), 677–691 (1986)

    Article  MATH  Google Scholar 

  5. Cheng, K.C.K., Yap, R.H.C.: An MDD-based generalized arc consistency algorithm for positive and negative table constraints and some global constraints. Constraints 15(2), 265–304 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  6. Demassey, S., Pesant, G., Rousseau, L.-M.: A cost-regular based hybrid column generation approach. Constraints 11(4), 315–333 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  7. Brooks, F., Hopkings, A., Neumann, P., Wright, W.: An experiment in musical composition. 3(6), 175–182 (1957)

    Google Scholar 

  8. Gange, G., Stuckey, P.J., Hentenryck, P.: Explaining propagators for edge-valued decision diagrams. In: Schulte, C. (ed.) CP 2013. LNCS, vol. 8124, pp. 340–355. Springer, Heidelberg (2013). doi:10.1007/978-3-642-40627-0_28

    Chapter  Google Scholar 

  9. Hadzic, T., Hooker, J.N., ÓSullivan, B., Tiedemann, P.: Approximate compilation of constraints into multivalued decision diagrams. In: Stuckey, P.J. (ed.) CP 2008. LNCS, vol. 5202, pp. 448–462. Springer, Heidelberg (2008). doi:10.1007/978-3-540-85958-1_30

  10. Hoda, S., Hoeve, W.-J., Hooker, J.N.: A systematic approach to MDD-based constraint programming. In: Cohen, D. (ed.) CP 2010. LNCS, vol. 6308, pp. 266–280. Springer, Heidelberg (2010). doi:10.1007/978-3-642-15396-9_23

    Chapter  Google Scholar 

  11. Jurafsky, D., Martin, J.H.: Speech and Language Processing. Pearson, London (2014)

    Google Scholar 

  12. Morin, M., Quimper, C.-G.: The Markov transition constraint. In: Simonis, H. (ed.) CPAIOR 2014. LNCS, vol. 8451, pp. 405–421. Springer, Cham (2014). doi:10.1007/978-3-319-07046-9_29

    Chapter  Google Scholar 

  13. Nierhaus, G.: Algorithmic Composition: Paradigms of Automated Music Generation. Springer, Heidelberg (2009)

    Google Scholar 

  14. Pachet, F., Roy, P.: Markov constraints: steerable generation of Markov sequences. Constraints 16(2), 148–172 (2011)

    Article  MathSciNet  Google Scholar 

  15. Pachet, F., Roy, P., Barbieri, G.: Finite-length Markov processes with constraints. IJCAI 2011, 635–642 (2011)

    Google Scholar 

  16. Papadopoulos, A., Roy, P., Pachet, F.: Avoiding plagiarism in Markov sequence generation. In: Proceeding of the Twenty-Eight AAAI Conference on Artificial Intelligence, pp. 2731–2737 (2014)

    Google Scholar 

  17. Papadopoulos, A., Pachet, F., Roy, P., Sakellariou, J.: Exact sampling for regular and Markov constraints with belief propagation. In: Pesant, G. (ed.) CP 2015. LNCS, vol. 9255, pp. 341–350. Springer, Cham (2015). doi:10.1007/978-3-319-23219-5_24

    Google Scholar 

  18. Papadopoulos, A., Roy, P., Régin, J.-C., Pachet, F.: Generating all possible palindromes from Ngram corpora. In: Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2015, 25–31 July 2015, Buenos Aires, Argentina, pp. 2489–2495 (2015)

    Google Scholar 

  19. Pennington, W.D.: Reservoir geophysics 66(1) (2001)

    Google Scholar 

  20. Perez, G., Régin, J.-C.: Improving GAC-4 for table and MDD constraints. In: ÓSullivan, B. (ed.) CP 2014. LNCS, vol. 8656, pp. 606–621. Springer, Cham (2014). doi:10.1007/978-3-319-10428-7_44

    Google Scholar 

  21. Perez, G., Régin, J.-C.: Efficient operations on MDDs for building constraint programming models. In: International Joint Conference on Artificial Intelligence, IJCAI 2015, Argentina, pp. 374–380 (2015)

    Google Scholar 

  22. Perez, G., Régin, J.-C.: Soft and cost MDD propagators. In: The Thirty-First AAAI Conference on Artificial Intelligence AAAI 2017 (2017)

    Google Scholar 

  23. Roy, P., Perez, G., Régin, J.-C., Papadopoulos, A., Pachet, F., Marchini, M.: Enforcing structure on temporal sequences: the Allen constraint. In: Rueher, M. (ed.) CP 2016. LNCS, vol. 9892, pp. 786–801. Springer, Cham (2016). doi:10.1007/978-3-319-44953-1_49

    Chapter  Google Scholar 

  24. Roy, P., Pachet, F.: Enforcing meter in finite-length Markov sequences. In: AAAI 2013 (2013)

    Google Scholar 

Download references

Acknowledgements

This research is conducted within the Flow Machines project which received funding from the European Research Council under the European Unions Seventh Framework Programme (FP/2007–2013)/ERC Grant Agreement no. 291156. We would like to thank F. Pachet and P. Roy, who gave us the idea of this article.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jean-Charles Régin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Perez, G., Régin, JC. (2017). MDDs: Sampling and Probability Constraints. In: Beck, J. (eds) Principles and Practice of Constraint Programming. CP 2017. Lecture Notes in Computer Science(), vol 10416. Springer, Cham. https://doi.org/10.1007/978-3-319-66158-2_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-66158-2_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-66157-5

  • Online ISBN: 978-3-319-66158-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics