Repurposing Language Models into Embedding Models: Finding the Compute-Optimal Recipe
Ziarko, Alicja, Jiang, Albert Q., Piotrowski, Bartosz, Li, Wenda, Jamnik, Mateja, Miłoś, Piotr
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jun-6-2024
- Country:
- South America > Colombia
- Meta Department > Villavicencio (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Hawaii > Honolulu County
- Honolulu (0.04)
- Arizona > Maricopa County
- Scottsdale (0.04)
- Minnesota > Hennepin County
- Europe
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- Romania > Sud - Muntenia Development Region
- Giurgiu County > Giurgiu (0.04)
- Poland > Masovia Province
- Warsaw (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Croatia > Dubrovnik-Neretva County
- Dubrovnik (0.04)
- United Kingdom > England
- South America > Colombia
- Genre:
- Research Report > New Finding (1.00)
- Technology: