Learning from Logical Constraints with Lower- and Upper-Bound Arithmetic Circuits

Abstract

An important class of neuro-symbolic (NeSy) methods relies on knowledge compilation (KC) techniques to transform logical constraints into a differentiable exact arithmetic circuit (AC) that represents all models of a logical formula. However, given the complexity of KC, compiling such exact circuits can be infeasible. Previous works in such cases proposed to compile a circuit for a subset of models. In this work, we will show that gradients calculated on a subset of models can be very far from true gradients. We propose a new framework that calculates gradients based on compiling logical constraints partially in not only a lower-bound circuit but also an upper-bound circuit. We prove that from this pair of ACs, gradients that are within a bounded distance from true gradients can be calculated. Our experiments show that adding the upper-bound AC also helps the learning process in practice, allowing for similar or better generalisation than working solely with fully compiled ACs, even with less than 150 seconds of partial compilation.

Cite

Text

Dierckx et al. "Learning from Logical Constraints with Lower- and Upper-Bound Arithmetic Circuits." International Joint Conference on Artificial Intelligence, 2025. doi:10.24963/IJCAI.2025/558

Markdown

[Dierckx et al. "Learning from Logical Constraints with Lower- and Upper-Bound Arithmetic Circuits." International Joint Conference on Artificial Intelligence, 2025.](https://mlanthology.org/ijcai/2025/dierckx2025ijcai-learning/) doi:10.24963/IJCAI.2025/558

BibTeX

@inproceedings{dierckx2025ijcai-learning,
  title     = {{Learning from Logical Constraints with Lower- and Upper-Bound Arithmetic Circuits}},
  author    = {Dierckx, Lucile and Dubray, Alexandre and Nijssen, Siegfried},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {5012-5020},
  doi       = {10.24963/IJCAI.2025/558},
  url       = {https://mlanthology.org/ijcai/2025/dierckx2025ijcai-learning/}
}