Measuring LLM lineage with Spanner A new weights-only pseudometric called Spanner (D) can compare LLM lineage across architectures, tokenizers and dimensions, and in an audit of 101 parent-model labels on the Hugging Face Hub it disagreed with 2 labels, according to a paper by Matthew Ritch (arXiv 2611.41556) with code on GitHub and data on Hugging Face. Spanner projects attention and MLP invariants onto shared tokens and compares layer spans with Yanai's GCD, ignoring function-preserving symmetries such as residual stream rotation, and can compute a full distance matrix between 1,000 8B models in about 17 hours for $30 on a Hugging Face l40sx1. The author pairs Spanner with the behavioral measure PhyloLM, arguing that weight descent and behavioral descent diverge for distilled, merged and spliced models, and notes Spanner cannot detect distillation and was not tested against an adversary. This is an adaptation of my recent paper https://arxiv.org/abs/2611.41556 . See GitHub https://github.com/matthew-ritch/spanner for the code and Hugging Face https://huggingface.co/datasets/matthew-ritch/spanner-dataset for the data. 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, whereas merged and spliced models can have wildly different outputs despite sharing weights with their parents. Analyses of model lineage should pair weight analysis with behavioral analysis just like biologists analyze both genotype and phenotype. 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 rotation that do not change the models’ outputs. Methodology Check out the paper for details, but each of these steps fulfills a design goal related to detecting weight descent or making $D$ invariant to function-preserving model symmetries such as residual stream rotations. Models that share weight ancestry, such as a fine-tuned model and its base, share spans, while independent models are nearly orthogonal. Genotype vs. phenotype We use PhyloLM https://arxiv.org/abs/2404.04671 as our main measurement of model behavior or phenotype. The two methods disagree when weight descent is different from behavioral descent. For example, with PhyloLM, independent models from the same lab are closer than pairs from different labs, while with $D$ the two distances are equal. Distilled models are closer to their teachers in their behavior than their weights, whereas merged and spliced models can be closer to their parents’ weights than their behavior. These differences highlight the importance of both behavioral and weights-based analyses of model lineage. Performance and cost $D$’s pairwise distance comparison takes milliseconds because we sketch each model once. Those fast pairwise distance comparisons allow Hub-scale lineage analysis. $D$ can calculate a full distance matrix between 1,000 8B models in about 17 hours for $30 on a Hugging Face l40sx1 , so our method enables large-scale open model lineage tracing and auditing. We exclude download time because it is the same for all methods. Spanner in the wild Community models list parent models, but they are not verified. We audited 101 parent model labels on the Hugging Face Hub and found that $D$ disagreed with 2 of them, huggingface-mic/gemma-2-2b-it-mic and inference-optimization/Llama-3.2-0.5B-Instruct , which had large $D$ to their listed parents, google/gemma-2-2b-it and meta-llama/Llama-3.2-1B-Instruct respectively. We also found a set of models that had Qwen3-1.7B listed as a parent, but that $D$ shows are closer to Qwen3-1.7B-Base. We did not have to look very hard to find these examples, so a larger sweep of LLMs on the Hugging Face Hub would likely catch more. A bigger sweep may also detect matches for models that were uploaded without a parent tag. Limitations - $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$. - $D$ saturates near $\frac{\pi}{2}$. Sketch bias and weak overlap in weights between independently trained models can cause $D$ to decrease to slightly below $\frac{\pi}{2}$, so values near saturation are not proof of shared weight lineage. - $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. Discussion Does $D$ measure compatibility for merging models? Can $D$ predict retained performance after quantization? Under fine-tuning, at what $D$ do the base model’s alignment safeguards stop working? If we teach model $X$ a new fact to make $X'$, what is $D X, X' $? We will soon apply Spanner to various tasks in LLM engineering and safety. LLM lineages are not trees. LLMs can merge, splice, or assemble into MoE models in a way that is more like hybridization or horizontal gene transfer. We need lineage measurements that can detect both mimicry and weight descent between models. As LLM adoption and remixing continue, Spanner and other measurements like it will be crucial for tracking model evolution and adaptive radiation.