Change the Model, Change the Universe

Concepts

CHAPTER 16 โ€” CHANGE THE MODEL, CHANGE THE UNIVERSE

PART V โ€” EMBEDDING SPACES ARE NOT UNIVERSAL

PURPOSE

Open Part V (the book’s signature material) by showing two models โ€” even two of the same output dimension โ€” share no coordinate system, and that comparison must be structural.

CENTRAL QUESTION

When two models embed the same text, what do their outputs have in common, and how do you measure it without assuming a shared coordinate system?

UNIQUE CLAIM

Equal dimensionality does not imply compatible representation: two 768-d encoders place the same sentence at near-orthogonal positions, share no origin/axes/scale, and agree no more with each other than with a smaller model โ€” coarse topical structure is usually shared, fine/hard-negative/rare/calibration structure is not.

THE OBJECT

Spaces โ€” space identity and cross-space structure. Demonstration: 3 models on RELATE, neighborhood overlap@10 ~0.5โ€“0.6, hard-negative retrieval agreement ~0.22โ€“0.29, same-dimension pair no better than cross-dimension pairs.

CONCEPTS INTRODUCED

Space defined by (data, objective, architecture, init, seed); output dimension as count not coordinate system; structural comparison โ€” neighborhood/rank overlap (Jaccard), mutual k-NN consistency, CKA, RSA, Procrustes residual, retrieval agreement; graded/regional agreement; the operational bans (no vector averaging, no shared threshold, no cross-index query, no raw-score A/B test).

CONCEPTS DEVELOPED / REUSED

Rotation-arbitrary bases (Ch5) as a reason coordinates can’t align; shape differences (Ch8) as score-scale incompatibility; calibration non-transfer (Ch14) across models; hard negatives (Ch11) as the region of lowest agreement; Procrustes residual forward-refs Ch19; sets up Ch17 versioning and Ch18โ€“21 bridges.

PREREQUISITES

Ch1โ€“15. Rotation invariance, kNN, correlation.

LOCAL INVARIANTS

Never treat equal dimension as a shared space; compare structure, not coordinates; never reuse a threshold across models; A/B test by task outcome; check hard/rare regions before trusting global CKA.

FAILURE MODES

“Both 768-d so comparable”; averaging/concatenating cross-model vectors without alignment; cross-model threshold reuse; A/B by raw score; assuming global CKA means local agreement.

DIAGNOSTIC METHOD

  1. Per-item top-k neighbors in each space; Jaccard + rank correlation. 2. CKA between representation matrices. 3. Retrieval-set overlap + score correlation on shared queries. 4. Restrict to hard negatives; recompute. 5. Manually inspect the largest-divergence neighborhoods.

RESEARCH-DERIVED IDEAS

CKA for comparing neural representations (Kornblith et al.); representational similarity analysis (Kriegeskorte et al.); “stitching” and model-alignment work; the general finding that independently trained models learn related but not identical representations; anisotropy/scale differences across encoders. Named without citation metadata. MEASURED (Wave 3 row 3.1): 10-NN overlap 0.70 (differently-trained) to 0.88 (two retrieval-tuned 1024-d); linear CKA 0.81-0.99 - the spaces are LINEARLY close but disagree on ~1/3 of top-1 retrievals; a fitted bridge inverts the polarity distinction (row 3.7). Equal dimension is not the axis; shared training regime is.

EXPERIMENT / LAB

Lab 16 (PROPOSED): 2โ€“3 models on one corpus; neighborhood overlap + rank correlation; CKA; retrieval agreement all vs hard-negative; manual divergence inspection of 20 items. Deliverable: one agreement number for the corpus + a list of model-swap-sensitive regions.

COMPANION COMPONENT

space_comparison(A, B, corpus): neighborhood_overlap by k, cka, rsa_correlation, procrustes_residual, retrieval_agreement {all, hard_negatives}, divergence_regions, verdict. Observatory computes on dual registration; refuses cross-space ops without a bridge.

READER OUTCOME

Reader can quantify how much two models agree on their corpus and identify where a model swap would change outcomes.

DEPENDENCIES

Ch1โ€“15.

FORWARD BRIDGE

Ch17 “Versioning the Space” โ€” a model upgrade is a self-inflicted model swap over a corpus you already stored; make the engineering consequences explicit.

ANTI-CLAIMS / LIMITS

Models are not incomparable (structural agreement is real); a map between them may exist (Part VI); claim: equal dimensions โ‰  compatible representation.

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 V โ€” Embedding Spaces Are Not Universal

The same sentence, three universes

Embed one sentence with three models:

model A (384-d):  [ ... ]
model B (768-d):  [ ... ]
model C (768-d):  [ ... ]

A and B differ in length, so nobody expects to compare them coordinate-wise. But B and C are both 768-dimensional. Line up their vectors and compute the cosine between B’s vector and C’s vector for the same sentence:

cos(B_sentence, C_sentence) โ‰ˆ 0.02

Essentially orthogonal. The two 768-dimensional encoders placed the same sentence in unrelated positions. There is no shared origin, no shared axes, no shared scale. Dimension 12 of model B and dimension 12 of model C have nothing to do with each other.

When two models embed the same text, what โ€” if anything โ€” do their outputs have in common, and how do you measure it without assuming a shared coordinate system?

Why equal dimension is not shared space

Each model’s space is defined by its own training: its data, objective, architecture, initialization, and random seed. The output dimension is just how many numbers it emits. Two models at d = 768:

  • have independently-chosen (and rotation-arbitrary, Chapter 5) bases;
  • have different anisotropy, effective rank, and score scales (Chapter 8);
  • encode different notions of “similar” (Chapter 1);
  • were never trained with any constraint linking their coordinates.

The only things that could be shared are relational: which items are near which other items. And even that is only partly shared.

How to compare spaces without shared coordinates

You compare the structure, not the coordinates:

  • Neighborhood overlap / rank agreement. For each item, take its top-k neighbors in space A and in space B; measure Jaccard overlap or rank correlation. “Do the two models agree on what is near what?”
  • Mutual k-NN consistency. Fraction of pairs that are mutual neighbors in both spaces.
  • CKA (Centered Kernel Alignment). A scalar in [0, 1] measuring how similar two representations are up to linear transformation and rotation. Widely used to compare neural representations.
  • RSA (Representational Similarity Analysis). Compare the two full pairwise-distance matrices (correlate the distance matrices).
  • Procrustes residual. Best orthogonal alignment error (Chapter 19) โ€” how well can one space be rotated onto the other?
  • Retrieval agreement. Run the same queries through both; measure overlap in returned sets and rank correlation of scores.

These give a graded answer: two models can have 0.8 neighborhood overlap on common topics and 0.3 on rare ones; high CKA globally and low agreement on hard negatives.

What is usually shared, and what is not

Shared across two models’ spaces? What
Usually shared coarse topical structure โ€” both put sports articles near sports articles
Partly shared mid-level clusters, common-entity neighbourhoods
Rarely shared fine distinctions, hard-negative rankings, rare-item neighbourhoods, calibration (a 0.8 in model A is not a 0.8 in model B), and anything polarity/relation/time-sensitive that neither model encodes well anyway

Demonstration: three models on RELATE

MEASURED on RELATE v0.1, Wave 3 row 3.1 โ€” artifact experiments/embeddings-from-first-principles/wave3/artifacts/space-comparison.json.

model pair                          10-NN overlap   linear CKA   top-1 retrieval agree   hard-neg decision agree
minilm-l6 (384) vs mpnet (768)          0.71           0.81              0.75                    0.94
mpnet (768) vs bge-large (1024)         0.71           0.85              0.67                    0.91
bge-large (1024) vs mxbai (1024)        0.88           0.99              0.86                    0.96

MEASURED: equal dimension is not the axis of agreement โ€” shared training regime is. BGE-large and mxbai (same width, both retrieval-tuned, different creators) are nearly the same space: linear CKA 0.99, 88% neighborhood overlap. The cross-family pairs sit at CKA 0.81โ€“0.85 and ~70% neighborhood overlap, and disagree on a third of top-1 retrievals. Two things to hold apart: the spaces are linearly close (high CKA) but their decisions still diverge โ€” and on RELATE v0.1 the hard-negative decision agreement is high (0.91โ€“0.96) only because its near-restatement queries let every model rank the correct answer on top; Wave 3’s per-relation preservation (Chapter 21, row 3.7) shows the polarity distinction actually inverting under a fitted bridge. “Both are 768-dimensional” predicts nothing about coordinate compatibility.

The practical consequences: you cannot average vectors from two models, cannot use one model’s threshold with another, cannot search model A’s index with a model B query, and cannot A/B test two models by comparing raw scores โ€” only by comparing task outcomes.

What this chapter establishes and what it does not

Establishes: two models’ spaces share no coordinate system regardless of dimension; comparison must be structural (neighborhood overlap, CKA, RSA, Procrustes, retrieval agreement); coarse topical structure is usually shared and fine/hard/rare/calibration structure usually is not.

Does not establish: that models are incomparable (structural agreement is real and measurable), or that no map between them exists (Part VI builds one). It establishes the principle: equal dimensions do not imply compatible representation.

Lab 16: measure how much two models agree

PROPOSED, not executed.

Setup. One corpus (1,000+ items). Two or three embedding models. Same items.

Task.

  1. Per item, compute top-10 neighbors in each space; report mean Jaccard overlap and mean rank correlation.
  2. Compute CKA between the two representation matrices.
  3. Run 200 queries through each; report retrieval-set overlap@10 and score rank correlation.
  4. Restrict step 3 to a hard-negative subset; recompute.
  5. Take 20 items and manually inspect where the two models’ neighborhoods disagree.
Pair nbr overlap@10 CKA retrieval agree@10 hard-neg agree@10
A vs B
B vs C

Success criterion. One number for “how much do these two models agree on my corpus” (pick the metric matching your use) and a list of where they diverge most โ€” the regions where a model swap would change results.

Companion component: the space-comparison report

space_comparison(space_A, space_B, corpus):
  neighborhood_overlap:  {k: value}
  cka:                   float
  rsa_correlation:       float
  procrustes_residual:   float          (from Ch19)
  retrieval_agreement:   {all: .., hard_negatives: ..}
  divergence_regions:    [cluster ids where overlap is lowest]
  verdict:               "structurally close | partly aligned | unrelated coordinates"

The Observatory computes this whenever two spaces are registered over the same corpus, and refuses cross-space operations (shared threshold, shared index, averaged vectors) unless a bridge exists (Chapter 20).

Failure modes

  • “Both are 768-d, so they’re comparable.” Dimension is not a coordinate system.
  • Averaging or concatenating vectors from two models without alignment. The result has no coherent geometry.
  • Reusing a threshold across models. Score scales differ (Chapter 14).
  • A/B testing by raw score. Compare task outcomes, not similarity numbers.
  • Assuming high global CKA means agreement everywhere. Check the hard and rare regions.

What this chapter established

  • Two models’ embedding spaces share no origin, axes, or scale โ€” regardless of output dimension.
  • This is the compatibility layer of the identity / compatibility / usability separation (Chapter 17): identity (the space_hash) is exact and per-model; whether two models are compatible for a task is measured here, never inferred from matching dimension or a version label.
  • Comparison is structural: neighborhood overlap, CKA, RSA, Procrustes residual, retrieval agreement.
  • Coarse topical structure is usually shared; fine, hard-negative, rare-item, and calibration structure usually are not.
  • On RELATE (row 3.1) 10-NN overlap between encoders runs ~0.70 for differently-trained pairs (linear CKA 0.81โ€“0.85) and 0.88 for two similarly-trained 1024-d models (CKA 0.99) โ€” equal dimension predicts nothing; shared training regime predicts a lot. High CKA does not mean shared decisions: the same pairs disagree on a third of top-1 retrievals, and a fitted bridge inverts the polarity distinction (Ch 21, row 3.7).
  • The space-comparison report, and the Observatory’s refusal of cross-space operations without a bridge.

Next

If a model swap changes results, then a model upgrade โ€” v1 to v2 โ€” is a model swap you did to yourself, over a corpus you have already stored. The next chapter makes the engineering consequences explicit: space identity, coexistence, and re-embedding.