Embedding Research

The Dictionary Collapse

65+ legal terms from Black's Law Dictionary embedded at 768 dimensions, then PCA-compressed to 16. Which distinctions survive?

The Experiment

We took terms from Black's Law Dictionary and cross-jurisdictional legal terminology — terms that carry different legal consequences despite surface similarity — and embedded them using nomic-embed-text (768 dimensions). Then we applied PCA at multiple compression levels and measured pairwise cosine similarity.

The question: at what dimensionality do legally distinct terms become indistinguishable to the embedding?

Experiment complete. 62 terms embedded via nomic-embed-text (768d), PCA-compressed to 16d. Variance explained at 16d: 63.5%. Model: nomic-embed-text v1.5.

Results: Two Failure Modes

PCA compression to 16 dimensions doesn't just lose information — it warps the space in two distinct ways:

Both failure modes are catastrophic for retrieval. The first means you can't distinguish concepts that produce different legal outcomes. The second means you can't find related concepts across jurisdictions.

Term Groups

1. Custody & Parental Rights

These terms produce radically different legal outcomes but describe overlapping concepts. In Illinois, the shift from "custody" to "allocation" in 2016 inverted the burden of proof.

Term ATerm B768d16dDeltaLegal Consequence
custodyallocation0.7200.446-0.273Different burden of proof — PCA makes them more different than they are
guardianshipcustody0.7620.519-0.243Guardian protects; custodian possesses — distorted apart
visitationparenting time0.7670.758-0.008Nearly identical — these survive compression (both are English euphemisms)
joint custodysole custody0.8360.932+0.096Opposite outcomes collapse together. One preserves, one eliminates.

2. Forced Heirship — The Missing Words

Cross-jurisdictional forced heirship terms that have no English equivalent. The big finding: legitieme portie, yuryubun, iryubun, and laglott all collapse toward each other at 16d — losing the tradition-specific legal distinctions.

Term ATerm B768d16dDeltaLegal Consequence
legitieme portieyuryubun0.7630.890+0.127Dutch vs. Korean — collapsed to near-identical
legitieme portieiryubun0.7570.884+0.127Dutch vs. Japanese — collapsed
legitieme portielaglott0.7620.872+0.110Dutch vs. Swedish — collapsed
Pflichtteilelective share0.7090.418-0.291Pflichtteil protects children; elective share protects spouse only — distorted apart
Pflichtteilréserve héréditaire0.7190.492-0.227Both protect children — but PCA destroys the relationship
faraidintestate succession0.5540.026-0.528Divine mandate vs. legislative default — rendered unrelated
testamentary freedomforced heirship0.7000.536-0.163Opposite concepts — PCA partially preserves the distinction but distorts it
The forced heirship collapse is the smoking gun. At 768d, the embedding correctly distinguishes Dutch legitieme portie from Korean yuryubun (0.763 — similar but distinct). At 16d, they merge to 0.890 — effectively identical. A retrieval system at 16d cannot tell you which country's law you're looking at. For comparative law research, this is catastrophic.

3. Contempt & Enforcement

The distinction between coercive and punitive contempt determines whether you get a jury trial. This is a constitutional rights question.

Term ATerm B768d16dDeltaLegal Consequence
coercive contemptpunitive contempt0.7840.913+0.129Collapsed. Determines whether you get a trial or indefinite imprisonment.
civil contemptcriminal contempt0.9080.959+0.050Already similar at 768d — at 16d, nearly identical (0.96)
defaultcontumacy0.5690.202-0.367Neutral omission vs. willful defiance — distorted apart
ability to paywillful refusal0.6380.317-0.322Turner v. Rogers hinges on this distinction — PCA destroys it

4. Death & Status

Term ATerm B768d16dDeltaLegal Consequence
c.d. minimac.d. maxima0.9110.970+0.058Loss of family status vs. total legal death — collapsed
civil deathdeath0.6700.637-0.033Legal fiction vs. biological fact — mostly preserved

5. Financial Death

Term ATerm B768d16dDeltaLegal Consequence
nondischargeableinsolvency0.7030.814+0.112Permanent debt obligation merges with its opposite (debt relief)
domestic support obligationdischarge0.6550.288-0.367DSOs cannot be discharged — PCA destroys this critical relationship
dischargenondischargeable0.7070.716+0.009Opposite outcomes — surprisingly preserved (shared vocabulary)
Restschuldbefreiungdischarge0.7250.632-0.093German "remaining-debt-liberation" drifts from English equivalent

6. Cross-Jurisdictional Parenting Terms

Term ATerm B768d16dDeltaLegal Consequence
Sorgerechtgemensam vårdnad0.6400.184-0.456Worst distortion. German and Swedish "shared care" become nearly unrelated.
hadanahwilayah0.7220.630-0.092Islamic physical custody vs. legal authority — distorted apart
umgängessabotageparental alienation0.7190.689-0.030Swedish statutory term vs. English clinical concept — mostly preserved
parental rightstermination of parental rights0.7280.565-0.163A right and its destruction — PCA weakens the connection

7. Control Group — Inter-Domain Terms

Term ATerm B768d16dDeltaResult
medical malpracticecustody0.560-0.168-0.728Different domains — separation INCREASED (as expected)
patent infringementforced heirship0.5650.168-0.397Different domains — separation increased

The Two Failure Modes Quantified

MetricIntra-DomainInter-Domain
Mean similarity delta at 16d-0.307-0.634
Median similarity delta-0.302-0.640
Max positive delta (collapse)+0.140-0.023

Inter-domain pairs never collapse (max delta = -0.023). But intra-domain pairs collapse by up to +0.140. This is exactly what MTEB misses: inter-domain discrimination is preserved; intra-domain discrimination is destroyed.

The punchline: At 16 dimensions, your retrieval system can tell law from medicine. But it can't tell coercive contempt from punitive contempt — the distinction that determines whether you get a jury trial. It can't tell Dutch legitieme portie from Korean yuryubun — the distinction between two different countries' inheritance laws. It can't tell German Sorgerecht from Swedish gemensam vårdnad, even though it should recognize them as related concepts from different legal traditions. That's not compression. That's destruction.
← Back to The Dimensionality Illusion