Geometry Lab: the shape of a concept in a model’s residual stream

Geometry Lab in Ozera finds the shape a concept’s values take in a language model’s residual stream, such as whether the days of the week lie on a circle or numbers on a line, tests that shape against shuffled baselines, and steers the model along it.

It takes built-in concepts or your own, reads every layer, and runs on every model in Ozera, with no code.

How shape tests work

Concept geometry asks how a model arranges a concept’s values relative to each other in its activation space. Geometry Lab puts each value into many templates (such as “It is {x}.”), reads the residual stream at every layer, and averages each value’s activations into a class mean.

Each hypothesis that applies to the concept (a circle and a line for ordered values, clusters for values in groups, a helix for numbers) sets distances between the values, which classical multidimensional scaling turns into an ideal layout. A ridge map from the class means’ top principal components to that layout is fit on some templates and scored by R² on held-out ones, over five folds. A shape counts only when its held-out R² beats the same hypothesis with the values in shuffled orders, and the same test at the embeddings says how much of the layout comes with the tokens alone.

Concepts

Built-in concepts: ages (5 to 90), colours by hue, days of the week, hours of the day, letters A to Z, months, numbers 0 to 99, and years 1900 to 2020. A custom concept has 5 to 100 values (cyclic, ordinal or categorical) and 4 to 30 templates, up to 2,000 examples in all. A value can be read at its last token, as the mean over its tokens, or at the template’s last token.

Views

Shape

The class means in three dimensions, on their top principal components, at the layer you pick.

Layers

Each hypothesis’s held-out R² at every layer against its shuffled baseline and the embeddings, with how many dimensions the class means span.

Similarity

The cosine similarity between the centred class means in value order; a circle shows as bands that fall off and come back.

Compare

Two runs, such as the same concept in two models or at two layers, aligned by orthogonal Procrustes and compared by linear CKA, against shuffled pairings. Comparing is free.

Steer

Manifold steering moves a prompt’s activation along the concept’s shape instead of along a straight line. Steer edits an eval prompt (such as “Today is {x}. Tomorrow is”) step by step from a source value to a target value, either along a spline through the class means or along the straight line between them (difference-in-means steering), and reads the probability the model gives every value as the next token.

SAE

How a sparse autoencoder breaks the shape up: how much of it a growing set of features writes, and a verdict on whether the SAE captures it in a few shared features, dilutes it over many, shatters it into disjoint pieces, or misses it.

Atlas

An SAE’s features read over a corpus and grouped into communities of features that fire together, with each community’s geometry next to random groups of features, and a map of the features’ decoder directions.

Models

The Geometry Lab runs on every model in Ozera: Ozera-Nano and Ozera-Mini; SmolLM2 135M and 360M, SmolLM3 3B, Gemma 3 270M and 1B, and Qwen3 0.6B, 1.7B and 4B, each as a base and an instruct model (an instruct model’s prompts go through its chat template); and your own custom model.

Cost

A run on a built-in concept costs the per-request minimum ($0.12 on the L4 GPU tier and $0.10 on the A10G tier, as of November 2026). Steering and SAE reads are priced on their own, atlases by the tokens they read, and comparing two runs is free. Every price is shown before anything runs.

Frequently asked questions

Do language models represent the days of the week on a circle?

That is the kind of question the Geometry Lab tests. It fits a circle, a line and clusters (weekdays and the weekend) to the days’ class means at every layer, on held-out templates, and reports whether each fit beats shuffled orders of the same values in the model you choose.

Can I test a concept of my own?

Yes: give 5 to 100 values (in order, unless the concept is categorical, which needs groups to be tested) and 4 to 30 templates with {x} where a value goes. Ozera runs the same shape tests on it as on the built-in concepts.

What is manifold steering?

Steering along the curved shape a concept takes instead of along a straight line between two values. The Geometry Lab runs both on the same prompts and reads the probability the model gives each value.

Can I compare a concept’s shape in two models?

Yes. Run the concept on both models, then the Compare view aligns the two runs with orthogonal Procrustes and linear CKA against shuffled pairings, at no charge.

Which models does the Geometry Lab support?

Every model in Ozera: Ozera-Nano, Ozera-Mini, SmolLM2, SmolLM3, Gemma 3 and Qwen3 (base and instruct), and your custom model.