EvalBlocks: A Modular Pipeline for Rapidly Evaluating Foundation Models in Medical Imaging
Jan Tagscherer, Sarah de Boer, Lena Philipp, Fennie van der Graaf, Dré Peeters, Joeran Bosma, Lars Leijten, Bogdan Obreja, Ewoud Smit, Alessa Hering
TL;DR
The paper tackles slow and error-prone evaluation workflows during foundation-model development in medical imaging. It introduces EvalBlocks, a modular, Snakemake-based pipeline that supports plug-and-play blocks for feature extraction, aggregation, and evaluation, with centralized tracking and caching for reproducible, scalable experimentation. The authors demonstrate the approach by evaluating five foundation models across three patch-level malignancy tasks, illustrating rapid prototyping of aggregation methods and evaluation strategies and showing tangible reductions in compute time through caching and parallelism. This framework lowers evaluation logistics overhead, enabling researchers to focus on architectural and training innovations, and sets the stage for broader integration and future extensions to other task types and platforms.
Abstract
Developing foundation models in medical imaging requires continuous monitoring of downstream performance. Researchers are burdened with tracking numerous experiments, design choices, and their effects on performance, often relying on ad-hoc, manual workflows that are inherently slow and error-prone. We introduce EvalBlocks, a modular, plug-and-play framework for efficient evaluation of foundation models during development. Built on Snakemake, EvalBlocks supports seamless integration of new datasets, foundation models, aggregation methods, and evaluation strategies. All experiments and results are tracked centrally and are reproducible with a single command, while efficient caching and parallel execution enable scalable use on shared compute infrastructure. Demonstrated on five state-of-the-art foundation models and three medical imaging classification tasks, EvalBlocks streamlines model evaluation, enabling researchers to iterate faster and focus on model innovation rather than evaluation logistics. The framework is released as open source software at https://github.com/DIAGNijmegen/eval-blocks.
