arXiv:2610.23289cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23289

Data-Efficient Classifier Pretraining Through Diffusion Models

Qinyu Li, Yee Whye Teh, Chris Holmes, Joel Jaskari

Abstract

Machine learning with limited data is susceptible to overfitting, especially with modern deep neural networks. Prior to the introduction of AlexNet, reconstruction-based pretraining with auto-encoder and denoising autoencoder were found to be beneficial, partially due to the limited size of the training sets at the time. Motivated by these traditional approaches, we propose DiffPT, a simple diffusion modeling approach to pretrain a given classifier backbone for limited domain-specific training data. We experiment on time-series data, standard natural-image benchmarks, and medical imaging datasets, and contrast the diffusion approach to a multitude of modern and traditional un/self-supervised methods. While contrastive pretraining performs better on CIFAR-10 and Tiny ImageNet in low-data regimes, DiffPT is particularly effective on medical imaging and time-series tasks, where it outperforms self-supervised baselines across a range of low-data regimes. Our results suggest that DiffPT is a simple and effective approach for data-efficient classifier pretraining on different modalities.

1 Introduction

There are a variety of domains where deep learning-based classification is of interest, but the development of these models is hindered by the scarcity of data. One such domain is medical and health data, where, e.g., access to data is restricted by legislation, the modality of interest is expensive to acquire, or the medical end-point (disease, complication) is simply rare in the population. In classification, the loss asks the neural network to make only a single categorical decision per data point. However, high dimensional data, e.g., medical imaging and physiological signals, contain substantial amount of information. When labelled data are scarce, many representations will fit the observed labels equally well, and the classification objective alone provides little guidance towards the one that generalises. Training a classifier from scratch can therefore easily overfit the data.

Unsupervised pretraining used to be common practice for deep neural networks prior to the introduction of AlexNet (Krizhevsky et al., 2012). Indeed, layer-wise greedy pretraining using deep belief networks (Hinton et al., 2006) or stacked auto-encoders (Bengio et al., 2006) was found to be crucial in order to obtain high performance with deep neural networks, and was hypothesized to have a regularizing effect (Erhan et al., 2010). However, access to larger training sets, along with ReLU activation and better regularization, enabled direct supervised training of these networks (Krizhevsky et al., 2012).

Transfer learning based on supervised image classifiers pretrained on the ImageNet (Deng et al., 2009) were found to improve generalization when the fine-tuning domain had only a small amount of data available (Raghu et al., 2019; Kornblith et al., 2019; He et al., 2019). However, the utility of ImageNet transfer learning has been observed to diminish when the fine-tuning modality is dissimilar to natural images, e.g., in the case of chest X-ray imaging (Raghu et al., 2019). As such, supervised pretraining should be performed on datasets that resemble the modality of the downstream application. Furthermore, it is highly dependent on large labelled datasets, which limits its applicability for modalities with small amounts of data.

Another line of work focuses on self-supervised learning (SSL), where the model is first pretrained on unlabelled datasets, and then fine-tuned on smaller sets of labelled data (Chen et al., 2020; Grill et al., 2020; Caron et al., 2021). SSL derives supervisory signals directly from the input data, allowing the representations to be learned without requiring additional manual annotations. However, for effective pretraining, the SSL methods are performed on extremely large unlabelled datasets. In addition, many successful SSL methods rely on carefully designed augmentation strategies. Contrastive methods such as SimCLR (Chen et al., 2020) construct multiple augmented views of the same image and encourage their representations to agree, while self-distillation methods, such as DINO (Caron et al., 2021), similarly depend on augmentation-induced invariances. These approaches have proved highly successful for natural images, but their effectiveness relies on extensively searching for the optimal augmentations based on the fine-tuning performance. Furthermore, these methods lack a “standardised blueprint” on their application for non-imaging modalities, e.g., physiological signals and tabular data.

In contrast, reconstruction-based SSL methods (Vincent et al., 2008; He et al., 2022) are often simpler to apply on various modalities, and also resemble traditional unsupervised pretraining-based models. In this work, we revisit the diffusion model (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2021) as a pretraining strategy for classifier pretraining, and propose DiffPT (Diffusion PreTraining). Unlike conventional denoising auto-encoders (Vincent et al., 2008), which reconstruct images from a fixed level of corruption, diffusion models are trained across a continuum of noise levels, requiring representations that capture both coarse global structure and fine local detail. Because commonly used corruption processes, i.e., the diffusion schedules, have been found to generalize across a variety of domains, DiffPT does not require practitioners to specify domain specific augmentation strategies, unlike in the case of SimCLR and DINO.

Unlike the conventional self-supervised learning setting, which assumes access to a large unlabelled dataset, we consider settings where additional data are scarce or costly to acquire, as is common in medical imaging, scientific experiments, and specialised industrial applications. Motivated by this setting, we ask whether self-supervised pretraining can improve classification even when no additional data are available. We therefore introduce no additional unlabelled data, i.e., the self-supervised pretraining and supervised finetuning are performed on the exactly same dataset in every experiment. We benchmark DiffPT against training from scratch, SimCLR, DINO, auto-encoder, and denoising auto-encoder pretraining with matched architectures. Our contributions are as follows:

• We propose DiffPT, a data-efficient classifier pre-training method based on diffusion models.

  • We compare DiffPT with a range of self-supervised pretraining methods on various data modalities (physiological signals, natural images, medical imaging) and degrees of data scarcity.

  • We show that DiffPT matches strong augmentation-based self-supervised learning methods on a variety of modalities while requiring less computational resources.

References (39)