用检索增强生成提升宗教文本问答准确率
Investigating Retrieval-Augmented Generation in Quranic Studies: A Study of 13 Open-Source Large Language Models
- 引入检索增强生成,结合《古兰经》专有知识库
- 大模型整体表现更优,小模型优化后仍具高可信度
- 适合宗教研究、文本忠诚信度要求高的场景
在《古兰经》研究等敏感领域,大语言模型(LLM)需保证回答的准确性和上下文忠实性。通用模型常出现幻觉,偏离权威来源,影响可靠性。本研究评估13个开源模型,包括大(如Llama3:70b)、中(如Gemma2:9b)、小(如Phi3:3.8b)三类。采用检索增强生成(RAG)技术,利用包含114章经文含义、历史背景和特性的专有数据集,在生成前检索相关知识。通过人工评估的三个指标:上下文相关性、答案忠实性、答案相关性进行评测。结果显示,大模型在理解语义和生成准确、上下文相关的回答上表现更优;尽管是小模型,Llama3.2:3b在忠实性(4.619)与相关性(4.857)上表现突出,显示优化后的小型架构潜力。研究探讨了模型规模、计算效率与响应质量之间的权衡。
原文摘要 · Abstract (English)
Accurate and contextually faithful responses are critical when applying large language models (LLMs) to sensitive and domain-specific tasks, such as answering queries related to quranic studies. General-purpose LLMs often struggle with hallucinations, where generated responses deviate from authoritative sources, raising concerns about their reliability in religious contexts. This challenge highlights the need for systems that can integrate domain-specific knowledge while maintaining response accuracy, relevance, and faithfulness. In this study, we investigate 13 open-source LLMs categorized into large (e.g., Llama3:70b, Gemma2:27b, QwQ:32b), medium (e.g., Gemma2:9b, Llama3:8b), and small (e.g., Llama3.2:3b, Phi3:3.8b). A Retrieval-Augmented Generation (RAG) is used to make up for the problems that come with using separate models. This research utilizes a descriptive dataset of Quranic surahs including the meanings, historical context, and qualities of the 114 surahs, allowing the model to gather relevant knowledge before responding. The models are evaluated using three key metrics set by human evaluators: context relevance, answer faithfulness, and answer relevance. The findings reveal that large models consistently outperform smaller models in capturing query semantics and producing accurate, contextually grounded responses. The Llama3.2:3b model, even though it is considered small, does very well on faithfulness (4.619) and relevance (4.857), showing the promise of smaller architectures that have been well optimized. This article examines the trade-offs between model size, computational efficiency, and response quality while using LLMs in domain-specific applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。