arXiv:2609.09863cs.CVSep 2026

Manuscript Offprint

arXiv:2609.09863

Pretraining and Distillation Matter More Than Architecture Family for Label-Free Single-Cell Classification

Philip Graemer, Giuseppe Di Caprio

Philip Graemer 1,2^{1,2} * and Giuseppe Di Caprio 1,2^{1,2} *

1^{1}Centre for the Cellular Microenvironment, Department of Biomedical Engineering, University of Strathclyde, Glasgow, UK

2^{2}School of Molecular Biosciences, University of Glasgow, Glasgow, UK

  • Corresponding author: {philip.graemer,giuseppe.dicaprio}@strath.ac.uk

Abstract: Choosing a deep learning architecture for label-free single-cell classification remains an open problem, with recent microscopy benchmarks reporting conflicting conclusions about the relative merits of convolutional and transformer-based models. We present a controlled benchmark on single-cell crops from LIVECell, a large public phase-contrast microscopy dataset, using source-image-disjoint train/validation/test splits to eliminate parent-image leakage and matched optimisation, augmentation, and evaluation protocols across EfficientNet, standard Vision Transformer (ViT), and EVA-02 models. This design enables the effects of architecture, pretraining, fine-tuning strategy, tokenisation, and distillation to be disentangled. Our results show that a previously reported CNN advantage is largely explained by pretraining rather than architecture alone; indeed, the smallest pretrained model outperforms the strongest trained from scratch despite far fewer parameters. Pretraining a fixed architecture improves macro-F1 by three to four points, whereas the gap between the best convolutional and best transformer models under pretrained initialisation is below half a point. Architectural choices remain consequential in more specific ways. In particular, ViT-S/8 outperforms ViT-S/16, and matches the four-times-larger ViT-B/16 at a quarter of the parameters, albeit at comparable compute, indicating that finer tokenisation is advantageous for small single-cell crops. We further find that layer-wise learning-rate decay, a key component of the original EVA-02 fine-tuning recipe, degrades performance in this setting, suggesting that transfer heuristics developed for natural-image recognition do not necessarily carry over to phase-contrast microscopy. Beyond backbone comparisons, we show that knowledge distillation offers a more effective route to improving the deployment frontier. Compact EfficientNet-B0 students distilled from teacher councils (averaging multiple models) surpass every individually trained backbone evaluated, including the EfficientNet-B5 and EVA-02 teacher backbones from which the councils were formed.

Together, these results demonstrate that rigorous control of pretraining and evaluation protocol is essential for interpreting biomedical architecture benchmarks, and that distillation may be a more impactful lever for practical single-cell classification than architecture family alone.

Figure

Graphical Abstract. A. The benchmarking workflow begins by pairing raw phase-contrast microscopy images with segmentation masks and converting the resulting data into single-cell crops. A source-image-disjoint split is then used to assign cells to training, validation and test sets, ensuring that cells derived from the same source image are not distributed across different partitions and thereby limiting potential data leakage. B. A controlled evaluation framework subsequently compares EfficientNet-B0/B5 (EN-B0/B5), ViT-B/16, ViT-S/16, ViT-S/8 and EVA-02 under matched optimisation and augmentation settings across multiple random seeds, with scratch and pretrained initialisation compared directly for EN-B5 and ViT-B/16. C. Pretraining provides a consistent benefit across architectures, while the strongest pretrained CNN and transformer models show broadly comparable performance, indicating no clear architectural winner under matched transfer-learning conditions. D. Fine-tuning and tokenisation choices further influence the effectiveness of pretrained representations. The deployment strategy uses council knowledge distillation to transfer information from multiple teacher models into a compact EN-B0 student; the strongest student in the present experiments was distilled from the EN-B5×3 council, achieving higher performance than any individually trained backbone while retaining EN-B0 inference cost.

1. Introduction

Recent CNN-ViT comparisons in cell imaging reach divergent conclusions, from ViT advantages in explicit transfer-learning studies of white-blood-cell microscopy to CNN or hybrid advantages in broader architectural bake-offs on label-free and microscopic cell datasets (Abou Ali et al., 2023; Fiore et al., 2025; Liu et al., 2025). These discrepancies are difficult to interpret as stable architecture-family effects. ViT performance depends strongly on pretraining and training recipe, and recent microscopy work shows that both self-supervised and regularly pretrained transformer representations can materially change downstream cell-classification performance (Dosovitskiy et al., 2021; Steiner et al., 2021; Moutakanni et al., 2025).

We argue that one important source of apparent disagreement in this literature is a methodological confound: Transformer-family models are not always evaluated under matched or clearly reported pretrained initialisation, even though this is standard practice for competitive ViT transfer (e.g. Fiore et al., 2025; Liu et al., 2025). There remains a broader need for benchmarking of modern architectures on microscopy classification under matched training protocols, with explicit reporting of efficiency metrics and pretraining conditions (Raghu et al., 2021). The present study directly tests whether the reported CNN advantage in label-free single-cell classification survives a controlled benchmark in which pretraining status is matched and made explicit across model families. Using the LIVECell dataset of phase-contrast microscopy images (Edlund et al., 2021) we evaluate representative convolutional and transformer-family models. The choice of LIVECell provides not only a large, standardised benchmark, but also direct comparability with prior architecture evaluations conducted on the same dataset (Fiore et al., 2025).

As the basic unit of life on earth, the cell is of central importance to biology. Single-cell classification is of practical importance as it supports detection of abnormal or undesired phenotypes in medical and biological lab settings. Biologists have a wide array of tools available to them to classify various cell types. However, many of these tests are time intensive and prone to human error. They might also require expensive reagents, labels and specialised microscopes. Label-free classification on the single cell level thus becomes an attractive task for computer vision (Osumi-Sutherland, 2017; Shifat-E-Rabbi et al., 2020; Moutakanni et al., 2025). Automated analysis of microscopy images has become a central enabling technology for modern cellular biology and biomanufacturing (Kraus et al., 2017). In many experimental settings such as high-content screening, perturbation assays, cell line quality control, and longitudinal live-cell studies the primary bottleneck is the reliable conversion of large image volumes into quantitative, reproducible descriptors of cellular identity and state. This is a non-trivial task, as computer models often have to assess minimal differences in cell morphology and texture, confounded by illumination, focus and confluence. Furthermore, datasets are often imbalanced, and domain shift across labs and modalities is severe (Moutakanni et al., 2025). While the task thus appears difficult, computer vision models have been shown to be remarkably effective at it and often doing so while discerning differences invisible even to human experts (e.g. Eckstein et al. 2024).

Neural networks have revolutionised general image recognition and their application to cellular biology is particularly promising for high-throughput analysis. However, it remains unclear which exact neural architectures offer the best accuracy-efficiency trade-off for microscopy-based classification of bioimaging data. Microscopy images differ from natural images in ways that can affect model behaviour, including discriminative cues that are often subtle and local, and labels that can be costly and noisy. Real deployments must furthermore contend with domain shift across instruments, acquisition settings and laboratories (Xing et al., 2017).

Such factors create a plausible advantage for convolutional neural networks (CNNs), whose inductive biases for locality and translation equivariance can yield strong performance in data-limited regimes. Conversely, Vision Transformers (ViTs) and related foundation-model backbones may offer superior representational flexibility and transfer from large-scale pretraining but typically incur higher compute cost and may require more data or careful fine-tuning to realise their benefits (Dosovitskiy, 2021; Steiner et al., 2021; Touvron et al., 2021; Moutakanni et al., 2025).

CNNs provide a scalable approach to object recognition within images by processing local spatial patterns and extracting relevant features (LeCun, Bengio & Hinton, 2015; LeCun et al., 2002). This architecture enables CNNs to learn hierarchical feature representations. The very architecture of typical CNNs with its compression of the feature space into progressively smaller maps encodes inductive biases. In the beginning, context is assessed locally only, in higher layers more complex features are analysed more globally (Battaglia et al., 2018; Dosovitskiy et al., 2021). This broadly aligns with our current understanding of human vision, with basal areas of vision pathways encoding lines or edges, and later neural populations encoding for example specific faces (see e.g. Yamins et al., 2014 and Güçlü et al., 2015).

In contrast to CNNs, ViTs represent an image as a sequence of patches and use self-attention to model interactions across the entire image, which can facilitate learning of global relationships (Dosovitskiy et al., 2021). With less inductive bias, at the level of attention heads, ViTs exhibit a mixture of locality and long-range integration. Early layers contain predominantly local heads alongside a subset of heads that already attend globally, and deeper layers shift toward broadly long-range attention across most heads. This has been quantified by “attention-distance” analyses, analogous to receptive field size in CNNs (Dosovitskiy et al., 2021).

In practice, ViT performance and robustness depend strongly on the training regime. ViTs often benefit substantially from large-scale pretraining and/or data-efficient training strategies (e.g., distillation, augmentation and strong regularisation), and under such settings they can exceed CNN baselines on a range of vision tasks (Dosovitskiy et al., 2021; Touvron et al., 2021; Steiner et al., 2021). For standard training regimes, if no pre-trained data is available, ViTs, compared to CNNs will often underperform with a limited dataset. As transformers they have fewer inductive biases and will need to learn these while training on limited data (Dosovitskiy et al., 2021). Consequently, transfer learning from large-scale pretraining (typically on datasets such as ImageNet) is particularly critical for ViTs and can substantially improve their performance on downstream tasks, often more so than for CNNs (Dosovitskiy et al., 2021; Raghu et al., 2021). This principle has been confirmed specifically for microscopy, where self-supervised pretrained ViTs substantially outperform scratch-trained equivalents (Moutakanni et al., 2025).

The failure to control for pretraining status therefore constitutes a confound that can produce spuriously CNN-favourable conclusions.

We evaluated a number of different architectures: EfficientNet-B0 and EfficientNet-B5 as compact and stronger CNN baselines, ViT-B/16 as a standard Vision Transformer, ViT-S/16 and ViT-S/8 as DINO-pretrained transformers differing only in patch size, and EVA-02 as a modern pretrained ViT-family backbone. We further tested whether an EVA-02 fine-tuning recipe based on layer-wise learning-rate decay transfers to phase-contrast microscopy, and whether offline knowledge distillation can transfer complementary information from larger or diverse teachers into a compact EfficientNet-B0 student. Distillation offers a practical route to compact, high-accuracy models necessary for high-throughput application in biological microscopy labs.

The study has four aims. First, we test whether a reported CNN advantage on LIVECell persists under source-image-disjoint, matched-pretraining evaluation. Second, we quantify the extent to which pretraining, rather than architecture family alone, explains performance differences. Third, we assess whether transformer tokenisation and fine-tuning strategy materially affect phase-contrast transfer. Fourth, we evaluate whether teacher and council distillation can decouple inference efficiency from the architecture of the highest-performing backbone.

We hypothesise that the CNN versus ViT gap will narrow once pretraining and split protocol are controlled, that fine-tuning recipes developed for natural-image transfer will not necessarily transfer unchanged to phase-contrast microscopy, and that compact students can recover or exceed large-backbone performance when trained from complementary teacher signals.

References (22)