Leveraging Low-Level Symbolic Competences for Unsupervised Grounding in Hallucination Detection
Organizations: Heinrich Heine University Düsseldorf, Germany
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.
Figures & tables
| Methods | Question Answering | Data-to-text Writing | Summarization | Overall Macro | ||||||||
| Precision | Recall | F1 | Precision | Recall | F1 | Precision | Recall | F1 | Precision | Recall | F1 | |
| Niu et al. (2024) initial baselines | ||||||||||||
| Prompt | 18.8 | 84.4 | 30.8 | 65.1 | 95.5 | 77.4 | 23.4 | 89.2 | 37.1 | 35.8 | 89.7 | 48.4 |
| Prompt | 33.2 | 90.6 | 45.6 | 64.3 | 100.0 | 78.3 | 31.5 | 97.6 | 47.6 | 43.0 | 96.1 | 57.2 |
| SelfCheckGPT | 35.0 | 58.0 | 43.7 | 68.2 | 82.8 | 74.8 | 31.1 | 56.5 | 40.1 | 44.8 | 65.8 | 52.9 |
| LMvLM | 18.7 | 76.9 | 30.1 | 68.0 | 76.7 | 72.1 | 23.3 | 81.9 | 36.2 | 36.7 | 78.5 | 46.1 |
| Task | Parsing Accuracy (%) |
|---|---|
| Question Answering | 80.00 |
| Data-to-text | 94.00 |
| Summarisation | 82.00 |
| Overall | 85.33 |
| Method | Precision | Recall | F1 |
|---|---|---|---|
| Direct Prediction | 48.2 | 95.4 | 61.6 |
| Symbolic Prediction | 39.9 | 51.3 | 39.7 |
| SELECT Only IDs | 62.4 | 80.1 | 69.7 |
| TeQHallu | 61.7 | 88.9 | 71.3 |
| Model | Method | Precision | Recall | F1 |
|---|---|---|---|---|
| Gemini-2.5-Flash (Spider EM: 51.3) | Direct Prediction | 48.2 | 95.4 | 61.6 |
| TeQHallu | 61.7 | 88.9 | 71.3 | |
| Qwen3 235B/22B (Spider EM: 29.0) | Direct Prediction | 50.9 | 94.0 | 64.9 |
| TeQHallu | 68.3 | 67.6 | 67.2 | |
| GPT-OSS 20B/3.6B (Spider EM: 22.4) | Direct Prediction | 69.2 | 69.0 | 68.7 |
| TeQHallu | 64.0 | 74.7 | 68.6 |
| Model | Variant | Precision | Recall | F1 Score |
|---|---|---|---|---|
| Random | – | 31.86 | 48.00 | 38.30 |
| SelfCheckGPT | BertScore | 35.38 | 30.67 | 32.86 |
| NLI | 38.84 | 62.67 | 47.96 | |
| Prompt | 48.00 | 32.00 | 38.40 | |
| FOCUS | – | 34.09 | 60.00 | 43.48 |
| LLaMA-30B | – | 30.77 | 5.33 | 9.09 |
| NF | Ic | Ir | Ov | ALL | |
|---|---|---|---|---|---|
| Gemini-1.5 PRO | 27.63 | 42.67 | 23.53 | 30.77 | 31.39 |
| TeQHallu (ours) | 45.33 | 50.00 | 11.11 | 40.00 | 42.38 |
| GPT-4 | 33.33 | 44.78 | 0.00 | 0.00 | 33.87 |
| TeQHallu (ours) | 40.00 | 45.00 | 0.00 | 40.00 | 37.13 |
| Gemini-2.5-Flash | 27.63 | 42.67 | 23.53 | 30.77 | 31.39 |
| TeQHallu (ours) | 48.65 | 47.83 | 10.53 | 40.00 | 42.95 |
Hallucination Detection
Hallucination detection identifies unsupported, fabricated, or evidence-inconsistent content in language and multimodal model outputs.
See all 78 papers