arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01131cs.CLcs.AI
收藏

超越问答对:评估参数高效微调在大型语言模型中事实嵌入的效果

Beyond QA Pairs: Assessing Parameter-Efficient Fine-Tuning for Fact Embedding in LLMs

Shivam Ratnakar, Abhiroop Talasila, Raghav Chamadiya, Nikhil Agarwal, Vinayak K Doifode

AI总结:

本文通过BERT分类问答对并使用PEFT微调Llama-2模型,发现概念数据优于事实数据,D-Naive优于D-RAG,且PEFT在指令任务上表现优异,但在事实嵌入上非最优。

摘要:

本文对参数高效微调(PEFT)在将领域特定事实嵌入大型语言模型(LLMs)中的应用进行了广泛研究,重点通过使用基于BERT的分类器将问答(QA)对分为事实类和概念类来改进微调过程。基于这些分类,我们对两个不同的Llama-2模型进行了微调,并使用GPT-3.5 Turbo和Gemini等更大的模型进行评估。结果表明,基于概念数据集训练的模型优于基于事实数据集训练的模型。此外,我们比较了两种合成微调数据集生成技术D-RAG和D-Naive的效率,其中D-Naive表现出更优的性能。尽管PEFT已显示出有效性,但我们的研究表明,它可能不是将事实嵌入LLMs的最优方法。然而,它在基于指令的任务中表现出色。我们的发现得到了数据中心领域1000个样本数据集的验证,在该数据集中,微调后的Llama-2 7B模型在生成产品推荐方面显著优于基线模型。我们的研究强调了QA对分类和合成数据集生成技术在提升LLMs在特定领域性能中的重要性。

英文摘要:

This paper presents an extensive examination of Parameter-Efficient Fine-Tuning (PEFT) for embedding domain specific facts into Large Language Models (LLMs), focusing on improving the fine-tuning process by categorizing question-answer (QA) pairs into Factual and Conceptual classes using a BERT-based classifier. Two distinct Llama-2 models are fine-tuned based on these classifications and evaluated using larger models like GPT-3.5 Turbo and Gemini. Our results indicate that models trained on conceptual datasets outperform those trained on factual datasets. Additionally, we compare the efficiency of two synthetic fine-tuning dataset generation techniques, D-RAG and D-Naive, with D-Naive demonstrating superior performance. Although PEFT has shown effectiveness, our research indicates that it may not be the most optimal method for embedding facts into LLMs. However, it has demonstrated exceptional performance in instruction-based tasks. Our findings are reinforced by a 1000-sample dataset in the data center domain, where the fine-tuned Llama-2 7B model significantly outperforms the baseline model in generating product recommendations. Our study highlights the importance of QA pair categorization and synthetic dataset generation techniques in enhancing the performance of LLMs in specific domains.

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

↑