Matryoshka-Adaptor: Unsupervised and Supervised Tuning for Smaller Embedding Dimensions

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yoon, Jinsung, Sinha, Raj, Arik, Sercan O, Pfister, Tomas
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910545950539776
author Yoon, Jinsung
Sinha, Raj
Arik, Sercan O
Pfister, Tomas
author_facet Yoon, Jinsung
Sinha, Raj
Arik, Sercan O
Pfister, Tomas
contents Embeddings from Large Language Models (LLMs) have emerged as critical components in various applications, particularly for information retrieval. While high-dimensional embeddings generally demonstrate superior performance as they contain more salient information, their practical application is frequently hindered by elevated computational latency and the associated higher cost. To address these challenges, we propose Matryoshka-Adaptor, a novel tuning framework designed for the customization of LLM embeddings. Matryoshka-Adaptor facilitates substantial dimensionality reduction while maintaining comparable performance levels, thereby achieving a significant enhancement in computational efficiency and cost-effectiveness. Our framework directly modifies the embeddings from pre-trained LLMs which is designed to be seamlessly integrated with any LLM architecture, encompassing those accessible exclusively through black-box APIs. Also, it exhibits efficacy in both unsupervised and supervised learning settings. A rigorous evaluation conducted across a diverse corpus of English, multilingual, and multimodal datasets consistently reveals substantial gains with Matryoshka-Adaptor. Notably, with Google and OpenAI Embedding APIs, Matryoshka-Adaptor achieves a reduction in dimensionality ranging from two- to twelve-fold without compromising performance across multiple BEIR datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2407_20243
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Matryoshka-Adaptor: Unsupervised and Supervised Tuning for Smaller Embedding Dimensions
Yoon, Jinsung
Sinha, Raj
Arik, Sercan O
Pfister, Tomas
Computation and Language
Machine Learning
Embeddings from Large Language Models (LLMs) have emerged as critical components in various applications, particularly for information retrieval. While high-dimensional embeddings generally demonstrate superior performance as they contain more salient information, their practical application is frequently hindered by elevated computational latency and the associated higher cost. To address these challenges, we propose Matryoshka-Adaptor, a novel tuning framework designed for the customization of LLM embeddings. Matryoshka-Adaptor facilitates substantial dimensionality reduction while maintaining comparable performance levels, thereby achieving a significant enhancement in computational efficiency and cost-effectiveness. Our framework directly modifies the embeddings from pre-trained LLMs which is designed to be seamlessly integrated with any LLM architecture, encompassing those accessible exclusively through black-box APIs. Also, it exhibits efficacy in both unsupervised and supervised learning settings. A rigorous evaluation conducted across a diverse corpus of English, multilingual, and multimodal datasets consistently reveals substantial gains with Matryoshka-Adaptor. Notably, with Google and OpenAI Embedding APIs, Matryoshka-Adaptor achieves a reduction in dimensionality ranging from two- to twelve-fold without compromising performance across multiple BEIR datasets.
title Matryoshka-Adaptor: Unsupervised and Supervised Tuning for Smaller Embedding Dimensions
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2407.20243