One SVD Joins Two Embedding Spaces: We Tested the Platonic JEPA Paper on Our Own OS
Two results, both measured on our own data, both usable today:
- One closed-form map joins two embedding spaces. A 384×1024 orthonormal matrix, written by a single SVD with no training loop, sends a vector from our in-browser embedder to the same text's vector in our platform embedder: 96% top-1 with 1,000 paired texts, 98.5% with 3,000.
- Where your positive pairs come from decides what the encoder keeps. Fine-tuning the same model on the same texts, views drawn from different descriptions of one function kept 38% summary-to-name retrieval. Views made by masking one description twice kept 5%.
Both come straight out of a paper published twelve days ago: Proving and Improving the Platonic Representation Hypothesis with JEPAs by Randall Balestriero and Yann LeCun. This post is what happened when we ran its claims on an operating system instead of on image captions.
What the paper proves
The Platonic Representation Hypothesis says models trained on different modalities drift toward one shared picture of the world as they scale. The paper turns that into a theorem for joint-embedding architectures, and the condition is short:
- Train each encoder separately.
- Make every positive pair two independent observations of the same world state: two captions of one image, two photographs of one scene. The paper calls these good views.
- Then the encoders learn the same embedding up to a single rotation.
The contrast case is a bad view: two corruptions of one observation, such as two maskings of one sentence. Those share the observation's own wording, so the encoder spends dimensions on wording. The paper shows next-token prediction has this form too, and reports that a 109M-parameter text encoder trained on good views aligns with vision models better than language models up to 72B parameters.
An instrumented OS is an unusually good place to test this, because good views come with exact join keys. A commit has a diff, a message and a review. A function has a docstring, a name and call sites. A directory has a name, a listing and a README. Nobody has to guess which observations describe the same thing.
Result one: the bridge
AitherOS runs two embedding spaces. Agent memory in the browser uses a 22M-parameter model at 384 dimensions, quantized to 8 bits, on a WASM worker. The platform index uses aither-code-embed at 1024 dimensions. They were trained separately on different data.
The paper's Proposition 2 says paired data should only be needed to find one rotation. With unequal dimensions that becomes an orthonormal map, and it has a closed form:
# X: n x 384 device vectors, Y: n x 1024 platform vectors, same n texts
mx, my = X.mean(0), Y.mean(0)
U, _, Vt = np.linalg.svd((X - mx).T @ (Y - my), full_matrices=False)
M = U @ Vt # 384 x 1024, M @ M.T == I
bridged = (query_384 - mx) @ M # now comparable with platform vectors
That is the whole fit: 393,216 weights, milliseconds, no gradient steps. We scored it on 6,000 real memory chunks (median 726 characters), holding out 2,000, asking whether the bridged device vector retrieves the same chunk's platform vector.
| Paired texts used to fit | Top-1 | Top-10 |
|---|---|---|
| 100 | 31% | 66% |
| 300 | 78% | 97% |
| 1,000 | 96% | 99.9% |
| 3,000 | 98.5% | 100% |
Chance is 0.05%, and a map fitted on shuffled pairs scores 0.03–0.12%. The numbers hold under a file-level split (95.7–96.0% at 1,000 pairs), so no file contributes to both fitting and testing. Against a larger pool of 5,000 unseen candidates the 1,000-pair figure is 93%.
The orthonormal constraint earns its place. Against a ridge-regression map tuned in its favour, the rotation wins at 300 pairs (78% vs 74%) and 1,000 pairs (96% vs 95%), which is the paper's point: a map that can only turn one space onto the other needs fewer pairs than one free to fit them.
What this is for: identity. The bridge tells you that a vector on a phone and a vector in the platform index are the same content, without re-embedding either side. It is not a substitute for native search: bridged top-10 results overlap the platform's own top-10 by 37–39%, because the two encoders hold different opinions about what is similar. The paper predicts exactly that split. Its Theorem 2 bounds the misalignment by how different the two encoders' positive pairs were.
Result two: good views against bad views
We mined 20,000 Python functions from the AitherOS library, each with at least two text observations (docstring summary, docstring body, function name as words) and its code body. Files were split so no file appears in both training and test.
Then we fine-tuned the same encoder twice with the paper's objective. Both arms see identical texts, identical trimming (a random 50–100% span) and identical 15% masking. Only the source of a function's views differs:
if arm == "bad":
src = [rnd.choice(obs)] * V # V corruptions of ONE observation
else:
src = rnd.sample(obs, min(V, len(obs))) # views from DIFFERENT observations
The code side is aither-code-embed, frozen, never shown to the text encoder. Scoring is on 3,972 held-out functions, three seeds:
| Text encoder | Neighbour agreement with code | One-rotation top-1 | Summary → own name |
|---|---|---|---|
| Fine-tuned, good views | 0.100 | 8.5% | 37.8% |
| Fine-tuned, bad views | 0.061 | 6.1% | 5.1% |
Good views win on every metric in 3 of 3 seeds, with seed-to-seed differences under 0.005. A closed-form linear version of the same experiment agrees: good views 1.76× bad views on rotation retrieval, 5 of 5 seeds, and the bad-view encoder was indistinguishable from an untrained projection.
One calibration: at 16,000 functions, good-view fine-tuning matched the pretrained starting point (8.8% top-1) and did not pass it. The base model already learned from a billion paired sentences, which are good views by the paper's definition. The gain shows up as what fine-tuning preserves, and that is the rule we are adopting.
What we are changing in AitherOS
- Embedder recipes will pick positives by join key. Commit, function, directory, service-and-time, task. Masking stays as an augmentation on top, never as the source of a pair.
- A registered bridge between embedding spaces is next. One SVD, refit whenever either side changes, to be gated at 95% identity top-1 with a shuffled-pair control at chance.
- Place encoders read names. Scoring directory observations against 958 human-written READMEs on held-out projects, the directory's own name reached a mean rank fraction of 0.11 and its child-name listing 0.21, against 0.40 for a content-type layout grid. The next cartographer encoder reads names and listings.
- Every latent-to-language claim now passes one gate. Held-out projects, a shuffled-pair control, a path-text baseline, and any describing model's verdict held constant so only the observation itself is credited.
- Checkpoints get a weight audit. A torch-free script reads a world-model checkpoint and reports latent scale and whether predictions differ across actions. It ran across 46 checkpoints in one pass.
Limits
The theorem covers encoders compared directly. It does not cover action-conditioned forward models, so it says nothing yet about predicting what an action will do; our dynamics stay on count models, which is where they measure best. The good-view experiment used one base model and one corpus. The paper is a v1 preprint.
The paper's sharpest idea is that alignment is a property you choose when you choose your pairs. On a system that already knows which observations belong together, that choice is free.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.