Enhancing Large Language Models through Neuro-Symbolic Integration and Ontological Reasoning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Vsevolodovna, Ruslan Idelfonso Magana, Monti, Marco
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911302323011584
author Vsevolodovna, Ruslan Idelfonso Magana
Monti, Marco
author_facet Vsevolodovna, Ruslan Idelfonso Magana
Monti, Marco
contents Large Language Models (LLMs) demonstrate impressive capabilities in natural language processing but suffer from inaccuracies and logical inconsistencies known as hallucinations. This compromises their reliability, especially in domains requiring factual accuracy. We propose a neuro-symbolic approach integrating symbolic ontological reasoning and machine learning methods to enhance the consistency and reliability of LLM outputs. Our workflow utilizes OWL ontologies, a symbolic reasoner (e.g., HermiT) for consistency checking, and a lightweight machine learning model (logistic regression) for mapping natural language statements into logical forms compatible with the ontology. When inconsistencies between LLM outputs and the ontology are detected, the system generates explanatory feedback to guide the LLM towards a corrected, logically coherent response in an iterative refinement loop. We present a working Python prototype demonstrating this pipeline. Experimental results in a defined domain suggest significant improvements in semantic coherence and factual accuracy of LLM outputs, showcasing the potential of combining LLM fluency with the rigor of formal semantics.
format Preprint
id arxiv_https___arxiv_org_abs_2504_07640
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing Large Language Models through Neuro-Symbolic Integration and Ontological Reasoning
Vsevolodovna, Ruslan Idelfonso Magana
Monti, Marco
Artificial Intelligence
68T30
I.2.3; I.2.4; I.2.6; I.2.7
Large Language Models (LLMs) demonstrate impressive capabilities in natural language processing but suffer from inaccuracies and logical inconsistencies known as hallucinations. This compromises their reliability, especially in domains requiring factual accuracy. We propose a neuro-symbolic approach integrating symbolic ontological reasoning and machine learning methods to enhance the consistency and reliability of LLM outputs. Our workflow utilizes OWL ontologies, a symbolic reasoner (e.g., HermiT) for consistency checking, and a lightweight machine learning model (logistic regression) for mapping natural language statements into logical forms compatible with the ontology. When inconsistencies between LLM outputs and the ontology are detected, the system generates explanatory feedback to guide the LLM towards a corrected, logically coherent response in an iterative refinement loop. We present a working Python prototype demonstrating this pipeline. Experimental results in a defined domain suggest significant improvements in semantic coherence and factual accuracy of LLM outputs, showcasing the potential of combining LLM fluency with the rigor of formal semantics.
title Enhancing Large Language Models through Neuro-Symbolic Integration and Ontological Reasoning
topic Artificial Intelligence
68T30
I.2.3; I.2.4; I.2.6; I.2.7
url https://arxiv.org/abs/2504.07640