Skip to main content
QUICK REVIEW

[Paper Review] Transfer Learning without Knowing: Reprogramming Black-box Machine Learning Models with Scarce Data and Limited Resources

Yun Yun Tsai, Pin‐Yu Chen|arXiv (Cornell University)|Jul 17, 2020
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology28 citations
TL;DR

This paper proposes Black-box Adversarial Reprogramming (BAR), a novel transfer learning method that reprograms pre-trained black-box ML models—such as APIs or proprietary software—without access to their architecture or parameters. By leveraging zeroth-order optimization and multi-label mapping, BAR achieves performance comparable to white-box adversarial reprogramming and surpasses standard fine-tuning, especially in data-scarce medical imaging tasks.

ABSTRACT

Current transfer learning methods are mainly based on finetuning a pretrained model with target-domain data. Motivated by the techniques from adversarial machine learning (ML) that are capable of manipulating the model prediction via data perturbations, in this paper we propose a novel approach, black-box adversarial reprogramming (BAR), that repurposes a well-trained black-box ML model (e.g., a prediction API or a proprietary software) for solving different ML tasks, especially in the scenario with scarce data and constrained resources. The rationale lies in exploiting high-performance but unknown ML models to gain learning capability for transfer learning. Using zeroth order optimization and multi-label mapping techniques, BAR can reprogram a black-box ML model solely based on its input-output responses without knowing the model architecture or changing any parameter. More importantly, in the limited medical data setting, on autism spectrum disorder classification, diabetic retinopathy detection, and melanoma detection tasks, BAR outperforms state-of-the-art methods and yields comparable performance to the vanilla adversarial reprogramming method requiring complete knowledge of the target ML model. BAR also outperforms baseline transfer learning approaches by a significant margin, demonstrating cost-effective means and new insights for transfer learning.

Motivation & Objective

  • Address the limitation of current transfer learning methods that require full access to and modification of pretrained models.
  • Enable effective transfer learning in scenarios with scarce data and constrained computational resources.
  • Extend adversarial reprogramming to black-box settings where only input-output responses are observable.
  • Demonstrate that powerful pre-trained models can be repurposed for new tasks without fine-tuning or model inspection.
  • Provide a cost-effective, practical solution for deploying high-performance ML in privacy-sensitive or restricted-access domains like healthcare.

Proposed method

  • Utilizes zeroth-order optimization (ZOO) to estimate gradients from input-output responses, enabling optimization without model architecture or parameter access.
  • Employs multi-label mapping to align source-domain (e.g., ImageNet) and target-domain (e.g., medical) class labels, improving label transfer efficiency.
  • Applies frequency-based label mapping to assign more representative source labels to dominant target classes, enhancing convergence and performance.
  • Uses both cross-entropy and focal loss during optimization to improve learning dynamics, especially for imbalanced or hard-to-classify samples.
  • Reprograms the black-box model by learning a universal perturbation to inputs such that the model's predictions align with the target task.
  • Validates the method on real-world APIs and pre-trained models, demonstrating feasibility and robustness under practical constraints.

Experimental results

Research questions

  • RQ1Can transfer learning be effectively performed on black-box ML models without access to their internal architecture or parameters?
  • RQ2How does adversarial reprogramming perform in data-scarce settings such as medical imaging, where labeled data is limited?
  • RQ3Can zeroth-order optimization effectively replace backpropagation in reprogramming black-box models?
  • RQ4What impact do different label mapping strategies (random vs. frequency-based) have on model performance and convergence?
  • RQ5How does the choice of loss function (e.g., focal loss vs. cross-entropy) affect the performance of black-box adversarial reprogramming?

Key findings

  • BAR achieves test accuracy within 3–5% of the white-box adversarial reprogramming baseline, despite having no access to the model’s internal structure.
  • On autism spectrum disorder (ASD), diabetic retinopathy (DR), and melanoma detection tasks, BAR outperforms state-of-the-art transfer learning methods and standard fine-tuning by a significant margin.
  • Frequency-based multi-label mapping improves convergence speed and boosts test accuracy by 3–5% compared to random mapping across all tasks.
  • Focal loss leads to faster convergence and improves BAR’s performance by 3–5% compared to cross-entropy loss, particularly in imbalanced medical datasets.
  • t-SNE visualization confirms that BAR learns more discriminative and well-separated feature representations than fine-tuning, indicating superior representation learning.
  • The method successfully reprograms real-world online image classification APIs with minimal computational cost and no model access, demonstrating practical deployability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.