Exploring RAG Solutions to Reduce Hallucinations in LLMs
Authors:
- 7 April 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-8
Abstract
Large Language Models (LLMs) often face challenges in generating accurate and reliable information, particularly in knowledge-intensive tasks. This limitation, referred to as hallucination, occurs when models produce content that is incorrect, irrelevant, or unsupported by evidence. Retrieval Augmented Generation (RAG) solutions provide a promising approach by integrating relevant external knowledge, enabling models to generate factually grounded responses. This study evaluates the performance of a base LLM model, a fine-tuned DistilBERT model, and two RAG architectures, Naïve RAG and Graph RAG, to study their impact on reducing hallucinations and enhancing contextual understanding. Using subsets of HaluEval, Squad-V2, and TriviaQA benchmark datasets, the base model achieved accuracies of 10.18%, 12.67%, and 5.46% respectively; Naive RAG resulted in 44.56%, 19.04%, and 35.32% accuracies; while the fine-tuned LLM model's accuracies were 72.5%, 72.31%, and 88.7% respectively. Graph RAG resulted in 8.85% and 15.12% accuracies using Squad-V2 and TriviaQA, respectively. Our findings show that while fine-tuned LLMs outperform baseline models, incorporating RAG solutions did not result in significant performance improvements, suggesting that the incorporation of external knowledge may not always align with the needs of the task. Experiments demonstrate that Graph RAG handles complex queries by leveraging relationships within structured knowledge graphs. Data organized as a knowledge graph may enable Graph RAG solutions reach their full potential by utilizing their capacity to efficiently retrieve contextually relevant information. Although computing complexity remains a restriction, this study shows that RAG topologies might not consistently enhance LLM reliability in practical situations.Keywords
This publication has 18 references indexed in Scilit:
- Detecting Hallucinations in Large Language Model Generation: A Token Probability Approach2025
- Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factors2024
- A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models2024
- Prize-Collecting Steiner Tree: A 1.79 Approximation2024
- Lost in the Middle: How Language Models Use Long ContextsTransactions of the Association for Computational Linguistics, 2024
- Give us the Facts: Enhancing Large Language Models With Knowledge Graphs for Fact-Aware Language ModelingIEEE Transactions on Knowledge and Data Engineering, 2024
- Large Language Models in Finance: A Survey2023
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- From Louvain to Leiden: guaranteeing well-connected communitiesScientific Reports, 2019
- Modularity and community structure in networksProceedings of the National Academy of Sciences of the United States of America, 2006