将语言模型改造为嵌入模型:寻找计算最优配方
Repurposing Language Models into Embedding Models: Finding the Compute-Optimal Recipe
AI总结:
本文提出一种算法,在给定预训练解码器语言模型和不同计算预算下,寻找文本嵌入模型在模型规模、数据量和微调方法上的最优配置,并发现全量微调与低秩适应分别适用于低、高预算场景。
摘要:
文本嵌入对于许多任务至关重要,例如文档检索、聚类和语义相似度评估。在本文中,我们研究如何在给定一组预训练的解码器-only语言模型的情况下,以计算最优的方式进行对比训练文本嵌入模型。我们的创新是一种算法,该算法能够在不同的计算预算水平下,为文本嵌入模型生成模型规模、数据量和微调方法的最优配置。我们通过大量实验获得的最终配方可供实践者用来为其嵌入模型做出明智的设计选择。具体而言,我们的研究结果表明,全量微调和低秩适应微调分别在较低和较高的计算预算下产生最优模型。
英文摘要:
Text embeddings are essential for many tasks, such as document retrieval, clustering, and semantic similarity assessment. In this paper, we study how to contrastively train text embedding models in a compute-optimal fashion, given a suite of pre-trained decoder-only language models. Our innovation is an algorithm that produces optimal configurations of model sizes, data quantities, and fine-tuning methods for text-embedding models at different computational budget levels. The resulting recipe, which we obtain through extensive experiments, can be used by practitioners to make informed design choices for their embedding models. Specifically, our findings suggest that full fine-tuning and low-rank adaptation fine-tuning produce optimal models at lower and higher computational budgets respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。