arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.12177cs.LGcs.AIcs.CL
收藏

Mafin:通过模型增强微调提升黑盒嵌入性能

Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuning

University College London(伦敦大学学院);Vectify AI(Vectify AI公司)

Mingtian Zhang, Shawn Lan, Peter Hayes, David Barber

AI总结:

针对黑盒嵌入模型难以适配特定领域、性能欠佳的问题,提出Mafin方法,通过引入小型可训练嵌入模型增强黑盒嵌入,仅训练增强模型即可显著提升性能,在有标注和无标注数据集上均有效。

摘要:

检索增强生成(RAG)已成为缓解大语言模型(LLM)幻觉问题的有效方案。RAG的检索阶段通常使用预训练嵌入模型,将查询和段落转换为向量以捕捉其语义。然而,标准预训练嵌入模型在应用于特定领域知识时可能表现不佳,因此需要进行微调。本文针对嵌入仅能从黑盒模型获取的场景展开研究,提出了模型增强微调(Mafin)——一种通过可训练嵌入模型进行增强,从而对黑盒嵌入模型实现微调的新方法。实验结果表明,Mafin仅需训练一个小型增强模型,就能显著提升黑盒嵌入的性能。我们在有标注和无标注数据集上均验证了该方法的有效性,证明其具有广泛的适用性和高效性。

英文摘要:

Retrieval Augmented Generation (RAG) has emerged as an effective solution for mitigating hallucinations in Large Language Models (LLMs). The retrieval stage in RAG typically involves a pre-trained embedding model, which converts queries and passages into vectors to capture their semantics. However, a standard pre-trained embedding model may exhibit sub-optimal performance when applied to specific domain knowledge, necessitating fine-tuning. This paper addresses scenarios where the embeddings are only available from a black-box model. We introduce Model augmented fine-tuning (Mafin) -- a novel approach for fine-tuning a black-box embedding model by augmenting it with a trainable embedding model. Our results demonstrate that Mafin significantly enhances the performance of the black-box embeddings by only requiring the training of a small augmented model. We validate the effectiveness of our method on both labeled and unlabeled datasets, illustrating its broad applicability and efficiency.

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

↑