Right for the Right Reasons: Avoiding Reasoning Shortcuts via Prototypical Neurosymbolic AI

Luca Andolfi, Eleonora Giunchiglia
10/29/2025
cs.LG

No official code found. Best implementation: Giotto-maker/r4rr (6 stars, BSD-3-Clause, last commit 2025-11-25).

Abstract

Neurosymbolic AI is growing in popularity thanks to its ability to combine neural perception and symbolic reasoning in end-to-end trainable models. However, recent findings reveal these are prone to shortcut reasoning, i.e., to learning unindented concepts--or neural predicates--which exploit spurious correlations to satisfy the symbolic constraints. In this paper, we address reasoning shortcuts at their root cause and we introduce prototypical neurosymbolic architectures. These models are able to satisfy the symbolic constraints (be right) because they have learnt the correct basic concepts (for the right reasons) and not because of spurious correlations, even in extremely low data regimes. Leveraging the theory of prototypical learning, we demonstrate that we can effectively avoid reasoning shortcuts by training the models to satisfy the background knowledge while taking into account the similarity of the input with respect to the handful of labelled datapoints. We extensively validate our approach on the recently proposed rsbench benchmark suite in a variety of settings and tasks with very scarce supervision: we show significant improvements in learning the right concepts both in synthetic tasks (MNIST-EvenOdd and Kand-Logic) and real-world, high-stake ones (BDD-OIA). Our findings pave the way to prototype grounding as an effective, annotation-efficient strategy for safe and reliable neurosymbolic learning.

View on arXivView PDF

Code Implementations(1)

Giotto-maker/r4rrCommunity75%
BSD-3-Clause

Official code for the paper 'Right for the Right Reasons: Avoiding Reasoning Shortcuts via Prototype-Augmented Neurosymbolic AI'

60Python, Jupyter NotebookOct 23, 202511 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{andolfi2025right,
  title  = {Right for the Right Reasons: Avoiding Reasoning Shortcuts via Prototypical Neurosymbolic AI},
  author = {Luca Andolfi and Eleonora Giunchiglia},
  year   = {2025},
  eprint = {2510.25497},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25497v1},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.25497.svg)](https://codeofpaper.com/paper/2510.25497)

Discussion