Safety · Evaluation

LLMs Represent Space and Time

First page
LLMs Represent Space and Time
Paper summary

MIT researchers find that LLMs internally encode linear representations of space and time across multiple scales.

Ask this paper

Key points
01

Linear geographic representations: Activations contain linear representations of coordinates (latitude, longitude) of real-world entities, detectable via probes.

02

Multi-scale time: Similar linear representations exist for time at multiple scales (historical year, news date, etc.), suggesting a structured temporal axis.

03

Robust across prompts: The representations are robust to prompt variations and unified across different entity types (cities, events, people).

04

World-model evidence: Provides empirical support for the claim that LLMs build literal world models, not just surface-statistics imitators - a live debate in interpretability.

Abstract

The capabilities of large language models (LLMs) have sparked debate over whether such systems just learn an enormous collection of superficial statistics or a set of more coherent and grounded representations that reflect the real world. We find evidence for the latter by analyzing the learned representations of three spatial datasets (world, US, NYC places) and three temporal datasets (historical figures, artworks, news headlines) in the Llama-2 family of models. We discover that LLMs learn linear representations of space and time across multiple scales. These representations are robust to prompting variations and unified across different entity types (e.g. cities and landmarks). In addition, we identify individual "space neurons" and "time neurons" that reliably encode spatial and temporal coordinates. While further investigation is needed, our results suggest modern LLMs learn rich spatiotemporal representations of the real world and possess basic ingredients of a world model.

Every Monday
Get next week’s papers.
Subscribe on Substack