SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.02223 · 2024

EmbedLLM: Learning Compact Representations of Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
richardzhuang0412/embedllm canonical 3 of 4
FunctionStatusWhere it lives
correctness_prediction_evaluator Ran richardzhuang0412/embedllm/algorithm/mf.py
pointer only (licence: NONE) · get_code("1057fe3ecfefaf71")
evaluate Ran richardzhuang0412/embedllm/algorithm/mf.py
pointer only (licence: NONE) · get_code("2adf956b4cc18778")
load_tensor_data Ran richardzhuang0412/embedllm/algorithm/knn.py
pointer only (licence: NONE) · get_code("dd905b8c0143b74e")
load_and_process_data Not yet run richardzhuang0412/embedllm/algorithm/mf.py
pointer only (licence: NONE) · get_code("b953000852e227f8")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.02223")
get_code_for_paper("2410.02223")
have("2410.02223")

Connect an agent — have() is free.