OmniFM: Toward Modality-Robust and Task-Agnostic Federated Learning for Heterogeneous Medical Imaging
Organizations: School of Software, Shenyang University of Technology
Abstract
Federated learning (FL) has become a promising paradigm for collaborative medical image analysis, yet existing frameworks remain tightly coupled to task-specific backbones and are fragile under heterogeneous imaging modalities. Such constraints hinder real-world deployment, where institutions vary widely in modality distributions and must support diverse downstream tasks. To address this limitation, we propose OmniFM, a modality- and task-agnostic FL framework that unifies training across classification, segmentation, super-resolution, visual question answering, and multimodal fusion without re-engineering the optimization pipeline. OmniFM builds on a key frequency-domain insight: low-frequency spectral components exhibit strong cross-modality consistency and encode modality-invariant anatomical structures. Accordingly, OmniFM integrates (i) Global Spectral Knowledge Retrieval to inject global frequency priors, (ii) Embedding-wise Cross-Attention Fusion to align representations, and (iii) Prefix-Suffix Spectral Prompting to jointly condition global and personalized cues, together regularized by a Spectral-Proximal Alignment objective that stabilizes aggregation. Experiments on real-world datasets show that OmniFM consistently surpasses state-of-the-art FL baselines across intra- and cross-modality heterogeneity, achieving superior results under both fine-tuning and training-from-scratch setups.
Figures & tables
| Method | Scenario 1 (Hard) | Scenario 2 (Medium) | Scenario 3 (Extra) | |||||||||||||||
| Acc (%) | F1-Score | Acc (%) | F1-Score | Acc (%) | F1-Score | |||||||||||||
| 20% | 50% | 100% | 20% | 50% | 100% | 20% | 50% | 100% | 20% | 50% | 100% | 20% | 50% | 100% | 20% | 50% | 100% | |
| FedAvg [ 39 ] | 56.31 | 67.31 | 84.21 | 0.234 | 0.380 | 0.474 | 56.44 | 67.11 | 84.49 | 0.229 | 0.334 | 0.460 | 24.24 | 56.84 | 99.49 | 0.165 | 0.522 | 0.977 |
| FedProx [ 33 ] | 27.04 | 58.79 | 93.92 | 0.060 | 0.293 | 0.491 | 30.17 | 38.33 | 30.14 | 0.119 | 0.124 | 0.131 | 24.07 | 55.79 | 97.53 | 0.130 | 0.369 | 0.587 |
| Ditto [ 32 ] | 28.67 | 65.31 | 97.56 | 0.096 | 0.385 | 0.649 | 30.23 | 69.23 | 96.11 | 0.123 | 0.486 | 0.820 | 25.09 | 58.66 | 99.24 | 0.170 | 0.447 | 0.931 |
| SCAFFOLD [ 29 ] | 24.09 | 16.56 | 19.85 | 0.046 | 0.063 | 0.082 | 24.04 | 18.01 | 20.59 | 0.053 | 0.067 | 0.078 | 52.31 | 49.99 | 99.41 | 0.241 | 0.180 | 0.846 |
| Scale | Client | Scenario 1 | Scenario 2 | ||||||||||||||||||
| PSNR | SSIM | PSNR | SSIM | ||||||||||||||||||
| OmniFM | FedAvg | FedProx | FedPer | Local | OmniFM | FedAvg | FedProx | FedPer | Local | OmniFM | FedAvg | FedProx | FedPer | Local | OmniFM | FedAvg | FedProx | FedPer | Local | ||
| Client 1 | 42.93 | 35.90 | 20.68 | 40.24 | 36.97 | 0.9784 | 0.9526 | 0.5426 | 0.9537 | 0.9115 | 43.11 | 41.67 | 24.82 | 41.42 | 40.38 | 0.9811 | 0.9399 | 0.8230 | 0.9610 | 0.9583 | |
| Client 2 | 41.95 | 36.07 | 22.42 | 39.32 | 35.09 | 0.9634 | 0.9444 | 0.5462 | 0.9478 | 0.9231 | 41.95 | 41.70 | 24.09 | 41.98 | 42.23 | 0.9690 | 0.9582 | 0.8152 | 0.9631 | 0.9651 | |
| Client 3 | 41.75 | 35.87 | 22.44 | 39.00 | 34.81 | 0.9661 | 0.9543 | 0.5513 | 0.9567 | 0.9533 | 41.85 | 41.12 | 24.20 | 39.22 | 34.92 | 0.9634 | 0.9661 | 0.8076 | 0.9527 | 0.9472 | |
| Avg. | 42.21 | 35.95 | 21.84 | 39.52 | 35.63 | 0.9693 | 0.9505 | 0.5467 | 0.9527 | 0.9293 | 42.30 | 41.50 | 24.37 | 40.87 | 39.17 | 0.9711 | 0.9548 | 0.8152 | 0.9590 | 0.9569 | |
| Method | F-C | F-L | F-CL | F-2stage | ||||
| IID | Non-IID | IID | Non-IID | IID | Non-IID | IID | Non-IID | |
| FedAvg [ 39 ] | 0.783 | 0.775 | 0.806 | 0.802 | 0.823 | 0.827 | 0.811 | 0.814 |
| FedProx [ 33 ] | 0.734 | 0.750 | 0.800 | 0.780 | 0.816 | 0.796 | 0.773 | 0.785 |
| FedAdam [ 43 ] | 0.741 | 0.735 | 0.783 | 0.771 | 0.777 | 0.774 | 0.782 | 0.777 |
| FedAvgM [ 25 ] | 0.754 | 0.747 | 0.789 | 0.786 | 0.784 | 0.768 | 0.793 | 0.794 |
| FedYogi [ 43 ] | 0.745 | 0.736 | 0.782 | 0.769 | 0.783 | 0.774 | 0.785 | 0.782 |
| Method | Task-Specific Performance | Avg. | |||||||
| C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | ||
| FedAvg | 88.67 | 72.59 | 70.86 | 85.93 | 71.09 | 89.45 | 66.62 | 76.48 | 77.71 |
| FedProx | 88.92 | 73.05 | 71.03 | 86.10 | 71.40 | 89.20 | 66.81 | 76.32 | 77.85 |
| FedAdam | 89.10 | 74.22 | 71.58 | 85.70 | 71.85 | 89.80 | 67.20 | 76.90 | 78.17 |
| FedDyn | 88.75 | 73.90 | 71.92 | 86.35 | 71.55 | 90.02 | 67.45 | 76.70 | 78.08 |
| FedPer | 89.43 | 74.10 | 72.21 | 85.95 | 72.30 | 89.90 | 67.82 | 77.52 | 78.40 |
| Method | SLAKE | VM2019 | VM2020 | VM2021 | VR | Average |
| Full Tuning | ||||||
| FedAvg | 77.45 | 67.25 | 15.06 | 22.00 | 41.52 | 44.66 |
| FedProx | 77.47 | 67.00 | 14.87 | 22.12 | 41.00 | 44.33 |
| FedAdam | 77.00 | 67.89 | 15.12 | 22.44 | 42.42 | 44.77 |
| FedDyn | 78.24 | 69.00 | 16.21 | 21.65 | 42.02 | 45.02 |
| FedPer | 79.23 | 69.20 | 16.77 | 22.54 | 43.43 | 46.03 |
| Method | Group 1 (9 Clients) | Group 2 (6 Clients) | Group 3 (5 Clients) | Group 4 (3 Clients) | Avg. | |||||
| Dice | IoU | Dice | IoU | Dice | IoU | Dice | IoU | Dice | IoU | |
| Local | 45.24 | 29.33 | 44.21 | 25.00 | 41.25 | 27.22 | 46.23 | 30.00 | 44.23 | 27.89 |
| FedAvg | 44.02 | 28.56 | 44.91 | 25.32 | 40.93 | 26.10 | 46.78 | 30.95 | 44.16 | 27.73 |
| FedProx | 42.32 | 25.23 | 44.00 | 24.43 | 38.99 | 25.32 | 45.35 | 29.76 | 42.66 | 26.19 |
| FedPer | 71.23 | 66.99 | 75.24 | 62.12 | 72.43 | 57.34 | 76.54 | 62.99 | 73.86 | 62.36 |
| OmniFM | 79.84 | 74.93 | 80.82 | 68.74 | 78.62 | 66.01 | 78.03 | 65.31 | 77.41 | 68.75 |
| Metric | Client | FedAvg | FedProx | Ditto | FedDyn | MOON | OmniFM |
| [ 39 ] | [ 33 ] | [ 32 ] | [ 1 ] | [ 31 ] | Ours | ||
| VIF | CT-MRI | 0.221 | 0.185 | 0.196 | 0.182 | 0.195 | 0.217 |
| PET-MRI | 0.331 | 0.242 | 0.275 | 0.239 | 0.275 | 0.309 | |
| SPECT-MRI | 0.284 | 0.235 | 0.249 | 0.245 | 0.249 | 0.280 | |
| Avg | 0.279 | 0.221 | 0.240 | 0.222 | 0.240 | 0.269 | |
| SSIM | CT-MRI | 0.739 | 0.684 | 0.718 | 0.716 | 0.718 | 0.739 |
| Variant | CLS | SR | SEG | VQA-T1 | VQA-T2 | VQA-T3 |
| OmniFM | 97.82 | 35.79 | 75.04 | 0.800 | 79.27 | 44.21 |
| w/o GSKR | 95.82 | 34.88 | 73.42 | 0.775 | 78.91 | 42.62 |
| w/o ECA | 96.51 | 35.04 | 74.03 | 0.783 | 79.15 | 43.01 |
| w/o PSP | 96.92 | 35.12 | 74.51 | 0.787 | 79.42 | 43.19 |
| w/o SPAlign | 97.14 | 35.21 | 74.09 | 0.781 | 77.64 | 42.37 |