VariViT Handles Variable Image Sizes in Brain MRI Tumor Tasks
VariViT is a vision-transformer architecture designed to process variable image sizes with a consistent patch size, using resized positional embeddings and a new batching strategy. On two 3D brain MRI datasets, it surpassed vanilla ViTs and ResNet for glioma genotype prediction (F1-score 75.5%) and brain tumor classification (F1-score 76.3%). The batching strategy reduced computation time by up to 30% compared with conventional architectures.