A Shared-Backbone Approach for Multi-Task MedMNIST Classification
Organizations: Faculty of Computer Science, Alexandru Ioan Cuza University of Iaşi, Romania
Abstract
Multi-task biomedical classification requires models to generalize across disparate modalities and class distributions. We study 11 heterogeneous MedMNIST datasets using the harmonic mean of per-task macro-F1. We evaluate three backbones with task-specific linear heads. We identify a resolution domain shift between the MedMNIST API and evaluation environment. Resolving this inconsistency and optimizing architecture-specific regularization substantially improved performance. Our best configuration, a ConvNeXt-Tiny backbone with label smoothing, achieved a leaderboard harmonic-mean macro-F1 of 0.73294 in the Tensor Reloaded: Multi-Task MedMNIST competition, ranking sixth at the close of the official competition phase. Our implementation is publicly available at: https://github.com/GavrilStefan-Dorian/A-Shared-Backbone-Approach-for-Multi-Task-MedMNIST-Classification
Figures & tables
| Task | Modality | Shape | Cl. | Train | Val | Test | Imb. | Ent. | BF1 |
|---|---|---|---|---|---|---|---|---|---|
| PathMNIST | Colon Pathology | 28x28x3 | 9 | 89,996 | 10,004 | 7,180 | 1.63 | 0.994 | 0.028 |
| DermaMNIST | Dermatoscope | 28x28x3 | 7 | 7,007 | 1,003 | 2,005 | 58.66 | 0.581 | 0.115 |
| OCTMNIST | Retinal OCT | 28x28 | 4 | 97,477 | 10,832 | 1,000 | 5.94 | 0.836 | 0.160 |
| PneumoniaMNIST | Chest X-Ray | 28x28 | 2 | 4,708 | 524 | 624 | 2.88 | 0.823 | 0.426 |
| RetinaMNIST | Fundus Camera | 28x28x3 | 5 | 1,080 | 120 | 400 | 7.36 | 0.874 | 0.124 |
| BreastMNIST | Breast Ultrasound | 28x28 | 2 | 546 | 78 | 156 | 2.71 | 0.840 | 0.422 |
| Backbone | Pretrained | WS | LS | Params | Public HM-F1 |
|---|---|---|---|---|---|
| ConvNeXt-Tiny | Yes | False | False | 28.0M | 0.72937 |
| ConvNeXt-Tiny | Yes | False | True | 28.0M | 0.73294 |
| ConvNeXt-Tiny | Yes | True | False | 28.0M | 0.71892 |
| ConvNeXt-Tiny | Yes | True | True | 28.0M | 0.72246 |
| ConvNeXt-Tiny | No | True | True | 28.0M | 0.64628 |
| ResNet-18 | Yes | False | False | 11.2M | 0.69219 |
| Task | Train | Val | Test | EffNet Val | EffNet Test | ConvNeXt Val | ConvNeXt Test |
|---|---|---|---|---|---|---|---|
| PathMNIST | 89,996 | 10,004 | 7,180 | 0.978 | 0.8976 | 0.983 | 0.9061 |
| DermaMNIST | 7,007 | 1,003 | 2,005 | 0.587 | 0.6235 | 0.636 | 0.6238 |
| OCTMNIST | 97,477 | 10,832 | 1,000 | 0.812 | 0.6592 | 0.840 | 0.7254 |
| PneumoniaMNIST | 4,708 | 524 | 624 | 0.956 | 0.9063 | 0.966 | 0.9219 |
| RetinaMNIST | 1,080 | 120 | 400 | 0.441 | 0.3577 | 0.433 | 0.3953 |
| BreastMNIST | 546 | 78 | 156 | 0.834 | 0.8332 | 0.892 | 0.8301 |
| Task | Mismatched Pipeline | Matched Pipeline |
|---|---|---|
| PathMNIST | 0.5416 | 0.9061 |
| DermaMNIST | 0.4584 | 0.6238 |
| OCTMNIST | 0.4675 | 0.7254 |
| PneumoniaMNIST | 0.7337 | 0.9219 |
| RetinaMNIST | 0.3403 | 0.3953 |
| BreastMNIST | 0.5744 | 0.8301 |