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.
- Model Population: 36 LoRA fine-tunes were created using a Qwen3.5-0.8B base model across 18 public datasets.
- Access Levels: The study tested three levels of access to the model:
- White-box (Weights): Analyzing the statistics of the LoRA weight matrices (norms, singular values).
- Gray-box (Activations): Measuring the internal hidden states of the model when prompted with 200 "neutral" probes (e.g., "Describe your morning routine").
- Black-box (Outputs): Analyzing the generated text and token probabilities from those same neutral probes.
- Classification: A simple logistic regression classifier was used to predict the domain.
- 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:
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%.
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%.
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.
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