Manuscript Offprint

arXiv:2611.22896

Impact of Pretraining Length, Model Size, and Annotation Budget on Downstream Clinical Tasks of Foundation Models in Radiotherapy

Alejandro Cortina Uribe, Sidsel Højklint Poulsen, Ivan Richter Vogelius, Jens Petersen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Background: As more self-supervised methods are developed for various data domains, a need for clearer insights into their adaptability to medical image analysis arises. In radiotherapy, where enormous amounts of data are collected routinely, there is great potential to develop foundation models. Cone-beam computed tomography (CBCT) scans acquired during treatment capture changes such as tumor shrinkage and radiation-induced tissue changes, and foundation models trained on them could help to monitor and better understand individual responses to treatment. However, to our knowledge, no large-scale pretrained models for radiotherapy CBCT are available, and evaluating modeling choices is difficult since the downstream tasks are not known in advance. Purpose: We examine how pretraining choices of training length and model size together with finetuning strategies relate to the downstream performance in clinical tasks. Furthermore, we investigate how methods to track the performance during pretraining correlate with performance on a selection of downstream clinical tasks. We release code (https://github.com/alexCortinaU/RT-CBCT_SSL) and pretrained models under a non-commercial license. Methods: We pretrain vision transformer encoder models with a masked image modeling pretext task using around 150,000 raw 3D cone-beam computed tomography scans from radiotherapy treatments, with 5% used as a validation set. We track the quality of the learned representations during pretraining via validation loss, an effective rank metric, and linear probing, comparing models with increasing number of parameters. We study the influence of the length of pretraining and the size of the annotated dataset on the downstream performance of the classification of feeding tube presence (n=51,135n=51,135 CBCTs from 1,5621,562 patients), and clinical characteristics (n=1,278n=1,278 patients) of head and neck cancer patients (T-, N-stage, sex, age, and tumor site), split into train = 85%, val = 10%, and test = 5% sets. We utilize low-rank adaptation and full finetuning, and compare them to utilizing no pretraining. Results: The pretext validation loss was the most consistent predictor of downstream performance; the effective rank score and linear probing were also associated with downstream performance, but not consistently across model sizes and finetuning methods. Low-rank adaptation performed comparably to full finetuning while training only 0.5−2.5%0.5-2.5\% of the parameters. Full finetuned models consistently and robustly outperform models with no pretraining among all model sizes, for the feeding tube classification AUROC∈[0.91,0.97]AUROC\in[0.91,0.97] vs. AUROC∈[0.58,0.85]AUROC\in[0.58,0.85], and the best clinical task of sex classification with AUROC∈[0.99,1]AUROC\in[0.99,1] vs. AUROC∈[0.71,0.97]AUROC\in[0.71,0.97], with [AUROCmin,AUROCmaxAUROC_{min},AUROC_{max}] respectively. Model size had only a small and inconsistent effect on downstream performance, suggesting that smaller models can perform well while requiring fewer computational resources. Conclusions: We demonstrate that self-supervised learning can leverage large collections of unannotated CBCT images acquired during radiotherapy to learn transferable representations for clinical applications. Even with large amounts of pretraining data, smaller models and low-rank adaptation provide competitive and computationally efficient alternatives to larger models and full finetuning.

Index Terms:

self-supervised learning, foundation models, radiotherapy, CBCT, masked image modeling, low-rank adaptation

References (19)

  • A Simple Framework for Contrastive Learning of Visual Representations
  • Variance-Invariance-Covariance Regularization for Self-Supervised Learning, 2022
  • Image BERT Pre-Training with Online Tokenizer, 2022
  • LoRA: Low-Rank Adaptation of Large Language Models
  • R. Balestriero and Y. LeCun, Learning by reconstruction produces uninformative features for perception, arXiv preprint arXiv:2402.11337 (2024). (opens arXiv in a new tab)
  • Assessing the downstream performance of pretrained self-supervised representations by their rank, 2023
  • A Simple Framework for Masked Image Modeling, 2022
  • Transformers for Image Recognition at Scale, 2021
  • A Systematic Review, Journal of Medical Systems 48, 84
  • A Case-study on Fetal Ultrasound, 2025
  • Transformers Advance Multi-Modal Medical Image Classification, Diagnostics 11
  • A robust vision transformer for generalized medical image classification, Computers in Biology and Medicine 157, 106791
  • Hierarchical multi-scale feature fusion network for medical image classification, Biomedical Signal Processing and Control 87, 105534
  • a survey, BioMedical Engineering OnLine 23, 14
  • Memory Efficient Vision Transformer with Cascaded Group Attention, 2023
  • Wolff, and L. M. Ritschl, Deep Learning for Pretreatment Imaging-Based Tumor and Nodal Classification in Head and Neck Squamous Cell Carcinoma: A Systematic Review and Network Meta-Analysis, Head & Neck 48, 1971–1983
  • A Comprehensive Review, 2025
  • A Systematic Review, in 2025 10th International Conference on Computational Intelligence and Applications (ICCIA), pages 104–108, 2025
  • Advances and Challenges, in Blockchain and Trustworthy Systems, edited by J. Chen, X. Luo, and Y. Yu, pages 170–181, Springer Nature Singapore, 2026