Learning Where and When to Reason in Neuro-Symbolic Inference

Abstract

The integration of hard constraints on neural network outputs is a very desirable capability. This allows to instill trust in AI by guaranteeing the sanity of that neural network predictions with respect to domain knowledge. Recently, this topic has received a lot of attention. However, all the existing methods usually either impose the constraints in a "weak" form at training time, with no guarantees at inference, or fail to provide a general framework that supports different tasks and constraint types. We tackle this open problem from a neuro-symbolic perspective. Our pipeline enhances a conventional neural predictor with (1) a symbolic reasoning module capable of correcting structured prediction errors and (2) a neural attention module that learns to direct the reasoning effort to focus on potential prediction errors, while keeping other outputs unchanged. This framework provides an appealing trade-off between the efficiency of constraint-free neural inference and the prohibitive cost of exhaustive reasoning at inference time. We show that our method outperforms the state of the art on visual-Sudoku, and can also benefit visual scene graph prediction. Furthermore, it can improve the performance of existing neuro-symbolic systems that lack our explicit reasoning during inference.

Cite

Text

Cornelio et al. "Learning Where and When to Reason in Neuro-Symbolic Inference." International Conference on Learning Representations, 2023.

Markdown

[Cornelio et al. "Learning Where and When to Reason in Neuro-Symbolic Inference." International Conference on Learning Representations, 2023.](https://mlanthology.org/iclr/2023/cornelio2023iclr-learning/)

BibTeX

@inproceedings{cornelio2023iclr-learning,
  title     = {{Learning Where and When to Reason in Neuro-Symbolic Inference}},
  author    = {Cornelio, Cristina and Stuehmer, Jan and Hu, Shell Xu and Hospedales, Timothy},
  booktitle = {International Conference on Learning Representations},
  year      = {2023},
  url       = {https://mlanthology.org/iclr/2023/cornelio2023iclr-learning/}
}