Year: 2026
Type: dissertation
Abstract: Hallucination remains a challenge for large language models, occurring when a model produces a response that is coherent but factually incorrect or ungrounded.This study defines hallucination as any response that is not supported by a provided context, and evaluates several detection methods under this definition: LLM-as-a-Judge approaches, each tested across multiple underlying models, and specialized classifiers.All methods are benchmarked on the RAGTruth dataset, with performance measured using accuracy, execution time and monetary cost.Among the evaluated methods, a prompt-based evaluation approach combined with a large language model achieves the best detection performance (with respect to the AUROC metric) and demonstrates strong generalization across task domains and response lengths.In contrast, a lightweight classifier-based method achieves slightly lower detection performance but offers substantially reduced detection latency and cost.The two best-performing methods are combined into a pipeline configuration, which is then evaluated on a dataset of cybersecurity regulations and standards developed for this study.The pipeline achieves better performance than any of the best-performing detection methods used independently.Our results indicate that although LLM-as-a-Judge approaches achieve strong detection performance, encoder-based specialized classifiers can be significantly more efficient.
Authors: Larsson, David, Kutaiba Abdulaziz, Yousif
Institution: Lund University
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7165432729
