atlas

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

Language Models Represent Space and Time

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

Probes Llama-2 (7B-70B) and Pythia activations on six new space and time datasets, finding linear, prompt-robust, entity-unified representations of latitude/longitude and years, plus individual space and time neurons.

Problem

Whether LLMs learn coherent, grounded representations of real-world spatial and temporal coordinates or only superficial statistics.

Approach

Extract actual world-map and timeline coordinates from LLM activations by training linear ridge probes on entity-name activations across layers, at multiple spatiotemporal scales, and then test linearity, prompt robustness, generalization, and neuron-level use with ablations and interventions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the linear probe with a one-layer MLP with 256 neurons (ablation)Llama-2-7B probes · World, USA, NYC, Historical, Entertainment, and HeadlinesR²: World: 0.881 -> 0.897; USA: 0.799 -> 0.819; NYC: 0.219 -> 0.204; Historical: 0.785 -> 0.775; Entertainment: 0.788 -> 0.7Mixed
Replace the linear probe with a one-layer MLP with 256 neurons (ablation)Llama-2-13B probes · World, USA, NYC, Historical, Entertainment, and HeadlinesR²: World: 0.896 -> 0.916; USA: 0.825 -> 0.824; NYC: 0.237 -> 0.230; Historical: 0.804 -> 0.818; Entertainment: 0.806 -> 0.8Mixed
Replace the linear probe with a one-layer MLP with 256 neurons (ablation)Llama-2-70B probes · World, USA, NYC, Historical, Entertainment, and HeadlinesR²: World: 0.911 -> 0.926; USA: 0.864 -> 0.869; NYC: 0.359 -> 0.312; Historical: 0.835 -> 0.839; Entertainment: 0.885 -> 0.8Mixed
Zero ablate space neuron L20.7573 (ablation)Llama-2-7B · Wikipedia place and entertainment contextsnext-token loss: 2.107Hurt
Zero ablate space neuron L20.7423 (ablation)Llama-2-7B · Wikipedia place and entertainment contextsnext-token loss: 1.971Hurt
Zero ablate time neuron L18.9387 (ablation)Llama-2-7B · Wikipedia place and entertainment contextsnext-token loss: 2.254Hurt
Zero ablate time neuron L19.3610 (ablation)Llama-2-7B · Wikipedia place and entertainment contextsnext-token loss: 1.082Hurt
Probe the period token appended to each headline instead of the headline's last tokenLlama-2-70B headline probes · HeadlinesR²Helped

Surprising findings

Limitations

Experimental setup

Datasets: DBpedia Wikipedia pageviews NYC OpenData points of interest historical figures dataset New York Times headlines

Benchmarks: World places USA places NYC places Historical figures Art and entertainment Headlines

Metrics: out-of-sample R^2 Spearman rank correlation proximity error

Baselines: MLP probe Pythia

Builds on: linear representation hypothesis Othello-GPT probing factual recall localization

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