> karyo / Preprint · Nov 2026
A 6M-Parameter Vision Transformer Trained from Scratch Is Competitive with 3–14× Larger Models for Mitotic-Figure Detection Across Tumour Types
Diego Garcia Rebate · VairoX Labs
Abstract
Vision transformers are usually reported to trail convolutional networks on mitotic-figure detection unless they are large and pretrained on external data. We ask whether a 6.05M-parameter ViT trained from scratch on 278 regions of MIDOG++ can compete on tumour types it has never seen. Karyo-T, a ViT-Tiny with a convolutional stem, 2D rotary positions, registers and a multi-level neck, is developed under a leave-one-domain-out protocol in which the held-out tumour never influences training, checkpoint or threshold, and is compared on one laptop against a same-size CNN, YOLO11m (20M) and a frozen 86M pathology foundation model (hibou-b). On three held-out tumour types it reaches micro F1 0.675 ± 0.013, 0.619 ± 0.008 and 0.809 ± 0.004 (3 seeds). After Holm correction over 92 comparisons it is ahead of the same-size CNN on canine lymphoma and shows no significant difference from YOLO11m or hibou-b on any fold, although the intervals are too wide to show equivalence within ±0.03 F1. Two external tests of unseen tumour types give the same picture: random regions of canine mammary carcinoma slides (F1 0.722 for Karyo-T, 0.705 for YOLO11m, 0.708 for hibou-b) and human lung adenocarcinoma (recall 0.501, 0.433, 0.516). For every model the validation threshold transfers badly to the most shifted tumour, losing 0.04 to 0.21 F1 on lymphoma; one labelled region of the new tumour repairs most of it for Karyo-T.
mitotic-figure detection · domain generalisation · vision transformers · computational pathology · leave-one-domain-out evaluation

Paper
Cite
@misc{garciarebate2026karyot,
title = {{A 6M-Parameter Vision Transformer Trained from Scratch Is
Competitive with 3--14{$\times$} Larger Models for
Mitotic-Figure Detection Across Tumour Types}},
author = {Garcia Rebate, Diego},
year = {2026},
month = nov,
howpublished = {Preprint, VairoX Labs},
url = {https://diegogrebate.com/research/karyo-t}
}License and use
The paper's text and original figures are released under CC BY 4.0: reuse them with credit.
The tissue crops in its figures come from MIDOG++ (Aubreville et al., 2023) and MITOS_WSI_CMC (Aubreville et al., 2020) and remain under those datasets' terms.
The code is released under Apache 2.0.
Karyo-T is a research model. It is not a medical device and has not been validated for diagnostic use.