Embedding-Space Fingerprinting of LoRA Fine-Tunes: Recovering the Training-Data Domain from the Model Artifact Alone

Shivesh RanearXiv 2026

This paper investigates a critical question for the era of modular AI: if you share a Low-Rank Adaptation (LoRA) adapter, how much information about your private training data are you giving away? The study demonstrates that even without access to the original training data, a simple classifier can identify the "domain" (e.g., medical, code, or math) of a LoRA fine-tune just by looking at the model artifact itself.

TL;DR

LoRA adapters carry a distinct "fingerprint" of their training domain that can be recovered with high accuracy using simple classifiers. Surprisingly, the model's behavior (generated text and internal activations) is a more reliable indicator of its training source than the raw weight deltas themselves.

What Problem Does This Paper Address?

As Parameter-Efficient Fine-Tuning (PEFT) becomes the standard for specializing large language models (LLMs), LoRA adapters are increasingly shared, composed, and traded. This raises significant concerns regarding provenance and privacy.

While previous research has looked at "membership inference" (detecting if a specific sentence was used in training), this paper tackles domain inference: identifying the general category of the training data (e.g., "Is this a medical model?") using only the adapter artifact. This is a coarser but highly practical question for auditing models or detecting the use of undisclosed datasets.

Methods

The author established a rigorous "frozen evaluation protocol," committing to the experimental design before any models were trained to ensure unbiased results.

  1. Model Population: 36 LoRA fine-tunes were created using a Qwen3.5-0.8B base model across 18 public datasets.
  2. Access Levels: The study tested three levels of access to the model:
  3. White-box (Weights): Analyzing the statistics of the LoRA weight matrices (norms, singular values).
  4. Gray-box (Activations): Measuring the internal hidden states of the model when prompted with 200 "neutral" probes (e.g., "Describe your morning routine").
  5. Black-box (Outputs): Analyzing the generated text and token probabilities from those same neutral probes.
  6. Classification: A simple logistic regression classifier was used to predict the domain.
  7. Evaluation Protocol: The researchers used a Leave-One-Dataset-Out (LODO) approach. To succeed, the classifier had to identify the domain of an adapter trained on a dataset it had never seen before, proving that it was learning general domain features rather than just memorizing specific datasets.

Datasets

The study utilized 18 datasets categorized into five distinct domains, as shown in the table below:

Table 1. Datasets per domain (Hugging Face identifiers abbreviated). Entries in paren- theses were excluded before any of their features reached a classifier (Sect. 7).

The datasets include well-known benchmarks like PubMedQA (Medical), SQL-create-context (Code), and MetaMathQA (Mathematics).

Key Insights and Ideas

  • The "Signal Decay" Surprise: The authors originally hypothesized that the signal would be strongest in the weights and decay as you moved toward the outputs (Weights > Activations > Outputs). The results refuted this. Activations and outputs were significantly more informative than the weight statistics.
  • Behavior Over Magnitude: The fingerprint of the training data is more visible in how the model behaves than in the raw magnitudes of the weight changes. Even when the weights themselves look similar, the way they shift the model's internal representations is highly domain-specific.
  • Text Alone is Enough: In the black-box setting, the classifier performed just as well using only the generated text, without needing the underlying token probabilities. This means an auditor only needs standard API access to "fingerprint" a model.
  • Robustness to Rank: The black-box fingerprint remained stable even when the LoRA rank ($r$) was varied between 8 and 64, suggesting the domain signature is a fundamental property of the fine-tuning process.

Key Results

The study found that the training domain is recoverable well above the chance level of 20%.

Fig. 1. RQ2 leave-one-dataset-out domain accuracy by access level, with bootstrap 95% CIs. The dashed line is chance (0.20).

As seen in the results table below, Black-box outputs reached 63.9% accuracy, and Gray-box activations reached 61.1%. White-box weight statistics lagged behind at 41.7%.

Table 2. Frozen LODO results (36 runs). RQ2 predicts the domain of a fine-tune from datasets never seen in training (chance = 0.20); the row CI resamples individual predictions and the clustered CI resamples whole datasets. RQ1 re-identifies the dataset across seeds (chance = 0.056).

The distinct clustering of these features is further illustrated by a t-SNE visualization of the gray-box activations, where adapters from the same domain (like multilingual or math) clearly group together.

Fig. 2. t-SNE of the gray-box activation features, one point per fine-tune, colored by training-data domain.

Limitations and Future Work

  • Model Scale: The study was limited to a 0.8B parameter model due to compute constraints. Whether these findings scale to 7B+ or 70B+ models remains an open question.
  • Domain Granularity: The five domains used were quite distinct. Future work could explore if the classifier can distinguish between finer categories, such as different medical sub-specialties.
  • White-box Features: The authors noted that their hand-designed weight features (norms and spectra) might be too simple. Using more sophisticated "weight-space" neural networks might unlock more signal from the white-box level.
  • Full Fine-Tuning: The study focused exclusively on LoRA. It is currently unknown if full-parameter fine-tuning leaves a similar, recoverable fingerprint.

Summary updated

Abstract

When a base language model is fine-tuned with Low-Rank Adaptation (LoRA), how much of the training data domain leaks into the resulting artifact? This paper studies whether a simple classifier can recover the domain of a fine-tune given only the model artifact (weight deltas, internal activations on a fixed probe set, or generated text) without ever observing the training data. Using one base model (Qwen3.5-0.8B), 36 LoRA fine-tunes are produced over 18 public datasets in five domains (medical, code, mathematics, non-English text, narrative prose), and three feature families are extracted at decreasing levels of access: white-box weights, gray-box activations, and black-box outputs. A leave-one-dataset-out (LODO) protocol, frozen before any result was seen, tests whether the domain of a fine-tune trained on a previously unseen dataset can be identified. The domain is recoverable well above chance (20%) from gray-box activations (61%) and black-box outputs (64%); white-box weight statistics reach 42%. Contrary to the pre-registered hypothesis that signal decays monotonically from weights to activations to outputs, activations and outputs were more informative than the weight-delta statistics. The black-box result holds unchanged (64%) when only generated text is used, without token probabilities. Domain accuracy is also stable when a third run per dataset is trained on an independently drawn data subsample, and black-box predictions are unaffected by the LoRA rank (8-64). All code and per-run feature vectors are released.
BibTeX
@misc{rane2026embedding,
  author = {Shivesh Rane},
  title = {{Embedding-Space Fingerprinting of LoRA Fine-Tunes: Recovering the Training-Data Domain from the Model Artifact Alone}},
  year = {2026},
  eprint = {2611.07610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07610},
}
Figure