betaFeedback

WorksComputer Science

Reconstructing LLM Lineage Trees via Fine-Tuning Path Inference

Abstract

Fine-tuned (FT) derivatives of large language models (LLMs) are now released in large numbers, yet their provenance relies on self-reports and cannot be verified. Misattributed lineage leaves a verifier unable to audit outsourced fine-tuning, confirm license compliance of derived models, or trace vulnerabilities that a parent passes to its children. All three require the direction of derivation, not merely its presence. Existing output-only methods are limited to pairwise derivation tests or undirected lineage estimation, while recovering a directed tree requires white-box access to model weights. We formalize the problem of reconstructing a directed model tree, including internal nodes, under gray-box access, where only teacher-forced log-likelihoods are observed and weights are never inspected. Fine-tuning raises the log-likelihood of the training data, and a child inherits this increase from its parent. Building on this property, we define an asymmetric per-task log-likelihood deviation between any two models as a trace of fine-tuning history, and derive from it an edge weight for each ordered pair of models. We propose TRACE-Edge, which exactly solves for the maximum spanning directed tree under these edge weights, with neither hyperparameters nor tree-structure constraints. We evaluate it on five configurations totaling 25 model trees built from three base models and seven tasks. TRACE-Edge achieves a parent-match accuracy of 0.74 when probed with the fine-tuning examples, and on average outperforms an output-similarity baseline even with held-out probes drawn from the same distribution as the training data.

Introduction

Training a large language model (LLM) from scratch requires enormous computational resources and training data. Fine-tuning (FT) a publicly released pretrained model for a specific task is therefore widely used instead. The spread of model-sharing platforms such as Hugging Face has accelerated a development style that assumes models will be reused and derived from one another.

When a model is fine-tuned to obtain another model, a parent-child relationship holds between the two. Following these derivation relationships as edges forms a tree structure rooted at a pretrained model. Model-sharing platforms provide a mechanism for reporting each model’s source model, that is, its base model, through the model card, but this report is optional and self-reported, and no mechanism exists to verify its correctness.

Now that model derivation is commonplace, there are many situations that require verifying a model’s provenance. The first is auditing a model after outsourcing fine-tuning to an external vendor. When a company or research institution outsources FT to an external vendor, the finished model is often accessible only through an API, and the training process cannot be observed directly. In this situation, the user has reason to verify whether the delivered model was in fact derived from the specified base model, and whether updated models supplied during operation continue to derive along the lineage originally reported.

The second is tracking a model’s license and rights. When a model is derived from a base model that carries license conditions, confirming compliance requires verifying the derivation relationship down to the leaves of the tree structure, not just the direct child but its grandchildren and further descendants. Exercising this right effectively, however, presupposes the ability to verify which model a given model was derived from. Here, showing that two models are similar is not enough. Determining where the rights lie, or whether they have been infringed, requires a method that establishes the order in which the two models existed, that is, the direction of derivation.

The third is tracking the inheritance of a model’s vulnerabilities and safety risks. A parent model’s vulnerabilities are inherited by its child models through fine-tuning: adversarial prompts optimized on a pretrained model transfer more effectively to its fine-tuned derivatives than prompts optimized on unrelated models [18]. Defenses against derived models also depend on lineage information, since Zhong & Raghunathan [22]’s backdoor detection needs the base model’s weights and degrades without them. This situation, too, requires not just the presence of a derivation relationship but its direction. Because fine-tuning is a one-directional operation that takes the parent’s parameters as its initial value, the propagation of vulnerabilities is also asymmetric: a parent’s vulnerability spreads to its child, but not the reverse. An undirected derivation relationship alone cannot pin down where the risk lies.

In situations like these, a verifier needs a way to verify a model’s provenance independently. A discrepancy between the reported lineage and the true one can arise even without assuming any malicious intent on the provider’s part, for instance through an omitted or incorrect entry, or a third-party re-upload. The problem therefore comes down to how far a user without access to a model’s internals can reconstruct, without relying on self-reports, a tree that represents the parent-child relationships.

Existing methods, however, have two limitations with respect to this requirement (§ 2). First, methods that observe only a model’s output [15, 20] do not output a directed tree. The output similarity these methods use is a symmetric quantity that does not change when the two models are swapped, so it cannot determine the direction of an edge. Second, MoTHer [9], which does output a directed tree, determines edge direction from the weight distribution and so presupposes white-box access, but the models to be verified include ones whose weights are not public and that are available only through a commercial API.

We therefore propose a method that reconstructs a directed tree without referring to a model’s weights, using as its only signal the log-likelihood a model returns for a given input-output pair. Fine-tuning raises the log-likelihood of the data used for training, on that same data treated as an input-output pair. Because a child is fine-tuned starting from its parent’s parameters, we expect that, for the data used in fine-tuning, the parent’s increase in log-likelihood is inherited by the child. Using this increase in log-likelihood, we expect to be able to reconstruct a tree structure that represents a model’s derivation history, including the direction of derivation introduced by fine-tuning.

This paper makes the following three contributions.

  • Problem formulation and benchmark. We formulate the problem of reconstructing a directed tree, including internal nodes, from only the teacher-forced log-likelihood and without referring to model weights, propose the two methods TRACE-Set and TRACE-Edge, and build a benchmark of 25 model trees across five configurations.

  • Experimental verification that fitting to training examples is inherited. We show experimentally that fine-tuning causes a parent model’s fit to its training examples to be inherited by its child, and that this can be observed when the training examples are used as probes. Using this property, we define a score function for estimating derivation relationships from fine-tuning.

  • Performance evaluation of directed-tree recovery with the proposed methods. We show that TRACE-Edge, which uses none of the tree structure, the true parent, or any hyperparameter, achieves the best recovery of model derivation history under the held-out probe among all the methods we compare.

Related Work

Pairwise Derivation Testing. Model Provenance Testing (MPT) [15] tests whether a model gg is derived from a candidate model ff. It uses the similarity between the next-token predictions of ff and gg as its test statistic, and makes the decision through a test with a null distribution formed from a set of control models known not to be in a derivation relationship. This method operates under a weaker access assumption than ours, black-box access, but its output only determines whether an undirected derivation relationship exists for a pair of models, so it does not recover a tree structure. The tree-recovery baseline we build in this paper as an extension of MPT likewise outputs only an undirected tree structure, and cannot determine edge direction without knowledge of the root.

Output-Based Lineage Estimation. PhyloLM [20] estimates a phylogenetic tree for a set of LLMs by applying neighbor joining to a distance matrix defined from the similarity of their generated outputs. This method also operates under a weaker access assumption than ours, black-box access, but what it outputs is an undirected dendrogram with no root specified, and moreover only the leaf nodes are recovered, so it cannot recover a tree structure that represents the derivation relationships.

Weight-Based Directed-Tree Recovery. MoTHer [9] is prior work that, like this paper, formulates the task as recovering a directed model tree. It uses weight distance to place edges and the kurtosis of the weight distribution to orient them, and constructs a directed minimum spanning tree with the Chu–Liu/Edmonds algorithm [3, 5]. It is the closest to this paper in that it outputs a directed tree, including edge orientation, but white-box access is indispensable because both edge placement and orientation refer to the weights.

Three additional lines of work share methodology or motivation with ours: dataset inference, model fingerprinting, and watermarking. We defer the differences between these works and our work to Appendix A.

Preliminaries

Language Models and Fine-Tuning

Let VV denote the vocabulary and V∗V^{*} the set of finite-length token sequences over VV. The LLMs considered in this paper are autoregressive conditional language models with parameters θ\theta, factorizing pθ(y∣x)=∏i=1∣y∣pθ(yi∣x,y<i)p_{\theta}(y \mid x) = \prod_{i=1}^{|y|} p_{\theta}(y_i \mid x, y_{<i}) for x,y∈V∗x, y \in V^{*}, where y<i=(y1,…,yi−1)y_{<i} = (y_1, \ldots, y_{i-1}). Supplying yy externally rather than from the model’s own predictions is teacher forcing; under it, pθ(yi∣x,y<i)p_{\theta}(y_i \mid x, y_{<i}) is a deterministic quantity, independent of decoding strategy or randomness, which a verifier can reproduce exactly. We write mm for a model, θm\theta_m for its parameters, and pm:=pθmp_m := p_{\theta_m}.

Let a dataset for task τ\tau be Dτ={(xj,yj)}j⊂V∗×V∗D_{\tau} = \{(x_j,y_j)\}_{j} \subset V^{*} \times V^{*}. Fine-tuning takes existing parameters θ\theta as the initial value and minimizes −∑(x,y)∈Dτlog⁡pθ(y∣x)-\sum_{(x,y)\in D_{\tau}} \log p_{\theta}(y \mid x) to obtain θ′=FT⁡(θ,Dτ,c)\theta' = \operatorname{FT}(\theta, D_{\tau}, c), where cc is the training configuration (optimizer, learning rate, number of epochs). Throughout this paper, cc is held fixed across all nodes of a tree (Section 5.1). This one-directional operation from θ\theta to θ′\theta' defines a parent-child relationship, and is the only derivation relationship this paper treats. It covers both full-parameter fine-tuning and parameter-efficient methods such as LoRA [10], since either yields a single θ′\theta' from a single θ\theta. By contrast, model merging, which combines the parameters of two or more parents, does not fit a tree-structured framework and is outside the scope of this work.

Model Trees

When a model is repeatedly fine-tuned, taking each result as the parent of the next, the derivation relationships form a tree structure, which we call a model tree T=(M,E)T = (M, E). Here MM is the set of models, and E⊂M×ME \subset M \times M is the set of directed edges representing fine-tuning from parent to child. The root r∈Mr \in M is a pretrained model that has not been fine-tuned, and every non-root node m∈M∖{r}m \in M \setminus\{r\} has exactly one parent pa⁡(m)\operatorname{pa}(m). Each node m≠rm \ne r is the result of fine-tuning on a single task τm\tau_m starting from its parent’s parameters, that is, θm=FT⁡(θpa⁡(m),Dτm,c)\theta_m = \operatorname{FT}(\theta_{\operatorname{pa}(m)}, D_{\tau_m}, c). nodes other than mm on the path from the root to mm the ancestors of mm, and a node that shares mm’s parent but is not on the path from the root to mm a sibling of mm. A model tree is a directed tree in which every node is reachable from rr. This paper assumes that MM contains every node of TT without omission, that is, that no unobserved intermediate-generation models exist.

Verifier Setting

In this section, we call the party who performs lineage verification the verifier, and define, in turn, the verifier’s situation, the verifier’s available access, and the verifier’s prior knowledge assumed.

Setting. We primarily consider a verifier who is a user seeking to adopt a public model in their own system. The verifier observes a set of models MM published on a model-sharing platform such as Hugging Face. Each model in MM is provided in a form that supports inference, but the derivation relationships EE among them are either unreported, or reported without any guarantee of correctness.

Verifier’s Available Access. For any m∈Mm \in M, the verifier can supply any (x,y)∈V∗×V∗(x,y) \in V^* \times V^* and obtain the per-token log-likelihoods log⁡pm(yi∣x,y<i)i=1∣y∣\log p_m(y_i \mid x,y_{<i})_{i=1}^{|y|}. This setting is intended to model inference backends that return log-likelihoods (such as vLLM [12] and Text Generation Inference [11]) or inference APIs that return logprobs. It is stronger than a fully black-box setting that returns only generated output, and weaker than a white-box setting that requires the parameters θm\theta_m, so we call it gray-box access in this paper. The verifier has no access to the weights θm\theta_m, gradients, training logs, or intermediate-layer representations, and cannot obtain any cooperation from the provider.

Verifier’s Prior Knowledge. The verifier knows the root node rr of MM; Appendix § 13 relaxes this assumption by providing a procedure for estimating an unknown root. We assume a closed-world setting: the verifier knows a finite task set T={τ1,…,τT}\mathcal{T} = \{\tau_1,\ldots,\tau_T\} covering all fine-tuning tasks along the model tree, i.e., {τm∣m∈M∖{r}}⊆T\{\tau_m \mid m \in M \setminus\{r\}\} \subseteq\mathcal{T}. This assumption is reasonable for auditing and intellectual property verification when training records or sufficiently detailed model cards disclose the relevant tasks, while the derivation relationships remain unknown. We leave the open-world setting with incomplete task knowledge to future work, focusing here on provenance inference without the additional uncertainty introduced by unknown tasks.

For each task τ∈T\tau\in\mathcal{T}, we suppose the verifier can obtain a probe set PτP_\tau. We consider two cases: train, where the examples themselves are available (e.g., auditing outsourced fine-tuning or checking license compliance), and held-out, where the examples are drawn from the same distribution but were not used for training (e.g., tracing the inheritance of vulnerabilities or safety risks).

Goal and Evaluation Metrics

Goal. Given a node set MM, a root rr, and a task set T\mathcal{T}, with gray-box access to the models in the node set, the verifier’s goal is to recover the model tree T=(M,E)T = (M,E). For each non-root node m∈M∖{r}m \in M \setminus\{r\}, the verifier outputs a parent estimate pa^(m)∈M∖{m}\widehat{\mathrm{pa}}(m) \in M \setminus\{m\}. The verifier’s goal is for the resulting edge set E^={(pa^(m),m)}m≠r\widehat{E} = \{(\widehat{\mathrm{pa}}(m),m)\}_{m \ne r} to match the true edge set EE. Unlike a pairwise formulation that separately decides whether two models are in a derivation relationship, this formulation simultaneously requires (i) determining the direction of each edge and (ii) recovering the whole tree, including internal nodes, consistently.

Evaluation Metrics. We measure recovery performance with two metrics. First, we define the parent-match accuracy as

Acc⁡(E^)=1∣M∣−1∣{m∈M∖{r}:pa^(m)=pa(m)}∣(1)\operatorname{Acc}(\widehat{E}) = \frac{1}{|M|-1}\left|\left\{m \in M \setminus\{r\} : \widehat{\mathrm{pa}}(m) = \mathrm{pa}(m)\right\}\right| \tag*{(1)}

Each node has ∣M∣−1|M|-1 candidate parents, namely every other node, so the expected value under a random choice of parent, that is, the chance level, is 1/(∣M∣−1)1/(|M|-1). This is ≈0.167\approx0.167 for the 7-node trees used in this paper and ≈0.125\approx0.125 for the 9-node tree.

Next, we define the depth-match accuracy. For each m∈Mm \in M, the path from the root is unique, and we call the number of edges on the depth dT(m)d_T(m) of mm, so that dT(r)=0d_T(r) = 0 and dT(m)=dT(pa(m))+1d_T(m) = d_T(\mathrm{pa}(m)) + 1 for m≠rm \ne r. We also restrict the verifier’s output T^=(M,E^)\hat{T} = (M, \hat{E}) to a spanning directed tree rooted at rr (every method considered in this paper satisfies this). We then define the depth-match accuracy as

DAcc⁡(T^)=1∣M∣−1∣{m∈M∖{r}:dT^(m)=dT(m)}∣(2)\operatorname{DAcc}(\hat{T}) = \frac{1}{|M|-1}\left|\left\{m \in M \setminus\{r\}: d_{\hat{T}}(m) = d_T(m)\right\}\right| \tag*{(2)}

The root is excluded from the denominator because it always matches at depth 0. The chance level is ≈0.333\approx0.333 for the 7-node trees used in this paper and ≈0.250\approx0.250 for the 9-node tree.

Method

This section proposes a method for recovering a directed tree from gray-box access alone. At its core is the trace that fine-tuning history leaves in a model’s output. The fit to a fine-tuning task applied somewhere along the path from the root rr to a non-root node mm can be observed as a change in the log-likelihood mm assigns to the training data used for that fine-tuning. Our method formalizes this parent-child difference in log-likelihood as a per-task deviation. This deviation reflects a one-directional property of the operation. Fine-tuning from parent to child tends to raise a task’s log-likelihood, so the deviation can be used to determine the direction of a parent-child relationship.

Based on this observation, this section proposes two methods under the name TRACE (Teacher-forced Reconstruction of Ancestry from Conditional-likelihood Evidence): TRACE-Set (§ 4.2), which determines parents from the inclusion relationships among task sets, and TRACE-Edge (§ 4.3, the main method of this paper), which exactly solves for the maximum spanning directed tree using the per-task deviation as edge weights.

Deviations

This section formalizes the deviation that TRACE-Set and TRACE-Edge use in common. We define the sequence-averaged log-likelihood with which model mm generates the target output yy given input xx as

Sm(x,y)=1∣y∣∑i=1∣y∣log⁡pm(yi∣x,y<i)(3)S_m(x,y) = \frac{1}{|y|}\sum_{i=1}^{|y|} \log p_m(y_i \mid x,y_{<i}) \tag*{(3)}

For (x,y)∈Pτ(x,y) \in P_\tau in the probe example set of task τ∈T\tau\in\mathcal{T}, Sm(x,y)S_m(x,y) in Eq. (3) measures how well mm fits τ\tau. If mm was fine-tuned on τ\tau while deriving from its parent pp, we expect Sm(x,y)S_m(x,y) to exceed Sp(x,y)S_p(x,y) by more than it would if mm had not been fine-tuned on τ\tau. Given the example set Pτ⊂V∗×V∗P_\tau\subset\mathcal{V}^* \times\mathcal{V}^* of task τ\tau, we therefore define the deviation δτ(f→m)\delta_\tau(f \to m) of model mm relative to a reference model ff as

δτ(f→m)=1∣Pτ∣∑(x,y)∈Pτ(Sm(x,y)−Sf(x,y))∈R(4)\delta_\tau(f \to m) = \frac{1}{|P_\tau|}\sum_{(x,y)\in P_\tau}\left(S_m(x,y)-S_f(x,y)\right) \in\mathbb{R} \tag*{(4)}

That is, δτ(f→m)\delta_\tau(f \to m) shows the change in fit to task τ\tau of mm relative to ff. When δτ(f→m)\delta_\tau(f \to m) is large, we consider it likely that τ\tau was used to fine-tune mm somewhere along its derivation from ff.

Recall that DτD_\tau (§ 3.1) is the fine-tuning set. For the two probe conditions of § 3.3, we write Pτtrain⊂DτP_\tau^{\mathrm{train}} \subset D_\tau and Pτheld−outP_\tau^{\mathrm{held-out}}, the latter drawn from the same distribution as DτD_\tau but disjoint from it.

TRACE-Set

This section defines TRACE-Set, a method that recovers the tree structure from inclusion relationships among tasks. It estimates, for each node, the set of tasks fine-tuned along the path from the root, and identifies the parent-child relationships, that is, the tree structure, from the inclusion relationships among these sets.

If a task τ∈T\tau\in\mathcal{T} was used for fine-tuning somewhere along the path from the root rr to mm, we expect δτ(r→m)\delta_\tau(r \to m) to take a positive value. For a task not on the path, conversely, this increase does not occur. We therefore expect that looking at which tasks give a positive deviation relative to rr lets us estimate the history of tasks that mm’s ancestors used for fine-tuning.

For each node mm, we therefore define the ancestor task set, the set of tasks estimated to fit substantially better than the root, as

A(m)={τ∈T:δτ(r→m)>η}(5)A(m) = \{ \tau\in\mathcal{T} : \delta_{\tau}(r \to m) > \eta\} \tag*{(5)}

Here η\eta is a positive threshold, the only hyperparameter TRACE-Set has. We describe how we choose its value in § 5.1.

Because the true parent pp of mm is the ancestor whose path ends one task before mm’s, we expect A(m)A(m) to contain A(p)A(p) with a difference of exactly one task. That is, we consider pp to satisfy

A(f)⊂A(m),∣A(m)∖A(f)∣=1(6)A(f) \subset A(m), \lvert A(m) \setminus A(f) \rvert= 1 \tag*{(6)}

TRACE-Set estimates the parent of mm as an ff that satisfies Eq. (6). Because of the thresholding by η\eta, no such ff may exist, or several may. In the former case, we relax the condition to the candidate with the smallest set difference. In the latter, we choose the ff with the largest deviation among the tasks in the set difference. We summarize the full procedure in Algorithm 1 (Appendix § 12).1

TRACE-Edge

This section defines TRACE-Edge, a method that introduces an asymmetric edge weight for each ordered pair of models and finds the directed tree that maximizes the sum of edge weights over the whole tree. Whereas TRACE-Set determines parent-child relationships locally at each node, TRACE-Edge determines the parents of all nodes simultaneously, using a complete directed graph in which models are nodes and parent-child relationships are directed edges. We define, as the weight of each directed edge, a score function that grows larger the more likely a derivation relationship is, and estimate the tree structure from these scores.

Designing the Score Function. The core idea of this method is that, when the child’s deviation is measured relative to its true parent, the deviation appears only for the single task used to fine-tune the child itself. When a candidate parent model ff is the true parent of mm, mm inherits the whole of ff’s fine-tuning history and is then further fine-tuned only on task τm\tau_m. We should therefore expect δτm(f→m)\delta_{\tau_m}(f \to m) to take a large positive value, and the deviations δτ′(f→m)\delta_{\tau^\prime}(f \to m) for the other tasks τ′≠τm\tau^\prime\ne\tau_m to be close to 0.

In what follows, given ff and mm, we design a score function ss that judges whether ff is the parent of mm. The key point is that δτ(f→m)\delta_{\tau}(f \to m) changes substantially only for tasks fine-tuned somewhere on the path between ff and mm, and is positive when that path is traversed from parent to child and negative when traversed from child to parent. We consider four cases according to the relationship between ff and mm: (1) ff is the true parent of mm, (2) ff is an ancestor of mm other than its parent, (3) ff is a descendant of mm, and (4) ff is neither an ancestor nor a descendant of mm. These four cases cover every ff other than mm itself.

(1) ff is the parent of mm. δτ(f→m)\delta_{\tau}(f \to m) is positive only for the task τm\tau_m used to fine-tune ff into mm.

(2) ff is an ancestor of mm other than its parent. mm is fine-tuned on two or more tasks along the path from ff. So there are two or more τ\tau for which δτ(f→m)\delta_{\tau}(f \to m) is positive.

(3) ff is a descendant of mm. ff is fine-tuned on one or more tasks along the path from mm. So there is at least one τ\tau for which δτ(f→m)\delta_{\tau}(f \to m) is negative.

(4) ff is neither an ancestor nor a descendant of mm. The paths from the root to ff and to mm diverge, so let aa be their point of divergence, the deepest common ancestor of ff and mm. The path from ff to mm then splits into two parts: from ff to aa, going from child to parent, and from aa to mm, going from parent to child. The former can be treated as in (3) and the latter as in (1) and (2), and since there are tasks fine-tuned along each part of the path, there is at least one τ\tau for which δτ(f→m)\delta_{\tau}(f \to m) is positive and at least one for which it is negative.

Case∣T+∣|T^{+}|∣T−∣|T^{-}|δ(1)\delta_{(1)}δ(2)\delta_{(2)}δmin⁡\delta_{\min}s(f→m)s(f \to m)
(1)1100>ϵ>\epsilon≈0\approx0≈0\approx0>ϵ>\epsilon
(2)≥2\ge200>ϵ>\epsilon>ϵ>\epsilon≈0\approx0δ(1)−δ(2)\delta_{(1)}-\delta_{(2)}
(3)00≥1\ge1≈0\approx0≈0\approx0<−ϵ<-\epsilon<−ϵ<-\epsilon
(4)≥1\ge1≥1\ge1>ϵ>\epsilon—<−ϵ<-\epsilonδ(1)−∣δmin⁡∣\delta_{(1)}-|\delta_{\min}|

Table 1. Behavior of δτ(f→m)\delta_{\tau}(f \to m) and the score s(f→m)s(f \to m) for each relationship between ff and mm.

Taking cases (1) through (4) together, only when ff is the true parent of mm does δτ(f→m)\delta_{\tau}(f \to m) take a large positive value for one task and a value close to 0 for the others. Fix an ordered pair (f,m)(f,m) for f,m∈Mf,m \in M, and write the deviations δτ(f→m)\delta_{\tau}(f \to m) for τ∈T\tau\in\mathcal{T} sorted in descending order as δ(1)≥δ(2)≥…≥δmin⁡=min⁡τ∈Tδτ(f→m)\delta_{(1)} \ge\delta_{(2)} \ge\ldots\ge\delta_{\min} = \min_{\tau\in\mathcal{T}} \delta_{\tau}(f \to m). We then define the score indicating that ff is the true parent of mm as

s(f→m)=δ(1)−max⁡(δ(2),∣δmin⁡∣)(7)s(f \to m) = \delta_{(1)} - \max(\delta_{(2)}, |\delta_{\min}|) \tag*{(7)}

The first term of ss takes the largest positive deviation, and the second term takes either the second-largest positive deviation or the smallest (most negative) deviation.

Table 1 summarizes the behavior of each term and of s(f→m)s(f \to m) for cases (1) through (4). Here T+={τ∈T∣δτ(f→m)>ϵ}\mathcal{T}^{+} = \{\tau\in\mathcal{T} \mid\delta_{\tau}(f \to m) > \epsilon\} and T−={τ∈T∣δτ(f→m)<−ϵ}\mathcal{T}^{-} = \{\tau\in\mathcal{T} \mid\delta_{\tau}(f \to m) < -\epsilon\}, where ϵ\epsilon is a small positive value representing the error in the deviation. Only in case (1) is s(f→m)s(f \to m) composed of positive terms alone, so we expect it to take a larger positive value than in the other cases.

Computing the score of (7) as the edge weight for every ordered pair (f,m)(f,m) gives a complete directed graph on the vertex set MM. On the graph obtained by removing every edge into rr, TRACE-Edge exactly finds, with the Chu–Liu/Edmonds algorithm [3, 5], the spanning directed tree rooted at rr that maximizes the sum of edge weights. It imposes no constraint on the number of children or the depth, and has no hyperparameter. We summarize the procedure in Algorithm 2 (Appendix § 12).

Experiments

Experimental Setup

Model Trees. For evaluation, we use five model trees that we constructed ourselves. The reference tree is a 7-node, depth-2 tree rooted at Llama-3.2-3B ([7]), which we call HET-3B. Figure 1 shows the structure of HET-3B. Starting from the root Llama-3.2-3B, shown as rr in Figure 1, HET-3B has two nodes gmathg_{\mathrm{math}} and gsumg_{\mathrm{sum}} fine-tuned on a math word-problem task and a summarization task, from which four nodes c1,c2,c3,c4c_1,c_2,c_3,c_4 derive, each child fine-tuned on one of two tasks: data-to-text generation and translation.

Structure and task assignment of HET-3B

Figure 1. Structure and task assignment of HET-3B. Edge labels denote the task each node used for fine-tuning. Task details and the structure of all five trees are shown in Figure 2 in Appendix D.

Tree Variants. The remaining four trees each change exactly one element of HET-3B: HET-8B replaces the root with Llama-3.1-8B to evaluate the effect of model size; HET-QWEN replaces the root with Qwen2.5-3B to evaluate the effect of model family; DEEP is a depth-3 tree where two further nodes d1,d2d_1,d_2, fine-tuned on two summarization tasks, derive from node c3c_3 of HET-3B, to evaluate the effect of tree depth; and HOMO keeps HET-3B’s structure but changes every node’s fine-tuning task to a summarization task, to examine recovery performance when the fine-tuning tasks resemble each other. A detailed list of all five trees is given in Table 4 in Appendix § 14.§ 1, and the models and datasets used are given in Appendix § 14.§ 2.

TreeRoot modelNodesDepthDepth 1Depth 2Depth 3Change from reference tree
HET-3BLlama-3.2-3B [7]72gsm8k, xsume2e nlg, wmt14_de_en—— (reference tree)
HET-8BLlama-3.1-8B [7]72gsm8k, xsume2e nlg, wmt14_de_en—Root model size
HET-QWENQwen2.5-3B [19]72gsm8k, xsume2e nlg, wmt14_de_en—Root model family
DEEPLlama-3.2-3B [7]93gsm8k, xsume2e nlg, wmt14_de_endialogsum, cnn_dailymailTree depth
HOMOLlama-3.2-3B [7]72xsum, cnn_dailymaildialogsum, samsum—Diversity of child tasks

Table 4. The five model trees used for evaluation. The “Depth kk” columns list the tasks each node at depth kk used for fine-tuning. At depths 1 and 2, each of the 2 nodes one level up derives children fine-tuned on the 2 listed tasks. The 2 depth-3 nodes of DEEP are children of c3c_3, the depth-2 e2e nlg child.

For Section 5.3, we fine-tune every node with LoRA ([10]), using hyperparameters shared across all tasks and trees (values in Appendix § 14.§ 3). For

each of the five configurations, we construct five trees with different random seeds, for 25 trees in total, and report every metric below as the mean and standard deviation over the 5 seeds for each configuration. To check that reliance on LoRA does not bias the results, we ran the same evaluation on one additional tree fine-tuned with all parameters updated (Full FT). Appendix D.4 reports that it shows the same trend under train as the five LoRA trees.

TRACE-Set’s Threshold. We choose the threshold η\eta in Eq. (5) independently for each configuration by leave-one-tree-out (candidate values and the resulting per-configuration choices are given in Appendix D.3).

Probe Sets. To compute the deviation δτ\delta_\tau, we use PτtrainP_\tau^{\mathrm{train}} and Pτheld−outP_\tau^{\mathrm{held-out}} as defined in § 4.1, with 100 examples per task across the seven fine-tuning tasks used in the five trees (700 examples total, common to every tree and node; task details in Appendix D.2).

Baselines. As a baseline, we use the trivial prediction that predicts every node as a direct child of the root rr (the star baseline). We also add, as a comparison method, an MST (Minimum Spanning Tree) estimated from MPT’s [15] similarity, using the output mismatch rate (the Top-1 prediction disagreement rate) as a symmetric distance. MST is a black-box method that measures difference from the model’s output alone, and so operates under a weaker assumption than the gray-box access required by TRACE-Set and TRACE-Edge. Because it finds an undirected tree that minimizes a symmetric distance, however, MST does not output edge direction. We therefore compute each evaluation metric on a tree oriented from root to leaves under the additional assumption that the root is known (§ 5.3). We compare these methods with our proposed methods.

We also consider a white-box MST that uses the L2L_2 distance of the parameter update Δθ\Delta\theta as its edge weight (corresponding to an existing method that relies on weight-space distance [9]). Because it requires the weights of every model, its access conditions differ substantially from this paper’s gray-box assumption. We do not include it in the main results table, and mention it only as a reference value in the text.

Evaluation Metrics. Our main metrics are the parent-match accuracy Acc\mathrm{Acc} (Eq. (1)) and the depth-match accuracy DAcc\mathrm{DAcc} (Eq. (2)). We compare the estimated edge set directly with the true edge set.

Validity of the Deviation

This section confirms, for both PτtrainP_\tau^{\mathrm{train}} and Pτheld−outP_\tau^{\mathrm{held-out}}, that the deviation is positive for tasks on the path from the root to mm and not positive for tasks not on that path. Taking as the unit of analysis each cell of the deviation matrix that arranges the deviation δτ(r→m)\delta_\tau(r \to m) for every node and task (32 non-root nodes ×\times 7 tasks, details in Appendix E), the sign of the deviation correctly identifies the task used for fine-tuning in 193 of 224 cells (0.862) when the probe example set uses training examples. Restricted to the ancestor-task cells, which directly determine parent identification, this rate is even higher, at 22 of 24 cells (0.917). With the held-out probe, the deviation for each node’s own fine-tuning task still stays positive in 25 of 32 cells (0.781), well above the 0.500 expected from a random sign, while the ancestor cells fall to 0.458 as fit to the training examples themselves is lost. We consider this drop in the estimation rate to be one cause of the recovery-performance decline from train to held-out discussed below (§ 5.3). We revisit this point in Section 6.

Main Results

This section compares TRACE-Set and TRACE-Edge against the black-box MST and the star baseline, under the train and held-out probe conditions, with the true root supplied.2

Table 2 shows the main results. Under train, TRACE-Edge and TRACE-Set both outperform MST, with a parent-match accuracy of 0.837 for TRACE-Set, 0.740 for TRACE-Edge, and 0.620 for MST. Under held-out, the advantage of our two proposed methods shrinks: the parent-match accuracy is 0.558 for TRACE-Edge, 0.507 for MST, and 0.500 for TRACE-Set, with TRACE-Edge still best but by a smaller margin than under train.

probeAccessMethodHET-3BHET-8BHET-QWENDEEPHOMOAccDAcc
Per-tree parent-match accuracyAll 5 trees
train—Star baseline0.3330.3330.3330.2500.3330.317 ± 0.0340.317 ± 0.034
BlackMST0.7000.6670.6330.6000.5000.620 ± 0.1650.553 ± 0.189
GrayTRACE-Set0.8331.0000.9000.6500.8000.837 ± 0.1650.857 ± 0.153
GrayTRACE-Edge0.7330.6670.8330.8000.6670.740 ± 0.0840.707 ± 0.129
held-out—Star baseline0.3330.3330.3330.2500.3330.317 ± 0.0340.317 ± 0.034
BlackMST0.6330.5670.4000.5000.4330.507 ± 0.1280.468 ± 0.081
GrayTRACE-Set0.5330.3330.4000.5000.7330.500 ± 0.1520.665 ± 0.133
GrayTRACE-Edge0.6670.2330.6000.6250.6670.558 ± 0.2060.618 ± 0.174

Table 2. Per-tree parent-match accuracy, and overall parent-match accuracy (Acc) and depth-match accuracy (DAcc) across all five trees, with the true root supplied as input. The per-tree columns are the mean over 5 seeds. The Acc and DAcc columns are the mean ± standard deviation over all 25 runs (5 trees × 5 seeds). The access column is Black for black-box output, Gray for gray-box output, and — for no access to the model. Bold marks the best value within the same probe. Results with an estimated root are given in Appendix C.3.

Limitations

The Known-Root Assumption. We constructed TRACE-Set and TRACE-Edge under the assumption that the root rr is known, and proposed a root-estimation method to relax it (Appendix § 13). Though this approach achieves a reasonable root-estimation accuracy, a more effective root-estimation method, or building a method that does not assume the root is known, is future work.

The Train-Probe-availability Assumption. The performance of our method depends on the availability of the training examples themselves. As the main results (§ 5.3) show, TRACE-Edge’s parent-match accuracy falls from 0.740 under train, which probes with the training examples, to 0.558 under held-out, which probes with non-training examples from the same distribution.

The cause lies in the nature of the fit that the teacher-forced log-likelihood measures. Because fine-tuning is an operation that raises the log-likelihood of the prompts used for training, using the training examples themselves for teacher forcing yields a strong signal in the deviation that is closer to fit to the individual data than to generalized fit to the task or domain. Under held-out, this signal weakens, and the rate of correctly estimating ancestor tasks drops by roughly half, from 0.917 to 0.458 (§ 5.2). Fit to a node’s own fine-tuning task is relatively preserved even under held-out, whereas the estimation rate for the ancestor cells needed to identify the parent drops first, and this translates directly into the decline in parent-match accuracy.

For the use cases discussed in § 3.3 where the verifier cannot obtain the training examples themselves, held-out is the realistic probe condition, so this decline needs to be addressed. Resolving its cause calls for constructing probes that respond only to the fine-tuning of a specific task without using the training examples themselves.

Conclusion

This paper addressed the problem of recovering an LLM’s derivation relationships as a directed tree, using only the deviation of the teacher-forced log-likelihood and without referring to the model’s weights. We showed that the deviation is an asymmetric quantity defined for each pair of models and can determine the direction of an edge, and proposed TRACE-Edge, a method that recovers the maximum spanning directed tree using the per-task deviation as edge weights. In an evaluation on a benchmark of 25 model trees across five configurations, TRACE-Edge, which uses none of the tree structure, the true parent, or any hyperparameter, achieved the best parent-match accuracy among all the methods we compared under the held-out probe condition, which uses only non-training examples from the same distribution as the training examples. At the same time, recovery performance declines when the training examples used for fine-tuning are not available, meaning that what the deviation captures is not task competence but fit to the training examples themselves; constructing probes that respond only to the fine-tuning of a specific task without using the training examples is the main direction for future work.

AI Use Statement

We used generative AI (Claude) for implementing code and for assisting with translation, both tasks with required disclosure. We did not use generative AI to develop the method, formulate the theoretical claims, design the experiments, or interpret the results, and this work involves no synthetic dataset generation, no proofs, and no qualitative or thematic data analysis, so those required-disclosure categories do not apply. We also used generative AI for editing the translated text for readability, for creating and modifying figures, for literature search, for suggesting the paper’s structure, and for checking consistency between the main text and its tables and references, all tasks with recommended disclosure.

We reviewed all AI-assisted work. AI-generated code was tested and checked by the authors, including comparison against ground truth and sanity checks against random baselines. AI-modified figures were checked against the underlying source data. Papers found through AI-assisted literature search were verified to be real, existing publications by checking them against arXiv, ACL Anthology, NeurIPS proceedings, and OpenReview. AI-suggested structural changes and consistency checks between the main text and its tables and references were reviewed by the authors against the original manuscript before being applied. We take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.

Ethics Statement

This work uses publicly available pretrained language models and publicly available datasets, and involves no human subjects and no personally identifiable data. The verification method we propose is intended to help model users and providers confirm reported lineage relationships, and a party able to run our verifier already has the gray-box access our method requires, so we are not aware of a harmful dual use of this capability. We do not identify any other ethical concerns specific to this work.

Reproducibility Statement

TRACE-Set and TRACE-Edge are formally defined in Section 4, and Algorithms 1 and 2 give complete pseudocode for both. The experimental setup, including the model-tree configurations and the evaluation protocol, is described in Section 5.1, with the full list of base models and datasets in Appendix D.2 and the training configuration in Appendix D.3. We may release the benchmark of model trees constructed for this evaluation as an anonymous public resource in the future.

Additional Related Work

This section surveys research areas closely related to this paper’s problem setting.

Dataset-Level Membership Determination. LLM Dataset Inference [13] proposes dataset inference, which determines whether an entire collection of documents, such as a book, rather than individual examples, was used in training. It selects and aggregates log-likelihood-based signals from several membership inference methods and reaches a decision through a statistical test, which is methodologically close to how this paper uses the log-likelihood deviation (the deviation δ\delta formalized in § 4) as its signal. The goal, however, is fundamentally different. That method asks the binary question of whether a specific dataset was used to train a given model, and does not address the lineage relationship between models or its direction.

Model Fingerprinting and Watermarking. Other means of tracking a model’s origin include model fingerprinting, which identifies the base model from properties of its parameters [21], and watermarking, in which the provider embeds a signal in the output [17]. These methods aim to identify which base model or provider a model derives from, and require by design that the signal survive subsequent training or modification. Both also presuppose that the model owner computes the fingerprint or embeds the watermark. This paper, by contrast, assumes no cooperation from the owner, and recovers a directed tree, including parent-child relationships, from the changes introduced at each stage of fine-tuning.

Algorithms

This section gives the full procedures for TRACE-Set (Algorithm 1, referenced from § 4.2) and TRACE-Edge (Algorithm 2, referenced from § 4.3).

Algorithm 1 TRACE-Set

Require: Node set MM, root node r∈Mr \in M, per-task deviations {δτ(r→m)}m∈M,τ∈T\{\delta_{\tau}(r \to m)\}_{m\in M,\tau\in\mathcal{T}}, threshold η\eta

Ensure: Parent function pa⁡:M∖{r}→M\operatorname{pa}: M \setminus\{r\} \to M

  1. A(r)←∅A(r) \leftarrow\emptyset

  2. for m∈M∖{r}m \in M \setminus\{r\} do

  3. A(m)←{τ∈T:δτ(r→m)>η}A(m) \leftarrow\{\tau\in\mathcal{T} : \delta_{\tau}(r \to m) > \eta\}

  4. end for

  5. for m∈M∖{r}m \in M \setminus\{r\} do

  6. S←{f∈M∖{m}:A(f)⊂A(m)}S \leftarrow\{f \in M \setminus\{m\} : A(f) \subset A(m)\}

  7. if S=∅S = \emptyset then

  8. pa⁡(m)←r\operatorname{pa}(m) \leftarrow r # Occurs only when A(m)=∅A(m) = \emptyset

  9. continue

  10. end if

  11. k←min⁡f∈S∣A(m)∖A(f)∣k \leftarrow\min_{f\in S} |A(m) \setminus A(f)|

  12. C←{f∈S:∣A(m)∖A(f)∣=k}C \leftarrow\{f \in S : |A(m) \setminus A(f)| = k\}

  13. pa⁡(m)←arg⁡max⁡f∈Cmax⁡τ∈A(m)∖A(f)δτ(r→m)\operatorname{pa}(m) \leftarrow\arg\max_{f\in C}\max_{\tau\in A(m)\setminus A(f)}\delta_{\tau}(r \to m) # Ties broken uniformly at random

  14. end for

  15. return pa⁡\operatorname{pa}

Algorithm 2 TRACE-Edge

Require: Node set MM, root rr, per-task deviations {δτ(f→m)}f,m∈M, f≠m, τ∈T\{\delta_{\tau}(f \to m)\}_{f,m\in M,\ f\ne m,\ \tau\in\mathcal{T}}

Ensure: Parent function pa⁡:M∖{r}→M\operatorname{pa}: M \setminus\{r\} \to M (spanning tree)

  1. for (f,m)∈M×M,f≠m(f,m) \in M \times M, f \ne m do

  2. Compute s(f→m)s(f \to m) using Eq. (7)

  3. end for

  4. G←G \leftarrow the directed graph on vertex set MM with edge weights ss, with every edge into rr removed

  5. pa⁡←\operatorname{pa} \leftarrow the maximum spanning directed tree rooted at rr on GG, found with the Chu–Liu/Edmonds algorithm

  6. return pa⁡\operatorname{pa}

Root Estimation

TRACE-Set and TRACE-Edge (§ 4.2, § 4.3) assume the root rr is known. This appendix gives a method for estimating rr when it is not, and reports its estimation accuracy and its effect on tree-recovery performance.

Method

For the probe example set PτP_{\tau} of task τ\tau, we define the mean of model mm’s sequence-averaged log-likelihood as

Sˉm(τ)=1∣Pτ∣∑(x,y)∈PτSm(x,y)(8)\bar{S}_{m}(\tau) = \frac{1}{\lvert P_{\tau}\rvert} \sum_{(x,y)\in P_{\tau}} S_{m}(x,y) \tag*{(8)}

Fine-tuning p→mp \to m on task τm\tau_m raises Sˉm(τm)\bar{S}_{m}(\tau_m) above Sˉp(τm)\bar{S}_{p}(\tau_m), while it may lower the log-likelihood Sˉm(τ′)\bar{S}_{m}(\tau') for τ′∈T∖{τm}\tau' \in\mathcal{T} \setminus\{\tau_m\} through forgetting. We therefore expect the variance of Sˉm(τ)\bar{S}_{m}(\tau) to grow as more rounds of fine-tuning accumulate. We define model mm’s across-task variance as

σm2=1∣T∣∑τ∈T(Sˉm(τ)−μm)2,μm=1∣T∣∑τ∈TSˉm(τ)(9)\sigma_m^2 = \frac{1}{\lvert T\rvert} \sum_{\tau\in T} \left(\bar{S}_{m}(\tau)-\mu_m\right)^2,\qquad\mu_m = \frac{1}{\lvert T\rvert} \sum_{\tau\in T}\bar{S}_{m}(\tau) \tag*{(9)}

We estimate the root as the model r^\hat{r} with the smallest variance σm2\sigma_m^2, and use it as rr for TRACE-Set and TRACE-Edge. Because the level of log-likelihood differs across tasks, however, the property that the root has the smallest variance is not guaranteed in general. We verify its validity experimentally in Appendix § 13.§ 2.

Estimation Accuracy

The root estimate r^\hat{r} matched the true root in 22 of 25 trials (0.88) for train and 15 of 25 trials (0.60) for held-out (chance level 0.137). By configuration, the only misses for train were the 3 trials of DEEP. For held-out, the estimate matched in every trial for the three HET-family configurations, but missed in every trial for DEEP and HOMO. As stated in Appendix § 13.§ 1, the property that the root has the smallest across-task variance is not guaranteed in general, and it did not hold for these two configurations.

Effect on Tree Recovery

TRACE-Set, TRACE-Edge, and MST all require the root as prior knowledge, but combining them with the root-estimation method above lets them operate even when the root is unknown; we denote these as TRACE-Set+RootEst, TRACE-Edge+RootEst, and MST+RootEst. Table 3 repeats the setup of Table 2 (§ 5.3) with the estimated root r^\hat{r} in place of the true root.

probeMethodHET-3BHET-8BHET-QWENDEEPHOMOAccDAcc
trainStar baseline+RootEst0.3330.3330.3330.1000.3330.287 ±\pm 0.1100.317 ±\pm 0.034
trainMST+RootEst0.7000.6670.6330.4500.5000.590 ±\pm 0.1730.493 ±\pm 0.249
trainTRACE-Set+RootEst0.8331.0000.9000.3750.8000.782 ±\pm 0.2720.832 ±\pm 0.198
trainTRACE-Edge+RootEst0.7330.6670.8330.6500.6670.710 ±\pm 0.1030.672 ±\pm 0.139
held-outStar baseline+RootEst0.3330.3330.3330.0000.3330.267 ±\pm 0.1360.283 ±\pm 0.068
held-outMST+RootEst0.6330.5670.4000.3000.2670.433 ±\pm 0.1800.368 ±\pm 0.175
held-outTRACE-Set+RootEst0.5330.3330.4000.2750.4670.402 ±\pm 0.1220.453 ±\pm 0.228
held-outTRACE-Edge+RootEst0.6670.2330.6000.3750.5000.475 ±\pm 0.1990.425 ±\pm 0.323

Table 3. Per-tree parent-match accuracy, and overall parent-match accuracy (Acc) and depth-match accuracy (DAcc) across all five trees, with the estimated root r^\hat{r} (Appendix § 13.§ 1) supplied in place of the true root; compare against Table 2. The per-tree columns are the mean over 5 seeds. The Acc and DAcc columns are the mean ±\pm standard deviation over all 25 runs (5 trees ×\times 5 seeds). Bold marks the best value within the same probe.

  • Under train, estimating the root causes only a small drop. TRACE-Edge’s parent-match accuracy falls only from 0.740 to 0.710, and TRACE-Set’s from 0.837 to 0.782 (Table 2). The drop is concentrated in DEEP, where root estimation missed (TRACE-Set 0.650 →\to 0.375 and TRACE-Edge 0.800 →\to 0.650).

  • TRACE-Edge and TRACE-Set still outperform MST with the estimated root. Under train, the difference between TRACE-Edge and MST, paired over the 25 trees, is +0.120 (SE 0.036). Under held-out, the difference is +0.042: smaller than under train, but still positive.

Experimental Details

Model Trees

Table 4 lists the five model trees used for evaluation. All share the same basic form: a 7-node tree consisting of the root, 2 nodes at depth 1, and 4 nodes at depth 2, with DEEP alone adding 2 nodes at depth 3 for 9 nodes in total. At each level, the 2 nodes of that level each serve as the parent of children fine-tuned on the 2 tasks listed in the table. Every internal node other than the root therefore has exactly 2 children. Figure 2 shows the structure and task assignment of all five trees.

Structures and task assignments of the five model trees used for evaluation

Figure 2. Structures and task assignments of the five model trees used for evaluation. Shaded nodes are the root rr, and edge labels denote the task TmT_m the child node used for fine-tuning. (a)–(c) share the same structure and task assignment, differing only in the pretrained model placed at the root. (d) derives two depth-3 nodes d1,d2d_1,d_2 from c3c_3 of (a), and (e) fine-tunes every node on summarization tasks only. wmt14 abbreviates wmt14_de_en, and cnn_dm abbreviates cnn_dailymail.

Models and Datasets Used

We use three pretrained models as roots: Llama-3.2-3B, Llama-3.1-8B [7], and Qwen2.5-3B [19], all base models without instruction tuning. Table 5 lists the datasets used for fine-tuning and for measuring the deviation. We use each dataset’s training split for fine-tuning, and construct the probe set (§ 5.1) by drawing 100 examples per task from the same training split.

DatasetTask type
gsm8k ([4])Math word problems
xsum ([14])Summarization
e2e_nlg ([16])Data-to-text generation
wmt14_de_en ([1])Translation (German→English)
dialogsum ([2])Dialogue summarization
cnn_dailymail ([8])Summarization
samsum ([6])Dialogue summarization

Table 5. Datasets used for fine-tuning and for the train/held-out probe sets.

Training Configuration

We fine-tune every node with LoRA ([10]), using hyperparameters shared across all tasks and trees (learning rate 2×10−42 \times10^{-4}, 5 epochs, LoRA rank =8= 8, α=16\alpha= 16, targeting q-proj and v-proj). We confirmed the validity of sharing these hyperparameters beforehand by comparing against a per-task search. The accuracy gap against task-specific settings was at most 0.025 (gsm8k), and at most 0.02 for the other tasks. We constructed five trees per configuration, with random seeds ranging from 0 to 4. Every metric in this paper is reported as the mean and standard deviation over these 5 seeds.

We choose TRACE-Set’s threshold η\eta in Eq. (5) independently for each configuration from the candidate set {0,0.05,0.1,0.2}\{0, 0.05, 0.1, 0.2\} by leave-one-tree-out (selecting the value that maximizes the mean parent-match accuracy over the remaining 4 trees and 5 seeds, excluding the tree under evaluation). For train, we used η=0.1\eta= 0.1 for every configuration. For held-out, we used 0.05 for HET-3B, 0.2 for DEEP, and 0.1 for the remaining 3 configurations.

Verification on a Full-FT Tree

The main results (§ 5.3) cover the five trees fine-tuned with LoRA. To check that limiting fine-tuning to LoRA does not bias the results, we additionally evaluated one tree fine-tuned with all parameters updated (Full FT). Its topology is identical to HET-3B (root Llama-3.2-3B, 7 nodes), and we updated all parameters with a learning rate of 2×10−52 \times10^{-5}. We used the same value of TRACE-Set’s threshold η\eta chosen for the five LoRA trees (η=0.1\eta= 0.1) without change.

Table 6 shows the results. Under train, both TRACE-Set and TRACE-Edge reach a parent-match accuracy of 1.000, the same trend as the five LoRA trees (Table 2). Under held-out, MST (0.867) gives the best result. Because this is a single tree, we treat it only as a check on the trend and do not include it in the main results.

Methodtrain Acctrain DAccheld-out Accheld-out DAcc
Star baseline0.333 ± 0.0000.333 ± 0.0000.333 ± 0.0000.333 ± 0.000
MST (black-box)0.967 ± 0.0750.967 ± 0.0750.867 ± 0.1830.800 ± 0.274
TRACE-Set1.000 ± 0.0001.000 ± 0.0000.333 ± 0.0000.500 ± 0.000
TRACE-Edge1.000 ± 0.0001.000 ± 0.0000.500 ± 0.0000.500 ± 0.000

Table 6. Parent-match accuracy (Acc) and depth-match accuracy (DAcc) on the Full FT tree (single tree, 5 seeds), mean ± SD. Bold marks the best value per column.

Details under Different Probe Conditions

This section details the probe conditions discussed in § 6. train uses the training examples each node used for fine-tuning, and held-out uses non-training examples drawn from the same distribution as each task’s training examples.

To examine the properties of the deviation under each probe condition, we define the deviation matrix. δτ(f→m)\delta_{\tau}(f \to m) is the change in fit to task τ\tau of mm relative to model ff, and when δτ(f→m)>0\delta_{\tau}(f \to m) > 0, we consider it likely that τ\tau was used to fine-tune mm somewhere along its derivation from ff. Arranging this for every node and task,

Δ(f)=(δτ1(f→m1)δτ2(f→m1)⋯δτT(f→m1)δτ1(f→m2)δτ2(f→m2)⋯δτT(f→m2)⋮⋮⋱⋮δτ1(f→mN)δτ2(f→mN)⋯δτT(f→mN))(10)\Delta(f) = \begin{pmatrix} \delta_{\tau_1}(f \to m_1) & \delta_{\tau_2}(f \to m_1) & \cdots& \delta_{\tau_T}(f \to m_1) \\ \delta_{\tau_1}(f \to m_2) & \delta_{\tau_2}(f \to m_2) & \cdots& \delta_{\tau_T}(f \to m_2) \\ \vdots& \vdots& \ddots& \vdots\\ \delta_{\tau_1}(f \to m_N) & \delta_{\tau_2}(f \to m_N) & \cdots& \delta_{\tau_T}(f \to m_N) \end{pmatrix} \tag*{(10)}

we call this the deviation matrix relative to ff, where M∖{f}={m1,…,mN}M \setminus\{f\} = \{m_1, \ldots, m_N\}.

Figures 3 and 4 show the deviation matrices for train and held-out.

Node-by-task deviation matrices for the five model trees

Figure 3. Node-by-task deviation matrices for the five model trees (train probe set).

Deviation matrices with the probe set set to held-out

Figure 4. Deviation matrices with the probe set set to held-out (non-training examples from the same distribution). The positive deviation for a node’s own fine-tuning task remains for most nodes, but the deviation for ancestor tasks fails to stay positive.

References

  1. [1]Ondřej Bojar, Christian Buck, Christian Federmann, et al. Findings of the 2014 workshop on statistical machine translation. In Proceedings of the Ninth Workshop on Statistical Machine Translation (WMT), pp. 12–58, 2014.DOI
  2. [2]Yulong Chen, Yang Liu, Liang Chen, et al. DialogSum: A real-life scenario dialogue summarization dataset. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pp. 5062–5074, 2021.arxiv.org/abs/2105.06762
  3. [3]Yoeng-Jin Chu and Tseng-Hong Liu. On the shortest arborescence of a directed graph. Scientia Sinica, 14(10):1396–1400, 1965.
  4. [4]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, et al. Training verifiers to solve math word problems, 2021. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
  5. [5]Jack Edmonds. Optimum branchings. Journal of Research of the National Bureau of Standards, Section B: Mathematics and Mathematical Physics, 71B(4):233–240, 1967. doi: 10.6028/jres.071B.032.DOI
  6. [6]Bogdan Gliwa, Iwona Mochol, Maciej Biesek, et al. SAMSum corpus: A human-annotated dialogue dataset for abstractive summarization. In Proceedings of the 2nd Workshop on New Frontiers in Summarization, pp. 70–79, 2019.DOI
  7. [7]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhari, et al. The llama 3 herd of models, 2024. arXiv preprint arXiv:2407.21783.arxiv.org/abs/2407.21783
  8. [8]Karl Moritz Hermann, Tomáš Kočiský, Edward Grefenstette, et al. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems (NIPS), 2015.arxiv.org/abs/1506.03340
  9. [9]Eliahu Horwitz, Asaf Shul, and Yedid Hoshen. Unsupervised model tree heritage recovery. In International Conference on Learning Representations, volume 2025, 2025.arxiv.org/abs/2405.18432
  10. [10]Edward J. Hu, Yelong Shen, Phillip Wallis, et al. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022.arxiv.org/abs/2106.09685
  11. [11]Hugging Face. Text generation inference. https://github.com/huggingface/text-generation-inference, 2023. Accessed: 2026-09-26.
  12. [12]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th symposium on operating systems principles, pp. 611–626, 2023.arxiv.org/abs/2309.06180
  13. [13]Pratyush Maini, Hengrui Jia, Nicolas Papernot, and Adam Dziedzic. LLM dataset inference: Did you train on my dataset? In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. arXiv:2406.06443.arxiv.org/abs/2406.06443
  14. [14]Shashi Narayan, Shay B. Cohen, and Mirella Lapata. Don’t give me the details, just the summary! topic-aware convolutional neural networks for extreme summarization. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1797–1807, 2018.arxiv.org/abs/1808.08745
  15. [15]Ivica Nikolic, Teodora Baluta, and Prateek Saxena. Model provenance testing for large language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=Iy4CAXOtrf.arxiv.org/abs/2502.00706
  16. [16]Jekaterina Novikova, Ondřej Dušek, and Verena Rieser. The e2e dataset: New challenges for end-to-end generation. In Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue, pp. 201–206, 2017.arxiv.org/abs/1706.09254
  17. [17]Wenjun Peng, Jingwei Yi, Fangzhao Wu, Shangxi Wu, Bin Bin Zhu, Lingjuan Lyu, Binxing Jiao, Tong Xu, Guangzhong Sun, and Xing Xie. Are you copying my model? protecting the copyright of large language models for eas via backdoor watermark. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 7653–7668, 2023.arxiv.org/abs/2305.10036
  18. [18]Yixin Tan, Zhe Yu, Rui Wen, and Jun Sakuma. One leak away: How pretrained model exposure amplifies jailbreak risks in finetuned llms. arXiv preprint arXiv:2512.14751, 2025.arxiv.org/abs/2512.14751
  19. [19]An Yang, Baosong Yang, Beichen Zhang, et al. Qwen2.5 technical report, 2024. arXiv preprint arXiv:2412.15115.arxiv.org/abs/2412.15115
  20. [20]Nicolas Yax, Pierre-Yves Oudeyer, and Stefano Palminteri. Phyllom: Inferring the phylogeny of large language models and predicting their performances in benchmarks. In International Conference on Learning Representations (ICLR), 2025.arxiv.org/abs/2404.04671
  21. [21]Boyi Zeng, Lizheng Wang, Yuncong Hu, Yi Xu, Chenghu Zhou, Xinbing Wang, Yu Yu, and Zhuohan Lin. Huref: HUman-REadable fingerprint for large language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=ibggY9ZU1I.arxiv.org/abs/2312.04828
  22. [22]Ziqian Zhong and Aditi Raghunathan. Watch the weights: Unsupervised monitoring and control of fine-tuned llms. In International Conference on Learning Representations, volume 2026, pp. 75198–75234, 2026.arxiv.org/abs/2508.00161

Paper details

vlnc:W_ypr94bxu
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 10

downloads · 3

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents