arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17648cs.CL
收藏

面向资源受限环境的高效领域内问答

Efficient In-Domain Question Answering for Resource-Constrained Environments

Clarifai Inc.(Clarifai公司)

Isaac Chung, Phat Vo, Arman C. Kizilkale, Aaron Reite

AI总结:

本研究将检索增强微调(RAFT)与低秩适应(LoRA)结合,提出CRAFT方法,在保持RAG性能的同时降低微调与存储需求并加快推理,适用于资源受限环境下的知识密集型问答任务。

摘要:

检索增强生成(RAG)是一种将外部知识集成到预训练大型语言模型(LLMs)中以提升问答(QA)任务准确性和相关性的常用方法。然而,提示工程和资源效率仍然是为现实世界QA应用开发最优且鲁棒的RAG解决方案的重大瓶颈。最近的研究表明,使用微调来解决这些问题取得了成功;特别是,应用于较小7B模型的检索增强微调(RAFT)与使用GPT-3.5等更大模型的RAG设置相比,展现出了更优越的性能。将RAFT与参数高效微调(PEFT)技术(如低秩适应,LoRA)相结合,有望提供一种更高效的解决方案,但这一领域仍未被探索。在本研究中,我们将RAFT与LoRA结合,以减少微调和存储需求,并获得更快的推理时间,同时保持可比的RAG性能。这产生了一种计算效率更高的RAFT,即CRAFT,它特别适用于资源受限环境中知识密集型的QA任务,在这些环境中,互联网访问可能受限且硬件资源有限。

英文摘要:

Retrieval Augmented Generation (RAG) is a common method for integrating external knowledge into pretrained Large Language Models (LLMs) to enhance accuracy and relevancy in question answering (QA) tasks. However, prompt engineering and resource efficiency remain significant bottlenecks in developing optimal and robust RAG solutions for real-world QA applications. Recent studies have shown success in using fine tuning to address these problems; in particular, Retrieval Augmented Fine Tuning (RAFT) applied to smaller 7B models has demonstrated superior performance compared to RAG setups with much larger models such as GPT-3.5. The combination of RAFT with parameter-efficient fine tuning (PEFT) techniques, such as Low-Rank Adaptation (LoRA), promises an even more efficient solution, yet remains an unexplored area. In this work, we combine RAFT with LoRA to reduce fine tuning and storage requirements and gain faster inference times while maintaining comparable RAG performance. This results in a more compute-efficient RAFT, or CRAFT, which is particularly useful for knowledge-intensive QA tasks in resource-constrained environments where internet access may be restricted and hardware resources limited.

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

↑