Notes & Working Papers
2026.09.26
v1.0

How To Travel From Dog To Democracy (And a Gentle Introduction to Persistent Homology)

AuthorROME THORSTENSON
FiledSEPTEMBER 2026
Reading28 min
StatusDRAFT
Three thousand faint word-dots with a glowing blue arch from dog to democracy through 21 labeled words, and two shorter dashed arcs below.
Fig. 0 Three chains from dog to democracy. The arch takes 22 steps when no step may exceed distance ε = 0.848, cosine 0.64; the dashed arcs take 6 steps at ε = 0.919 and 3 at ε = 0.994. ε is the distance threshold: larger values let less similar words connect. Each of the 3,000 words sits beside its nearest chain word, and the faint lines are the near-synonym graph at the arch's threshold.

Can you get from dog to democracy by a chain of synonyms, each word nearly the same as the next?

Rather than pose this question to a cruciverbalist, I employed an embedding model to turn the question into graph search, where the distance between each node is determined by the similarity (or synonymity) of connected words. Using all-MiniLM-L6-v2, over the 3,000 most frequent English words, the tightest chain takes 22 steps:

dog → dogs → animals → birds → bird → chicken → meat → food → dinner → lunch → breakfast → morning → night → dark → light → led → lead → leading → leadership → management → administration → government → democracy.

These are not synonyms. But they are the best this model has. In order to quantify the synonymity, we measure the cosine similarity, a rough measure of semantic similarity. In this graph, it is at least 0.64; in fact, 0.64 is the first threshold after which there is a path through 'synonyms' between our targets. Dog and democracy themselves sit at 0.27.

If we tolerate less similar words, the chain shortens. If a step may fall to 0.58, it takes six steps, through human, people and citizens. At 0.51 it takes three, through bush and elected.

Some steps cheat. Near the top of the arch, the chain runs dark → light → led → lead → leading. The model is uncased, so led is also LED, the light-emitting diode. Its nearest neighbors are lights, light, lead and bright. The chain enters led as a lamp. It leaves as the past tense of lead, bound for leadership—most embedding models give a spelling one vector, whatever it means. A chain can pass through that vector and change meaning on the way. In the second half of this post, we'll investigate what happens when we violate this assumption.

The pair dog and democracy is not special. Any two of these 3,000 words can be chained with no step worse than cosine 0.40. So the question is not whether a chain exists but how tight, how similar, the steps can be, and how many it takes.

We'll begin by understanding why and how to use embeddings to measure similarity, build graphs, and measure these chains of similarity. Then we'll employ that intuition to develop an appreciation of persistent homology. Then we'll branch out to other embedders, and use human ratings and real thesauri to test whether we've over-engineered an answer to a simple question, or whether these embedding models have learned something profound about language.

§ 01 Distance

Similarity as a distance

An embedder turns each word into a vector.1 All-MiniLM-L6-v2 uses 384 numbers, so each word is a point in 384 dimensions in the same way your place on earth is determined by three coordinates: latitude, longitude, and elevation. Only the distances between the points matter: it's all relative.

To construct distances, normalize every vector to unit length and measure $d(u, v) = \lVert u - v \rVert = \sqrt{2 - 2\cos(u, v)}$. Call two words near-synonyms at threshold $\varepsilon$ when $d \le \varepsilon$, and draw an edge between them. Each $\varepsilon$ gives a graph $G_\varepsilon$. Raising $\varepsilon$ only adds edges. A nested family like this is called a filtration. Equivalently, start from the complete graph on all 3,000 words and delete every edge longer than $\varepsilon$. The first path between dog and democracy appears at $\varepsilon = 0.848$, cosine 0.64.

The first edges in the entire graph to appear are the tightest near-synonyms the model knows.

pair d cosine
anyone – anybody 0.262 0.966
tv – television 0.291 0.958
cell – cells 0.304 0.954
dance – dancing 0.311 0.952
tax – taxes 0.312 0.951

These shortest edges are all inflections, variant forms or abbreviations. To this model, the tightest synonymy is mostly morphology.

The last words to join are loners. The graph becomes one connected component at $\varepsilon = 1.093$, when flag joins argument at cosine 0.40. Tend is also among the last ten before the components merge.

Meanwhile the farthest pairs are not antonyms. Antonyms share most of their meaning and differ on one axis. Love and hate are both strong feelings. At cosine 0.49 they are closer than 99.4% of all pairs of words. Hot and cold (0.52) and rich and poor (0.59) are closer still. The farthest pairs clash in grammar as much as in meaning: haven't and distribution at cosine −0.08, then I'd and methods, and they'll and temperature. They are not opposites. They have nothing to do with each other.

§ 02 Bottleneck

The worst step sets the price

To build a chain of similar words, it's the least similar pair along that chain that requires us to compromise most as far as synonymity goes and also sets the necessary $\varepsilon$. It determines the cost. The cheapest chain between words $u$ and $v$ then costs

$$ \lambda(u, v) = \min_{\text{paths } P \text{ from } u \text{ to } v} \thickspace \max_{e \in P} d(e) $$

Read the other way, $\lambda$ is the smallest $\varepsilon$ at which the pair connects, where $u$ and $v$ fall into one component:

$$ \lambda(u, v) = \min\lbrace \varepsilon : \text{some path joins } u \text{ and } v \text{ in } G_\varepsilon\rbrace $$

One minimum spanning tree holds a cheapest chain for every pair of words at once. No search over chains is needed: $\lambda(u, v)$ is the longest edge on the tree path between $u$ and $v$. It is also the height at which single-linkage clustering merges the two words' clusters. Height here means the distance threshold.

For dog and democracy, $\lambda = 0.848$. That is the arch. No chain has a tighter worst step. At that threshold, 22 is also the fewest steps. But $\lambda$ measures the largest step, not the number of steps. Two pairs can share the same $\lambda$ while one connects in one hop and the other needs forty.

§ 03 Hops

Looser steps, shorter chains

The hop distance $h_\varepsilon(u, v)$ is the fewest edges on any path from $u$ to $v$ in $G_\varepsilon$. It is ∞ when no path exists. Raising $\varepsilon$ never removes an edge. Every path stays, and each new edge may be a shortcut. So the count can only fall or hold as $\varepsilon$ rises past $\lambda$. Plotted against $\varepsilon$, it is a staircase: the hop profile. Each flat run is a range of $\varepsilon$ with the same fewest steps. Each drop is a new shortcut.

1 5 10 15 20 22 fewest steps, dog to democracy 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 ε, the largest step allowed no path below λ λ≈0.848 direct d≈1.207
Fig. 1 Hop profile for dog and democracy in all-MiniLM-L6-v2 over 3,000 frequent English words. The pair connects at λ = 0.848 through 22 steps; the fewest steps then fall in eleven drops to the direct edge at 1.207.

Each corner of Fig. 1 is a chain:

$\varepsilon$ steps fewest-step chain
0.848 22 the arch
0.849 20 dog → animal → bird replaces dog → dogs → animals → birds → bird
0.863 19 leadership → administration, skipping management
0.874 18 chicken → food, skipping meat
0.875 12 food → things → items → products → companies → organizations → administration, skipping dinner through leadership
0.897 9 dog → animal → fish → sea → marine → military → war → victory → election → democracy
0.919 6 dog → animal → human → people → citizens → government → democracy
0.980 5 dog → human → somebody → bush → elected → democracy
0.982 4 dog → human → people → citizens → democracy
0.994 3 dog → bush → elected → democracy
1.062 2 dog → president → democracy
1.207 1 dog → democracy

Where chains tie for fewest steps, the table shows one. The long chains cross on led. The 3-step chain crosses on another shared spelling: bush joins a plant to a president.

Two goals pull against each other: the smallest worst step and the fewest steps. The staircase is their Pareto frontier. No chain is both shorter and tighter than a corner. A breadth-first search run on a grid of $\varepsilon$ values can miss corners. The drop from 18 steps to 12 happens between 0.874 and 0.875. Every staircase in this post comes instead from a variant of Bellman–Ford. It finds each corner directly, from one word to every other at once.2

§ 04 Sweep

Long chains come before shortcuts

Fig. 2 runs the filtration on the whole vocabulary. The top panel tracks the share of words in the largest component. The bottom panel tracks the mean number of steps between words that are connected.

giant (≥ 50% of words) ε≈0.863 connected ε≈1.093 largest component fraction 0.0 0.2 0.4 0.6 0.8 1.0 0.4 0.6 0.8 1.0 1.2 mean hop distance (reachable pairs) 0 5 10 15 20 0.4 0.6 0.8 1.0 1.2 peak 16.0 at ε=0.854 the arch: 0.848 ε, the largest step allowed
Fig. 2 The filtration of 3,000 English words in all-MiniLM-L6-v2. Each panel tracks one statistic of the graph as ε grows. "giant" marks the first ε at which one component holds half the words (0.863); "connected" marks the last merge (1.093).

The largest component holds 3% of the words at $\varepsilon = 0.80$, half at 0.86 and 90% at 0.94. This is a percolation transition.

The mean hop distance between connected pairs marks the phases. It peaks near the transition, at about 16 hops. Long, stringy paths join the clusters, and there are no shortcuts yet. Then the shortcuts arrive and the mean collapses. The arch, at 0.848, sits at the peak.

Fig. 3 draws the staircase for 200 random pairs. Each grey line is one pair. Its dot marks $\lambda$, where the pair first connects.

1 2 5 10 20 40 0.80 0.90 1.00 1.10 1.20 ε, the largest step allowed fewest steps (log) dog → democracy: 22 steps at λ = 0.848 200 random pairs · dot = where each pair first connects
Fig. 3 Fewest steps against ε for 200 random pairs of the 3,000 words (grey), with a dot where each pair first connects, at λ, and dog–democracy in blue.

The dots fall along a diagonal. Where a pair first connects predicts how long its chain is.3 Across 2,000 random pairs, those that connect below $\varepsilon = 0.86$, in the stringy phase, take a median of 21 steps. Those that connect above 0.95 take 6. Dog and democracy connect earlier than about 86% of random pairs. Twenty-two steps is about what that predicts.

Three thousand words is a choice. More words means more stepping stones. With the vectors fixed, a new word can only add edges.4 So $\lambda$ can only fall. At any one $\varepsilon$, the fewest steps can only fall or hold. Fig. 4 runs the same model over the top 10,000, 30,000 and 100,000 words. Each curve is one vocabulary, fainter for smaller. Beneath, each size's chain at $\lambda$ is printed with the words outside the top 3,000 in blue.

1 10 20 30 40 50 0.7 0.8 0.9 1.0 1.1 1.2 ε, the largest step allowed fewest steps, dog to democracy direct d=1.207 3,000 words · λ 0.848 · 22 steps 10,000 words · λ 0.776 · 13 steps 30,000 words · λ 0.763 · 17 steps 100,000 words · λ 0.718 · 47 steps 3,000 dog → dogs → animals → birds → bird → chicken → meat → food → dinner → lunch → breakfast → morning → night → dark → light → led → lead → leading → leadership → management → administration → government → democracy 10,000 dog → animal → creatures → beings → humans → people → people's → man's → dad's → trump's → president's → government's → government → democracy 30,000 dog → dogs → dog's → cat's → mom's → dad's → trump's → bush's → america's → australia's → brazil's → germany's → germans → nazis → fascists → dictators → dictatorship → democracy 100,000 dog → dogs → pets → cats → cates → cate → cato → peto → pio → pii → pai → paan → phan → koan → koji → joji → jojo → jonjo → jono → jony → jonson → jonsson → svensson → svenska → swedenborg → sweden → swedish → finnish → estonian → latvian → lithuanian → slovenian → slovene → serbian → balkan → macedonia → bulgaria → bulgarians → ukrainians → ukraine's → russia's → putin's → trump's → hillary's → democrat's → democrats → democratic → democracy
Fig. 4 Fewest steps from dog to democracy against ε in all-MiniLM-L6-v2, over the top 3,000, 10,000, 30,000 and 100,000 English words (fainter is smaller), with each size's chain at λ beneath. Words outside the top 3,000 are in blue. The 100,000-word run stores edges only up to ε = 1.15; its last step, the direct edge at 1.207, is the same at every size.

Each larger vocabulary finds a tighter chain: $\lambda$ falls from 0.848 to 0.776, 0.763 and 0.718. The steps at $\lambda$ do not fall with it. They go 22, 13, 17, 47. At the arch's threshold, 0.848, the larger vocabularies need 9, 6 and 6 steps by relying on rarer words. At 10,000 words the chain runs through possessives: man's, dad's, trump's, president's. At 30,000 it is mostly possessives, then nazis, fascists and dictators.5 At 100,000 it walks by spelling through short names and fragments, cates → cate → cato → peto → pio, then crosses Scandinavia, the Baltics and the Balkans. The last two corners do not move. The 2-step chain through president, at 1.062, holds at every size.

§ 05 Homology

Two unique paths make a loop

Two routes can run between the same words, forming loops. Persistent homology is a tool we can use to measure those gaps and structures as more shortcuts and paths appear and saturate, at every threshold at once.

A graph has no inside. To give it one, fill a triangle whenever three words are pairwise within $\varepsilon$. Fill a tetrahedron whenever four are, and so on. The result is the Vietoris–Rips complex, a stack of simplices whose edges are $G_\varepsilon$. We'll focus on two Betti numbers to describe their shape. $\beta_0$ counts connected components. $\beta_1$ counts independent loops that no triangle has yet filled in: rings of words, each near its neighbors, with the words across the ring far apart.

Persistent homology tracks these structures as $\varepsilon$ grows.6 Each component and each loop is born at some $\varepsilon$ and dies at a larger one. The record of those lifetimes is a barcode: an $H_0$ bar for each component counted by $\beta_0$, an $H_1$ bar for each loop counted by $\beta_1$. Every word starts as its own component, born at 0. Each merge ends one bar. The last bar never ends. Two words' components merge at $\lambda$. That is all $H_0$ records; it forgets hops. $H_1$ sees what happens after the merge, when a second route between words already joined closes a loop. An $H_1$ bar is born when an edge closes a ring. It dies when shortcuts appear and triangles cover the ring. Fig. 5 shows this on ten points in a plane. The top row is the complex at five thresholds. The bottom row is its barcode.

ε = 0.2 β0 = 10, β1 = 0 ε = 0.6 β0 = 7, β1 = 0 ε = 1.0 β0 = 2, β1 = 1 ε = 1.4 β0 = 1, β1 = 1 ε = 1.8 β0 = 1, β1 = 0 H0 · components one component never dies → H1 · loops ring closes filled in 0.0 0.5 1.0 1.5 2.0 ε: edge joins two points within this distance
Fig. 5 A Vietoris–Rips complex growing on ten points: edges join points within ε, triangles fill once all three edges exist, and orange marks a loop no triangles fill yet. Below, each component and loop is a bar from the ε where it appears to the ε where it merges or fills in.

The ring's loop is the only $H_1$ bar. It is born at 0.90, when the ring closes. It dies at 1.46, when the ring's diagonals fill it with triangles.

Fig. 6 runs the same process on the 44 words of the dog–democracy chains. It uses their true distances, so its $\lambda$ and staircase match the full graph. The words live in 384 dimensions and the screen has two. The demo lays them out with metric MDS, so the layout is approximate. The edges, triangles, hop counts and bars all come from the true distances. Drag $\varepsilon$, tap two words, or hover a bar.

Fewest hopsdog ↔ democracy
BarcodeH0 components · H1 loops
ε 0.880
hops — λ — β₀ components — β₁ loops — edges — triangles —
Fig. 6 The Vietoris–Rips complex on the 44 words of the dog–democracy chains, all-MiniLM-L6-v2. Edges join words within ε of each other, triangles shade once all three edges exist, the accent path is the fewest-hop chain between the selected pair, and orange marks loops that triangles have not yet filled. Positions are a 2D approximation (metric MDS); edges, hops and bars use the true 384-dimensional distances.

The longest-lived loop in the demo is the staircase seen from the side. It is born at 0.875, where the chain drops from 18 steps to 12. Its two sides are the two routes: things → items → products → companies → organizations on one, food → eating → lunch → breakfast → morning → night → dark → light → led → lead → leading → leadership → administration on the other. Every drop in a hop profile is a shortcut, where the shortcut and the old route close a cycle. If triangles do not fill that cycle at once, it can open an $H_1$ bar. This one lasts until 1.141, when shortcuts fill everything.

§ 06 Models

Other models, other routes

Everything so far is one model. Swap in bge-small-en-v1.5, a model of about the same size, on the same 3,000 words. The cheapest chain becomes very different:

dog → animal → meat → food → taste → enjoy → come → brought → took → picked → voted → voting → democracy.

Twelve steps, through verbs of taking instead of meals and leadership. The two models share only 50.5% of their minimum-spanning-tree edges.

Raw distances do not compare across models. e5-large packs its distances so tight that its whole 10,000-word vocabulary connects at 0.60, where MiniLM's connects at 1.10. So models are compared at matched mean degree, not matched $\varepsilon$.

Models also disagree on which words are hubs. Hubness is a property of high-dimensional nearest-neighbor graphs.7 The hubs differ by model: country names in MiniLM and mpnet, past participles in bge-large, function words (the, what, and) in e5-large.

Fig. 7 places eight multilingual embedders, run on up to 8,130 of the same English words, by two numbers. The first is hubness. If we count how many other words list a word among their nearest neighbors, then the skew of that count is high when a few hubs collect most of the listings. The second is how chain-like the graph is. Take the mean-hop peak of Fig. 2 and divide by $\log (n)$ for $n$ words, since typical path lengths grow with the logarithm of a graph's size. A high peak means words connect through long strings before shortcuts appear. A low one means a hub-and-spoke graph, where most routes pass through a few words.

(a) hubness vs. chain-likeness 0 2 4 6 8 10 0 1 2 3 4 hubness (skew of k-occurrence) mean-hop peak / log n (higher = more chain-like) bge-m3 fasttext-aligned labse me5-large mpnet-multi qwen3-emb-0.6b static-mrl-multi xlmr-ctx (b) H1 bars, 500-word English sample 0 1000 2000 3000 mpnet-multi 300 (8 long) qwen3-emb-0.6b 536 (34 long) bge-m3 825 (4 long) xlmr-ctx 829 (22 long) me5-large 848 (3 long) labse 909 (76 long) fasttext-aligned 991 (18 long) static-mrl-multi 1993 (2 long)
Fig. 7 Eight embedders on up to 8,130 of the same English words. (a) The peak of the mean hop curve divided by log n, against hubness, the skew of how often each word appears among other words' 10 nearest neighbors; low and right is hub-and-spoke, high and left is chain-like. (b) H1 bars on a fixed sample of 500 words. A bar counts as long-lived when it lasts more than a tenth of the sample's median minimum-spanning-tree edge, an operational cutoff rather than a principled one.

LaBSE sits at the chain-like end of Fig. 7a. mpnet-multi sits alone at the hub-and-spoke end, with a hubness skew of 8.0. No other model passes 3.2. All eight models are multilingual, so that is not what sets it apart. But it was built another way: as a student model, trained to reproduce an English sentence model's vectors on pairs of translated sentences.8

Fig. 8 looks at mpnet-multi's 81 largest hubs, the top 1% by degree. Of the pairs among them, 90.6% are edges. Among LaBSE's hubs, 10.3% are. Deleting mpnet-multi's hubs removes nearly every triangle and 4-clique in the graph.

(a) pairs among the top-1% hubs that are edges mpnet-multi 90.6% Qwen3-Embedding-0.6B 26.4% LaBSE 10.3% 0% 25% 50% 75% 100% (b) triangles and 4-cliques removed by deleting 81 words mpnet-multi triangles 94.6% 6.8% 4-cliques 99.6% 9.5% LaBSE triangles 20.6% 3.2% 4-cliques 38.4% 5.6% 0% 25% 50% 75% 100% top 1% by degree 81 random words (mean of 5)
Fig. 8 The top 1% of words by degree (81 of 8,130) at mean degree 5. (a) Share of pairs among those hubs that are edges. (b) Share of all triangles and 4-cliques removed by deleting the hubs (solid) or 81 random words (hollow, mean of five draws); a simplex with any deleted word counts once. No deletion run exists for Qwen3-Embedding-0.6B.

The hubs form a dense knot. Their cosine to the center of the cloud is 0.45, against 0.26 for an ordinary word.9 A hub within $\varepsilon$ of every word on a ring fills the ring with triangles. That may be why mpnet-multi has only 300 $H_1$ bars, where the others have 536 to 1,993.10

The price of dog to democracy moves with the model too. Across the eight, the fewest hops at $\lambda$ run from 7 (XLM-R) to 22 (static-mrl). The pair connects somewhere between the 59th and 88th percentile of each model's own $\lambda$ values.

§ 07 Senses

One spelling, several meanings

Back to the cheat at led to leadership. Linguists split ambiguous words in two. A homonym is two words that collided: bat the animal and bat the club have separate histories. A polyseme is one word with related senses: run in "she runs" and in "the program is running".11

By Wiktionary's etymologies, 225 of the 3,000 words are homonyms and 2,536 are polysemes.12 By these labels lead, leading and light are homonyms, but the arch uses one meaning of each. Bush, on the 3-step chain, is a homonym too. The switches the chains do make are collisions the labels miss: led with the acronym LED, and bush the plant with a president's surname.

A model that gives each sense its own vector should block tunneling across meanings. Five kinds of model do this, each a different way. Most draw their senses from WordNet.

model where a word's sense vectors come from
LMMS-SP13 contextual vectors of annotated examples, pooled per WordNet sense
DeConf WordNet senses placed in word2vec's space by walks over WordNet
gloss, Qwen3-Embedding-8B each WordNet definition embedded as "word: definition"
LLM inventory Qwen3-32B lists each word's meanings with definitions, embedded the same way
Backpack 16 sense vectors per token, learned inside a language model without context

The gloss method also runs with bge-large as the encoder, and in a gloss-only variant that embeds the definition without the word. That makes seven configurations. Each gives two graphs on the same 2,276 words. In the word graph, a word is one node, the average of its senses. In the sense graph, 1,025–1,027 ambiguous words split into one node per sense they keep. Now that a chain can no longer borrow a spelling, to step from one lead to the other, the two sense nodes must themselves be close.14 Fig. 9 redraws the staircase of Fig. 1 for the five main configurations, at both levels, with each model's chain printed beneath.

word level: one node per word sense level: one node per kept sense fewest hops from dog to democracy (log) against ε, given as the percentile of the model's own word-level pairwise distances (log), so panels are comparable; any node of each word counts all-MiniLM-L6-v2 (reference) word λ 0.848, 22 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops word chain at λ, 22 hops: dog → dogs → animals → birds → bird → chicken → meat → food → dinner → lunch → breakfast → morning → night → dark → light → led → lead → leading → leadership → management → administration → government → democracy LMMS-SP word λ 1.072, 17 hops sense λ 1.038, 23 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops sense chain at λ, 23 hops: dog → chicken[fowl] → chicken[meat] → … → gas[fuel] → gas[matter] → water[liquid] → water[body] → sea → … → troops → man[soldier] → woman → female → queen[insect] → king → … → empire → republic → democracy DeConf word λ 0.976, 27 hops sense λ 0.896, 15 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops sense chain at λ, 15 hops: dog → cat → animal → human[hominid] → man[hominid] → man[anyone] → person → employee → customer → client → lawyer → legal → law[document] → constitution → democratic → democracy gloss, Qwen3-Emb-8B word λ 1.134, 3 hops sense λ 1.134, 3 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops sense chain at λ, 3 hops: dog → species → population → democracy LLM inventory (Qwen3-32B) word λ 1.038, 7 hops sense λ 1.008, 9 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops sense chain at λ, 9 hops: dog → cat → tom → male[animal/person] → man[human being] → humans → people → society → party[political group] → democracy[shared decisions] Backpack-GPT2 word λ 1.083, 18 hops sense λ 1.113, 33 hops 1 2 5 10 20 40 0.1% 0.3% 1% 3% 10% 30% 100% hops sense chain at λ, 33 hops: dog → animal → bird → turkey → chicken[s1-3] → dinner[s1-3] → breakfast → morning → tonight → week → … → government → parliament → constitution → republic → republican[s0,2,3] → democracy[s0,2,3]
Fig. 9 Fewest steps from dog to democracy as ε grows, with one node per word (grey) and one node per sense (blue). Raw distances differ between models, so the horizontal axis expresses the threshold ε as a percentile of each model's word-level pairwise distances, one reference shared by both curves in a panel. The λ values printed in each panel are raw distances. The top-left panel is all-MiniLM-L6-v2, the only model whose chain switches meaning at a shared spelling (light → led → lead).

None of these chains cheats the way MiniLM's does. Its crossing at light → led → lead appears in no other model. Where a displayed sense-level route steps from one sense of a word to another, as polysemes, the senses are related: chicken the bird to chicken the meat, gas the fuel to gas the state of matter, water the liquid to a body of water, man the hominid to man the person. In practice, many of those senses are not so far apart.

LMMS-SP's chain holds one surprise: … female → queen → king …. That queen is the queen of an insect colony; that sense also sits next to king.

Within a model, the word and sense staircases run close together, except at the cliff at $\lambda$. Between models they differ. The gloss model reaches democracy in three steps at both levels: dog → species → population → democracy. Read at $\lambda$, where every staircase is at its cliff, splitting looks especially large. DeConf's chain shortens from 27 steps to 15. LMMS-SP's grows from 17 to 23. Backpack's grows from 18 to 33, because 16 vectors per word are perhaps too many.

Fig. 10 places all fourteen graphs among the single-vector models of Fig. 7.

(a) hubness vs. chain-likeness, 2,276 common words word level sense level (same model) single-vector embedders (word level only) 1.0 1.5 2.0 2.5 3.0 3.5 4.0 0.5 1 2 5 10 hubness (skew of k-occurrence, log scale) mean-hop peak / log n (higher = more chain-like) LMMS-SP DeConf gloss Qwen3-8B gloss bge-large gloss-only Qwen3-8B LLM inventory Backpack bge-large-10k bge-m3 e5-large-10k fasttext-aligned labse me5-large minilm (3k, 10k) mpnet-10k mpnet-multi qwen3-emb-0.6b static-mrl-multi xlmr-ctx (b) H1 bars on the fixed 500-word sample (sense level: those words' sense nodes) single-vector range 460–1704 0 1000 2000 3000 4000 5000 LMMS-SP 1144 → 1728 DeConf 1095 → 1453 gloss Qwen3-8B 1106 → 1939 gloss bge-large 1230 → 2289 gloss-only Qwen3-8B 954 → 1839 LLM inventory 1114 → 1904 Backpack 1075 → 4095
Fig. 10 (a) Each sense-aware model with one node per word (open) and one node per sense (filled), among the single-vector embedders (grey) on the same 2,276 words. (b) H1 bars on a fixed sample of 500 words; part of the rise at the sense level comes from the same words carrying more nodes. The single-vector models sit differently than in Fig. 7 because the vocabulary here is 2,276 words.

Splitting moves six of the seven models up, toward the chain-like end. Backpack, whose vectors are not meanings, moves down. Hubness moves both ways. It rises most in DeConf and falls most in LMMS-SP. Loops multiply (Fig. 10b).

If ambiguous words were false bridges, splitting them would raise $\lambda$ because the pairs they joined would have to wait for a looser threshold. In a separate test on BERT vectors, splitting does the opposite: pairs connect at a slightly tighter threshold. Each sense vector sits closer to its sense's neighbors than the averaged word did.15

Homonyms get no special treatment. Splitting 147 homonyms by etymology lowers $\lambda$ by 0.38%. Splitting 147 polysemes, matched for frequency and sense count, lowers it by the same. Random regroupings of the same senses do almost as much. Every sense model keyed to WordNet tends to place a homonym's senses farther apart than a polyseme's, but none by much.16 In LMMS-SP, 98% of homonym sense pairs are closer than the median pair of unrelated words. Something holds the river bank and the lender's bank together. Spelling is one suspect, since LMMS-SP pools vectors of the word's own token. But the gloss-only variant never sees the word, and it separates homonyms from polysemes no better than the full gloss model.

With one vector per word, the distinction nearly vanishes. A static homonym's neighbors come from its main meaning: bank sits among banks, financial and loan. Nothing about rivers. Bear is the partial exception: animal, fox and dog on one side, gun, armed and russian on the other.

The models treat both kinds of ambiguity as one word with a spread of senses. The spread is wider for a homonym. It is rarely wide enough to make two words.

§ 08 Thesaurus

Against a real thesaurus

If near-synonyms chain everything together, the chains should at least respect real synonyms. WordNet supplies labeled pairs. A simple score asks whether they connect early: the AUC for "this related pair has a lower $\lambda$ than a random pair".

0.4 0.5 0.6 0.7 0.8 0.9 random synonym antonym hypernym meronym λ-AUC: probability that a related pair connects before a random pair bge-m3 fasttext-aligned labse me5-large mpnet-multi qwen3-emb-0.6b static-mrl-multi xlmr-ctx
Fig. 11 λ-AUC of WordNet relations in English, one dot per embedder: the probability that a related pair connects before a random pair. The dashed line is chance.

Synonyms connect earliest in most models. Antonyms come next, level with hypernyms and not far behind synonyms; in fastText they edge ahead. Meronyms hover near chance. An embedding learns from contexts. Hot and cold fill the same grammatical slots in a sentence, though each reverses its meaning. In mpnet-multi the chain is hot → heat → temperature → cold. In LaBSE it is hot → warm → cool → cold. "Chaining by near-synonyms" is really chaining by shared contexts. Few words share contexts as closely as a pair of opposites.

The opening question has a literal version: chain dog to democracy through a real thesaurus. In WordNet, two words are synonyms when they share a synset. Inside the post's 3,000 words, WordNet has no chain from dog to democracy. Over its full lexicon, the chain takes seven steps:

dog → track → lead → contribute → bring → land → commonwealth → democracy.

Each edge joins two words that share one sense. The next edge can use a different sense of the word in between: dog the verb, to follow; lead as in lead to; land as a country. That carries the chain from following someone to a form of government, with no jump between unrelated words. WordNet records each sense apart. Collapsing the senses into one node per word is what lets the chain switch. The embedding chain drifts too. But at light → led → lead it switches by spelling, not by a shared sense.

Moby Thesaurus II, Grady Ward's public-domain thesaurus of 30,260 entries, is far looser. It needs four steps, even inside the post's 3,000 words. dog → close → approach → community → democracy is one of 51 shortest chains. Moby makes hot → cool → cold a two-step chain. It lists love and hate as synonyms outright.

No threshold turns an embedding graph into a thesaurus. Among MiniLM's 3,000 words, WordNet's synonym graph has as many edges as $G_\varepsilon$ at $\varepsilon = 0.80$. That is below 0.848, where dog and democracy first connect. Moby's has as many as $G_\varepsilon$ at 1.03. There the embedding's chain takes three steps, one fewer than Moby's. Matching the count does not match the edges. Fig. 12 checks the edges themselves, for eight models on up to 8,130 words. Each curve is one model as $\varepsilon$ rises. Height is precision: the share of the graph's edges that the thesaurus lists as synonyms. Distance to the right is recall: the share of the thesaurus's synonym pairs that the graph contains.

(a) WordNet, shared synset 0.0 0.1 0.2 0.3 0.4 0.0 0.1 0.2 0.3 0.4 P = R recall: share of synonym pairs inside Gε precision: share of Gε edges that are synonyms (b) Moby Thesaurus II 0.0 0.1 0.2 0.3 0.4 0.0 0.1 0.2 0.3 0.4 P = R recall: share of synonym pairs inside Gε precision: share of Gε edges that are synonyms ε where Gε has as many edges as the thesaurus ε with the best F1 labse 0.13/0.18 qwen3-emb-0.6b 0.10/0.14 static-mrl-multi 0.10/0.11 me5-large 0.08/0.11 bge-m3 0.08/0.10 fasttext-aligned 0.04/0.06 mpnet-multi 0.05/0.05 xlmr-ctx 0.02/0.03 Legend numbers: best F1 in (a)/(b). 8,130 English words; each curve sweeps ε upward (recall ≥ 0.5%).
Fig. 12 Precision against recall of the edges of Gε as synonym pairs, as ε sweeps, for eight embedders on up to 8,130 English words: (a) WordNet, words sharing a synset; (b) Moby Thesaurus II. Hollow markers sit at the ε that matches the thesaurus's edge count, filled markers at the best F1, the harmonic mean of precision and recall.

Every model ranks synonyms above chance. LaBSE puts a WordNet synonym pair closer than a random pair 95% of the time, and a Moby pair 89% of the time. Yet no curve comes near the top right. LaBSE is the best of the eight. At its best threshold it keeps about one WordNet synonym pair in every eight edges and recovers 13% of them. Against Moby it recovers 20%, at 16% precision.

The disagreement has a shape. Between 13% and 29% of each embedding's edges at WordNet's matched $\varepsilon$ are inflections like dog and dogs. WordNet almost never lists those as synonyms. The hubs differ too. A thesaurus's hubs are its most polysemous words. Moby's are set, line, run, cut and point. The embeddings' hubs are country names, function words and fragments. Of each side's 50 largest hubs, at most three match. A thesaurus records interchangeable senses, so a word with many senses collects many synonyms. An embedding gives that word one averaged vector, which may sit near none of them.

§ 09 Meaning

Is any of this meaning?

A sharper test asks whether the graph measures meaning better than the space it came from. Each model gives four distances between two words: the direct distance $d$; the hop count $h_\varepsilon$; the path length $g_\varepsilon$, the smallest total distance over all routes in $G_\varepsilon$; and the merge scale $\lambda$. Fig. 13 scores all four against people's ratings of similarity (SimLex-999) and relatedness (MEN),17 and against the shortest synonym chain in the Moby Thesaurus, for 15 models on the same word pairs.

qwen3-emb-0.6b static-mrl-multi mpnet-multi bge-m3 labse bge-small-3k me5-large bge-large-10k e5-large-10k qwen3-emb-8b-3k xlmr-ctx minilm-3k minilm-10k mpnet-10k fasttext-aligned SimLex-999 similarity, 333 pairs -0.2 0.0 0.2 0.4 0.6 0.8 Spearman ρ MEN relatedness, 726 pairs -0.2 0.0 0.2 0.4 0.6 0.8 Spearman ρ Moby Thesaurus synonym-chain hops, 2,295 pairs -0.2 0.0 0.2 0.4 0.6 0.8 Spearman ρ d direct distance g path length h hop count λ merge scale h and g in the ε-graph with mean degree 25; pairs that graph leaves unconnected rank as farthest. Same pairs in every row.
Fig. 13 Spearman correlation of four distances with human similarity ratings (SimLex-999), relatedness ratings (MEN) and synonym-chain length in the Moby Thesaurus, for 15 embedding models on the same pairs. Distances are negated against the ratings, so a positive score means closer words were rated more alike; against the thesaurus they are used as is, so a positive score means farther words take more synonym hops. Path length g and hop count h are taken at mean degree 25.

No graph distance tested here definitively beats the direct distance on these evaluations. Of 675 comparisons, a graph distance was clearly worse than $d$ in 560. In 114 no clear difference showed. In one it was clearly better.18 Even against a thesaurus, where a chain of steps looks like the natural measure, hop counts track synonym-chain length worse than the direct distance: median $\rho = 0.23$ against 0.36 on Moby. And $\lambda$ hardly describes a pair at all. For 97–100% of random pairs, it is the scale at which the more isolated of the two words joins the rest of the vocabulary. It measures how alone that word is. Fig. 14 plots this for MiniLM: dog and democracy connect at 0.848 because that is where dog joins the rest.

0.2 0.2 0.4 0.4 0.6 0.6 0.8 0.8 1.0 1.0 ε at which the lonelier word joins the main body of words λ, where the two words first connect dog – democracy: λ 0.848 = when dog joins cell – cells: λ 0.304, joins at 1.045 on the dashed line: 99% of all 4,498,500 pairs below it: 1%, pairs that meet each other before the rest dots: 5,000 random pairs
Fig. 14 λ for pairs of the 3,000 words in all-MiniLM-L6-v2, against the ε at which the lonelier of the two words joins the main body of the vocabulary. No pair can lie above the dashed line, where the two are equal.

So yes, you can get from dog to democracy. Any two of these words can be chained; a chain says little about the pair. It does say a great deal about the map: where the model merges spellings, where it packs inflections, which words it makes into hubs.

With special thanks to Erik Bach Ryhl for the question and the feedback.

Notes

  1. N · 01

    Most models here embed each word alone, with no sentence around it. Context enters only through the averaged XLM-R and BERT vectors, LMMS-SP's annotated examples, and the definitions behind the gloss and LLM sense vectors.

    ↩
  2. N · 02

    Let $B_k(u, v)$ be the smallest worst step over paths of at most $k$ edges, with $B_0(u, u) = 0$, $B_0(u, v) = \infty$ otherwise, and $d(v, v) = 0$ so a path may stop early. Then $B_k(u, v) = \min_w \max\big(B_{k-1}(u, w), d(w, v)\big)$ and $h_\varepsilon(u, v) = \min\lbrace k : B_k(u, v) \le \varepsilon\rbrace$: Bellman–Ford with $(\min, \max)$ in place of $(\min, +)$. The distinct values of $B_k$ are the corners of the staircase, and $B_k$ reaches $\lambda$ once $k$ is large enough. Each round relaxes every edge once, so $k$ rounds from one source word cost $O(k \cdot E)$ and give every corner of the staircase to every other word.

    ↩
  3. N · 03

    The Spearman correlation between $\lambda$ and the number of steps at $\lambda$ is −0.83 for the 200 pairs drawn and −0.76 over 2,000.

    ↩
  4. N · 04

    The guarantee needs the vectors held fixed. Re-embedding the words, or tuning $\varepsilon$ to keep mean degree fixed, voids it.

    ↩
  5. N · 05

    QED: dogs are more totalitarian than democratic.

    ↩
  6. N · 06

    Gunnar Carlsson, "Topology and Data," Bulletin of the American Mathematical Society 46 (2009), is a standard introduction.

    ↩
  7. N · 07

    Miloš Radovanović, Alexandros Nanopoulos and Mirjana Ivanović, "Hubs in Space: Popular Nearest Neighbors in High-Dimensional Data," Journal of Machine Learning Research 11 (2010).

    ↩
  8. N · 08

    Nils Reimers and Iryna Gurevych, "Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation," EMNLP 2020. The model is paraphrase-multilingual-mpnet-base-v2, distilled from paraphrase-mpnet-base-v2.

    ↩
  9. N · 09

    Only 5% of the other words touch any of them. mpnet-multi also has the lowest intrinsic dimension of the eight, 3.7 by the TwoNN estimate against 4.5–11.6: Elena Facco, Maria d'Errico, Alex Rodriguez and Alessandro Laio, "Estimating the intrinsic dimension of datasets by a minimal neighborhood information," Scientific Reports 7 (2017), which estimates dimension from the ratio of each point's second-nearest to nearest neighbor distance.

    ↩
  10. N · 10

    The hubs are not language fragments acting as bridges: eng, para and los are among them, but so are vast, jolt and seeks. Short strings make up 68% of Qwen3-Embedding-0.6B's top 50 hubs against mpnet-multi's 72%, yet only 26% of the pairs among Qwen's hubs are edges. In mpnet-multi at mean degree 5 there are 3.26 million 4-cliques against 224,000 triangles, where LaBSE has about 25,000 of each. The 81 hubs hold 46.6% of the edges, and deleting them removes 94.6% of the triangles and 99.6% of the 4-cliques, against 7% and 10% for 81 random words.

    ↩
  11. N · 11

    Jennifer Rodd, Gareth Gaskell and William Marslen-Wilson, "Making Sense of Semantic Ambiguity: Semantic Competition in Lexical Access," Journal of Memory and Language 46 (2002); Ekaterini Klepousniotou and Shari Baum, "Disambiguating the Ambiguity Advantage Effect in Word Recognition: An Advantage for Polysemous but Not Homonymous Words," Journal of Neurolinguistics 20 (2007).

    ↩
  12. N · 12

    The labels come from Wiktionary, which gives a homonym one entry per etymology; each entry must also appear in WordNet. A hand check of 30 random homonyms found 24 correct, and the labels agree with the human judgments in RAW-C at κ = 0.86 (Sean Trott and Benjamin Bergen, "RAW-C: Relatedness of Ambiguous Words in Context (A New Lexical Resource for English)," ACL 2021). Wiktionary's labels are historical, so they call palm and toast one word each where speakers may not. Of the rest, 100 words have a single sense and 139 go unlabeled: mostly names, nationality words and acronyms with no lowercase dictionary entry, plus contractions and slang.

    ↩
  13. N · 13

    Daniel Loureiro, Alípio Mário Jorge and Jose Camacho-Collados, "LMMS Reloaded: Transformer-based Sense Embeddings for Disambiguation and Beyond," Artificial Intelligence (2022). The vectors used here are its USM profile on XLNet-large (figshare 21977183), one 1024-dimensional vector per WordNet 3.0 sense key; senses without SemCor examples get vectors inferred from WordNet's structure and glosses.

    ↩
  14. N · 14

    In principle. In practice the sense vectors are not blind to spelling: the gloss and LLM models embed the string "word: definition", LMMS-SP pools vectors of the word's own token in context, and DeConf places senses near the word's own vector. The gloss-only ablation, which drops the word from the string, separates homonyms from polysemes about as well (0.69 against 0.70), so here the leak is small.

    ↩
  15. N · 15

    BERT vectors are averaged over each word's occurrences in WikiText. Splitting 429 ambiguous words into their WordNet senses lowers $\lambda$ by 1.04% for pairs whose cheapest chain ran through a split word and by 0.67% for pairs whose chain did not, against 0.17% for random splits of the same sizes. Over the 2,776 words that occur at least 16 times, each occurrence is assigned to its nearest WordNet sense, keeping the more confident half, and a word is split when at least two senses keep six occurrences each; the 429 split words are 15.5% of the nodes. Splitting by k-means clusters of occurrences does the same as WordNet senses (1.19%). In LMMS-SP, senses from a homonym's two etymologies sit at a mean distance of 1.20, related senses at 1.04, and senses of two unrelated words at 1.39. The two halves of a split homonym are each other's nearest node in 57% of cases.

    ↩
  16. N · 16

    The AUC is the probability that a random homonym sense pair sits farther apart than a random polyseme sense pair: LMMS-SP 0.72, gloss with Qwen3-Embedding-8B 0.70, gloss with bge-large 0.68, DeConf 0.65; WordNet's hierarchy alone, with no embedding, 0.64, and definition word overlap 0.60. If a homonym's single vector blended two meanings, its nearest neighbors would fall into two unrelated groups; in 20 of the 22 single-vector models, homonyms show that split no more often than matched polysemes. The LLM inventory can be asked outright, since its prompt had Qwen3-32B group each word's meanings into separate words. It agrees with the etymological labels at κ = 0.36, mostly because it splits by part of speech or by sense cluster: it makes sort, party and strike homonyms.

    ↩
  17. N · 17

    Felix Hill, Roi Reichart and Anna Korhonen, "SimLex-999: Evaluating Semantic Models With (Genuine) Similarity Estimation," Computational Linguistics 41 (2015); Elia Bruni, Nam Khanh Tran and Marco Baroni, "Multimodal Distributional Semantics," Journal of Artificial Intelligence Research 49 (2014). The comparison also used WordSim-353, SimVerb-3500 and WordNet's synonym graph.

    ↩
  18. N · 18

    15 models, nine sets of ratings and thesaurus pairs, and five graph distances ($\lambda$, and $h$ and $g$ at mean degrees 10 and 25). For each comparison, a paired bootstrap over word pairs gives a 95% interval for the graph distance's $\rho$ minus that of $d$.

    ↩