arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.13890cs.CL
收藏

评估用于RAG的提示工程技术在小型语言模型中的表现:一种多跳问答方法

Evaluating Prompt Engineering Techniques for RAG in Small Language Models: A Multi-Hop QA Approach

University of Isfahan(伊斯法罕大学)

Amir Hossein Mohammadi, Ali Moeinian, Zahra Razavizade, Afsaneh Fatemi, Reza Ramezani

AI总结:

本文通过评估24种提示模板,发现优化RAG在小型语言模型上的表现提升显著,为资源受限环境下的RAG系统提供实用建议。

摘要:

检索增强生成(RAG)是一种通过整合外部知识来增强语言模型事实基础的强大方法。尽管广泛研究用于大语言模型,但优化RAG用于小型语言模型(SLMs)仍然是关键研究缺口,特别是在需要复杂多跳问答任务的系统中,这些任务需要复杂的推理。在这些系统中,提示模板设计是一个关键但研究不足的因素,影响性能。本文提出了一项大规模实证研究,评估24种不同的提示模板在HotpotQA数据集上的表现。该数据集包括标准RAG提示、文献中九种良好的技术以及14种新的混合变体,均在两个著名的SLMs上进行测试:Qwen2.5-3B Instruct和Gemma3-4B-It。我们的研究基于18720个测试实例的数据,揭示了在Qwen2.5上性能提升高达83%,在Gemma3-4B-It上提升高达84.5%,相比标准RAG提示,两种模型均提升了6%。本研究还提供了关于设计有效且高效的提示以用于基于SLM的RAG系统的具体分析和可行建议,实际应用于资源受限的环境中。

英文摘要:

Retrieval Augmented Generation (RAG) is a powerful approach for enhancing the factual grounding of language models by integrating external knowledge. While widely studied for large language models, the optimization of RAG for Small Language Models (SLMs) remains a critical research gap, particularly in complex, multi-hop question-answering tasks that require sophisticated reasoning. In these systems, prompt template design is a crucial yet under-explored factor influencing performance. This paper presents a large-scale empirical study to investigate this factor, evaluating 24 different prompt templates on the HotpotQA dataset. The set includes a standard RAG prompt, nine well-formed techniques from the literature, and 14 novel hybrid variants, all tested on two prominent SLMs: Qwen2.5-3B Instruct and Gemma3-4B-It. Our findings, based on a test set of 18720 instances, reveal significant performance gains of up to 83% on Qwen2.5 and 84.5% on Gemma3-4B-It, yielding an improvement of up to 6% for both models compared to the Standard RAG prompt. This research also offers concrete analysis and actionable recommendations for designing effective and efficient prompts for SLM-based RAG systems, practically for deployment in resource-constrained environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑