Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

EmbedLLM: Learning Compact Representations of Large Language Models

About

With hundreds of thousands of language models available on Huggingface today, efficiently evaluating and utilizing these models across various downstream, tasks has become increasingly critical. Many existing methods repeatedly learn task-specific representations of Large Language Models (LLMs), which leads to inefficiencies in both time and computational resources. To address this, we propose EmbedLLM, a framework designed to learn compact vector representations, of LLMs that facilitate downstream applications involving many models, such as model routing. We introduce an encoder-decoder approach for learning such embeddings, along with a systematic framework to evaluate their effectiveness. Empirical results show that EmbedLLM outperforms prior methods in model routing both in accuracy and latency. Additionally, we demonstrate that our method can forecast a model's performance on multiple benchmarks, without incurring additional inference cost. Extensive probing experiments validate that the learned embeddings capture key model characteristics, e.g. whether the model is specialized for coding tasks, even without being explicitly trained on them. We open source our dataset, code and embedder to facilitate further research and application.

Richard Zhuang, Tianhao Wu, Zhaojin Wen, Andrew Li, Jiantao Jiao, Kannan Ramchandran• 2024

Related benchmarks

TaskDatasetResultRank
Continual routing2WikiMultiHop
Accuracy59.2
22
Continual routingAverage
Accuracy74.5
22
Continual routingMMLU
Accuracy73.3
22
Continual routingGSM8K
Accuracy91.2
22
Correctness PredictionMMLU
Accuracy65.62
18
Correctness PredictionMathQA
Accuracy65.95
18
Correctness PredictionOverall Combined Datasets
Accuracy69.47
18
Correctness PredictionGPQA
Accuracy79.03
18
Correctness PredictionLogiQA
Accuracy63.25
18
Correctness PredictionPIQA
Accuracy76.86
18
Showing 10 of 31 rows

Other info

Follow for update