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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Mingtian, Lan, Shawn, Hayes, Peter, Barber, David
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929273124683776
author Zhang, Mingtian
Lan, Shawn
Hayes, Peter
Barber, David
author_facet Zhang, Mingtian
Lan, Shawn
Hayes, Peter
Barber, David
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_12177
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuning
Zhang, Mingtian
Lan, Shawn
Hayes, Peter
Barber, David
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuning
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2402.12177