Evaluating Hallucinations in Domain-Adapted Large Language Models

Porwal, Sanchita, S, Sai Prasath, Bi, Xingjian, Scandlen, Madelyn

–arXiv.org Artificial Intelligence 

ABSTRACT This study investigates the phenomenon of hallucinations in domain-adapted Large Language Models (LLMs), focusing on the fine-tuning of the Llama-2 model with the Lamini dataset. Hallucinations, or the generation of nonsensical or unfaithful content by LLMs, pose a significant challenge, especially when these models are fine-tuned with domain-specific data. Our methodology involves a series of experiments testing memorization, recall, and reasoning capabilities of the fine-tuned LLM, comparing its performance on novel question-answer pairs and domain-specific information. We found that while the model shows proficiency in tasks similar to its training data, its capability to accurately reason about and recall new domain-specific information remains limited, leading to instances of hallucination. The model demonstrates a tendency to provide correct answers with extra information, suggesting an inclination toward over-generation. These results suggest important limitations of fine-tuning-only approaches for mitigating hallucinations when adapting LLMs to specialized domains and underscores the need for more robust methods in adapting LLMs to specialized domains. The study also provides insights into the varying performance of LLMs on different types of information, revealing a comparative weakness in handling domain-specific queries. 1 INTRODUCTION Large Language Models (LLMs) such as ChatGPT (OpenAI, 2023a), Bard (Google, 2023), and Llama-2 (Touvron et al., 2023) have become ubiquitous tools for a multitude of tasks across various domains. Tasks like summarization and question-answering on cloze-prompts have shown high performance, where language models' facilitation of natural language can deceive humans into believing the outputs were also from humans (Gudibande et al., 2023) (Bai et al., 2022). With the boom of artificial intelligence, business organizations have utilized open-source LLMs through fine-tuning on organization-specific information as a tool for internal and external use (Arefeen et al., 2023). With growing popularity of LLMs, new challenges arise.