atlas

Research map / Large language models / Language, safety and interpretability

EmbedLLM: Learning Compact Representations of Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Learns compact vector embeddings of 112 open LLMs via a matrix-factorization-style encoder-decoder trained on binary correctness labels, then uses them for correctness forecasting, model routing, and benchmark accuracy prediction.

Problem

Evaluating and routing among the growing number of LLMs requires repeatedly re-learning task-specific model representations, which is time- and compute-expensive.

Approach

Treat each LLM as a learnable embedding indexed by model ID and reconstruct a model-by-question correctness matrix with a Hadamard-product decoder and linear classifier (framed as matrix factorization), so the resulting compact model embeddings can be reused across downstream tasks with only a light linear head.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Matrix Factorization instead of KNNCorrectness forecasting · Unseen questions across training set sizes from 1K to Full (29K)accuracy: 0.6372 -> 0.6443; 0.7078 -> 0.7331; 0.7107 -> 0.7362; 0.7128 -> 0.7378; 0.7143 -> 0.7390; 0.7146 -> 0.7394; 0.7152 -> 0.Helped
Increase the correctness-training dataset sizeMatrix Factorization · Correctness forecasting on unseen questionsaccuracy: 0.6443 -> 0.7409Helped
Use the Matrix Factorization router instead of single-best or weighted-random routingModel routing · Overall test setrouter accuracyHelped
Use the Matrix Factorization router rather than a causal LLM routerModel routing · Model selection throughputmodel selections per second: 15x fasterHelped
Use the Matrix Factorization router rather than fine-tuning Llama-3-8B as a routerModel routing training · GPU memory usagememory cost: 60x cheaperHelped
Add MMLU to the embedding training benchmarks (ablation)Matrix Factorization embeddings · Accuracy prediction on other benchmarksMSEHelped
Add other benchmarks to the embedding training data (ablation)Matrix Factorization embeddings · GPQA accuracy predictionpredictive powerHurt
Add GSM8K to the embedding training data (ablation)Matrix Factorization embeddings · MathQA accuracy predictionMSE: 0.271Helped
Add MathQA to the embedding training data (ablation)Matrix Factorization embeddings · ASDiv accuracy predictionMSE: 0.190Helped
Add ASDiv to the embedding training data (ablation)Matrix Factorization embeddings · MathQA accuracy predictionMSE: 0.103Helped

Surprising findings

Limitations

Experimental setup

Datasets: MMLU TruthfulQA SocialQA PIQA MedMCQA MathQA LogiQA GSM8K GPQA ASDiv

Benchmarks: MMLU TruthfulQA SocialQA PIQA MedMCQA MathQA LogiQA GSM8K GPQA ASDiv

Metrics: prediction accuracy router accuracy MSE Kendall's Tau significance L2 distance latency

Baselines: KNN single-best model router random weighted router causal LLM router

Builds on: matrix factorization KNN classifier all-mpnet-base-v2 lm-evaluation-harness

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy