TL;DR
How do you prove an AI model was "stolen" or derived from yours after it has been fine-tuned for a completely different task? This paper introduces Model DNA, a unique signature that encodes a model's "genetic" lineage by combining its training data history with its input-output behavior. By mapping models into a shared "DNA space," the authors can identify homologous (related) models with high accuracy, even when their weights have shifted significantly.
What Problem Does This Paper Address?
In the current AI gold rush, models are valuable intellectual property. A company might spend millions training a foundation model, only for an unauthorized user to take that model and fine-tune it for a niche application.
The challenge is Model Provenance (MP): determining if a "target" model is a descendant of a "source" model. Traditional methods like weight comparison fail because fine-tuning alters parameters. Meanwhile, "Data Provenance" (checking if specific data was used) doesn't capture the model-to-model relationship. The authors identify a gap in our ability to track the life cycle and lineage of machine learning models across diverse tasks and domains.
Methods
The authors propose the MGMP (Model DNA Generation and Model Provenance) framework, which treats model identification like forensic biology.
- DNA Generator: Instead of looking at raw weights, they use a separate neural network (like ResNet50 for images or DistilBERT for text) to process the source model's training data. This produces a "Basal DNA" ($z_i$), a latent representation of the data itself.
- DNA Assemble: They combine this Basal DNA with the actual predictions ($y_i$) of the source and target models. The resulting "DNA fragment" ($o_i = z_i + y_i$) captures how a specific model "interprets" specific data.
- Contrastive DNA Similarity Loss: To make the system robust, they use contrastive learning. This forces the DNA of related models to cluster together in a latent space while pushing "stranger" (non-homologous) models far away.
- Provenance Classifier: Finally, a binary classifier looks at these DNA fragments to make a final call: Is this model a descendant of the source?
Datasets
The framework was stress-tested across two major domains:
- Computer Vision (CV): Used CIFAR-10 as the source domain and subsets of CIFAR-100 to create target models. They tested various architectures, including ResNet18, AlexNet, and ViT-small.
- Natural Language Processing (NLP): Used a suite of text classification datasets including AGNews, YahooQA, 20 Newsgroups, DBPedia, Amazon Reviews, and Yelp Reviews. The models used were DistilBERT and BERT-base.
Key Insights and Ideas
- The "Layer Swap" Revelation: In an initial empirical study, the authors found that if you take a fine-tuned target model and replace its last few layers with the original source model's layers, its performance on the original task partially recovers—but only if the models are related. This "hidden memory" of the source task is what Model DNA seeks to extract.
- Data + Model = DNA: A model's identity isn't just in its weights; it's in how it reacts to the data it was born from. By using the source training data as a "probe," they can elicit a unique behavioral signature.
- The Power of the Generator: A key finding was that using a dedicated "DNA Generator" module significantly boosts accuracy compared to just using raw model outputs. It provides a stable reference frame for comparison.
Key Results
The MGMP framework demonstrated impressive precision in identifying model lineage:
- High Accuracy: In CV tasks, the framework achieved between 90% and 96% accuracy in identifying homologous models.
- Generator Impact: In one experiment, adding the DNA generator module improved accuracy from 75.29% to 91.93%, proving that the "basal DNA" is crucial for distinguishing subtle relationships.
- Visual Proof: Using T-SNE visualizations (a way to map high-dimensional data into 2D), the authors showed that related models form clear, tight clusters, while unrelated models are scattered, making the "ancestry" visually apparent.
Limitations and Future Work
While a major step forward, the authors acknowledge some boundaries:
- Architecture Consistency: The current study primarily focuses on scenarios where the source and target models share the same basic architecture (e.g., both are ResNet18).
- Complex Transformations: Future work is needed to see if Model DNA holds up against more aggressive "evolutionary" steps, such as model distillation (where a small model learns from a big one) or heavy pruning.
- Scaling to LLMs: While they tested BERT, applying this to massive Large Language Models (LLMs) with billions of parameters would require exploring how to generate DNA efficiently without processing massive datasets.
Summary updated