Abstract
Federated Learning (FL) allows multiple institutions to train deep learning models collaboratively without sharing sensitive patient data. However, the lack of data transparency in FL can hide systematic biases, leading to "shortcut learning" where models rely on non-clinical artifacts. We introduce MyThisYourThat (MyTH), an interpretable framework based on Prototypical Part Learning Networks (ProtoPNet). MyTH enables clients to visualize and compare local and global prototypes on their own datasets, providing a privacy-preserving mechanism to audit for biases. Our experiments on the CheXpert dataset demonstrate that MyTH effectively identifies both synthetic and real-world biases, preventing them from silently degrading global model performance.
Introduction
Deep learning has shown immense promise in medical imaging, yet its success depends on large, diverse datasets. Federated Learning (FL) has emerged as a standard for multi-institutional collaboration, allowing models to be trained on decentralized data while maintaining privacy. Despite its benefits, FL often operates as a "black-box." Clients contribute to a global model without visibility into the quality or potential biases of their peers' data.
A significant risk in this environment is shortcut learning, where a model identifies unintended correlations—such as hospital-specific digital markers or equipment artifacts—instead of actual pathology. These biases can "poison" the global model, leading to high local accuracy but poor generalization in other clinical settings. Because raw data cannot be shared, these biases often remain undetected until the model fails in deployment.
Methods: The MyTH Framework
To address this transparency gap, we propose MyThisYourThat (MyTH). MyTH leverages the ProtoPNet (Prototypical Part Learning Network) architecture, which is inherently interpretable. Unlike standard neural networks, ProtoPNet learns "prototypes"—representative image patches that characterize specific classes (e.g., the specific shape of a heart border indicating cardiomegaly).
The MyTH workflow consists of four stages:
- Local Training: Each client trains a local model to identify prototypes within its own dataset.
- Aggregation: A central server aggregates these local prototypes to form "global prototypes."
- Visualization: Clients project these global prototypes onto their local images.
- Comparison: By comparing "My" local prototypes with "Your" (the global) prototypes, clients can audit the learning process. If a local model focuses on an artifact (like a corner mark) while the global model focuses on anatomy, a bias is identified.
Experimental Setup
We evaluated MyTH using the CheXpert dataset, focusing on the classification of Cardiomegaly and Pleural Effusion. To simulate real-world challenges, we intentionally introduced two types of bias into the training data of one client:
- Synthetic Bias: A red emoji was added to positive cardiomegaly cases.
- Real-world Bias: X-rays containing chest drains (medical devices) were used as a proxy for pleural effusion.
Results and Discussion
In unbiased settings with four clients, the MyTH global model achieved balanced accuracies of 74.14% for cardiomegaly and 74.08% for pleural effusion, nearly matching centralized training performance (74.45% and 75.95%, respectively).
However, the introduction of bias revealed the vulnerability of standard FL. The client with the synthetic "red emoji" bias achieved 100% local accuracy by learning the shortcut. This biased contribution caused the global model's performance on clean data to drop significantly to approximately 55%, demonstrating how a single biased participant can degrade the entire federation.
MyTH successfully unmasked these biases. Visual audits showed that the biased client's local prototypes focused exclusively on the red emoji or chest drains. In contrast, the global prototypes—informed by the clean clients—correctly focused on relevant anatomical features like the heart or lung bases. This allows researchers to identify "shortcut learning" without ever compromising patient privacy.
Conclusion
MyTH provides a critical "sanity check" for federated learning in medicine. By transforming interpretability into a diagnostic tool for data quality, it allows for privacy-preserving audits of distributed datasets. While currently requiring expert human interpretation, future work will focus on scaling MyTH to larger federations and developing automated methods to penalize or remove biased prototypes during the aggregation process.
Summary updated