atlas

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

Demystifying Embedding Spaces using Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Linguistic encoding in LLM representations · 5 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.

Introduces Embedding Language Models (ELM), which use trained adapter layers to inject domain embeddings (movie and user embeddings from MovieLens) into a PaLM 2 LLM so it can describe and manipulate embeddings in natural language.

Problem

Embeddings are compact but hard to interpret directly; existing tools (t-SNE, UMAP, CAVs) are narrow or static, and text-only LLMs cannot describe arbitrary or hypothetical embedding points.

Approach

Train a two-layer MLP adapter that maps domain embedding vectors into the LLM's token-embedding space, using a two-stage schedule (adapter-only, then full fine-tuning) on 24 movie tasks and a user-profile task generated by PaLM 2-L, so the LLM treats embeddings as token-level inputs for interpretation, including interpolation and CAV-based extrapolation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ELM with embedding inputs instead of text-only PaLM 2-L or GPT-4 for interpolation tasksmovie and user embedding interpolation · MovieLens 25M interpolationssemantic and behavioral consistencyHelped
Use two-stage training: first train the adapter with other parameters frozen, then fine-tune the full model (ablation)ELM · MovieLens 25MconvergenceHelped
Extrapolate movie embeddings farther in CAV directionsELM movie outputs · MovieLens 25M CAV extrapolationssemantic consistencyHurt
Extrapolate user embeddings farther in CAV directionsELM user profiles · MovieLens 25M CAV extrapolationsbehavioral consistencyHelped
Increase distance from the two source movies along linear interpolationELM movie outputs · MovieLens 25M movie interpolationssemantic consistencyHurt
Use ELM to generate Amazon task outputs from embeddingsELM · Amazon Clothing, Shoes and Jewelry taskssemantic and behavioral consistencyHelped

Surprising findings

Limitations

Experimental setup

Datasets: MovieLens 25M Amazon product dataset (Clothing, Shoes and Jewelry)

Benchmarks: MovieLens 25M movie tasks (24 tasks) user profile task Amazon tasks (appendix)

Metrics: semantic consistency (cosine) behavioral consistency (Spearman rank correlation, NDCG) human rating scores (0-1)

Baselines: PaLM 2-L GPT-4

Builds on: concept activation vectors Sentence-T5 PaLM 2 weighted alternating least squares matrix factorization prefix tuning

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