Ontology-Guided Neuro-Symbolic Inference: Grounding Language Models with Mathematical Domain Knowledge

Marcelo Labre
2/19/2026
cs.AIcs.LGcs.SC

No official code found. Best implementation: labrem/neus2026-labre (0 stars, last commit 2026-04-24).

Abstract

Language models exhibit fundamental limitations -- hallucination, brittleness, and lack of formal grounding -- that are particularly problematic in high-stakes specialist fields requiring verifiable reasoning. I investigate whether formal domain ontologies can enhance language model reliability through retrieval-augmented generation. Using mathematics as proof of concept, I implement a neuro-symbolic pipeline leveraging the OpenMath ontology with hybrid retrieval and cross-encoder reranking to inject relevant definitions into model prompts. Evaluation on the MATH benchmark with three open-source models reveals that ontology-guided context improves performance when retrieval quality is high, but irrelevant context actively degrades it -- highlighting both the promise and challenges of neuro-symbolic approaches.

View on arXivView PDF

Code Implementations(1)

Code base for the paper "Ontology-Guided Neuro-Symbolic Inference: Grounding Language Models with Mathematical Domain Knowledge."

00Shell, PythonFeb 15, 20265 months ago

Similar Papers

Cite this paper

@article{labre2026ontologyguided,
  title  = {Ontology-Guided Neuro-Symbolic Inference: Grounding Language Models with Mathematical Domain Knowledge},
  author = {Marcelo Labre},
  year   = {2026},
  eprint = {2602.17826},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.17826v1}
}

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/2602.17826.svg)](https://codeofpaper.com/paper/2602.17826)

Discussion