A Retrieval-augmented Generation Framework with Retriever and Generator Modules for Enhancing Factual Consistency
Abstract
Large Language Models (LLMs) are powerful but often produce factually incorrect content (hallucinations), limiting their reliability in knowledge-intensive tasks. Retrieval-augmented generation (RAG) is a promising approach to mitigate this issue by grounding LLM outputs in external knowledge sources. The paper proposes an RAG framework integrating a retriever and generator module to improve factual consistency. The retriever first identifies relevant documents from large-scale datasets, and the generator then produces context-aware responses based on the retrieved evidence. This study evaluates the approach on open-domain question answering benchmarks, including Natural Questions, Microsoft Machine Reading Comprehension Dataset (MS MARCO), and Covid-19 Open Research Dataset (CORD-19). The RAG-augmented model significantly reduces the hallucination rate from 68% to 10% and increases the Knowledge F1 score from 17.7 to 26.0, outperforming a baseline LLM without retrieval. These results demonstrate that augmenting LLMs with retrieval substantially enhances their factual accuracy and reliability. This improvement is significant for time-sensitive and domain-specific applications, such as healthcare and legal contexts, where up-to-date and accurate information is critical.
References
- Arslan, M., Ghanem, H., Munawar, S. (2024). A survey on RAG with LLMs. Procedia Computer Science, 246, 3781–3790.
- Gao, Y., Xiong, Y., Gao, X. (2024). Retrieval-augmented generation for large language models: A survey. arXiv preprint.2410.12837
- Dahl, M., Magesh, V., Suzgun, M. (2024). Large Legal Fictions: Profiling Legal Hallucinations in Large Language Models. Journal of Legal Analysis, 16(1), 64–93. DOI: 10.1093/jla/laae003
- Shuster, K., Poff, S., Chen, M. (2021). Retrieval augmentation reduces hallucination in conversation. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing: Findings, 3784–3803.
- Lee, K., Chang, M. W., Toutanova, K. (2019). Latent Retrieval for Weakly Supervised Open-Domain Question Answering. In Proceedings of the 2019 Conference of the Association for Computational Linguistics (ACL), 6086– 6096.
- Bajaj, P., Campos, D., Craswell, N. (2018). MS MARCO: A Human Generated Machine Reading Comprehension Dataset. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining (WSDM 2018), 279–287.
- Kaggle. (2020). CORD-19 research challenge, Retrieved from https: //www.kaggle.com/allen-institute-for ai/CORD-19-research-challenge
- Vaswani, A., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.
- OpenAI. (2023). GPT-4 technical report. arXiv preprint.2303.08774
- Chowdhery, A., et al. (2023). PaLM: Scaling language modeling with pathways. Journal of Machine Learning Research, 24.
- Wei, J., et al. (2022). Emergent abilities of large language models. Transactions on Machine Learning Research.
- Lewis, P., Perez, E., Piktus, A. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems, 33, 9459-9474.
- Karpukhin, V., Oğuz, B., Min, S. (2020). Dense Passage Retrieval for Open-Domain Question Answering. In Proceedings of EMNLP 2020, 6769–6781.