A weights-only pseudometric that compares LLMs across different architectures, widths, depths, and tokenizers while ignoring model symmetries. It is competitive with or outperforms existing methods and scales to hub-wide auditing.
| Method | Inputs | Output |
|
|
|
| ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HuRef13 | weights | distance | ||||||||||||
| AWM10 | weights | distance | ||||||||||||
| GhostSpec15 | weights | distance | ||||||||||||
| Biometrics (Trace)16 | weights | distance | ||||||||||||
| Biometrics (subspace)16 | weights | distance | – | |||||||||||
| MoTHer17 | weights | directed tree | – | |||||||||||
| Witness Overlap18 | weights | direction | – | |||||||||||
| Zhu et al.19 | activations | hypothesis test | ||||||||||||
| REEF20 | activations | distance | ||||||||||||
| TRACE11 | log-probs | directed tree | ||||||||||||
| Provenance testing21 | outputs | hypothesis test | ||||||||||||
| PhyloLM12 | outputs | tree | ||||||||||||
| Spanner () | weights | distance, tree |
| Method | Inputs | AUROC | TPR at 1% FPR |
|---|---|---|---|
| AWM10 | weights | 1.000 | 1.000 |
| Spanner () | weights | 0.991 | 0.967 |
| HuRef13 | weights | 0.957 | 0.867 |
| Trace16 | weights | 0.959 | 0.667 |
| PCS13 | weights | 0.86 | 0.43 |
| REEF20 | activations | 0.778 | 0.30 |
Going deeper

| Edit | Predicted | Observed |
|---|---|---|
| 8 exact symmetries (Qwen3-1.7B) | 0 | – |
| 9 exact symmetries (Llama-3.2-1B) | 0 | – |
| Layers 8–15 duplicated | 0 | |
| Layers 20–23 dropped (24 of 28) | 0.38760 | |
| Gaussian noise from | increases with | |
| 8-Bit Quantization | – | 0.020 |
| 4-Bit Quantization | – | 0.258 |
| 3-Bit Quantization | – | 0.528 |
| Fine-tuned 10 steps | increases with duration | 0.0046 |
| Fine-tuned 100 steps | increases with duration | 0.0176 |
| Qwen3-1.7B Instruct embeddings on Base | – | 0.199 (48.1% of ) |
| Llama-3.2-1B Instruct embeddings on Base | – | 0.337 (48.0% of ) |
| Qwen3-1.7B splice (Instruct layers 0–13 + embeddings, Base layers 14–27) | – | 0.156 to Instruct, 0.242 to Base |
| Linear 50/50 and SLERP38, Qwen3-1.7B Instruct and Base | – | 0.143–0.146 to each parent |
| Task arithmetic2, (Qwen3-1.7B Instruct’s task vector on Base) | – | 0.430 to Base, 0.148 to Instruct |
| TIES3 (Qwen3-1.7B and three fine-tunes) | – | 0.183–0.225 to each parent |
| DARE4 | – | 0.77–0.81 to each parent |
| MoE ( Qwen3-0.6B) | small but nonzero | 0.006–0.047 |
Imagine every open-source language model as a musical instrument built in a workshop. Builders take an existing instrument, retune it, swap parts, or glue two together. The serial number is often scratched off. You want to tell which instruments share a maker without hearing them play—just by looking inside.
Spanner opens each instrument and measures the shape of every resonating chamber, ignoring cosmetic details like paint or the order of the keys. It then projects those shapes onto a set of notes both instruments can play, so it works even if one has 88 keys and the other has 61. Finally, it asks: do these two instruments span the same set of resonances? The angle between those spans is the distance.
The method is fast enough to compare a thousand instruments in a day for thirty dollars. The authors checked it against known family trees and found it nearly as accurate as the best existing tool—and unlike that tool, it works across different keyboard layouts. They also found a few instruments on a public shelf whose listed makers do not match their insides.
The abstract, word for word, with the six densest phrases unpacked.
Open LLMs are heavily remixed, so their lineages are difficult to trace. Existing weight-based model lineage measurements are restricted to models of the same size or tokenizers or do not properly handle model symmetries. Output-based lineage measurements cannot distinguish weight descent from distillation. We introduce Spanner (D), a weights-only pseudometric that projects attention and MLP invariants onto shared tokens and compares layer spans with Yanai’s GCD. Spanner compares LLMs across architectures, tokenizers, and dimensions while ignoring symmetries such as residual stream rotation1 that do not change the models’ outputs. We show that D is invariant to model symmetries, that D2 is an effective measurement of cumulative learning rate on Pythia (R2=0.98)2, and that D is competitive with or outperforms published baselines (0.991 AUROC on AWM, 0.889 on LLM Biometrics3). We also show that D separates weight descent from behavioral convergence4. We use D to audit a set of open models on the Hugging Face Hub and find several models with potentially misattributed parents5. Excluding download time, $D$ can calculate a full distance matrix between 1,000 8B models in about 17 hours for $306 on a Hugging Face l40sx1, so our method enables large-scale open model lineage tracing and auditing.
Two lines of work converge: measuring model similarity from weights, and comparing neural representations across shapes.
Read five parts, in this order.
Skip Appendices A–E unless you want model lists, sketch math, cost breakdowns, or ablation details.
If the metric is weaker than it looks, check these places first.
• D requires a shared token set S, which may shrink with additional tokenizers. Distances are not directly comparable across studies unless they share a fixed S. • Sketching T while calculating D adds a small amount of sketch noise and necessitates re-sketching when the token set changes. • D ignores model differences in biases, norms, nonlinearities, layer order, and individual attention head structure. D also ignores descent direction. • D saturates near π/2. Sketch bias and weak overlap in weights between independently trained models can cause D to decrease to slightly below π/2, so values near saturation are not proof of shared weight lineage. • Model pruning and embedding swaps can increase D despite shared weights. • D cannot detect distillation, so it should be paired with PhyloLM or another behavioral lineage measurement. • We did not test D against an adversary. An attacker could potentially hide a model’s true lineage. • We designed D for attention and MLP sublayers. We will need to create new invariants for other architectures. • Most of the models we used to evaluate D are small by frontier standards. It is possible that larger models would require changes to this method, such as increasing the size of our CountSketches.
AWM’s benchmark was assembled by its authors to evaluate the method. We use these pairs exactly as published, so the comparison may favor AWM. Despite this, our method is competitive with these published results.
• D is within 0.01 AUROC of AWM and outperforms the other methods • D misses two related pairs: – D(Llama-3.2-1B,Llama-3.1-8B)=1.565. This relationship is pruning followed by long distillation. – D(Qwen2.5-7B,allowbreakNemotron-Research-Reasoning-Qwen-1.5B)=1.567. The benchmark’s readme says Nemotron is an RL fine-tune of Qwen2.5-7B, but its model card says DeepSeek-R1-Distill-Qwen-1.5B is its base model. Further, AWM’s code pairs Qwen2.5-7B with Open-Reasoner-Zero-7B instead of Nemotron. We score the pair as stated, but we believe the label is incorrect.
| Ablation |
|
|
|
|
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | – | 0.9955 | 0.964 | 0.0324 | 5e-6 | ||||||||||
| No norm folding | 1 | +0.0001 | -0.013 | -0.0014 | 0.90 | ||||||||||
| Raw vectors in | 3 | +0.0005 | +0.009 | -0.0003 | 0.53 | ||||||||||
| Unnormalized | 3 | +0.0033 | +0.025 | -0.0007 | 0.40 | ||||||||||
| Gram matrix instead of span | 5 | -0.0057 | -0.006 | +0.0041 | 0.29 | ||||||||||
| Uncentered tokens | 2 | -0.0199 | -0.105 | +0.0016 | 4e-6 | ||||||||||
| Uncentered traces | 3 | -0.0041 | -0.056 | +0.0002 | 4e-6 | ||||||||||
| No per-head normalization | 3 | -0.0004 | -0.001 | +0.0001 | 4e-6 | ||||||||||
| Embeddings only (no layers) | 3 | -0.0161 | -0.079 | +0.0150 | 1e-6 | ||||||||||
| 4 | -0.0005 | -0.003 | +0.0000 | 5e-6 | |||||||||||
| , random draw 1 | 2 | -0.0013 | -0.014 | -0.0002 | – | ||||||||||
| , random draw 2 | 2 | -0.0025 | -0.027 | -0.0001 | – | ||||||||||
| shared with AWM’s and PhyloLM’s tokenizers (11,184) | 2 | +0.0010 | +0.006 | -0.0006 | – |
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all