Skip to main content

A Machine Learning System to Improve the Performance of ASP Solving Based on Encoding Selection

  • Conference paper
  • First Online:
Book cover Logic Programming and Nonmonotonic Reasoning (LPNMR 2022)

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

Abstract

Answer set programming (ASP) has long been used for modeling and solving hard search problems. Experience shows that the performance of ASP tools on different ASP encodings of the same problem may vary greatly from instance to instance and it is rarely the case that one encoding outperforms all others. We describe a system and its implementation that given a set of encodings and a training set of instances, builds performance models for the encodings, predicts the execution time of these encodings on new instances, and uses these predictions to select an encoding for solving.

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 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.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://en.wikipedia.org/wiki/Graceful_labeling.

References

  1. Bichler, M., Morak, M., Woltran, S.: lpopt: a rule optimization tool for answer set programming. Fund. Inform. 177(3–4), 275–296 (2020). https://doi.org/10.1007/978-3-319-63139-4_7

    Article  MathSciNet  MATH  Google Scholar 

  2. Brewka, G., Eiter, T., Truszczynski, M.: Answer set programming at a glance. Commun. ACM 54(12), 92–103 (2011). https://doi.org/10.1145/2043174.2043195

    Article  Google Scholar 

  3. Dingess, M., Truszczynski, M.: Automated aggregator - rewriting with the counting aggregate. EPTCS 325, 96–109 (2020). https://doi.org/10.4204/EPTCS.325.17

    Article  MathSciNet  MATH  Google Scholar 

  4. Erdem, E., Gelfond, M., Leone, N.: Applications of answer set programming. AI Mag. 37(3), 53–68 (2016). https://doi.org/10.1609/aimag.v37i3.2678

    Article  Google Scholar 

  5. Gebser, M., Kaminski, R., Kaufmann, B., Schaub, T., Schneider, M.T., Ziller, S.: A portfolio solver for answer set programming: preliminary report. In: Delgrande, J.P., Faber, W. (eds.) LPNMR 2011. LNCS (LNAI), vol. 6645, pp. 352–357. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-20895-9_40

    Chapter  Google Scholar 

  6. Gebser, M., Kaminski, R., König, A., Schaub, T.: Advances in gringo series 3. In: Delgrande, J.P., Faber, W. (eds.) LPNMR 2011. LNCS (LNAI), vol. 6645, pp. 345–351. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-20895-9_39

    Chapter  Google Scholar 

  7. Gebser, M., Kaufmann, B., Schaub, T.: Conflict-driven answer set solving: from theory to practice. Artif. Intell. 187, 52–89 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  8. Gebser, M., Maratea, M., Ricca, F.: The sixth answer set programming competition. J. Artif. Intell. Res. 60, 41–95 (2017)

    Article  MathSciNet  MATH  Google Scholar 

  9. Gebser, M., Maratea, M., Ricca, F.: The seventh answer set programming competition: design and results. Theory Pract. Logic Program. 20(2), 176–204 (2020). https://doi.org/10.1017/S1471068419000061

    Article  MathSciNet  MATH  Google Scholar 

  10. Gomes, C.P., Selman, B.: Algorithm portfolios. Artif. Intell. 126(1–2), 43–62 (2001). https://doi.org/10.1016/S0004-3702(00)00081-3

    Article  MathSciNet  MATH  Google Scholar 

  11. Guyon, I., Elisseeff, A.: An introduction to variable and feature selection. J. Mach. Learn. Res. 3(Mar), 1157–1182 (2003)

    MATH  Google Scholar 

  12. Hippen, N., Lierler, Y.: Automatic program rewriting in non-ground answer set programs. In: Alferes, J.J., Johansson, M. (eds.) PADL 2019. LNCS, vol. 11372, pp. 19–36. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-05998-9_2

    Chapter  Google Scholar 

  13. Ho, T.K.: Random decision forests. In: Proceedings of 3rd International Conference on Document Analysis and Recognition, vol. 1, pp. 278–282. IEEE (1995)

    Google Scholar 

  14. Hoos, H., Kaminski, R., Schaub, T., Schneider, M.: aspeed: ASP-based solver scheduling. In: Technical Communications of the 28th International Conference on Logic Programming (ICLP 2012). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2012)

    Google Scholar 

  15. Hoos, H., Lindauer, M., Schaub, T.: claspfolio 2: advances in algorithm selection for answer set programming. Theory Pract. Logic Program. 14(4–5), 569–585 (2014)

    Article  MATH  Google Scholar 

  16. Kohavi, R.: A study of cross-validation and bootstrap for accuracy estimation and model selection. IJCAI vol. 14, pp. 1137–1145 (1995)

    Google Scholar 

  17. Liu, L., Truszczynski, M.: Encoding selection for solving Hamiltonian cycle problems with ASP. EPTCS 306, 302–308 (2019). https://doi.org/10.4204/EPTCS.306.35

    Article  MATH  Google Scholar 

  18. Mastria, E., Zangari, J., Perri, S., Calimeri, F.: A machine learning guided rewriting approach for asp logic programs. EPTCS 325, 261–267 (2020). https://doi.org/10.4204/EPTCS.325.31

    Article  MathSciNet  MATH  Google Scholar 

  19. Rice, J.R.: The algorithm selection problem. Adv. Comput. 15, 65–118 (1976). https://doi.org/10.1016/S0065-2458(08)60520-3

    Article  Google Scholar 

  20. Selman, B., Levesque, D.G.M.H.J.: Generating hard satisfiability problems. Artif. Intell. 81(1–2), 17–29 (1996)

    Google Scholar 

  21. Wu, X., et al.: Top 10 algorithms in data mining. Knowl. Inf. Syst. 14(1), 1–37 (2008)

    Article  Google Scholar 

Download references

Acknowledgments

The authors acknowledge the support of the NSF grant IIS 1707371.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mirek Truszczynski .

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

Liu, L., Truszczynski, M., Lierler, Y. (2022). A Machine Learning System to Improve the Performance of ASP Solving Based on Encoding Selection. In: Gottlob, G., Inclezan, D., Maratea, M. (eds) Logic Programming and Nonmonotonic Reasoning. LPNMR 2022. Lecture Notes in Computer Science(), vol 13416. Springer, Cham. https://doi.org/10.1007/978-3-031-15707-3_32

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-15707-3_32

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-15706-6

  • Online ISBN: 978-3-031-15707-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics