Elamur Research⌕
☰
home / papers / 2018 / DeepProbLog: Neural Probabilistic Logic Programming

DeepProbLog: Neural Probabilistic Logic Programming

Summary

Linking low-level perception, which neural networks handle well, with high-level probabilistic and logical reasoning is a long-standing open problem in AI. Instead of embedding reasoning inside a neural architecture, the authors start from the probabilistic logic programming language ProbLog and add "neural predicates." These are annotated disjunctions whose probabilities come from a network's normalized (softmax) output, such as a classifier for MNIST digits.

ProbLog's semantics, inference pipeline and implementation all carry over unchanged. Inference grounds the program, builds a propositional formula, compiles it into an SDD and evaluates it bottom-up. The real contribution is training. The semiring-based aProbLog computes gradients of a loss defined on query outputs, and these gradients are back-propagated into the networks. This tunes logic parameters and network weights together, using only query-level supervision.

Experiments cover MNIST addition, program induction and a probabilistic Coin-Urn task. They show that encoding background knowledge as rules lets a digit classifier be learned as a latent component. That classifier can then be reused, for example on multi-digit sums, without extra training. The work matters as a general neuro-symbolic language with well-defined, Turing-equivalent semantics. The supplied text omits the detailed experimental numbers.

Key points

  • A neural annotated disjunction has the form nn(m_q, t, u) :: q(t,u1); …; q(t,un). Here m_q is any network (CNN, RNN, etc.) whose softmax output supplies the probabilities.
  • Inference reuses ProbLog's four steps: grounding, conversion to a propositional formula, compilation into a Sentential Decision Diagram (SDD), and bottom-up evaluation. Gradients come from the algebraic extension aProbLog.
  • The implementation integrates ProbLog2 with PyTorch. It uses gradient accumulation rather than true mini-batching, and the code is published at bitbucket.org/problog/deepproblog.
  • The tasks are labelled T1–T5 and include:
    • MNIST digit addition, trained only on pairwise sums;
    • program-induction tasks using hyper-parameters from Bošnjak et al. (2017);
    • a Coin-Urn task with RGB colours perturbed by Gaussian noise (σ = 0.03, in HSV space) and MNIST "coins" (even digits = heads, odd digits = tails).
  • According to the authors, differentiable Forth was applied to only part of these tasks (T3–T5). The approach of Rocktäschel & Riedel (2017) would plausibly cover only T1 and T5.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: AI & machine learning

 Institutions

Cite

Cite as Robin Manhaeve, Sebastijan Dumančić, Angelika Kimmig, Thomas Demeester and Luc De Raedt. 2018. DeepProbLog: Neural Probabilistic Logic Programming. arXiv:1805.10872.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1805.10872 · arXiv 1805.10872

@misc{manhaeve2018deepproblog,
  title = {{DeepProbLog: Neural Probabilistic Logic Programming}},
  author = {Robin Manhaeve, Sebastijan Dumančić, Angelika Kimmig, Thomas Demeester and Luc {De Raedt}},
  year = {2018},
  doi = {10.48550/arxiv.1805.10872},
  eprint = {1805.10872},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1805.10872}
}

References

33 references, 3 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 39–48, 2016. our card
  2. Matko Bošnjak, Tim Rocktäschel, and Sebastian Riedel. Programming with a differentiable forth interpreter. In Proceedings of the 34th International Conference on Machine Learning, volume 70, pages 547–556, 2017. find
  3. William W Cohen, Fan Yang, and Kathryn Rivard Mazaitis. Tensorlog: Deep learning meets probabilistic databases. Journal of Artificial Intelligence Research, 1:1–15, 2018. find
  4. Wang-Zhou Dai, Qiu-Ling Xu, Yang Yu, and Zhi-Hua Zhou. Tunneling neural perception and logic reasoning through abductive learning. arXiv preprint arXiv:1802.01173, 2018. — [arXiv:1802.01173](https://arxiv.org/abs/1802.01173) find
  5. Adnan Darwiche. SDD: A new canonical representation of propositional knowledge bases. In Proceedings of the Twenty-Second International Joint Conference on Artificial Intelligence, IJCAI-11, pages 819–826, 2011. find
  6. Adnan Darwiche and Pierre Marquis. A knowledge compilation map. Journal of Artificial Intelligence Research, 17:229–264, 2002. find
  7. Luc De Raedt and Angelika Kimmig. Probabilistic programming. ECAI tutorial, 2014. find
  8. Luc De Raedt and Angelika Kimmig. Probabilistic (logic) programming concepts. Machine Learning, 100(1):5–47, 2015. find
  9. Luc De Raedt, Angelika Kimmig, and Hannu Toivonen. ProbLog: A probabilistic Prolog and its application in link discovery. In IJCAI, pages 2462–2467, 2007. find
  10. Luc De Raedt, Kristian Kersting, Sriraam Natarajan, and David Poole. Statistical relational artificial intelligence: Logic, probability, and computation. Synthesis Lectures on Artificial Intelligence and Machine Learning, 10(2):1–189, 2016. find
  11. Michelangelo Diligenti, Marco Gori, and Claudio Sacca. Semantic-based regularization for learning and inference. Artificial Intelligence, 244:143–165, 2017. find
  12. Ivan Donadello, Luciano Serafini, and Artur S. d’Avila Garcez. Logic tensor networks for semantic image interpretation. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI 2017, Melbourne, Australia, August 19-25, 2017, pages 1596–1602, 2017. find
  13. Anton Dries, Angelika Kimmig, Wannes Meert, Joris Renkens, Guy Van den Broeck, Jonas Vlas-selaer, and Luc De Raedt. Problog2: Probabilistic logic programming. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 312–315. Springer, 2015. find
  14. Sebastijan Dumančić and Hendrik Blockeel. Clustering-based relational unsupervised representation learning with an explicit distributed representation. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI-17, pages 1631–1637, 2017. find
  15. Jason Eisner. Parameter estimation for probabilistic finite-state transducers. In Proceedings of the 40th annual meeting on Association for Computational Linguistics, pages 1–8. Association for Computational Linguistics, 2002. find
  16. Richard Evans and Edward Grefenstette. Learning explanatory rules from noisy data. Journal of Artificial Intelligence Research, 61:1–64, 2018. find
  17. Daan Fierens, Guy Van den Broeck, Joris Renkens, Dimitar Shterionov, Bernd Gutmann, Ingo Thon, Gerda Janssens, and Luc De Raedt. Inference and learning in probabilistic logic programs using weighted Boolean formulas. Theory and Practice of Logic Programming, 15(3):358–401, 2015. find
  18. Artur S d’Avila Garcez, Krysia B Broda, and Dov M Gabbay. Neural-symbolic learning systems: foundations and applications. Springer Science & Business Media, 2012. find
  19. Lise Getoor and Ben Taskar. Introduction to statistical relational learning. MIT press, 2007. find
  20. Bernd Gutmann, Angelika Kimmig, Kristian Kersting, and Luc De Raedt. Parameter learning in probabilistic databases: A least squares approach. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 473–488. Springer, 2008. find
  21. Barbara Hammer and Pascal Hitzler. Springer Heidelberg:, 2007. find
  22. Perspectives of neural-symbolic integration, volume 8. Steffen Hölldobler, Yvonne Kalinke, and Hans-Peter Störr. Approximating the semantics of logic programs by recurrent neural networks. Applied Intelligence, 11(1):45–58, Jul 1999. find
  23. Seyed Mehran Kazemi and David Poole. RelNN: A deep neural model for relational learning. In AAAI, 2018. find
  24. Angelika Kimmig, Guy Van den Broeck, and Luc De Raedt. An algebraic Prolog for reasoning about possible worlds. In AAAI, 2011. find
  25. Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), pages 1–13, 2015. find
  26. Yann Lecun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, pages 2278–2324, 1998. find
  27. Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In Proceedings of the Workshop on The future of gradient-based machine learning software and techniques, co-located w… find
  28. Scott Reed and Nando de Freitas. Neural programmer-interpreters. In International Conference on Learning Representations (ICLR), 2016. find
  29. Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, volume 30, pages 3788–3800, 2017. find
  30. Subhro Roy and Dan Roth. Solving general arithmetic word problems. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1743–1752, 2015. our card
  31. Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in Neural Information Processing Systems, volume 30, pages 4974–4983, 2017. our card
  32. Jingyi Xu, Zilu Zhang, Tal Friedman, Yitao Liang, and Guy Van den Broeck. A semantic loss function for deep learning with symbolic knowledge. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, pages 5498–5507, 2… find
  33. Gustav Šourek, Vojtěch Aschenbrenner, Filip Železný, Steven Schockaert, and Ondřej Kuželka. Lifted relational neural networks: Efficient learning of latent relational structures. Journal of Artificial Intelligence Research, to appear, 2018. find

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/manhaeve-2018-deepproblog-neural-probabilistic-logic/