Meaning Becomes Geometry

Concepts

CHAPTER 02 — MEANING BECOMES GEOMETRY

PART I — A VECTOR IS NOT MEANING

PURPOSE

Establish the semantic-to-geometric correspondence that motivates the whole field, using a hand-built 2D space, then immediately qualify it with four concrete leaks and the visualization warning.

CENTRAL QUESTION

When is a geometric answer a trustworthy answer to the semantic question it stands in for?

UNIQUE CLAIM

Once information becomes vectors, semantic questions become geometric questions — relatedness↔distance, contrast↔direction, orientation↔angle, category↔cluster — but in learned spaces this correspondence leaks: axes are unlabeled, directions are not globally constant, distance is uncalibrated, and different concepts can collapse to one point.

THE OBJECT

Geometry — distance, direction, angle, magnitude, neighborhood, cluster. Demonstration: 200 RELATE items projected by PCA vs UMAP, where 2D invents a separation absent in the full 384-d space and hides a real adjacency.

CONCEPTS INTRODUCED

The five primitives (coordinates, distance, direction, angle, magnitude); neighborhood and cluster as derived notions; analogy arithmetic as “same semantic change = same direction” and its local-only validity; magnitude often tracking frequency/specificity not meaning (hence cosine); the visualization-is-another-transformation warning.

CONCEPTS DEVELOPED / REUSED

Conditional geometry from Ch1 (now made spatial); “capital / not capital collapse” reused as the lossy-map example; sets up Ch5 (axes not interpretable), Ch8 (distance concentration), Ch6 (neighborhoods), Ch2’s UMAP warning reused in Ch6 and Ch16.

PREREQUISITES

Ch1. Basic 2D geometry, dot product, cosine.

LOCAL INVARIANTS

Verify structural claims against the queried space, never the plot; do not assume a global meaning axis; report distance only with its distribution; do not read magnitude as importance.

FAILURE MODES

Reading the plot as the space; assuming a global “meaning axis”; uncalibrated distance reporting; confusing magnitude with salience.

DIAGNOSTIC METHOD

  1. Translate the semantic question into a geometric one. 2. Compute the raw geometric fact in the full space (distance matrix, kNN, contrast directions, distance histogram). 3. Only then project for visualization, annotating which adjacencies survive.

RESEARCH-DERIVED IDEAS

word2vec analogy results (king − man + woman ≈ queen) and later work showing analogy solving depends on excluding the query words and is partly curated; local vs global linearity of semantic directions; dimensionality-reduction methods (PCA linear/variance, t-SNE and UMAP local-topology, both distorting global distance). Named, not cited with metadata; plot descriptions illustrative.

EXPERIMENT / LAB

Lab 2 (PROPOSED): Part A build a 12-word 2D space with an explicit rule (within < across distance, one separating direction). Part B embed the same words, project 3 ways, tabulate nearest-pair rank per projection vs full space; name one pair whose apparent relationship flips with the projection.

COMPANION COMPONENT

geometry_probe(space, items): pairwise distance (euclidean + cosine), full-space kNN, contrast-direction samples, pairwise-distance histogram. Rule: every user-facing 2D plot annotates which adjacencies survive in the full space.

READER OUTCOME

Reader can convert a semantic question to a geometric one, compute the answer in the full space, and explain why an embedding plot is evidence about the plot, not the space.

DEPENDENCIES

Ch1.

FORWARD BRIDGE

Ch3 “Learning an Embedding Space” — stop accepting a handed-down space; learn one from co-occurrence counts and a tiny predictive task so structure is visibly learned compression.

ANTI-CLAIMS / LIMITS

Does not settle whether analogy arithmetic works in general, which projection is best, or whether plot clusters equal categories — all measured later per space.

Explain this chapter with AI

Copy this prompt into ChatGPT, Claude, Gemini, a local model, or another AI.

Apply this chapter with AI

Copy this prompt into ChatGPT, Claude, Gemini, a local model, or another AI.

Part I — A Vector Is Not Meaning

A space you can draw

Give six words two coordinates each, by hand:

              (x = royalty/power,  y = gender: -1 female … +1 male)
king      ( 0.9,  0.8)
queen     ( 0.9, -0.8)
man       ( 0.1,  0.9)
woman     ( 0.1, -0.9)
apple     (-0.8,  0.0)
orange    (-0.8,  0.1)

Now every semantic question has a geometric form:

  • Are king and queen related? → they are close (distance 1.6, mostly along y).
  • What distinguishes king from queen? → a direction: king − queen ≈ (0, 1.6), the “gender axis.”
  • Is apple like king? → the angle between them is wide; they point different ways.
  • Which words form a group?{apple, orange} cluster tightly, far from the royalty cluster.

This is the whole promise of embeddings in one picture:

Once information becomes vectors, semantic questions become geometric questions.

Semantic question Geometric form Primitive How the correspondence leaks in learned spaces
Are X and Y related? small distance between them distance uncalibrated — in high dimensions most pairs are near-equidistant, so the signal is a small deviation from a large baseline
What distinguishes X from Y? the direction X − Y direction not globally constant — the “gender axis” near royalty words differs from the one near occupation words
Is X oriented like Y? small angle (high cosine) angle insensitive to magnitude by design; still conditional on normalization
Which items form a group? a dense cluster / shared neighborhood neighborhood, cluster lossy collapse — concepts the objective never had to separate merge to nearly one point

The chapter’s job is to make that sentence precise — and then immediately qualify it.

When is a geometric answer a trustworthy answer to the semantic question?

The geometric primitives

Five quantities do almost all the work in this book.

  • Coordinates. The d numbers. Individually near-meaningless (Chapter 5); collectively a position.
  • Distance. How far apart two points are. Euclidean ‖x − y‖ is the default; there are others (Chapter 4).
  • Direction. x − y as a vector. The claim behind analogies: the same semantic change is the same direction anywhere in the space. Sometimes true, often only locally.
  • Angle. The angle between x and y, measured by cosine. Insensitive to magnitude; sensitive to orientation.
  • Magnitude. ‖x‖. In many trained spaces this correlates with frequency, confidence, or specificity rather than meaning — which is why cosine, ignoring it, is often preferred.

Two derived ideas:

  • Neighborhood. The set of points near a given point. “What does this vector mean?” is usually answered operationally as “what is it near?”
  • Cluster. A region of higher density, loosely corresponding to a topic or category.

Where the translation leaks

The hand-built space above was constructed to make the geometry clean. Learned spaces are messier, in specific ways.

The axes are not given. We labeled x “royalty” and y “gender.” A learned model gives you d numbers with no labels, and the useful directions are usually diagonal combinations of coordinates, not the coordinates themselves (Chapter 5).

Directions are not globally constant. king − queen might equal man − woman in our toy space. In a real space, the “gender direction” near royalty words can differ from the “gender direction” near occupation words. Analogy arithmetic works on average, locally, and the famous examples are partly curated.

Distance is not calibrated. A Euclidean distance of 1.6 means nothing until you know the distribution of distances in this space. In high dimensions, most pairs are roughly equidistant (Chapter 8), so the interesting signal is a small deviation from a large baseline.

The map is lossy. Two genuinely different concepts can collapse to nearly the same point if the objective never had reason to separate them — as capital and not capital did in Chapter 1.

Demonstration: RELATE in 2D

MEASURED on RELATE v0.1 — 250 items, bge-small-en-v1.5 (384-d), PCA to 2D. The UMAP contrast is the well-documented qualitative behaviour of that method, not run here.

Embed 250 RELATE items and project to 2D with PCA:

variance kept by the top 2 principal components      15%
correlation of PCA axis 1 with sentence length       0.64   ← the dominant axis is largely a nuisance
10-NN neighbours preserved from full space to 2D      24%   ← three quarters of every neighbourhood is wrong

PCA at least reports its 15% honestly. UMAP does not: it produces six crisp, well-separated islands that look obviously correct, but check any three sentences it placed on the same island against the raw 384-dimensional vectors and you will routinely find them closer to items on a different island.

MEASURED: a 2D projection of an embedding space keeps ~15% of the variance and ~24% of the neighbourhood structure. The layout invents separations the real geometry does not have and hides adjacencies that it does. The picture is a transformation of a transformation — use it to generate hypotheses, never to verify one.

This is a recurring warning, stated once here and reused throughout:

A visualization of an embedding space is itself another lossy transformation. Verify structural claims against the space you actually query, not the picture.

What this chapter establishes and what it does not

Establishes: the correspondence between semantic and geometric questions (relatedness↔distance, contrast↔direction, orientation↔angle); the five primitives; four specific ways the correspondence leaks in learned spaces; the visualization warning.

Does not establish: that analogy arithmetic works or fails in general, that any particular projection method is best, or that clusters in a plot correspond to categories. Each is measured later, per space.

Lab 2: build one, then break one

PROPOSED, not executed.

Part A — build. Hand-assign 2D coordinates to 12 words across 3 categories. Verify that within-category distance is smaller than across-category distance, and that one consistent “direction” separates two of the categories. Write the rule you used.

Part B — break. Embed the same 12 words with a real model. Project to 2D three ways (PCA, t-SNE, UMAP). For each projection, record: which pairs are nearest, and whether that matches the full-dimensional nearest pairs.

Word pair Full-space rank PCA rank t-SNE rank UMAP rank

Success criterion. Name one pair whose apparent relationship changes depending on the projection, and state which answer you would trust and why.

Companion component: the geometry probe

Add to the Observatory a function that, given a space and a set of items, reports the raw geometric facts before any plotting:

geometry_probe(space, items) -> {
  pairwise_distance:   matrix (euclidean, cosine)
  nearest_neighbors:   top-k per item, in the FULL space
  direction_samples:   (a-b) for labeled contrast pairs
  distance_distribution: histogram of all pairwise distances
}

Rule: any 2D plot shown to a user carries a note saying which of its adjacencies survive in the full space.

Failure modes

  • Reading the plot as the space. The single most common embedding mistake after forgetting normalization.
  • Assuming a global “meaning axis.” Directions drift across regions of the space.
  • Uncalibrated distance. Reporting a raw distance without the distribution it lives in.
  • Confusing magnitude with importance. In many spaces ‖x‖ tracks frequency, not salience.

What this chapter established

  • Semantic questions have geometric forms: relatedness→distance, contrast→direction, orientation→angle, category→cluster.
  • Five primitives (coordinates, distance, direction, angle, magnitude) and two derived notions (neighborhood, cluster).
  • Four leaks: unlabeled axes, non-constant directions, uncalibrated distance, lossy collapse.
  • The visualization warning, with a demonstration where 2D invents a separation and hides an adjacency.
  • The geometry probe: raw geometric facts, computed in the full space, before any picture.

Next

We have been handed a space and asked to trust it. The next chapter refuses the handout and learns a small space from scratch — counts, then a tiny predictive task — so the reader sees that embedding structure is learned compression, not semantic coordinates handed down by a model.