Transfer learning with pre-trained conditional generative models

Shin'ya Yamaguchi, Sekitoshi Kanai, Atsutoshi Kumagai, Daiki Chijiwa, Hisashi Kashima · DOI

Abstract

Transfer learning typically requires access to source data, overlapping label spaces, or architectural consistency. This paper presents a framework that bypasses these constraints by using pre-trained conditional generative models as data proxies. Through Pseudo Pre-training (PP) and Pseudo Semi-Supervised Learning (P-SSL) using Pseudo Conditional Sampling (PCS), the method enables effective knowledge transfer across disparate domains and architectures. Results on various benchmarks demonstrate significant improvements over training from scratch and competitive performance relative to standard fine-tuning.

Introduction

Modern transfer learning is highly effective but often constrained by three major assumptions: shared label spaces between source and target tasks, direct access to the original source dataset, and architectural consistency between models. In practice, privacy regulations, storage limitations, or the need for lightweight edge-device architectures often violate these assumptions. When all three constraints—no data access, no shared labels, and different architectures—are present, standard fine-tuning and domain adaptation methods fail.

This research introduces a novel framework that treats pre-trained conditional generative models (e.g., GANs) as high-fidelity "digital twins" of restricted source datasets. By leveraging these models, knowledge can be transferred via synthetic data, making the process entirely architecture-agnostic and privacy-preserving.

Methodology

The proposed framework consists of two primary stages designed to bridge the gap between source and target domains without direct data access.

1. Pseudo Pre-training (PP)

Instead of initializing a target model with random weights, it is trained on synthetic images generated by a source generator ($G_s$) using random source labels. This allows the target model to learn fundamental visual features—such as edges, textures, and shapes—inherent in the source domain (e.g., ImageNet) before seeing any target-specific data.

The two-stage framework: (a) Pseudo Pre-training and the subsequent semi-supervised training loop.

2. Pseudo Semi-Supervised Learning (P-SSL)

The core innovation is Pseudo Conditional Sampling (PCS). In this stage, target images are passed through a source classifier ($C_s$) to obtain a "soft label" (a probability distribution over source classes). This distribution is fed into the source generator to produce a synthetic image that is distributionally similar to the target sample. These synthetic images serve as unlabeled data in a semi-supervised pipeline, specifically utilizing the Unsupervised Data Augmentation (UDA) algorithm.

Pseudo Conditional Sampling (PCS) process: A target 'Hummer' image is mapped to a distribution of source labels (Jeep, Limousine, etc.) to generate a synthetic proxy image.

Experimental Results

The method was evaluated across diverse computer vision benchmarks, including StanfordCars, CUB-200, and OxfordPets, using source models pre-trained on ImageNet and CompCars.

  • Performance Gains: On the StanfordCars dataset, the full PP + P-SSL method achieved 89.13% accuracy, a significant improvement over the 77.01% baseline achieved by training from scratch.
  • Versatility: The method proved competitive with standard fine-tuning, despite the latter requiring architectural consistency. Furthermore, the approach successfully transferred features for object detection tasks on PASCAL-VOC and COCO, outperforming self-supervised baselines like MoCo.

Discussion and Conclusion

A key insight of this work is the conceptualization of generative models as efficient data compressors. A 100MB BigGAN file can effectively represent the knowledge of a 100GB dataset. Because transfer occurs via data rather than weights, the method is inherently architecture-agnostic, allowing knowledge transfer from large Transformers to mobile-optimized networks.

While limited by the domain gap—the source generator must be capable of producing features relevant to the target task—this approach offers a robust path forward for privacy-preserving and resource-constrained transfer learning. Future work may leverage text-to-image diffusion models to further bridge disparate domains through natural language prompts.

Summary updated

BibTeX
@article{yamaguchi2025transfer,
  author = {Shin'ya Yamaguchi and Sekitoshi Kanai and Atsutoshi Kumagai and Daiki Chijiwa and Hisashi Kashima},
  title = {{Transfer learning with pre-trained conditional generative models}},
  journal = {Machine Learning},
  year = {2025},
  doi = {10.1007/s10994-025-06748-7},
}
Figure