GOFAI meets generative AI: Development of expert systems by means of large language models
| dc.contributor.author | Garrido Merchán, Eduardo César | es-ES |
| dc.contributor.author | Puente Águeda, Cristina | es-ES |
| dc.date.accessioned | 2026-08-31T04:43:38Z | |
| dc.date.issued | 2026-10-09 | |
| dc.description | Artículos en revistas | |
| dc.description.abstract | The development of large language models (LLMs) has transformed knowledge-based systems such as open-domain question answering, which can automatically produce vast amounts of seemingly coherent information. Yet these models suffer from well-known limitations, most notably hallucinations, the confident generation of incorrect or unverifiable facts. In this paper, we introduce an approach to the development of expert systems that uses LLMs in a controlled and transparent way. By restricting the domain and employing a structured, prompt-based extraction protocol, we distil the knowledge of an LLM into a symbolic Prolog representation that can be inspected, validated and corrected by human experts, and queried by a deterministic inference engine. We evaluate the approach along three complementary axes. First, we assess factual accuracy through a manual expert audit and, to address the limited scale of manual checking, a large-scale automated cross-validation against Wikidata over three different LLM families (Claude Sonnet 3.7, GPT-4.1 and Grok 3), reporting Wilson confidence intervals and explicitly separating entity-linking error from factual error by means of a type-aware entity linker. Second, we show that the generated knowledge bases support genuine multi-hop deductive reasoning, negation as failure and aggregation when executed in SWI-Prolog, confirming that they behave as functioning expert systems rather than inert fact lists. Third, we analyze the statistical guarantees of the pipeline, making explicit how the autoregressive, non-independent nature of LLM generation affects the concentration bounds and confidence intervals. The result is a transparent hybrid solution that combines the recall of LLMs with the precision and explainability of symbolic systems, laying the foundation for dependable AI applications in sensitive domains. All code, prompts and generated knowledge bases will be made publicly available at https://github.com/eduardogarrido90/GOFAIGenAI upon acceptance. | es-ES |
| dc.description.abstract | The development of large language models (LLMs) has transformed knowledge-based systems such as open-domain question answering, which can automatically produce vast amounts of seemingly coherent information. Yet these models suffer from well-known limitations, most notably hallucinations, the confident generation of incorrect or unverifiable facts. In this paper, we introduce an approach to the development of expert systems that uses LLMs in a controlled and transparent way. By restricting the domain and employing a structured, prompt-based extraction protocol, we distil the knowledge of an LLM into a symbolic Prolog representation that can be inspected, validated and corrected by human experts, and queried by a deterministic inference engine. We evaluate the approach along three complementary axes. First, we assess factual accuracy through a manual expert audit and, to address the limited scale of manual checking, a large-scale automated cross-validation against Wikidata over three different LLM families (Claude Sonnet 3.7, GPT-4.1 and Grok 3), reporting Wilson confidence intervals and explicitly separating entity-linking error from factual error by means of a type-aware entity linker. Second, we show that the generated knowledge bases support genuine multi-hop deductive reasoning, negation as failure and aggregation when executed in SWI-Prolog, confirming that they behave as functioning expert systems rather than inert fact lists. Third, we analyze the statistical guarantees of the pipeline, making explicit how the autoregressive, non-independent nature of LLM generation affects the concentration bounds and confidence intervals. The result is a transparent hybrid solution that combines the recall of LLMs with the precision and explainability of symbolic systems, laying the foundation for dependable AI applications in sensitive domains. All code, prompts and generated knowledge bases will be made publicly available at https://github.com/eduardogarrido90/GOFAIGenAI upon acceptance. | en-GB |
| dc.description.version | info:eu-repo/semantics/publishedVersion | |
| dc.identifier.issn | 0950-7051 | |
| dc.identifier.uri | https://doi.org/10.1016/j.knosys.2026.116657 | |
| dc.identifier.uri | http://hdl.handle.net/11531/113487 | |
| dc.keywords | Expert systems; Language models; LLMs; Fact-Checking; hallucinations | es-ES |
| dc.keywords | Expert systems; Language models; LLMs; Fact-Checking; hallucinations | en-GB |
| dc.language.iso | en-GB | |
| dc.rights.accessRights | info:eu-repo/semantics/openAccess | |
| dc.source | Revista: Knowledge-Based Systems, Periodo: 1, Volumen: online, Número: Part A, Página inicial: 116657, Página final: 0 | |
| dc.subject.other | Instituto de Investigación Tecnológica (IIT) | |
| dc.title | GOFAI meets generative AI: Development of expert systems by means of large language models | |
| dc.type | info:eu-repo/semantics/article |
Files
License bundle
1 - 1 of 1
Loading...
- Name:
- license.txt
- Size:
- 1.71 KB
- Format:
- Item-specific license agreed upon to submission
- Description: