Language models are known to encode simple relations, such as synonymy, in the geometry of their representations. It is unclear whether they also encode complex patterns of relationships such as those that drive analogy. We present a simple method, with no learned parameters, based on comparing the internal structural arrangements between disparate domains, to test this. Using our method we find over multiple models that representations are arranged consistently to encode complex relationship similarities. Models align distant representation clouds so that facets of meaning are easily comparable under simple mappings. Our work extends mechanistic accounts of representation space to the relative arrangement of representations that may be only weakly related to one another, showing that representation geometry is far richer than previously thought. Code and data: https://github.com/lcowley7/embedded_relationships
Figures & tables
Figure 1: An illustration of how accumulated relationships could shape a domain’s geometry. We hypothesise that each domain must remain comparable, through a simple map, with parts of other, distant domains it is related to, and that these requirements fix how its members are arranged. Requirements from different domains overlap on some members (ringed), so no flat arrangement satisfies them all; here, the arrangement that best satisfies them is saddle-shaped. We are testing this via whether distant but related manifold pairs are nearly second-order isomorphic, which gives us an estimate of how simple a map between the two spaces could be. Overlapping requirements of this kind could explain the extra curvature observed in representation manifolds, which bend through more dimensions than their own structure requires ( Olah, 2024 ; Modell et al., 2025 ) .
Figure 2: Our method on a toy example in two dimensions. Outer panels: steering vectors for four water state words ( v ) and four Celsius temperatures ( u ). Red arrows are moves , the differences between two concepts in the same domain, from colder to warmer; the bold arrow marks icy water → boiling water and its counterpart 1→100∘ C. Inner panels: within each domain, the cosine distance between every pair of moves. Middle: agreement is the Spearman ρ between the two matrices over the (26)=15 pairs of moves (which is just the upper right triangle of the distance matrices).
Table 1: The 18 water words on the three ladders whose moves we compare. Each word’s nominal temperature indexes its counterpart on the numeric ladders; the Fahrenheit index is 59∘C+32 , rounded to the 1∘ F grid. Moves are taken only within a ladder ( 15+15+21 pairs). ∗ Words on a ladder with the same temperature have no temperature move, leaving 49 moves. † steam ends both noun ladders and is one vector. § The liquid-water rung is the puddle vector. The adjectival words name a temperature explicitly; the nouns do not.
∘ C
∘ F
Arrangement (Spearman ρ )
water vs. temperature moves
+0.62
+0.62
null, mean
+0.31
+0.30
null, 95th pct.
+0.41
+0.43
p
≤0.0002
0.0010
Direction (mean cos )
Table 2: Layer 10 of gemma-2-2b-it . 18 water words drawn from three ladders, 49 moves oriented from colder to warmer. Arrangement: Spearman ρ between the two move distance matrices, against a permutation null. The null is centered near +0.30 because two moves sharing an endpoint are similar. Direction: a water move and its numeric counterpart have low cosine, no space has a single “warmer” direction.
importance is size
argument is war
ideas are food
#
size
importance
war
argument
food
ideas
1
microscopic
trivial
attack
criticise
cook
devise
2
tiny
negligible
defend
justify
swallow
accept
3
small
minor
ally
supporter
digest
comprehend
4
medium-sized
middling
strategy
reasoning
chew
ponder
5
sizable
noteworthy
retreat
back down
taste
consider
Table 3: The three metaphor mappings. Each row is a pair; these pairs are what the permutation null reshuffles. Every concept is its own steering vector ( 9+11+12=32 pairs, 64 vectors).
ROLE
medical
legal
dentistry
real estate
teaching
PRACTITIONER
doctor
lawyer
dentist
real-estate agent
teacher
RECIPIENT
patient
client
dental patient
vendor
student
VENUE
clinic
law firm
dental surgery
agency
school
MATTER
illness
lawsuit
toothache
property sale
lesson
INTERVENTION
treatment
representation
filling
auction
instruction
ARTIFACT
prescription
contract
dental chart
listing
report card
Table 4: The profession frames: six shared roles filled by five professions ( 30 vectors). Every domain profession is comparable to another role by role: (25)=10 pairs of 15 moves each. With six roles the null admits only 6!=720 relabellings, so no profession pair comparison can report p below 0.0014 .
Figure 3: Move agreement between the two sides of each analogy across depth. Dashed lines are each domain’s permutation-null 95 th percentile; they are above zero ( 0.54 – 0.87 ) because two moves that share an endpoint are similar whatever the pairing. Filled markers clear the null ( p<0.05 ), hollow markers do not. For profession frames the solid line is the mean over the 10 profession pairs, the dashed line the mean of their nulls, and a marker is filled only if most pairs clear.
Figure 4: Move agreement replicates across models. Solid lines are the move RSA, dashed lines each model’s permutation-null 95 th percentile; filled markers clear the null ( p<0.05 ). (a, b) water words against numeric temperature. (c–e) the three metaphors. Every result that is clear in Gemma is clear in both larger models.
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 5: Steering performance for the three temperature manifolds at all nine trained layers. Left: Celsius dose-response by layer; the response rises monotonically with factor and does not collapse within the tested range. Middle: mean per-concept Overall score for all three manifolds. The two numeric ladders steer weakly — Celsius 0.19 – 0.50 and Fahrenheit 0.12 – 0.34 , with only 40% and 23% of concepts respectively clearing 0.5 at layer 10 — while the 18 water words steer far better ( 1.09 – 1.70 ) and improve with depth. Right: per-temperature score at layer 10 in Celsius. A minority of levels never steer at any factor. (Appendix A )
Figure 6: The temperature vectors scored without a judge, by checking whether the target temperature (or the correct number without a ∘ symbol) appears in the steered generation. Fahrenheit temperature-cued success runs 3 – 20% across layers, peaking at layer 10 and collapsing at layer 20. (Appendix A )
Figure 7: Steering performance for the 94 analogy vectors: mean per-concept Overall score by domain and layer. All domains steer well, except the profession frames at layer 5 ( 0.76 ). (Appendix A )
Depth ≈0.19
Depth ≈0.38
Depth ≈0.58
G L5
O L12
Q L12
G L10
O L25
Q L25
G L15
O L37
Mean Overall ( 0 – 2 )
Temperature (400)
0.40
0.60
0.33
0.40
0.51
0.33
0.32
0.39
Analogies (94)
1.20
0.93
0.80
1.33
1.01
0.79
1.49
0.76
Vectors that never steer
Temperature
156
106
194
153
135
219
191
183
Appendix
Table 5: Steering efficacy on the shared grid, at matched relative depth (G = Gemma-2-2B, O = OLMo-3.1-32B, Q = Qwen3-32B). Top: mean Overall score ( 0 – 2 , maximum over factors). Bottom: vectors whose Overall is 0 at every factor. Vector counts are in parentheses. (Appendix A.1 )
Figure 15: The temperature move RSA at every layer tested ( 49 colder → warmer moves). Solid lines are the observed ρ ; dashed lines of the same colour are the permutation-null 95 th percentile. Every point clears its null, and agreement peaks at layers 4 – 5 . The shaded column is layer 10 , the layer reported in the main text.
∘ C
∘ F
Layer
ρ
null mean
null 95 th
z
p
ρ
null mean
null 95 th
z
p
0
+0.56
+0.34
+0.44
3.6
0.0006
+0.60
+0.34
+0.46
3.9
0.0008
1
+0.56
+0.34
+0.44
3.6
0.0008
+0.61
+0.33
+0.46
4.0
0.0012
2
+0.58
+0.35
+0.46
3.8
0.0008
+0.60
+0.36
+0.48
3.7
0.0016
3
+0.62
+0.36
+0.46
4.5
0.0002
+0.62
+0.36
+0.48
3.9
0.0010
4
+0.64
+0.35
+0.45
4.9
0.0002
+0.66
+0.34
+0.46
4.8
0.0004
Appendix
Table 6: Moves, all layers. RSA between the move prediction matrix and the measured move reference, over 49 pooled colder → warmer moves and (249)=1176 pairs. As in the main text the null reassigns which of the 18 ladder words sits at which temperature and rebuilds the moves over the same word pairs. (Appendix D )
cos (water move, temp. move)
within
within temp. moves
raw water
Layer
∘ C
∘ F
water moves
∘ C
∘ F
probes (ref.)
0
−0.013
−0.009
+0.14
+0.18
+0.09
+0.55
1
−0.018
−0.008
+0.15
+0.17
+0.09
+0.57
2
−0.017
+0.007
+0.15
+0.18
+0.08
+0.60
3
−0.001
+0.006
+0.15
+0.17
+0.10
+0.61
4
+0.021
+0.025
+0.16
+0.19
+0.14
+0.62
Appendix
Table 7: Direction, all layers — the Direction block of Table 2 swept over depth. Corresponding water and numeric moves are close to orthogonal at every layer, so the agreement measured in Table 6 is about relative arrangement rather than shared direction at every depth. Within each domain the moves share only a partial common axis, so neither space has a single “warmer” direction anywhere in the network. The last column is the mean pairwise cosine among the 18 raw, undifferenced water-word probes. Layer 10 (bold) is Table 2 . (Appendix D )
corresponding moves
within-domain ∣cos∣
raw vectors, within
raw vectors,
domain
Layer
cos
null 95 th
source
target
source
target
between
importance is size
5
+0.226
+0.110
0.41
0.37
+0.67
+0.91
+0.46
10
+0.234
+0.120
0.44
0.40
+0.56
+0.90
+0.40
15
+0.248
+0.124
0.43
0.40
+0.51
+0.90
+0.39
20
+0.180
+0.093
0.42
0.39
+0.55
+0.90
+0.39
argument is war
5
+0.144
+0.069
0.27
0.29
+0.82
+0.91
+0.64
Appendix
Table 8: Direction, analogies — the analogue of the Direction block of Table 2 for the four analogy domains at every layer. Corresponding moves: mean cos between each source-domain move and its counterpart in the target domain under the fixed pairing, beside the 95 th percentile of the same statistic under the permutation null used for the RSA ( 5000 draws; null mean 0.00 throughout). Within-domain: mean ∣cos∣ among one domain’s moves (unsigned here, because the unordered domains have no natural move orientation). Raw vectors: mean pairwise cos among the original steering vectors (i.e., not the move vectors but the concept steering vectors), within one domain and between the two domains (every source vector against every target vector). The metaphor domains sit apart from each other (between 0.37 – 0.64 , below their within-domain 0.51 – 0.92 ); the professions do not (between 0.70 – 0.78 , within 0.84 – 0.87 ). (Appendix E )
raw vectors, between
corresponding moves
move agreement
Profession pair
same role
other roles
cos
null 95 th
ρ
p
medical–legal
+0.85
+0.81
+0.43
+0.20
+0.84
0.149
medical–dentistry
+0.84
+0.74
+0.55
+0.28
+0.92
0.003
medical–real estate
+0.76
+0.72
+0.35
+0.17
+0.82
0.158
medical–teaching
+0.85
+0.79
+0.44
+0.22
+0.82
0.139
legal–dentistry
+0.74
+0.69
+0.34
+0.20
+0.78
0.295
Appendix
Table 9: The ten profession pairs at layer 10 of gemma-2-2b-it . Raw vectors, between: mean cos between the two professions’ steering vectors, for vectors filling the same role and for vectors filling different roles. Most pairs of professions are nearly as similar as two concepts within one profession ( 0.87 at layer 10 ; Table 8 ), so the professions do not form separable clouds. Corresponding moves: as in Table 8 ; every pair exceeds its null. Move agreement: the per-pair RSA of Figure 3 , over 15 moves, against its own permutation null. (Appendix E )
Gemma
OLMo
Qwen
Temperature, ∘ C
9/9
9/9
9/9
Temperature, ∘ F
9/9
9/9
9/9
Importance is size
4/4
4/4
4/4
Argument is war
4/4
4/4
4/4
Ideas are food
4/4
2/4
3/4
Professional frames ‡
2
2–3
2
Appendix
Table 10: Every analysis in all three models (Gemma-2-2B, OLMo-3.1-32B, Qwen3-32B): the number of depth-matched layers at which the move agreement clears its null ( p<0.05 ). Temperature is tested at nine layers and everything else at four. ‡ The number of the 10 profession pairs that clear, as a range over layers. (Appendix F )
Figure 16: Temperature move agreement under the efficacy sweep, at all nine layers. Each cell is the move RSA after removing the fraction f of water words with the lowest steering score; stars give significance against that cell’s own permutation null ( ∗∗∗p<.001 , ∗∗p<.01 , ∗p<.05 ) and brackets the number of surviving moves. Cells with fewer than 5 surviving moves are not shown. Removing poorly performing steering vectors does not qualitatively change the findings.
Figure 17: Analogy move agreement under the efficacy sweep. Each cell is the move RSA of Figure 3 recomputed after removing the fraction f of pairs with the lowest steering score; stars give significance against that cell’s own permutation null ( ∗∗∗p<.001 , ∗∗p<.01 , ∗p<.05 ) and brackets the number of surviving pairs. Frames cells give the mean over the 10 profession pairs and how many of the 10 clear p<0.05 . Argument is war keeps its agreement at every layer to f=0.3 ( p≤0.027 ) and at three of four layers to f=0.5 . Importance is size keeps its agreement to f=0.2 . Ideas are food does not survive: at layer 10 it stops being significant as soon as its one non-steering pair ( swallow → accept , score 0 ) is removed, and by f=0.4 it is lost at every layer. Professional frames change little over the range that can be tested. (Appendix G )
Depth ≈0.19
Depth ≈0.38
Depth ≈0.58
G
O
Q
G
O
Q
G
O
Temperature, ∘ C
0.3
0.4
0.5
0.4
0.4
0.5
0.2
0.5
Temperature, ∘ F
0.3
0.3
0.5
0.2
0.5
0.4
0.3
0.4
Importance is size
0.3
0.2
0.3
0.2
0.3
0.2
0.2
0.4
Argument is war
0.3
0.4
0.5
0.5
0.4
0.4
0.5
0.5
Ideas are food
0.3
–
0.0
0.0
0.2
0.0
0.1
0.2
Appendix
Table 11: The largest drop fraction f up to which each move result stays significant ( p<0.05 ) at every step of the sweep, at matched relative depth (G = Gemma-2-2B, O = OLMo-3.1-32B, Q = Qwen3-32B). 0.5 means the result survives the whole sweep; 0.0 that it is lost at the first drop; – that it is not significant even at f=0 . As in Figure 16 , a temperature cell needs at least 5 surviving moves. (Appendix G.1 )
Figure 18: Shared SAE features between water words and numeric temperatures (GemmaScope 16 k, layer 10 ). (a) For each water word, the number of its 20 strongest features that also appear among the 20 strongest features of its matched Celsius temperature, coloured by the shared feature. (b) Mean overlap (Jaccard) for matched pairs and for unmatched pairs. The dashed line marks the overlap of a pair that shares a single feature.
∘ C
∘ F
Layer
ρ
z
p
ρ
z
p
0
+0.33
3.5
0.0004
+0.33
3.5
0.0012
1
+0.32
3.5
0.0008
+0.32
3.4
0.0018
2
+0.38
4.0
0.0002
+0.32
3.2
0.0020
3
+0.40
4.3
0.0002
+0.38
3.7
0.0002
4
+0.45
4.7
0.0002
+0.49
4.8
0.0002
Appendix
Table 12: Positions (Temperature), all layers. RSA between the two domains’ position matrices, over 18 words and (218)=153 pairs. z is the observed ρ in standard deviations of the label-permutation null, which is centred at 0 (mean ∣ρnull∣<0.003 , s.d. ≈0.09 at every layer). Every cell clears its null. The null is not exactly normal, so z is an approximation.
Gemma
OLMo
Qwen
Temperature, ∘ C
9/9
9/9
9/9
Temperature, ∘ F
9/9
8/9
8/9
Importance is size
4/4
4/4
4/4
Argument is war
0/4
0/4
2/4
Ideas are food
0/4
0/4
0/4
Professional frames ‡
3–4
3–5
3–5
Appendix
Table 13: Positions in all three models (Gemma-2-2B, OLMo-3.1-32B, Qwen3-32B): the number of depth-matched layers at which position agreement clears its null ( p<0.05 ); Table 10 gives the same count for moves. ‡ The number of the 10 profession pairs that clear, as a range over layers.
Graduate School of Information Science and Technology, The University of Tokyo · Faculty of Systems Design, Tokyo Metropolitan University · Department of Computer Science and Technology, University of Cambridge +5