AttnDiff distinguishes derived LLMs with >0.98 similarity vs unrelated <0.22
AttnDiff can verify whether a suspect LLM is derived from a victim model despite fine-tuning, pruning, or merging
AI/ML arXiv 7 Apr 2026 Measurement Prototype evidence
Published as “AttnDiff: Attention-based Differential Fingerprinting for Large Language Models”
Why it matters
Provides a practical, low-overhead tool for post-hoc provenance verification and IP enforcement in the open-weight LLM ecosystem.
Summary
ATTNDIFF achieves uniformly high similarity (> 0.985) for related models across fine-tuning, pruning/compression, and model merging, while unrelated architectures score below 0.22, using only 5-60 multidomain probes. The method extracts differential attention patterns from minimally perturbed prompt pairs, compresses them into spectral descriptors, and compares models with centered linear CKA. Evidence comes from similarity scores on Llama-2/3, Qwen2.5, Gemma and Mistral families (3B-14B) showing >0.98 for derivatives and ≈0.78-0.80 for heterogeneous merges. The results are strong but similarity drops for cross-architecture merges, indicating a limitation of the approach.
What they found 3
- High similarity across fine-tuned suspects
“In contrast, ATTNDIFFmaintains uniformly high similarity (> 0.985) across all SFT suspects and is comparable to the SOTA baseline REEF.”
- Robustness to structured and unstructured pruning
“ATTNDIFFpreserves high similarity across all structured and unstructured pruned suspects (no lower than 0.9879)”
- Strong performance on weight-space merges and moderate on heterogeneous merges
“ATTNDIFFconsistently attains high similarity with all parent models in weight-space merges (≥0.95) and maintains substantial similarity (≈0.78-0.80) with heterogeneous distribution-level merges”
Caveats 3
- Similarity drops to ≈0.78-0.80 for heterogeneous distribution-level merges, far below the >0.98 scores for same-architecture derivatives
- ATTNDIFFcurrently assumes a white-box setting: extracting fingerprints requires access to internal attention activations (or equivalent hidden-state signals). Consequently, the method does not directly apply to strictly blackbox APIs where only model outputs are observable.
- we still lack a principled mathematical model and an end-to-end derivation framework that propagates common laundering operations ... establishing such a modeling-and-derivation chain remains an important direction for future work.
What’s new here 4
- Uses differential attention dynamics induced by semantic conflict rather than static parameters or activations.
- Summarizes attention differences with compact spectral descriptors via SVD.
- Compares fingerprints with centered linear CKA, invariant to scaling and rotations.
- Achieves robust provenance detection with as few as 5-60 probes across multiple domains.