arXiv:2609.05025cs.CLSep 2026

Manuscript Offprint

arXiv:2609.05025

Leveraging Low-Level Symbolic Competences for Unsupervised Grounding in Hallucination Detection

Renato Vukovic, Hsien-chin Lin, Carel van Niekerk, Benjamin Ruppik, Michael Heck, Shutong Feng, Nurul Lubis, Milica Gasic

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Hallucination—where a language model generates outputs that are factually incorrect or unsupported by the source—is a major challenge for both prompted and fine-tuned language models. Detecting hallucinations is difficult due to the opaque reasoning processes of LLMs, which often provide little insight into why a model's output may be inaccurate.

In this work, we investigate whether an LLM can use an alternative, low level, symbolic competence such as SQL for unsupervised hallucination detection in some high level task. For this, we make an LLM build an SQL database from reference documents. This SQL database is then used for reasoning over the reference and the sampled response in a hallucination detection pipeline that is grounded in the database, thereby providing a neurosymbolic checkup.

On RAGTruth and DiaHalu hallucination detection datasets, we find that our approach improves on direct prediction and competes with state-of-the-art hallucination detection methods, while not requiring domain-specific fine-tuning. Instead it relies on a low-level general competence already present in LLMs. This warrants further investigation of low-level LLM competences in neurosymbolic approaches.¹

1 Introduction

Large language models (LLMs) excel across natural language processing tasks due to large-scale pretraining and instruction tuning (Brown et al., 2020; Ouyang et al., 2022). Consequently, they form the backbone of modern AI systems by enabling fluent interactions.

Still, LLMs frequently generate factually incorrect outputs unsupported by the source context, a phenomenon known as hallucination (Ji et al., 2023; Huang et al., 2024). These hallucinations

Figure

Figure 1: Grounding hallucination detection using low-level symbolic competences.

pose significant risks in high-stakes domains like medicine and law, where misinformation undermines decision-making (Weidinger et al., 2022).

Detecting hallucinations remains challenging because the opaque reasoning processes of LLMs provide little insight into why an output is inaccurate (Doshi-Velez and Kim, 2017). While existing detection methods achieve strong performance, they often act as black boxes (Manakul et al., 2023; Farquhar et al., 2024; Chen et al., 2024a). This opacity persists even in modern retrieval-augmented generation (RAG; Lewis et al., 2020) systems, offering limited interpretability regarding unsupported claims (Niu et al., 2024; Song et al., 2024; Kovács and Recski, 2025; Dubanowska et al., 2025).

To improve robustness, recent work explores grounding LLM reasoning in structured or symbolic representations (West et al., 2022; Yang et al., 2025). Furthermore, Dennett (1987) argues that explicit task comprehension is not strictly necessary for task competence (Figure 1). Building on this, the TeQoDO pipeline (Vukovic et al., 2026) demonstrates that an LLM's lower-level competence in SQL can be leveraged to construct a reliable knowledge base for task-oriented dialogue (Eric et al., 2020).

In this work, we investigate whether an LLM can utilise this lower-level competence for unsupervised hallucination detection. We pro-

¹Code is available under https://github.com/renatovukovic/teqhallu

Figure

Figure 2: Text-to-SQL grounded hallucination detection with an example from the RAGTruth QA task.

pose TeQHallu, a Text-to-SQL pipeline for Hallucination detection that builds on TeQoDO. Our approach prompts an LLM to build a relational SQL database from reference documents, which is then used to reason over both the reference and the response. Grounding the detection pipeline in executable SQL queries provides a neurosymbolic (Garcez et al., 2019; d'Avila Garcez and Lamb, 2023) checkup without requiring domain-specific fine-tuning.

Our contributions can be summarised as follows:

  • We introduce TeQHallu, an unsupervised text-to-SQL method that leverages low-level LLM competence to structure reference knowledge for hallucination detection.

  • We demonstrate that grounding detection in an SQL database provides transparent, inspectable reasoning traces compared to black-box approaches.

  • We evaluate our pipeline on the RAGTruth and DiaHalu benchmarks, performing competitively against state-of-the-art methods without domain-specific fine-tuning.

  • We highlight neurosymbolic checkups via lower-level, task-agnostic competences as a promising avenue for improving LLM reliability.