Neural Reasoning for Sure Through Constructing Explainable Models

Tiansi Dong, Mateja Jamnik, Pietro Liò

Introduction

While Large Language Models (LLMs) have demonstrated remarkable fluency, their capacity for formal logical reasoning remains a significant weakness. LLMs often operate as "black-box" statistical predictors, mimicking human errors present in their training data and lacking a mechanism to verify the logical consistency of their outputs. This paper, presented at AAAI-25, addresses this gap by introducing the Hyperbolic Sphere Neural Network (HSphNN), a novel architecture designed to move beyond probabilistic guessing toward "System 2" style rigorous reasoning.

The Hyperbolic Sphere Neural Network (HSphNN)

The core innovation of HSphNN is the transition from traditional vector embeddings to sphere embeddings within hyperbolic geometry. Logical sets are represented as spheres, and Aristotelian syllogistic statements are mapped to spatial relations:

  • Containment: "All A are B" implies Sphere A is inside Sphere B.
  • Disjointness: "No A are B" implies Sphere A and Sphere B do not overlap.
  • Overlap: "Some A are B" implies Sphere A and Sphere B intersect.

Hyperbolic space is uniquely suited for this task due to its natural ability to represent hierarchical and part-whole relationships. Unlike standard neural networks that require extensive training, HSphNN is a training-free Recurrent Neural Network (RNN). It uses a geometric optimization process to adjust sphere positions until they satisfy the constraints defined by the logical premises.

Achieving "Reasoning-for-Sure"

The authors define a "reasoning-for-sure" (RfS) property: if a consistent set of logical statements is provided, the network is guaranteed to find a valid model or prove its impossibility within a constant number of iterations. For HSphNN, this constant is proven to be $M=1$ epoch.

To verify a conclusion, HSphNN attempts to construct a counter-example—a geometric model where all premises are true but the conclusion is false. If the network fails to construct such a model within its defined constraints, the original reasoning is proven valid. This process provides inherent explainability; the resulting "Euler-like" diagram serves as a physical proof of the logical state.

Figure 4: Comparison of LLM 'System 1' thinking (Panel A) versus the HSphNN 'System 2' reasoning process (Panel B), which involves target setting, spatial translation, and iterative model construction.

Experimental Results and LLM Integration

The researchers evaluated HSphNN against the complete set of 256 Aristotelian syllogism types. HSphNN achieved 100% accuracy, matching the performance of symbolic logic solvers while remaining within a neural framework.

Furthermore, HSphNN was used as a "verifier" for LLM outputs. The study found that models like gpt-4o often arrive at the correct conclusion but provide flawed logical justifications. By feeding HSphNN’s geometric findings back to the LLMs through a feedback loop, the researchers observed significant performance gains:

  • gpt-3.5-turbo: Accuracy increased from 46.88% to 58.98%.
  • gpt-4o: Accuracy improved from 82.42% to 84.76%.

The system is also highly efficient, with most cases resolved in under 30 seconds on standard consumer hardware.

Conclusion and Future Work

HSphNN represents a significant step toward neuro-symbolic unification. By grounding logical reasoning in geometric model construction, it provides a deterministic alternative to the probabilistic "hallucinations" common in pure statistical models. Beyond categorical logic, the authors demonstrate that this "arc/sphere" configuration can be extended to Bayesian reasoning, where the degree of overlap between geometric primitives represents conditional probability.

Future work aims to scale this framework to first-order logic and integrate HSphNN directly into the latent layers of transformer architectures. This would allow the neural network to handle unstructured data while the HSphNN component ensures that the resulting internal representations adhere to strict logical and set-theoretic constraints.

Summary updated

BibTeX
@inproceedings{dong2025neural,
  author = {Tiansi Dong and Mateja Jamnik and Pietro Liò},
  title = {{Neural Reasoning for Sure Through Constructing Explainable Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33262},
}
Figure