arXiv:2611.08866cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08866

Reconstructing LLM Lineage Trees via Fine-Tuning Path Inference

Sota Ogawa, Shojiro Yamabe, Daiki Nishiyama, Jun Sakuma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

VIA FINE-TUNING PATH INFERENCE

Sota Ogawa Institute of Science Tokyo Tokyo, Japan ogawa.s.718d@m.isct.ac.jp

Shojiro Yamabe Institute of Science Tokyo Tokyo, Japan

Daiki Nishiyama Institute of Science Tokyo Tokyo, Japan

Jun Sakuma Institute of Science Tokyo RIKEN Tokyo, Japan

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.

1 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 (Tan et al., 2025). Defenses against derived models also depend on lineage information, since Zhong & Raghunathan (2026)'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 (Section 2). First, methods that observe only a model's output (Nikolic et al., 2025; Yax et al., 2025) 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 (Horwitz et al., 2025), 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.

References (32)