atlas

Research map / Learning theory and algorithms / Prediction and decision losses

The Linear Representation Hypothesis and the Geometry of Large Language Models

ICML 2024 · Learning theory and algorithms › Prediction and decision losses · approach: Metric and ordinal embedding · 10 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.

Formalizes the linear representation hypothesis via counterfactual pairs in unembedding and embedding spaces, links them to probing and steering, and derives a causal inner product (Cov(γ)^{-1}) that unifies both representations, validated on LLaMA-2-7B.

Problem

What "linear representation" of high-level concepts in language models formally means, and which inner product makes geometric notions like cosine similarity and projection meaningful in representation space.

Approach

Define unembedding and embedding linear representations via counterfactual pairs, prove the unembedding one gives logit-linear measurement and the embedding one gives intervention, and introduce a causal inner product (orthogonality for causally separable concepts) estimated as Cov(γ)^{-1} under an uncorrelatedness assumption, which makes embedding and unembedding representations coincide.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the estimated causal inner product instead of the Euclidean inner productLLaMA-2-7B concept representations · 27 conceptssemantic alignment of concept directionsHelped
Use the estimated causal inner product instead of the Euclidean inner productGemma-2B concept representations · 27 conceptssemantic alignment of concept directionsHelped
Estimate a concept direction from counterfactual word pairsLLaMA-2-7B unembedding space · 27 conceptsalignment of counterfactual pair differencesHelped
Represent thing/part with a linear direction estimated from counterfactual pairsLLaMA-2-7B unembedding space · thing/partalignment of counterfactual pair differencesNo clear effect
Use the French/Spanish concept direction as a linear probeLLaMA-2-7B · French and Spanish Wikipedia contextsconcept predictionHelped
Use the male/female direction to predict French versus SpanishLLaMA-2-7B · French and Spanish Wikipedia contextsoff-target concept predictionNo clear effect
Add the male/female intervention representation to the contextLLaMA-2-7B · king/queen and King/king completionslogit for queen versus kingHelped
Add the male/female intervention representation to the contextLLaMA-2-7B · king/queen and King/king completionslogit for King versus kingNo clear effect
Increase the male/female intervention scale from 0 to 0.4LLaMA-2-7B · Long live therank of queen: 4 -> 1Helped
Increase the male/female intervention scale from 0 to 0.4LLaMA-2-7B · The prince matured and eventually became therank of queen: 5 -> 1Helped
Increase the male/female intervention scale from 0 to 0.4LLaMA-2-7B · In a monarchy, the ruler is usually arank of queen: 5 -> 2Helped
Use the Euclidean inner product instead of the estimated causal inner productLLaMA-2-7B concept representations · 27 conceptsorthogonality of causally separable conceptsNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: BATS 3.0 Wikipedia contexts word2word bilingual lexicon world capitals csv ChatGPT-4 generated counterfactual pairs and contexts

Benchmarks: BATS 3.0 Wikipedia French/Spanish contexts

Metrics: projection histograms of counterfactual difference vectors inner product heatmaps logit change under intervention correlation of projected unembeddings

Baselines: Euclidean inner product

Builds on: word2vec analogy geometry causal representation learning (diffusion concept vectors) Riesz isomorphism

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