Back to all papers

SliceHeads: A Python Package for Benchmarking Classification Heads on Frozen 2D Vision Foundation Model Embeddings for Volumetric Medical Imaging

December 2, 2026arxiv logopreprint

Authors

Moshe Amitay,Efrat Lifshitz,Talia Yeshua

Abstract

Frozen two-dimensional (2D) vision foundation models such as DINO make it practical to represent a three-dimensional (3D) computed tomography (CT) or magnetic resonance imaging (MRI) scan as a variable-length sequence of slice embeddings rather than a voxel volume, avoiding end-to-end training of a fully 3D encoder. However, comparing diverse aggregation strategies under a unified, reproducible pipeline remains challenging. We present SliceHeads, an open-source Python framework for benchmarking heterogeneous classification heads on frozen slice-level embeddings within a common training, optimization, evaluation, and interpretation workflow. The framework includes ten classification heads across six aggregation families, a self-describing HDF5 embedding store, declarative hyperparameter search, and model-agnostic slice-level attribution using leave-one-slice-out ablation. We demonstrate SliceHeads on 1,063 chest CT studies from MosMedData using nested cross-validation for binary classification of COVID-19-related pulmonary involvement. All ten heads were evaluated for classification using both DINOv3 and RAD-DINO embeddings, while slice-level localization was assessed using DINOv3 on 50 radiologist-annotated studies. The highest area under the ROC curve (ROC-AUC) point estimates were obtained by mean pooling with DINOv3 (0.853) and by a hybrid recurrent-convolutional model with RAD-DINO (0.834), while head rankings differed across encoders. Simple pooling remained competitive. Classification performance did not reliably predict localization quality, and model-agnostic occlusion yielded higher slice-level localization ROC-AUC than native attention in all three evaluated attention-based heads. SliceHeads provides a reproducible and extensible framework for jointly benchmarking embedding representations, aggregation strategies, and slice-level interpretation in volumetric medical imaging.

Topics

cs.CV

Ready to Sharpen Your Edge?

Subscribe to join 11k+ peers who rely on RadAISlice. Get the essential weekly briefing that empowers you to navigate the future of radiology.

We respect your privacy. Unsubscribe at any time.