NeurIPS 2026QuestionsPapersAreasAboutMarkdown

AttnDiff: Attention-based Differential Fingerprinting for Large Language Models

Haobo Zhang, Zhenhua Xu, Junxian Li, Shangfeng Sheng, Dezhang Kong, Meng Han

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: AI Safety, Security & Alignment › Multimodal Safety Steering · Type: new method · Keywords: LLM fingerprinting, attention pattern analysis, model provenance, CKA similarity, model laundering detection, white-box verification

Areas: Interpretability › Mechanistic Interpretability › Attribution and Interpretability

Summary

AttnDiff is a data-efficient white-box framework that extracts fingerprints from LLMs by probing minimally edited prompt pairs, capturing differential attention patterns, summarizing them with compact spectral descriptors, and comparing models using CKA to verify provenance.

Explained to a 5-year-old

People want to make sure a big language model wasn't secretly copied from another model. To find out, we ask the model two similar questions that make it think in different ways. We watch how the model answers these questions and notice the differences in its thinking. By comparing these differences with other models, we can see if they belong to the same family or not. This helps keep the original model's ideas safe.

Explained to a 5-year-old, longer

When someone releases a big language model for everyone to use, they might worry that others could copy it and pretend it's theirs. To check if a model is really a copy, we need a way to see if it behaves like the original. The researchers thought of asking the model two very similar questions that create a little conflict in meaning. By looking at how the model answers these questions, they can see tiny differences in how it processes information. They record these differences and turn them into simple numbers that act like a fingerprint. Then they compare this fingerprint with fingerprints from other models. If the fingerprints match closely, the models are likely related; if they are far apart, they are different. This method works even if the model has been changed a lot, like being fine-tuned, cut down, or merged with other models. It only needs a few carefully chosen questions, so it doesn't use a lot of computer power. The result is a reliable way to tell whether a language model comes from a particular source. This helps protect the original creators' ideas and makes sure credit is given where it's due. The tool is freely available for anyone who wants to check model origins.

For a technical reader

AttnDiff is a white-box fingerprinting framework that leverages differential attention patterns to verify whether a suspect LLM originates from a specific victim model. It generates pairs of minimally edited prompts that create controlled semantic conflicts and records how the model’s attention weights diverge between the two prompts. These divergences are compressed into spectral descriptors and compared across models using Canonical Correlation Analysis (CKA) to produce a similarity score. The method is data-efficient, requiring only 5-60 multi-domain probes to achieve high discrimination (e.g., >0.98 for related derivatives, <0.22 for unrelated families).

Problem

Protecting the intellectual property of large language models requires verifying whether a suspect model is derived from a victim model, even after laundering operations such as fine-tuning, pruning, and model merging.

Method

The approach probes minimally edited prompt pairs that induce controlled semantic conflicts, captures differential attention patterns, summarizes them with compact spectral descriptors, and compares models using CKA.

Results

The approach yields high similarity for related derivatives (e.g., >0.98) while separating unrelated model families (e.g., <0.22) using 5-60 probes, enabling practical provenance verification.

Contributions

It introduces a data-efficient white-box fingerprinting technique that leverages differential attention patterns and compact spectral descriptors to verify model provenance across various laundering operations.

Practical relevance

It enables practical provenance verification and accountability for open-weight LLMs, helping protect intellectual property.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction