Abstract
In the paradigm of transfer learning, models pre-trained on large-scale private datasets serve as the foundation for various downstream applications. However, these models often retain significant information from the source domain, allowing unauthorized users to repurpose the model for unintended tasks—a process termed "Piggyback Learning" (PL). This paper proposes Disposable Transfer Learning (DTL), a framework designed to selectively unlearn source task knowledge while preserving performance on a target task. By employing a novel Gradient Collision (GC) loss, DTL scrambles the feature extractor's representation of the source domain. Experimental results across multiple benchmarks demonstrate that DTL effectively reduces PL accuracy by over 24 percentage points and enhances resistance to membership inference attacks, all while maintaining target task proficiency.
1. Introduction
The current landscape of artificial intelligence is dominated by the "pre-train and fine-tune" pipeline. Organizations invest heavily in curating massive datasets, such as Google’s JFT-300M, to develop robust feature extractors. These pre-trained weights represent significant intellectual property (IP). When a model owner fine-tunes a model for a specific client and releases the weights, they inadvertently provide the client with a powerful general-purpose feature extractor.
This leads to the problem of Piggyback Learning (PL). An adversary or a "free rider" can take the released model and fine-tune it on a new, unrelated task with minimal data. Because the model retains the rich representations from the original private source data, the free rider achieves high performance without the cost of original pre-training. To protect IP and data privacy, there is a critical need for a mechanism that allows a model to benefit from source knowledge during adaptation but "disposes" of that knowledge before deployment.
2. The Disposable Transfer Learning (DTL) Framework
The authors introduce Disposable Transfer Learning (DTL), which transitions the model through two distinct phases: standard adaptation and knowledge disposal.
2.1 Standard Transfer Learning
Initially, the model undergoes a standard transfer learning process. It is pre-trained on a source dataset ($D_s$) to develop a strong feature representation and then fine-tuned on a target dataset ($D_t$). At the end of this stage, the model is proficient in the target task but still highly capable of being repurposed for other tasks due to its retained source knowledge.
2.2 Knowledge Disposal and Gradient Collision
The second stage is the "scrubbing" phase. The objective is to modify the model weights such that the target task performance is preserved, but the source task utility is destroyed. This is achieved through a dual-loss objective:
- Retaining Loss (Knowledge Distillation): To prevent catastrophic forgetting of the target task, the model uses Knowledge Distillation (KD). The model's outputs are constrained to remain similar to its state at the end of the first stage, ensuring that the "disposable" process does not degrade the primary service provided to the client.
- Unlearning Loss (Gradient Collision): The core innovation of DTL is the Gradient Collision (GC) loss. Unlike simple gradient ascent or random labeling—which often fail to fundamentally alter the feature space—GC loss encourages the gradient vectors of different mini-batches from the source data to point in opposing directions. By minimizing the inner products of these gradients, the model is forced into a state of "abnormal convergence." This effectively scrambles the feature extractor's ability to represent the source domain coherently.
To address the computational overhead of calculating inner products between gradients, the authors reformulate the derivative of the GC loss into a sum of Hessian-vector products (HVPs). This optimization reduces the complexity from $O(c^2)$ to $O(c)$, where $c$ represents the number of data chunks, making the framework viable for practical training schedules.
3. Experimental Evaluation
The authors evaluated DTL using standard computer vision benchmarks, focusing on scenarios where the target task is data-scarce (the primary use case for transfer learning).
3.1 Datasets and Metrics
Source tasks typically utilized CIFAR-100 or TinyImageNet. Target tasks included sub-sampled versions of CIFAR-10 (1%), STL-10 (10%), and SVHN (1%).
A key contribution of the paper is the refinement of unlearning metrics. The authors argue that Source Accuracy is a deceptive metric; a model can show 0% accuracy on a source task simply by having a broken classification head, while the underlying features remain intact and "stealable." Instead, they propose Piggyback Learning (PL) accuracy—the accuracy a third party can achieve by fine-tuning the scrubbed model on a new task—as the gold standard for measuring successful unlearning.
3.2 Key Results
- Target Task Preservation: In experiments transferring from CIFAR-100 to a 1% subset of CIFAR-10, DTL maintained target accuracy within approximately 2 percentage points of a standard fine-tuned model.
- Effective Knowledge Disposal: The PL accuracy dropped by 24.53 percentage points compared to standard transfer learning. This significantly outperformed baseline methods like uniform target fooling or random labeling, which failed to adequately "scramble" the feature space.
- Privacy and Robustness: DTL provides a secondary benefit in data privacy. The model became significantly more robust against Membership Inference Attacks (MIAs). The success rate for white-box MIAs dropped to 50.44% (near the 50% random guess baseline), compared to 64.84% for standard models.
4. Discussion and Limitations
While DTL presents a robust solution for selective unlearning, it involves a trade-off governed by the hyperparameter $\lambda$, which balances unlearning intensity against target performance. Furthermore, while the HVP optimization improves efficiency, the current study focused on ResNet-18 architectures. Future research is required to determine how GC loss scales to "foundation model" architectures like Large Vision Transformers (ViTs).
5. Conclusion
Disposable Transfer Learning offers a path forward for model owners to protect their intellectual property without hindering the utility of the models they provide to clients. By forcing gradient collisions in the source domain, DTL ensures that once a model has served its purpose in transferring knowledge, that knowledge becomes effectively "disposable."
Summary updated