Manuscript Offprint
arXiv:2610.34675From Representations to Computational Trajectories: Intrinsic Fingerprinting for Large Language Model Provenance Verification
Haiyong Tang, Hanzhou Wu, Xinpeng Zhang, and Athanasios V. Vasilakos
Abstract—Large language models (LLMs) are valuable digital assets, yet their weights can be easily modified after unauthorized acquisition, making model provenance difficult to verify. Model fingerprinting provides a promising solution for model ownership protection without modifying the model or embedding ownership information. However, parameter-based fingerprints can be sensitive to model transformations, limiting their robustness, while representation-based fingerprints may assign high similarity to unrelated models, limiting their uniqueness. To address these limitations, we propose TrFP, an intrinsic fingerprinting method based on computational trajectories. Instead of comparing model parameters or representations, TrFP captures how representations evolve across network depth and constructs compact fingerprints using permutation-invariant trajectory descriptors. Experiments across multiple LLM families show that TrFP reliably distinguishes related and unrelated models. It also remains robust under fine-tuning, pruning, quantization, model merging, parameter permutation, and adaptive attacks, while requiring less than 0.3 MiB of fingerprint storage. Overall, TrFP provides stronger provenance discrimination than several existing state-of-the-art methods, demonstrating the effectiveness of computational trajectories for reliable LLM provenance verification.
Index Terms—Large language models, model provenance verification, model fingerprinting, security, ownership verification.
I. INTRODUCTION
Developing large language models (LLMs) requires extensive data, computing resources, and engineering effort. As a result, trained LLMs are valuable digital assets with significant intellectual property and commercial value [1]–[3]. Once model weights are obtained without authorization, attackers can easily modify them using common techniques such as fine-tuning [4], pruning [5], quantization [6], or parameter permutation [7]. These modifications can preserve the main capabilities of the model while hiding its relationship with the original model. This may enable unauthorized use or commercialization and cause economic losses and security risks to model owners [8]. Therefore, reliably tracing the provenance of suspicious models has become an important problem in LLM security [9], [10].
Existing model provenance verification techniques can be broadly divided into watermarking and fingerprinting. Model watermarking [11], [12] injects ownership information into model parameters or behaviors before model release. However,
UMAP Dimension 2

UMAP Dimension 1
Fig. 1. Computational trajectories of different LLM families and their derived models. Different model families follow distinct trajectories, whereas derived models stay close to the trajectories of their source models.
such methods may affect model performance and cannot protect models that have already been released. In contrast, model fingerprinting [13]–[21] uses the model's inherent features for provenance verification and requires no pre-embedded ownership information. In general, an effective fingerprint should satisfy two essential properties, namely, robustness and uniqueness. Robustness means that a model derived from the source model should retain high fingerprint similarity after model transformations. Uniqueness means that a model unrelated to the source model should yield low fingerprint similarity, even when it shares the same architecture. Based on the features used, fingerprinting methods can be further divided into parameter-based and representation-based methods. Parameter-based methods [13]–[16] construct fingerprints from model parameters and achieve strong uniqueness when parameter shapes and correspondence are preserved. However, extensive continued training and structured pruning can substantially change parameter features, which limits their robustness. Representation-based methods [17]–[21] construct fingerprints from the internal representations, reducing the dependence on direct parameter correspondence. Since hidden dimensions may not strictly correspond across models, these methods commonly use Centered Kernel Alignment (CKA) [22] to measure representation similarity and treat high similarity as evidence of a provenance relationship.
Hanzhou Wu and Xinpeng Zhang are the corresponding authors.
Haiyong Tang, Hanzhou Wu, and Xinpeng Zhang are with the School of Communication and Information Engineering, Shanghai University, Shanghai 200444, China (email: haiyongtang@shu.edu.cn; h.wu.phd@ieee.org; xzhang@shu.edu.cn).
Athanasios V. Vasilakos is with the Department of ICT and Center for AI Research, University of Agder (UiA), Jon Lilletuns vei 9, 4879 Grimstad, Norway (email: th.vasilakos@gmail.com).
substantially overestimate similarity under high-dimensional, small-sample settings, while unrelated models can still exhibit high similarity. Together, these issues undermine the uniqueness of representation-based fingerprints. In summary, parameter-based fingerprints suffer from limited robustness to model transformations, whereas representation-based fingerprints lack sufficient uniqueness. This motivates us to seek information that remains stable under model transformations while distinguishing unrelated models. Therefore, we examine how representations evolve across layers rather than only the representations themselves. In Transformer-based LLMs, each layer updates the hidden state according to its parameters, so models with similar representations need not follow the same layer-wise update process. We define this sequence of layer-wise updates along network depth as the computational trajectory. As shown in Fig. 1, the computational trajectories of different model families are clearly separated, whereas derived models largely follow the trajectories of their source models. This suggests that computational trajectories can provide both uniqueness and robustness. First, although representations from different models may converge, their layer-wise updates are determined by their respective parameters [23], allowing the computational trajectories of unrelated models to remain distinguishable. Second, derived models are modified from their source models rather than trained independently from scratch [13], [18], allowing their computational trajectories to retain characteristics inherited from the source model.
Computational trajectories provide a strong basis for provenance verification. However, comparing trajectories across models is nontrivial because their hidden spaces have no coordinate correspondence [22], [24]. Such comparison requires characterizing trajectories without relying on hidden coordinates. To this end, we propose TrFP, which compares models not by where their trajectories lie in hidden spaces, but by how the trajectories evolve across network depth. TrFP characterizes this evolution by how strongly each layer updates the representation, how this update changes between neighboring layers, and how far the representation has moved from its starting point. As a result, the fingerprint is invariant to parameter permutation by construction, requires no parameter correspondence, and remains compact as model size grows.
B. Main Contributions
In summary, the main contributions of this paper include:
• We reveal a fundamental limitation of existing representation-based LLM fingerprinting methods. We show that representation similarity can be overestimated due to estimation bias, while unrelated models can still exhibit high similarity due to representation convergence.
• We introduce computational trajectories as a new perspective and propose TrFP. It captures how representations evolve across network depth using compact trajectory descriptors, achieving stronger uniqueness and robustness than several existing state-of-the-art methods.
• We systematically evaluate TrFP under various model transformations and attacks. TrFP effectively distinguishes related and unrelated models and remains robust to fine-tuning, pruning, quantization, model merging, parameter permutation, and adaptive attacks, with a fingerprint size below 0.3 MiB.
II. RELATED WORKS
A. Deep Neural Network Fingerprinting
Early deep neural network (DNN) fingerprinting methods mainly characterize models through their decision behaviors. IPGuard [25] extracts fingerprint samples near the classification boundary, based on the observation that pirated models tend to inherit the decision boundary of the source model. Since adversarial examples near the boundary may also transfer to independently trained models, Lukas et al. [26] construct conferrable adversarial examples that transfer only to surrogate models. Peng et al. [27] further exploit universal adversarial perturbations to characterize the global geometry of model decision boundaries. Beyond model behaviors, model parameters provide intrinsic characteristics that do not depend on crafted queries. Zheng et al. [28] generate compact fingerprints by projecting distinctive model weights into a random space determined by the owner. Recent studies further focus on the robustness and security of model fingerprints, since attackers may modify the model or even forge ownership claims. GMFIP [2] trains a generator to synthesize fingerprint samples, improving robustness against model modifications and extraction attacks. FIT-Print [3] reveals the vulnerability of conventional fingerprints to false ownership claims and introduces targeted fingerprints for more reliable ownership verification. Overall, these studies establish the foundation for fingerprinting large language models.
B. Large Language Model Fingerprinting
Unlike conventional DNNs, many LLMs are released with open weights and adapted into derived models, which makes provenance verification with white-box access both practical and necessary. Early studies mainly construct fingerprints from model parameters. PCS [13] finds that parameter directions remain stable after pre-training and uses cosine similarity between parameter vectors to determine model provenance. ICS [13] further exploits parameter invariants in Transformer attention and feed-forward modules to improve robustness against parameter permutation. Recent studies explore parameter structures that are more stable under model transformations. SELF [14] constructs invariant matrices from attention weights and uses their singular values and eigenvalues as fingerprints. GhostSpec [15] extracts compact fingerprints from the spectral structure of attention weight matrices and uses layer alignment to compare models with different depths. AWM [16] instead treats weight comparison as a parameter alignment problem, aligning parameter coordinates before measuring their similarity. However, these methods rely on parameter features remaining stable and comparable after model transformations, which may limit their robustness to large parameter updates, structural changes, or weak parameter correspondence.
To reduce the dependence on direct parameter correspondence, recent studies have explored internal representations

(a) Biased CKA
(b) Debiased CKA
Fig. 2. Linear CKA between two unrelated Gaussian random representations under different numbers of samples n and representation dimensions d.
for model fingerprinting. The basic idea is that models derived from the same source may retain similar representation features after model transformations. EasyDetector [17] trains a classifier using intermediate representations and determines model provenance based on how well the classifier transfers to the suspect model. REEF [18] directly compares intermediate representations produced by two models on the same inputs and uses CKA to measure their similarity without requiring strict correspondence between hidden dimensions. FNF [19] identifies groups of neurons that are activated together and compares their activation trends on the same inputs. CREF [20] constructs semantic concept directions in the representation space and uses model responses along these directions as compact fingerprints. AttnDiff [21] constructs semantically conflicting prompt pairs and uses the singular values of attention-map differences as fingerprints.
Overall, representation-based methods reduce the dependence on direct parameter correspondence by exploiting internal model responses. However, these methods rely on representation similarity as evidence of shared provenance. Such similarity may not be specific to provenance relationships, potentially limiting the uniqueness of the resulting fingerprints. We systematically examine this issue in the next section.
III. REVISITING REPRESENTATION SIMILARITY FOR MODEL FINGERPRINTING
Existing representation-based methods typically determine model provenance by measuring representation similarity between a source model and a suspect model. For representation similarity to reliably indicate model provenance, two conditions should hold: (1) the similarity metric should reliably measure representation similarity, and (2) representation similarity should be specific to model provenance. In this section, we examine whether these two conditions hold and analyze their implications for existing representation-based methods.
A. Reliability of Representation Similarity Measurement
Recent representation-based methods, such as REEF [18], CREF [20], and AttnDiff [21], measure representation similarity with CKA [22], because it is invariant to permutations of hidden dimensions and requires no coordinate correspondence across models. Therefore, we focus on whether CKA can reliably measure representation similarity.
Let and be two representation matrices, where denotes the number of samples, and and denote the representation dimensions. Linear CKA constructs the Gram matrices and and measures their dependence using the Hilbert-Schmidt Independence Criterion (HSIC) [29]:
where is the centering matrix, is the identity matrix, and is the all-ones vector. In model fingerprinting, a high CKA score is commonly viewed as evidence that two models have similar representations. Accordingly, unrelated representations are expected to yield low CKA scores.
To examine whether this expected behavior holds, we generate two unrelated Gaussian random representations. We then compute their CKA scores under different numbers of samples n and representation dimensions d. Since the two representations are generated independently, no underlying correspondence exists between them. The results are shown in Fig. 2(a). CKA varies substantially with both n and d. When d is much larger than n, CKA between unrelated random representations can approach 1. For example, CKA reaches 0.976 when n = 200 and d = 8192. Such high-dimensional, small-sample settings are common in LLM fingerprinting. For example, REEF [18] uses 200 probe samples to compute CKA between model representations.
We trace this phenomenon to the finite sample bias of the biased HSIC estimator [30], which existing representation-based fingerprints inherit. When , high-dimensional random vectors tend to be nearly orthogonal. Their Gram matrices are then dominated by self-similarity terms on the diagonal. As a result, unrelated representations may still obtain high CKA scores. To examine whether this bias can be corrected, we use the unbiased HSIC estimator [31]:

(a) Pretrained × Pretrained
(b) Random × Random
Fig. 3. Pairwise debiased CKA between representations of different models before and after pretraining. Rows follow the same model order as the columns.
where and are the Gram matrices with their diagonals set to zero. Replacing HSIC in Eq. (1) with gives debiased CKA. As shown in Fig. 2(b), the high similarity between unrelated random representations largely disappears after debiasing. For example, when n = 200 and d = 8192, the CKA score decreases from 0.976 to only 0.001 after debiasing.
These results show that CKA can substantially overestimate representation similarity under high-dimensional, small-sample settings due to estimation bias. However, this bias can be effectively corrected using debiased CKA.
B. Provenance Specificity of Representation Similarity
Correcting the estimation bias improves the reliability of representation similarity measurement, but does not establish its specificity to model provenance. If unrelated models can also exhibit high representation similarity, such similarity cannot reliably indicate a provenance relationship. To examine this question, we select seven pretrained models from several widely used open-source LLM families: Falcon3-7b [32], Llama-3.1-8b [33], Mistral-7b [34], OLMo-2-7b [35], Qwen2.5-14b [36], Qwen2.5-7b [36], and Qwen3-1.7b [37]. These models have no derivation relationships with each other. We randomly select 200 samples from TruthfulQA [38] as the probe set. For each input, we extract the hidden state of the last token at each layer and compute debiased CKA. The results are shown in Fig. 3(a). Even after removing the estimation bias, unrelated models still exhibit high representation similarity. The similarities of all model pairs range from 0.61 to 0.80, with an average of 0.69. For example, Llama-3.1-8b and Mistral-7b achieve 0.774, while Qwen2.5-7b and Qwen2.5-14b achieve 0.798. For reference, REEF [18] regards CKA scores below 0.5 as indicating unrelated models, while all model pairs here exceed this threshold.
One possible explanation is that the high similarity mainly comes from the shared Transformer architecture. To examine this possibility, we retain the architectures of the seven models but randomly reinitialize all their parameters. These models contain no knowledge learned during training. We then compute debiased CKA using the same probe set and experimental settings. As shown in Fig. 3(b), the similarities between randomly initialized models are much lower than those between their pretrained counterparts. For most model pairs, similarity drops to between 0.31 and 0.54, with an average of 0.46. Only a few pairs retain relatively high similarity. This clearly shows that training increases representation similarity.
Overall, this comparison suggests that the high similarity between pretrained models cannot be explained by CKA estimation bias or model architecture alone. Instead, it is more likely related to the training process. This observation is consistent with recent findings on representation convergence [39], [40], where models trained on similar data distributions, objectives, and semantic tasks may learn similar representations. Therefore, high representation similarity is not necessarily specific to model provenance.
C. Limitations of Representation Similarity for Model Fingerprinting
The findings above suggest that representation similarity may not provide the separation between related and unrelated models required for fingerprint uniqueness. We next examine this issue in existing fingerprinting methods.
Specifically, we analyze REEF [18], which directly uses CKA between intermediate representations for provenance verification. For evaluation, the Base and Instruct versions of the seven model families introduced in Section III-B are selected, forming a pool of 14 models. The Base and Instruct models from the same family are treated as related pairs, while all other pairs are treated as unrelated. Following the original REEF setting, we use 200 probe samples from TruthfulQA and extract the hidden state of the last token at layer 18. We then compute pairwise similarity using both biased and debiased CKA. Fig. 4(a) shows the results with biased CKA. The entire matrix exhibits generally high similarity. Unrelated pairs have an average similarity of 0.718, and all scores exceed 0.5. Related pairs have a higher average similarity of 0.843, but the two distributions overlap. After debiasing, the average similarity of unrelated pairs decreases to 0.646, while that of related pairs decreases to 0.801, as shown in Fig. 4(b). However, the two distributions still overlap. For example, Qwen3-1.7b-Base is more similar to the unrelated Qwen2.5-7b-Base at 0.685 than to its own Instruct version at 0.674.
These results show that correcting estimation bias improves the reliability of similarity measurement but does not ensure fingerprint uniqueness. Unrelated models can still obtain similarity scores comparable to those of related models, because high representation similarity may arise from either model derivation or representation convergence. Therefore, representation similarity alone provides limited provenance discrimination. This motivates us to look beyond representations and examine how representations evolve across network depth.
| Falcon3-7B-Base | - | 0.840 | 0.687 | 0.705 | 0.731 | 0.697 | 0.689 | 0.695 | 0.729 | 0.734 | 0.700 | 0.714 | 0.664 | 0.668 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Falcon3-7B-Instruct | 0.840 | - | 0.719 | 0.767 | 0.758 | 0.753 | 0.710 | 0.768 | 0.792 | 0.808 | 0.776 | 0.815 | 0.710 | 0.725 |
| Llama-3.1-8B-Base | 0.687 | 0.719 | - | 0.857 | 0.825 | 0.765 | 0.726 | 0.716 | 0.659 | 0.674 | 0.672 | 0.711 | 0.652 | 0.651 |
| Llama-3.1-8B-Instruct | 0.705 | 0.767 | 0.857 | - | 0.816 | 0.830 | 0.748 | 0.781 | 0.671 | 0.688 | 0.699 | 0.781 | 0.656 | 0.694 |
| Mistral-7B-Base | 0.731 | 0.758 | 0.825 | 0.816 | - | 0.846 | 0.760 | 0.745 | 0.689 | 0.703 | 0.706 | 0.741 | 0.666 | 0.685 |
| Mistral-7B-Instruct | 0.697 | 0.753 | 0.765 | 0.830 | 0.846 | - | 0.704 | 0.745 | 0.665 | 0.683 | 0.696 | 0.775 | 0.633 | 0.663 |
| OLMo-2-7B-Base | 0.689 | 0.710 | 0.726 | 0.748 | 0.760 | 0.704 | - | 0.820 | 0.657 | 0.652 | 0.675 | 0.678 | 0.674 | 0.707 |
| OLMo-2-7B-Instruct | 0.695 | 0.768 | 0.716 | 0.781 | 0.745 | 0.745 | 0.820 | - | 0.674 | 0.689 | 0.700 | 0.754 | 0.688 | 0.715 |
| Qwen2.5-14B-Base | 0.729 | 0.792 | 0.659 | 0.671 | 0.689 | 0.665 | 0.657 | 0.674 | - | 0.974 | 0.813 | 0.784 | 0.689 | 0.706 |
| Qwen2.5-14B-Instruct | 0.734 | 0.808 | 0.674 | 0.688 | 0.703 | 0.683 | 0.652 | 0.689 | 0.974 | - | 0.802 | 0.804 | 0.680 | 0.719 |
| Qwen2.5-7B-Base | 0.700 | 0.776 | 0.672 | 0.699 | 0.706 | 0.696 | 0.675 | 0.700 | 0.813 | 0.802 | - | 0.840 | 0.736 | 0.700 |
| Qwen2.5-7B-Instruct | 0.714 | 0.815 | 0.711 | 0.781 | 0.741 | 0.775 | 0.678 | 0.754 | 0.784 | 0.804 | 0.840 | - | 0.694 | 0.727 |
| Qwen3-1.7B-Base | 0.664 | 0.710 | 0.652 | 0.656 | 0.666 | 0.633 | 0.674 | 0.688 | 0.689 | 0.680 | 0.736 | 0.694 | - | 0.725 |
| Qwen3-1.7B | 0.668 | 0.725 | 0.651 | 0.694 | 0.685 | 0.663 | 0.707 | 0.715 | 0.706 | 0.719 | 0.700 | 0.727 | 0.725 | - |
(a) Biased CKA
| - | 0.801 | 0.612 | 0.628 | 0.664 | 0.621 | 0.617 | 0.616 | 0.668 | 0.671 | 0.625 | 0.638 | 0.598 | 0.595 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.801 | - | 0.639 | 0.695 | 0.687 | 0.678 | 0.631 | 0.694 | 0.737 | 0.752 | 0.709 | 0.752 | 0.651 | 0.657 |
| 0.612 | 0.639 | - | 0.814 | 0.777 | 0.693 | 0.652 | 0.622 | 0.581 | 0.596 | 0.585 | 0.627 | 0.581 | 0.570 |
| 0.628 | 0.695 | 0.814 | - | 0.760 | 0.773 | 0.673 | 0.702 | 0.591 | 0.606 | 0.613 | 0.713 | 0.583 | 0.620 |
| 0.664 | 0.687 | 0.777 | 0.760 | - | 0.795 | 0.691 | 0.659 | 0.622 | 0.633 | 0.626 | 0.661 | 0.599 | 0.613 |
| 0.621 | 0.678 | 0.693 | 0.773 | 0.795 | - | 0.615 | 0.654 | 0.591 | 0.604 | 0.609 | 0.699 | 0.559 | 0.585 |
| 0.617 | 0.631 | 0.652 | 0.673 | 0.691 | 0.615 | - | 0.762 | 0.586 | 0.574 | 0.592 | 0.586 | 0.611 | 0.644 |
| 0.616 | 0.694 | 0.622 | 0.702 | 0.659 | 0.654 | 0.762 | - | 0.597 | 0.607 | 0.612 | 0.671 | 0.623 | 0.647 |
| 0.668 | 0.737 | 0.581 | 0.591 | 0.622 | 0.591 | 0.586 | 0.597 | - | 0.969 | 0.771 | 0.733 | 0.634 | 0.643 |
| 0.671 | 0.752 | 0.596 | 0.606 | 0.633 | 0.604 | 0.574 | 0.607 | 0.969 | - | 0.753 | 0.751 | 0.622 | 0.656 |
| 0.625 | 0.709 | 0.585 | 0.613 | 0.626 | 0.609 | 0.592 | 0.612 | 0.771 | 0.753 | - | 0.795 | 0.685 | 0.630 |
| 0.638 | 0.752 | 0.627 | 0.713 | 0.661 | 0.699 | 0.586 | 0.671 | 0.733 | 0.751 | 0.795 | - | 0.635 | 0.661 |
| 0.598 | 0.651 | 0.581 | 0.583 | 0.599 | 0.559 | 0.611 | 0.623 | 0.634 | 0.622 | 0.685 | 0.635 | - | 0.674 |
| 0.595 | 0.657 | 0.570 | 0.620 | 0.613 | 0.585 | 0.644 | 0.647 | 0.643 | 0.656 | 0.630 | 0.661 | 0.674 | - |
(b) Debiased CKA
Linear CKA
Fig. 4. Pairwise similarity scores of REEF across different LLMs. Rows follow the same model order as the columns.
IV. COMPUTATIONAL TRAJECTORY ANALYSIS
The previous section shows that unrelated LLMs can exhibit similar representations, limiting the ability of representations to distinguish model provenance. However, similar representations do not necessarily imply that they are formed through the same layer-wise evolution process. Each Transformer layer updates the current representation according to its parameters, and these successive updates form a computational trajectory. Unlike the representation at a single layer, the computational trajectory captures how the representation evolves through the network and retains provenance information specific to each model.
If computational trajectories contain provenance information, they should be discriminative across unrelated models while remaining stable under model derivation. To examine this, we visualize the computational trajectories of 56 models from seven LLM families using the same probe set. These models cover Base, Instruct, Fine-tuned [4], Adapter-based [41], Merged [42], GPTQ-quantized [6], and Distilled [43] variants. Since hidden spaces are not aligned across models, we represent each layer by the relative arrangement of its probe displacements. We then jointly project all layers into two dimensions using UMAP [44] and connect them by depth to visualize each model's computational trajectories.
As shown in Fig. 1, models from different families generally exhibit distinct computational trajectories, whereas derived models tend to preserve the trajectories of their source models. These observations suggest that computational trajectories provide two desirable properties for provenance verification: uniqueness across unrelated models and robustness across derived models. Motivated by this, we use them as the basis for constructing TrFP.
V. TRAJECTORY FINGERPRINTING
The overall framework of TrFP is illustrated in Fig. 5. Given a private probe set and a model, TrFP first extracts its layer-wise hidden states and constructs the computational trajectories from their evolution across network depth. It then extracts permutation-invariant trajectory descriptors and standardizes them to construct a compact trajectory fingerprint. For provenance verification, TrFP determines the provenance relationship between the source and suspect models based on their fingerprint similarity. We next describe each component in detail.
A. Threat Model
We study white-box model provenance verification for LLMs. Given a protected source model and a suspect model , the objective is to determine whether is related to . The pair is considered related if is identical to or derived from through model transformations. Otherwise, the pair is considered unrelated, even if the two models share the same architecture.
Defender capabilities. We assume that the defender has white-box access to the source model and can store its reference fingerprint in advance. During provenance verification, the defender has access to the intermediate hidden states of the suspect model , but does not require its training data or development history. Both models are evaluated using the same private probe set, allowing their computational trajectories to be extracted and compared.
Attacker capabilities. We consider a strong adaptive attacker who obtains the source model and knows the fingerprinting algorithm used by the defender. The attacker may apply model transformations to obscure the provenance relationship while preserving the model's main functionality. Such transformations include fine-tuning, pruning, model merging, quantization, and parameter permutation. The attacker may also explicitly optimize the suspect model to reduce its fingerprint similarity to the source model. However, the defender's private probe set remains unknown to the attacker.
B. Computational Trajectory Construction
Let denote a private probe set with probe samples, and let denote a model with Transformer layers.

Fig. 5. Overview of TrFP, which characterizes the layer-wise evolution of representations to construct compact fingerprints for model provenance verification.
We extract the hidden state of the last token at each layer, since under causal attention it aggregates information from the entire input [45]. The hidden-state sequence of across network depth is:
where is the initial representation after the embedding layer, and is the representation after the first Transformer layers. To capture how representations change between consecutive layers, we define the difference between adjacent hidden states as the layer-wise displacement:
where represents the displacement from to . The output of layer is determined by the current hidden state and the transformation defined by its parameters:
where denotes the transformation defined by the parameters of layer . Therefore,
This shows that the layer-wise displacement is determined by the current representation and the transformation defined by the layer parameters. We define the computational trajectory of as the sequence of layer-wise displacements:
C. Trajectory Descriptor Extraction
Computational trajectories consist of high-dimensional displacements, which lie in the hidden space of each model. As these spaces lack coordinate correspondence [22], [24], trajectories cannot be compared directly across models. Comparing them across models requires a compact representation that is comparable across hidden spaces and preserves the provenance information of the trajectory. A computational trajectory is formed by successive layer-wise displacements along network depth, so we characterize it at three complementary levels. The layer level concerns the magnitude of each layer-wise displacement relative to the current representation. The neighborhood level concerns how this relative magnitude changes between neighboring layers. The accumulated level concerns the net displacement over all preceding layers. We construct one descriptor for each level.
At the layer level, we define the layer descriptor as the relative update intensity of layer for probe , namely the magnitude of its layer-wise displacement relative to its input representation:
where ensures numerical stability. A larger indicates that layer alters its input representation more substantially.
At the neighborhood level, we define the neighborhood descriptor as the change in relative update intensity of probe from layer to layer :
This change is positive when the relative update strengthens from layer to layer , and negative when it weakens.
At the accumulated level, we define the accumulated descriptor as the magnitude of the net displacement of probe after layer , i.e., the vector sum of all preceding layer-wise displacements:
Since the displacements are summed as vectors, captures their directional interactions, becoming larger when they reinforce one another and smaller when they partially cancel.
Combining these three descriptors, the trajectory state of probe at depth l is represented as:
All three descriptors depend only on Euclidean norms and thus require no correspondence between hidden dimensions. Together, they preserve the provenance information of the trajectory at the layer, neighborhood, and accumulated levels.
D. Trajectory Fingerprint Construction
The trajectory descriptors defined above characterize each probe at every network depth, but two issues arise when they are used directly for fingerprint construction. First, the three descriptors have different numerical scales, causing descriptors with larger magnitudes to dominate similarity computation. Second, at each network depth, the descriptors of different probes may share a baseline. When this baseline dominates, it obscures the variations across probes and weakens provenance discrimination. Therefore, we standardize the trajectory descriptors before constructing the fingerprint.
For each layer-wise position , we define the descriptor center as the mean trajectory descriptor over the probe set , which estimates the common baseline at this position:
We further use a global scale for each descriptor across all layer-wise positions. Specifically, we estimate the global scale as:
where the square and square root are applied element by element. Based on the descriptor center and global scale , we define the standardized trajectory descriptor of probe sample at layer-wise position as:
where is a small constant for numerical stability. Finally, we define the trajectory fingerprint of model as the collection of standardized trajectory descriptors over all layer-wise positions and probe samples:
The three dimensions of correspond to layer-wise positions, probe samples, and trajectory descriptors, respectively. The permutation invariance of these trajectory descriptors is analyzed in Section V-F.
E. Fingerprint Comparison and Provenance Verification
Given the trajectory fingerprints of a source model and a suspect model , denoted by and , respectively, TrFP determines their provenance relationship by comparing their fingerprint similarity. However, different models may have different network depths, so their trajectory fingerprints cannot always be directly compared at the same layer-wise positions. Therefore, we align the fingerprints by relative network depth and then compare the fingerprints at the aligned positions.
Specifically, we set as the number of aligned depth positions and uniformly sample these positions over relative network depth. For the k-th aligned position, the indices in the source and suspect fingerprints are:
where . At each aligned position, we compute the cosine similarity for each probe input between the two fingerprints and average the similarities over all probe samples:
Here, denotes the average similarity at the k-th aligned position. The overall fingerprint similarity is obtained by averaging over all aligned positions:
The resulting similarity is compared with the decision threshold . If , the suspect model is considered to have a provenance relationship with the source model . Otherwise, it is considered unrelated. For consistent evaluation with prior fingerprinting methods [18], [20], we set in our method.
F. Analysis of Permutation Invariance
Parameter permutation is a particularly important attack against model fingerprinting because it can potentially evade fingerprint-based verification at very low cost [7], [13]. Such attacks require no model retraining and preserve model functionality. Therefore, permutation invariance is an important requirement for reliable provenance verification. We next theoretically analyze the permutation invariance of TrFP under three common parameter permutation attacks. Each layer in Eq. (6) consists of a self-attention module and a feed-forward network (FFN) module. For probe , let denote the hidden states of all its tokens at the input of the attention module in layer , whose last row is . Let denote the input of the FFN module in layer , obtained after passes through the attention module.
- Attention permutation. Consider a standard self-attention module. The query Q, key K, and value V are:
where denote weights. The module output is
where is the attention dimension and is the output projection matrix. Let and be permutation matrices applied consistently to the query/key and value dimensions, respectively. The corresponding transformations are:
Since permutation matrices are orthogonal,
(23)
Thus, the attention output, and hence , remains unchanged. By Eq. (7), the displacement and the trajectory descriptors , , also remain unchanged.
- FFN permutation. Consider a standard FFN:
where denotes an element-wise activation function, and , , , denote weights and biases, respectively. Let be a permutation matrix acting on the FFN intermediate dimension. A parameter permutation can be defined as:
Since the element-wise activation commutes with permutation, is canceled by in the second linear projection:
(26)
Thus, the FFN output, and hence , remains unchanged. By Eq. (7), the displacement and the trajectory descriptors , , also remain unchanged.
- Global hidden-dimension permutation. Let be a permutation matrix acting on the hidden dimension. All parameters involving the hidden dimension are permuted consistently, preserving the model function. The hidden state at layer becomes:
The layer-wise displacement in Eq. (5) becomes:
Since is orthogonal, the layer descriptor in Eq. (9) remains unchanged:
Since the neighborhood descriptor in Eq. (10) is the difference between consecutive layer descriptors, it also remains unchanged, i.e., . For the accumulated descriptor in Eq. (11), orthogonality similarly gives:
In summary, parameter permutations either leave the computational trajectory unchanged or preserve its trajectory descriptors. Therefore, TrFP is permutation-invariant by construction.
VI. EXPERIMENTS
A. Experimental Setup
Baselines and Implementation Details. We compare TrFP with five representative fingerprinting methods. PCS [13] and ICS [13] are parameter-based methods, while REEF [18], CREF [20], and AttnDiff [21] are representation-based methods. For a fair comparison, we follow the original settings of each baseline whenever possible. For PCS, we align corresponding parameters and compute their cosine similarity. For ICS, we select 4,096 low-frequency tokens and use the input embeddings and the corresponding weights from the last two Transformer layers. For REEF, we use 200 probe samples from TruthfulQA [38] and extract the last-token hidden representation at layer 18. For CREF, we construct 10 concept probe sets with 200 samples each. For AttnDiff, we construct 60 pairs of semantically perturbed samples. REEF, CREF, and AttnDiff use linear CKA to compute model similarity, while PCS, ICS, and TrFP use cosine similarity. For TrFP, we use 200 probe samples from ToxiGen [46].
Evaluation Metrics. We use metrics according to the objective of each experiment. For overall provenance verification, we report the mean similarities of related and unrelated model pairs, together with TPR and TNR at the fixed threshold . The unrelated mean and TNR characterize fingerprint uniqueness, while the related mean and TPR reflect the ability to identify related models. We further evaluate fingerprint robustness under specific model transformations, parameter permutation, and adaptive attacks. For adaptive attacks, we additionally evaluate model utility, while storage cost is measured by the fingerprint size. Following prior works [18], [20], we regard a model pair as related if its similarity is not lower than 0.5, and as unrelated otherwise.
B. Overall Provenance Verification
We select seven model families: Falcon3-7b [32], Llama3.1-8b [33], Mistral-7b [34], OLMo-2-7b [35], Qwen2.5-14b [36], Qwen2.5-7b [36], and Qwen3-1.7b [37]. Each family contains eight candidate models, including Base, Instruct, Fine-tuned [4], Adapter-based [41], Merged [42], GPTQ-quantized [6], and Distilled [43] variants. This results in a candidate pool of 56 models. Since downstream models are commonly derived from either Base or Instruct models, we use both versions from each family as source models, resulting in 14 source models. After excluding self-comparisons, all methods except PCS produce a similarity matrix, containing 98 related pairs and 672 unrelated pairs. Since PCS cannot compare GPTQ-quantized models, we exclude these seven models and obtain a similarity matrix, containing 84 related pairs and 588 unrelated pairs.
Fig. 6 shows the similarity matrices of the six methods. Ideally, related pairs should exhibit high similarity, forming diagonal blocks, while unrelated pairs outside these blocks should remain low. PCS, ICS, and TrFP all exhibit this desired block structure. In contrast, REEF, CREF, and AttnDiff show elevated similarity for many unrelated pairs. Table I further reports the quantitative results. PCS and ICS achieve strong separation between related and unrelated models, but still fail

(a) PCS
(b) ICS
(c) REEF
(d) CREF
(e) AttnDiff
(f) TrFP
Fig. 6. Pairwise similarity matrices of different fingerprinting methods. Rows correspond to the 14 source models and columns to the candidate models, both grouped by model family. The GPTQ-quantized models are excluded for PCS.
TABLE I OVERALL PROVENANCE VERIFICATION PERFORMANCE.
| Method | Rel. Mean ↑ | Unrel. Mean ↓ | TPR@0.5 ↑ | TNR@0.5 ↑ |
|---|---|---|---|---|
| PCS | 0.906 | 0.034 | 91.7% | 100% |
| ICS | 0.933 | 0.003 | 93.9% | 100% |
| REEF | 0.889 | 0.728 | 100% | 0% |
| CREF | 0.898 | 0.692 | 100% | 2.1% |
| AttnDiff | 0.988 | 0.751 | 100% | 28.6% |
| TrFP | 0.887 | 0.248 | 100% | 100% |
to identify all related pairs at the fixed threshold of 0.5, with TPR@0.5 values of and , respectively. As representation-based baselines, REEF, CREF, and AttnDiff exhibit a different limitation. Although they obtain high similarities for related models, their unrelated mean similarities remain high at 0.728, 0.692, and 0.751, leading to TNR@0.5 values of only , , and , respectively. This indicates limited fingerprint uniqueness. In comparison, TrFP achieves a related mean similarity of 0.887 and an unrelated mean similarity of 0.248, while attaining both TPR@0.5 and TNR@0.5. These results show that TrFP reliably identifies related models while maintaining strong uniqueness.
C. Robustness to Model Transformations
To evaluate robustness under common model transformations, we consider four representative settings: fine-tuning, pruning, GPTQ quantization, and model merging. For each transformation, we select source models and the derived models obtained from them through this transformation, and use all methods to compute the fingerprint similarity between each source model and its derived models. Since each derived model is related to its source model, a higher similarity indicates stronger robustness to the transformation, whereas a lower similarity indicates weaker robustness.
Fine-tuning. Fine-tuning updates model parameters through continued training and is one of the most common modifications after model release. We use Llama-2-7b [47] as the source model and compare it with six derived models obtained by further training Llama-2-7b on different tasks and data scales: Llama-2-finance-7b, Vicuna-1.5-7b [4], WizardMath-7b [48], Chinese-Llama-2-7b [49], CodeLlama-7b [50], and Llemma-7b [51]. The results are shown in Table II, where the number of training tokens for each derived model is given in parentheses. PCS and ICS show clear similarity drops on some fine-tuned models, indicating that extensive fine-tuning may affect parameter-based fingerprints. In contrast, REEF, CREF, AttnDiff, and TrFP maintain high similarity overall. In particular, TrFP achieves similarity close to 1 across all fine-tuned models, showing strong robustness to fine-tuning.
Pruning. Pruning compresses a model by removing model parameters or structures. We use Llama-2-7b [47] as the source model and compare it with the 1.3b and 2.7b Sheared-Llama [5] and their variants. For each scale, the pruned variant is obtained directly from Llama-2-7b through structured pruning, Sheared-Llama is obtained by further pretraining the pruned variant, and the ShareGPT variant is obtained by further fine-tuning Sheared-Llama on ShareGPT instruction data. The results are shown in Table II. PCS almost completely loses similarity after pruning, while ICS remains below 0.58 in all cases. REEF and CREF perform better but exhibit considerable variation across different derived models. In contrast, AttnDiff and TrFP remain stable across all pruned models, indicating robustness to substantial structural changes.
GPTQ Quantization. Quantization reduces model precision and changes the numerical values of model parameters while preserving model functionality. We use Falcon3-7b, OLMo-2-7b, and Qwen3-1.7b as source models and compare each of them with its GPTQ-quantized version. PCS is not applicable to GPTQ-quantized models because the quantized parameter representation is incompatible with direct parameter comparison. As shown in Table II, ICS remains robust on most models but shows instability on OLMo-2-7b. REEF and CREF retain relatively high similarity after quantization,
TABLE II FINGERPRINT SIMILARITY UNDER DIFFERENT MODEL TRANSFORMATIONS. GREEN INDICATES SIMILARITY , PURPLE INDICATES SIMILARITY , AND RED INDICATES SIMILARITY .
| Model Fine-tuning | ||||||
|---|---|---|---|---|---|---|
| Llama-2-finance-7b (5M Tokens) | Vicuna-1.5-7b (370M Tokens) | Wizardmath-7b (1.8B Tokens) | Chinese-llama-2-7b (13B Tokens) | Codellama-7b (500B Tokens) | Llemma-7b (700B Tokens) | |
| PCS | 0.9980 | 0.9986 | 0.9996 | 0.9276 | 0.5333 | 0.5081 |
| ICS | 0.9943 | 0.9941 | 0.9993 | 0.4626 | 0.0175 | 0.0159 |
| REEF | 0.9978 | 0.9997 | 0.9998 | 0.9993 | 0.9950 | 0.9979 |
| CREF | 0.9946 | 0.9992 | 0.9993 | 0.9897 | 0.9959 | 0.9964 |
| AttnDiff | 0.9989 | 0.9987 | 0.9975 | 0.9968 | 0.9864 | 0.9831 |
| TrFP | 0.9996 | 0.9998 | 0.9999 | 0.9995 | 0.9993 | 0.9995 |
| Model Pruning | ||||||
|---|---|---|---|---|---|---|
| Sheared-llama-1.3b -pruned | Sheared-llama-1.3b | Sheared-llama-1.3b -Sharegpt | Sheared-llama-2.7b -pruned | Sheared-llama-2.7b | Sheared-llama-2.7b -Sharegpt | |
| PCS | 0.0233 | 0.0223 | 0.0223 | 0.0299 | 0.0281 | 0.0281 |
| ICS | 0.4504 | 0.2894 | 0.2893 | 0.5721 | 0.4070 | 0.4041 |
| REEF | 0.6742 | 0.5726 | 0.4235 | 0.6310 | 0.6741 | 0.9992 |
| CREF | 0.7116 | 0.9439 | 0.6939 | 0.7354 | 0.9637 | 0.9981 |
| AttnDiff | 0.9903 | 0.9922 | 0.9912 | 0.9942 | 0.9945 | 0.9945 |
| TrFP | 0.8840 | 0.8854 | 0.8846 | 0.9095 | 0.9098 | 0.9996 |
| GPTQ Quantization | Model Merging (Evollm-jp-7b) | |||||
|---|---|---|---|---|---|---|
| Falcon3-7b | OLMo-2-7b | Qwen3-1.7b | shisa-gamma-7b-v1 | Wizardmath-7b-1.1 | Abel-7b-002 | |
| PCS | - | - | - | 0.9993 | 0.9988 | 0.9988 |
| ICS | 0.9993 | 0.0070 | 0.9795 | 0.9543 | 0.9296 | 0.9294 |
| REEF | 0.8393 | 0.8544 | 0.7254 | 0.9252 | 0.9082 | 0.8865 |
| CREF | 0.8131 | 0.9111 | 0.7389 | 0.9525 | 0.9611 | 0.9680 |
| AttnDiff | 0.9882 | 0.9820 | 0.9894 | 0.9940 | 0.9955 | 0.9966 |
| TrFP | 0.9196 | 0.8924 | 0.8286 | 0.8002 | 0.8063 | 0.8100 |
TABLE III ROBUSTNESS UNDER PARAMETER PERMUTATION ATTACKS. RESULTS ARE REPORTED AS MEAN ± STANDARD DEVIATION OVER THREE SEEDS
| Method | Qwen2.5-7b | Llama-3.1-8b | ||||||
|---|---|---|---|---|---|---|---|---|
| FFN | Attention | Hidden | Combined | FFN | Attention | Hidden | Combined | |
| PCS | ||||||||
| ICS | ||||||||
| REEF | ||||||||
| CREF | ||||||||
| AttnDiff | ||||||||
| TrFP | ||||||||
although some variation is observed across different model families. AttnDiff remains highly stable across all models, while TrFP also maintains consistently high similarity. Overall, TrFP shows strong robustness to reduced parameter precision.
Model Merging. Model merging combines parameters from multiple source models, making provenance verification more challenging because the resulting model may inherit characteristics from several sources. We use Evollm-jp-7b as the merged model and compare it with its three constituent models: shisa-gamma-7b-v1, Wizardmath-7b-1.1, and Abel-7b-002. As shown in Table II, most methods retain substantial similarity between the merged model and its constituent models. Because model merging integrates parameters from multiple source models, its computational trajectory may partially deviate from that of each source model. As a result, TrFP yields slightly lower similarity scores than the other methods. Nevertheless, all similarities remain well above 0.5, indicating that TrFP can still reliably identify these provenance relationships.
D. Robustness to Parameter Permutation Attacks
As discussed in Section V-F, parameter permutation is an important robustness test for model fingerprinting. Therefore, we evaluate all methods under four permutations: FFN permutation, attention permutation, hidden-dimension permutation, and a combined permutation of all three. We use Qwen2.5-7b and Llama-3.1-8b as source models. Each permutation is applied to all permutable units and repeated with three seeds. All experiments use BF16 precision, which may introduce small deviations from theoretical permutation invariance.
The results are shown in Table III. PCS suffers clear similarity degradation under parameter permutation, especially under hidden-dimension and combined permutations, because its direct parameter comparison relies on fixed parameter correspondence. In contrast, REEF, CREF, and AttnDiff remain highly stable by using CKA-based representation comparison, which is insensitive to coordinate permutations. ICS also remains stable because its fingerprint is constructed from

Fig. 7. TrFP similarity and performance retention under adaptive attacks with different attack strengths .
permutation-invariant terms of the attention and FFN weights. TrFP maintains high similarity under all four permutations, consistent with the theoretical analysis in Section V-F.
E. Robustness to Adaptive Attacks
The above experiments mainly consider model transformations that are independent of the fingerprinting mechanism. We further consider a stronger adaptive attack, where the attacker knows the complete fingerprint extraction and matching procedure of TrFP and directly optimizes the model to evade provenance verification [52]. Following Kerckhoffs's principle, the design of TrFP is public, while the model owner's probe set is kept private. Therefore, the attacker constructs a surrogate probe set to estimate the fingerprint and optimize the model accordingly.
Specifically, the attacker adds a fingerprint evasion loss to the standard task loss, forcing the computational trajectory of the fine-tuned model to deviate from that of the source model on the attacker's probe set. The attack objective is:
where is the language modeling loss used to preserve model utility, and is the TrFP similarity between the current model and the source model on the attacker's probe set. The coefficient controls the attack strength. Minimizing this objective balances model utility and provenance evasion.
We use Falcon3-7b and Qwen3-1.7b as source models and perform adaptive fine-tuning with LoRA [53]. The attacker uses Alpaca [54] for fine-tuning and constructs a surrogate probe set using 200 samples from TruthfulQA. The model owner uses 200 samples from ToxiGen as a private probe set. We set to 0, 1, 5, and 10 and optimize the model for 1,000 steps. TrFP similarity on both probe sets and model performance are evaluated every 100 steps.
The results are shown in Fig. 7. For both models, the attack rapidly drives the similarity on the attacker's surrogate probes toward -1, showing that fingerprint similarity can be effectively suppressed when the probes are known. However, the attack transfers poorly to the model owner's private probe set, where the similarity remains above the verification threshold throughout the attack. Stronger attacks reduce the similarity on the private probe set only to a limited extent, and this reduction quickly saturates as increases. Meanwhile, larger values cause increasingly severe utility degradation. For Falcon3-7b, increasing from 5 to 10 brings little additional reduction in fingerprint similarity on the private probes, while model performance deteriorates substantially. Overall, these results show that TrFP remains robust to adaptive attacks, even when the fingerprinting mechanism is fully known.
TABLE IV ABLATION STUDY OF TRAJECTORY DESCRIPTORS
| Method | Effectiveness | Robustness | ||||
|---|---|---|---|---|---|---|
| TPR | TNR | Fine-tuning | Pruning | GPTQ | Merging | |
| 97.96% | 100.0% | 0.8327 | 0.7455 | 0.7648 | 0.6958 | |
| 92.86% | 100.0% | 0.5693 | 0.3122 | 0.7171 | 0.6288 | |
| e | 95.92% | 93.15% | 0.9587 | 0.8845 | 0.7917 | 0.7139 |
| 97.96% | 100.0% | 0.8277 | 0.6662 | 0.8432 | 0.7736 | |
| 100.0% | 100.0% | 0.9603 | 0.8850 | 0.8412 | 0.7673 | |
| 98.98% | 100.0% | 0.9623 | 0.8860 | 0.8361 | 0.7507 | |
| 100.0% | 100.0% | 0.9996 | 0.9121 | 0.8803 | 0.8055 | |
F. Ablation Study
We conduct ablation studies from three aspects: trajectory descriptor composition, probe dataset, and probe set size.
Effect of Trajectory Descriptor Composition. To examine the contribution of each trajectory descriptor, we evaluate all seven non-empty combinations of , , and e, while keeping all other experimental settings unchanged. The results are shown in Table IV. Among the individual descriptors, provides the strongest effectiveness, achieving 97.96% TPR and 100% TNR, while e shows substantially stronger robustness to fine-tuning and pruning. In contrast, alone is less effective, but combining it with notably improves robustness to GPTQ quantization and model merging. Finally, the complete combination achieves 100% TPR and TNR and the highest robustness under all four transformations. These results show that the three descriptors capture complementary trajectory information. Therefore, we use as the default configuration.
Effect of Probe Dataset. To examine whether TrFP depends on a specific type of probe data, we evaluate five datasets with different text characteristics: ToxiGen [46], ConfAIde [55], TruthfulQA [38], StereoSet [56], and PKU-SafeRLHF [57], covering toxicity, privacy, factuality, bias, and safety, respectively. We use Qwen2.5-14b as the source model, Qwen2.5-14b-Instruct as the related model, and Instruct models from the other six model families as unrelated models. All other experimental settings remain the same as in the main experiment. The results are shown in Fig. 8. Although the absolute similarities vary across datasets, Qwen2.5-14b-Instruct consistently achieves substantially higher similarity than the unrelated models on all five datasets. This shows that the provenance discrimination of TrFP is not sensitive to the choice of probe dataset. In this paper, we use ToxiGen as the default probe dataset.
Effect of Probe Set Size. We further examine the effect of the probe set size N on TrFP. The results are shown in Fig. 8. When N is between 10 and 20, the similarities show noticeable fluctuations, indicating that the trajectory fingerprint cannot be estimated reliably from very small probe sets. As
Related LLM: Qwen2.5-14B-Instruct
Unrelated LLMs: Falcon3-7B-Instruct Llama-3.1-8B-Instruct Mistral-7B-Instruct OLMo-2-7B-Instruct Qwen2.5-7B-Instruct Qwen3-1.7B

(a) ToxiGen
(b) ConfAlde
(c) TruthfulQA
(d) StereoSet
(e) PKU-SafeRLHF
Fig. 8. TrFP similarity under different probe set sizes on five probe datasets. Qwen2.5-14b is the source model, Qwen2.5-14b-Instruct is the related model, and the Instruct models from the other six families are unrelated models.
TABLE V STORAGE COST (MiB) OF DIFFERENT FINGERPRINTING METHODS ON VARIOUS LLMs
| Method | Llama2-7b | Llama2-70b | GLM-4.5-Air-106b | GLM-4.5-355b | DeepSeek-V3-671b | KimiK2-1043b |
|---|---|---|---|---|---|---|
| PCS | 26702.8800 | 267028.8100 | 404357.9100 | 1354217.5300 | 2559661.8700 | 3978749.2500 |
| ICS | 384.0000 | 384.0000 | 384.0000 | 384.0000 | 384.0000 | 384.0000 |
| REEF | 3.1250 | 6.2500 | 3.1250 | 3.9063 | 5.4688 | 5.4688 |
| CREF | 0.0076 | 0.0076 | 0.0076 | 0.0076 | 0.0076 | 0.0076 |
| AttnDiff | 0.7031 | 0.5156 | 3.0322 | 6.0645 | 5.3613 | 2.6807 |
| TrFP | 0.0732 | 0.1831 | 0.1053 | 0.2106 | 0.1396 | 0.1396 |
N increases, the results gradually stabilize. When N reaches approximately 100 to 200, the results are already close to those obtained with N = 1000, while further increasing N brings only minor changes. These results show that TrFP can obtain stable provenance fingerprints without requiring a large probe set. Therefore, we set N = 200 by default as a balance between stability and evaluation cost.
G. Storage Cost
In practical provenance verification, reference fingerprints must be stored for registered models. As the model registry grows, storage efficiency becomes increasingly important. Therefore, we compare the storage costs of different methods. For each method, we only count the final fingerprint required for verification, excluding the model itself and temporary variables used during fingerprint extraction. Table V reports the fingerprint sizes of different methods on Llama2-7b, Llama2-70b [47], GLM-4.5-Air-106b [58], GLM-4.5-355b [58], DeepSeek-V3-671b [59], and KimiK2-1043b [60]. PCS directly depends on model parameters, so its storage cost increases rapidly with model size. ICS compresses model parameters into invariant features and substantially reduces the storage cost, but still requires approximately 384 MiB. REEF and AttnDiff further reduce the storage cost to the MiB level, while CREF produces the most compact fingerprint at only 0.0076 MiB. TrFP also maintains a low storage cost, with fingerprint sizes changing only slightly as the model scale increases from 7b to 1043b. This is because it compresses high-dimensional computational trajectories into compact trajectory descriptors without storing model parameters or raw representations. Therefore, TrFP's strong provenance performance does not rely on larger fingerprints, making it well suited for large-scale model provenance verification.
VII. CONCLUSION
In this paper, we propose TrFP, an intrinsic fingerprinting method for LLM provenance verification based on computational trajectories. Rather than relying on model parameters or representations, TrFP characterizes how representations evolve across network depth using compact and permutation-invariant trajectory descriptors. This approach maintains robustness to model transformations while ensuring uniqueness against unrelated models. Extensive experiments validate the effectiveness of TrFP, showing clear separation between related and unrelated models even under various model transformations, parameter permutation, and adaptive attacks. Its permutation invariance and small storage cost make it practical for large-scale model provenance verification. However, TrFP currently requires access to intermediate representations, making it primarily applicable to white-box provenance verification. Its robustness across broader model architectures and stronger adaptive attacks remains to be further studied. Future work will investigate these settings and extend TrFP from LLMs to agentic systems by exploring provenance characteristics in planning, tool use, and interaction trajectories.
REFERENCES
[1] K. Pang, T. Qi, C. Wu et al., “ModelShield: Adaptive and robust watermark against model extraction attack,” IEEE Trans. Inf. Forensics Security, vol. 20, pp. 1767–1782, 2025.
[2] A. Yan, H. Ren, K. Mo et al., “Enhancing model intellectual property protection with robustness fingerprint technology,” IEEE Trans. Inf. Forensics Security, vol. 20, pp. 9235–9249, 2025.
[3] S. Shao, H. Zhu, Y. Li et al., “FIT-Print: Toward false-claim-resistant model ownership verification via targeted fingerprint,” IEEE Trans. Inf. Forensics Security, vol. 21, pp. 5612–5626, 2026.
[4] W.-L. Chiang, Z. Li, Z. Lin et al., “Vicuna: An open-source chatbot impressing GPT-4 with 90% ChatGPT quality,” LMSYS Org Blog, Mar. 2023. [Online]. Available: https://lmsys.org/blog/2023-03-30-vicuna/
[5] M. Xia, T. Gao, Z. Zeng et al., “Sheared LLaMA: Accelerating language model pre-training via structured pruning,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024.
[6] E. Frantar, S. Ashkboos, T. Hoefler et al., “GPTQ: Accurate post-training quantization for generative pre-trained transformers,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2023.
[7] R. Entezari, H. Sedghi, O. Saukh et al., “The role of permutation invariance in linear mode connectivity of neural networks,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2022.
[8] I. Lederer, R. Mayer, and A. Rauber, “Identifying appropriate intellectual property protection mechanisms for machine learning models: A systematization of watermarking, fingerprinting, model access, and attacks,” IEEE Trans. Neural Netw. Learn. Syst., vol. 35, no. 10, pp. 13082–13100, 2024.
[9] Z. Yang and H. Wu, “Unveiling hidden model fingerprints in API-protected LLMs,” Electronic Imaging, vol. 38, no. 4, pp. MWSF–309–1–MWSF–309–9, 2026.
[10] Y. Zhao, H. Zhang, and H. Wu, “Robust black-box fingerprinting for large language models against composite attacks via LLM self-evaluation and ArcFace,” in Proc. ACM Workshop Inf. Hiding Multimedia Secur. (IH&MMSec), 2026, pp. 81–91.
[11] V. Masrani, M. Akbari, D. M. X. Yue et al., “Task-agnostic language model watermarking via high entropy passthrough layers,” in Proc. AAAI Conf. Artif. Intell. (AAAI), vol. 39, no. 23, 2025, pp. 24849–24857.
[12] B. Yang, M. Ma, L. Xiang et al., “CodeGenGuard: A watermark for code generation models,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2026.
[13] B. Zeng, L. Wang, Y. Hu et al., “HuRef: Human-readable fingerprint for large language models,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 37, 2024, pp. 126332–126362.
[14] H. Zhang and Y. Zheng, “SELF: A robust singular value and eigenvalue approach for LLM fingerprinting,” arXiv preprint arXiv:2512.03620, 2025.
[15] S. Wang, Z. Ma, X. Li et al., “Ghost in the transformer: Detecting model reuse with invariant spectral signatures,” in Proc. AAAI Conf. Artif. Intell. (AAAI), vol. 40, no. 40, 2026, pp. 33648–33656.
[16] B. Zeng, L. Chen, Z. He et al., “AWM: Accurate weight-matrix fingerprint for large language models,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2026.
[17] J. Zhang, J. Li, H. Fei et al., “EasyDetector: Using linear probe to detect the provenance of large language models,” in Proc. IEEE Int. Conf. Trust, Secur. Privacy Comput. Commun. (TrustCom), 2024, pp. 2410–2417.
[18] J. Zhang, D. Liu, C. Qian et al., “REEF: Representation encoding fingerprints for large language models,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2025.
[19] Y. Liu, J. Ning, S. Xia et al., “FNF: Functional network fingerprint for large language models,” arXiv preprint arXiv:2601.22692, 2026.
[20] H. Tang, H. Wu, G. Zhao et al., “CREF: Concept response fingerprints for large language models,” in Proc. ACM Workshop Inf. Hiding Multimedia Secur. (IH&MMSec), 2026, pp. 75–80.
[21] H. Zhang, Z. Xu, J. Li et al., “AttnDiff: Attention-based differential fingerprinting for large language models,” arXiv preprint arXiv:2604.05502, 2026.
[22] S. Kornblith, M. Norouzi, H. Lee et al., “Similarity of neural network representations revisited,” in Proc. Int. Conf. Mach. Learn. (ICML), 2019, pp. 3519–3529.
[23] N. Elhage, N. Nanda, C. Olsson et al., “A mathematical framework for transformer circuits,” Transformer Circuits Thread, 2021. [Online]. Available: https://transformer-circuits.pub/2021/framework/index.html
[24] M. Raghu, J. Gilmer, J. Yosinski et al., “SVCCA: Singular vector canonical correlation analysis for deep learning dynamics and interpretability,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, 2017, pp. 6076–6085.
[25] X. Cao, J. Jia, and N. Z. Gong, “IPGuard: Protecting intellectual property of deep neural networks via fingerprinting the classification boundary,” in Proc. ACM Asia Conf. Comput. Commun. Secur. (ASIA CCS), 2021, pp. 14–25.
[26] N. Lukas, Y. Zhang, and F. Kerschbaum, “Deep neural network fingerprinting by conferrable adversarial examples,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2021.
[27] Z. Peng, S. Li, G. Chen et al., “Fingerprinting deep neural networks globally via universal adversarial perturbations,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2022, pp. 13430–13439.
[28] Y. Zheng, S. Wang, and C.-H. Chang, “A DNN fingerprint for non-repudiable model ownership identification and piracy detection,” IEEE Trans. Inf. Forensics Security, vol. 17, pp. 2977–2989, 2022.
[29] A. Gretton, O. Bousquet, A. Smola et al., “Measuring statistical dependence with Hilbert–Schmidt norms,” in Proc. Int. Conf. Algorithmic Learn. Theory (ALT), 2005, pp. 63–77.
[30] A. Murphy, J. Zylberberg, and A. Fyshe, “Correcting biased centered kernel alignment measures in biological and artificial neural networks,” in Proc. ICLR Workshop Represent. Alignment (Re-Align), 2024.
[31] L. Song, A. Smola, A. Gretton et al., “Feature selection via dependence maximization,” J. Mach. Learn. Res., vol. 13, pp. 1393–1434, 2012.
[32] Falcon-LLM Team, “The Falcon 3 family of open models,” Hugging Face Blog, Dec. 2024. [Online]. Available: https://huggingface.co/blog/falcon3
[33] A. Grattafori, A. Dubey, A. Jauhri et al., “The Llama 3 herd of models,” arXiv preprint arXiv:2407.21783, 2024.
[34] A. Q. Jiang, A. Sablayrolles, A. Mensch et al., “Mistral 7B,” arXiv preprint arXiv:2310.06825, 2023.
[35] Team OLMo, P. Walsh, L. Soldaini et al., “2 OLMo 2 furious,” in Proc. Conf. Lang. Model. (COLM), 2025.
[36] Qwen, A. Yang, B. Yang et al., “Qwen2.5 technical report,” arXiv preprint arXiv:2412.15115, 2024.
[37] A. Yang, A. Li, B. Yang et al., “Qwen3 technical report,” arXiv preprint arXiv:2505.09388, 2025.
[38] S. Lin, J. Hilton, and O. Evans, “TruthfulQA: Measuring how models mimic human falsehoods,” in Proc. Annu. Meeting Assoc. Comput. Linguistics (ACL), 2022, pp. 3214–3252.
[39] M. Huh, B. Cheung, T. Wang et al., “Position: The Platonic representation hypothesis,” in Proc. Int. Conf. Mach. Learn. (ICML), 2024, pp. 20617–20642.
[40] M. Usama and D. E. Chang, “Convergence without understanding: When language models agree on representations but disagree on reasoning,” arXiv preprint arXiv:2605.23315, 2026.
[41] N. Houlsby, A. Giurgiu, S. Jastrzebski et al., “Parameter-efficient transfer learning for NLP,” in Proc. Int. Conf. Mach. Learn. (ICML), 2019, pp. 2790–2799.
[42] P. Yadav, D. Tam, L. Choshen et al., “TIES-Merging: Resolving interference when merging models,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 36, 2023, pp. 7093–7115.
[43] G. Hinton, O. Vinyals, and J. Dean, “Distilling the knowledge in a neural network,” arXiv preprint arXiv:1503.02531, 2015.
[44] L. McInnes, J. Healy, and J. Melville, “UMAP: Uniform manifold approximation and projection for dimension reduction,” arXiv preprint arXiv:1802.03426, 2018.
[45] A. Vaswani, N. Shazeer, N. Parmar et al., “Attention is all you need,” in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, 2017, pp. 5998–6008.
[46] T. Hartvigsen, S. Gabriel, H. Palangi et al., “ToxiGen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection,” in Proc. Annu. Meeting Assoc. Comput. Linguistics (ACL), 2022, pp. 3309–3326.
[47] H. Touvron, L. Martin, K. Stone et al., “Llama 2: Open foundation and fine-tuned chat models,” arXiv preprint arXiv:2307.09288, 2023.
[48] H. Luo, Q. Sun, C. Xu et al., “WizardMath: Empowering mathematical reasoning for large language models via reinforced Evol-Instruct,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2025.
[49] Y. Cui, Z. Yang, and X. Yao, “Efficient and effective text encoding for Chinese LLaMA and Alpaca,” arXiv preprint arXiv:2304.08177, 2023.
[50] B. Rozière, J. Gehring, F. Gloeckle et al., “Code Llama: Open foundation models for code,” arXiv preprint arXiv:2308.12950, 2023.
[51] Z. Azerbaijan, H. Schoelkopf, K. Paster et al., “Llemma: An open language model for mathematics,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024.
[52] H. Yao, Z. Li, K. Huang et al., “RemovalNet: DNN fingerprint removal attacks,” IEEE Trans. Dependable Secure Comput., vol. 21, no. 4, pp. 2645–2658, 2024.
[53] E. J. Hu, Y. Shen, P. Wallis et al., “LoRA: Low-rank adaptation of large language models,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2022.
[54] R. Taori, I. Gulrajani, T. Zhang et al., “Stanford Alpaca: An instruction-following LLaMA model,” GitHub repository, 2023. [Online]. Available: https://github.com/tatsu-lab/stanford_alpaca
[55] N. Mireshghallah, H. Kim, X. Zhou et al., “Can LLMs keep a secret? Testing privacy implications of language models via contextual integrity theory,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024.
[56] M. Nadeem, A. Bethke, and S. Reddy, “StereoSet: Measuring stereotypical bias in pretrained language models,” in Proc. Annu. Meeting Assoc. Comput. Linguistics Int. Joint Conf. Natural Lang. Process. (ACL-IJCNLP), 2021, pp. 5356–5371.
[57] J. Ji, D. Hong, B. Zhang et al., “PKU-SafeRLHF: Towards multi-level safety alignment for LLMs with human preference,” in Proc. Annu. Meeting Assoc. Comput. Linguistics (ACL), 2025, pp. 31983–32016.
[58] GLM-4.5 Team, A. Zeng, X. Lv et al., “GLM-4.5: Agentic, reasoning, and coding (ARC) foundation models,” arXiv preprint arXiv:2508.06471, 2025.
[59] DeepSeek-AI, A. Liu, B. Feng et al., “DeepSeek-V3 technical report,” arXiv preprint arXiv:2412.19437, 2024.
[60] Kimi Team, Y. Bai, Y. Bao et al., “Kimi K2: Open agentic intelligence,” arXiv preprint arXiv:2507.20534, 2025.