Skip to main content

Linear Algebraic Abduction with Partial Evaluation

  • Conference paper
  • First Online:
Practical Aspects of Declarative Languages (PADL 2023)

Abstract

Linear algebra is an ideal tool to redefine symbolic methods with the goal to achieve better scalability. In solving the abductive Horn propositional problem, the transpose of a program matrix has been exploited to develop an efficient exhaustive method. While it is competitive with other symbolic methods, there is much room for improvement in practice. In this paper, we propose to optimize the linear algebraic method for abduction using partial evaluation. This improvement considerably reduces the number of iterations in the main loop of the previous algorithm. Therefore, it improves practical performance especially with sparse representation in case there are multiple subgraphs of conjunctive conditions that can be computed in advance. The positive effect of partial evaluation has been confirmed using artificial benchmarks and real Failure Modes and Effects Analysis (FMEA)-based datasets.

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

    This behavior is unlike the behavior of the previous definition in [22] that we set 0 at the diagonal that will eliminate all values of Or-rule head atoms in \(v_0\).

  2. 2.

    We excluded the unresolved problem .

  3. 3.

    A PAR-2 score of a solver is defined as the sum of all runtimes for solved instances plus 2 times timeout for each unsolved instance.

  4. 4.

    https://github.com/pysathq/pysat.

References

  1. Apt, K.R., Bezem, M.: Acyclic programs. New Gener. Comput. 9, 335–364 (1991). https://doi.org/10.1007/BF03037168

    Article  MATH  Google Scholar 

  2. Aspis, Y., Broda, K., Russo, A.: Tensor-based abduction in Horn propositional programs. In: ILP 2018, CEUR Workshop Proceedings, vol. 2206, pp. 68–75 (2018)

    Google Scholar 

  3. Beckman, L., Haraldson, A., Oskarsson, Ö., Sandewall, E.: A partial evaluator, and its use as a programming tool. Artif. Intell. 7(4), 319–357 (1976). https://doi.org/10.1016/0004-3702(76)90011-4

    Article  MATH  Google Scholar 

  4. Boutilier, C., Beche, V.: Abduction as belief revision. Artif. Intell. 77(1), 43–94 (1995). https://doi.org/10.1016/0004-3702(94)00025-V

    Article  MathSciNet  MATH  Google Scholar 

  5. Console, L., Dupré, D.T., Torasso, P.: On the relationship between abduction and deduction. J. Logic Comput. 1(5), 661–690 (1991). https://doi.org/10.1093/logcom/1.5.661

    Article  MathSciNet  MATH  Google Scholar 

  6. Dai, W.Z., Xu, Q., Yu, Y., Zhou, Z.H.: Bridging machine learning and logical reasoning by abductive learning. In: Proceedings of the 33rd International Conference on Neural Information Processing Systems, Curran Associates Inc., Red Hook, NY, USA (2019)

    Google Scholar 

  7. Eiter, T., Gottlob, G.: The complexity of logic-based abduction. J. ACM (JACM) 42(1), 3–42 (1995). https://doi.org/10.1145/200836.200838

    Article  MathSciNet  MATH  Google Scholar 

  8. Eshghi, K.: Abductive planning with event calculus. In: ICLP/SLP, pp. 562–579 (1988)

    Google Scholar 

  9. Futamura, Y.: Partial evaluation of computation process-an approach to a compiler-compiler. High.-Order Symbolic Comput. 12(4), 381–391 (1999). https://doi.org/10.1023/A:1010095604496.This is an updated and revised version of the previous publication in “Systems, Computers, Control”, Volume 25, 1971, pages 45-50

  10. Garey, M.R., Johnson, D.S.: Computers and Intractability: a guide to the theory of NP-completeness. Freeman, W.H. (1979). ISBN 0-7167-1044-7

    Google Scholar 

  11. Gelfond, M., Lifschitz, V.: The stable model semantics for logic programming. In: ICLP/SLP, vol. 88, pp. 1070–1080 (1988)

    Google Scholar 

  12. Heule, M.J., Järvisalo, M., Suda, M.: Sat competition 2018. J. Satisfiability Boolean Model. Comput. 11(1), 133–154 (2019)

    Article  MathSciNet  Google Scholar 

  13. Ignatiev, A., Morgado, A., Marques-Silva, J.: Propositional abduction with implicit hitting sets. In: ECAI 2016, Frontiers in Artificial Intelligence and Applications, vol. 285, pp. 1327–1335. IOS Press (2016). https://doi.org/10.3233/978-1-61499-672-9-1327

  14. Ignatiev, A., Narodytska, N., Marques-Silva, J.: Abduction-based explanations for machine learning models. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, pp. 1511–1519 (2019). https://doi.org/10.1609/aaai.v33i01.33011511

  15. Josephson, J.R., Josephson, S.G.: Abductive Inference: Computation, Philosophy, Technology. Cambridge University Press, Cambridge (1996)

    MATH  Google Scholar 

  16. Koitz-Hristov, R., Wotawa, F.: Applying algorithm selection to abductive diagnostic reasoning. Appl. Intell. 48(11), 3976–3994 (2018). https://doi.org/10.1007/s10489-018-1171-9

    Article  Google Scholar 

  17. Koitz-Hristov, R., Wotawa, F.: Faster horn diagnosis - a performance comparison of abductive reasoning algorithms. Appl. Intell. 50(5), 1558–1572 (2020). https://doi.org/10.1007/s10489-019-01575-5

    Article  Google Scholar 

  18. Lamma, E., Mello, P.: A rationalisation of the ATMS in terms of partial evaluation. In: Lau, K.K., Clement, T.P., (eds) Logic Program Synthesis and Transformation, pp. 118–131. Springer, Cham (1993). https://doi.org/10.1007/978-1-4471-3560-9_9

  19. Lloyd, J.W., Shepherdson, J.C.: Partial evaluation in logic programming. J. Logic Program. 11(3–4), 217–242 (1991). https://doi.org/10.1016/0743-1066(91)90027-M

    Article  MathSciNet  MATH  Google Scholar 

  20. Muggleton, S.: Inductive logic programming. New Gener. Comput. 8(4), 295–318 (1991). https://doi.org/10.1007/BF03037089

    Article  MATH  Google Scholar 

  21. Nguyen, H.D., Sakama, C., Sato, T., Inoue, K.: An efficient reasoning method on logic programming using partial evaluation in vector spaces. J. Logic Comput. 31(5), 1298–1316 (2021). https://doi.org/10.1093/logcom/exab010

    Article  MathSciNet  MATH  Google Scholar 

  22. Nguyen, T.Q., Inoue, K., Sakama, C.: Linear algebraic computation of propositional Horn abduction. In: 2021 IEEE 33rd International Conference on Tools with Artificial Intelligence (ICTAI), pp. 240–247. IEEE (2021). https://doi.org/10.1109/ICTAI52525.2021.00040

  23. Nguyen, T.Q., Inoue, K., Sakama, C.: Enhancing linear algebraic computation of logic programs using sparse representation. New Gener. Comput. 40(5), 1–30 (2021). https://doi.org/10.1007/s00354-021-00142-2

    Article  MATH  Google Scholar 

  24. Rocktäschel, T., Riedel, S.: End-to-end differentiable proving. In: Proceedings of the 31st International Conference on Neural Information Processing Systems, pp. 3791–3803, NIPS 2017, Curran Associates Inc., Red Hook, NY, USA (2017). ISBN 9781510860964

    Google Scholar 

  25. Saikko, P., Wallner, J.P., Järvisalo, M.: Implicit hitting set algorithms for reasoning beyond NP. In: KR, pp. 104–113 (2016)

    Google Scholar 

  26. Sakama, C., Inoue, K.: The effect of partial deduction in abductive reasoning. In: ICLP, pp. 383–397 (1995)

    Google Scholar 

  27. Sakama, C., Inoue, K., Sato, T.: Linear algebraic characterization of logic programs. In: Li, G., Ge, Y., Zhang, Z., Jin, Z., Blumenstein, M. (eds.) KSEM 2017. LNCS (LNAI), vol. 10412, pp. 520–533. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-63558-3_44

    Chapter  Google Scholar 

  28. Sakama, C., Inoue, K., Sato, T.: Logic programming in tensor spaces. Ann. Math. Artif. Intell. 89(12), 1133–1153 (2021). https://doi.org/10.1007/s10472-021-09767-x

    Article  MathSciNet  MATH  Google Scholar 

  29. Sato, T.: Embedding Tarskian semantics in vector spaces. In: Workshops at the Thirty-First AAAI Conference on Artificial Intelligence (2017)

    Google Scholar 

  30. Sato, T., Inoue, K., Sakama, C.: Abducing relations in continuous spaces. In: IJCAI, pp. 1956–1962 (2018). https://doi.org/10.24963/ijcai.2018/270

  31. Schüller, P.: Modeling variations of first-order Horn abduction in answer set programming. Fundam. Informaticae 149(1–2), 159–207 (2016). https://doi.org/10.3233/FI-2016-1446

    Article  MathSciNet  MATH  Google Scholar 

  32. Selman, B., Levesque, H.J.: Abductive and default reasoning: a computational core. In: AAAI, pp. 343–348 (1990)

    Google Scholar 

  33. Tamaki, H., Sato, T.: Unfold/fold transformation of logic programs. In: Proceedings of the Second International Conference on Logic Programming, pp. 127–138 (1984)

    Google Scholar 

  34. Vasileiou, S.L., Yeoh, W., Son, T.C., Kumar, A., Cashmore, M., Magazzeni, D.: A logic-based explanation generation framework for classical and hybrid planning problems. J. Artif. Intell. Res. 73, 1473–1534 (2022). https://doi.org/10.1613/jair.1.13431

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

This work has been supported by JSPS, KAKENHI Grant Numbers JP18H03288 and JP21H04905, and by JST, CREST Grant Number JPMJCR22D3, Japan.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Tuan Nguyen , Katsumi Inoue or Chiaki Sakama .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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

Nguyen, T., Inoue, K., Sakama, C. (2023). Linear Algebraic Abduction with Partial Evaluation. In: Hanus, M., Inclezan, D. (eds) Practical Aspects of Declarative Languages. PADL 2023. Lecture Notes in Computer Science, vol 13880. Springer, Cham. https://doi.org/10.1007/978-3-031-24841-2_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-24841-2_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-24840-5

  • Online ISBN: 978-3-031-24841-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics