FedMTFI Fixes Federated Learning's Biggest Flaw Without Touching Raw Data
FedMTFI combines multi-teacher knowledge distillation with SHAP feature importance to tackle the hardest problem in federated learning: heterogeneous devices with skewed data
Takeaways
- FedMTFI is a new federated learning framework that clusters devices by hardware, builds per-cluster prototype models, then distills them into one global student model.
- It uses SHAP (Shapley) values to weight the distillation loss, making the student focus on the most informative features across all teacher models.
- The approach directly targets the two hardest FL problems: non-IID data skew and device heterogeneity (different compute/memory across clients).
- Experiments on MNIST and Fashion-MNIST show FedMTFI outperforms standard FL algorithms like FedAvg under non-IID conditions, converging within 30 rounds.
- The SHAP integration adds interpretability on top of accuracy gains, a rare combination in federated learning research.
- No code or model weights have been publicly released; the paper is available at arxiv.org/abs/2606.01607.
Federated learning (FL) was supposed to be the answer to privacy-preserving AI: train models across thousands of devices without ever moving raw data. But the real world is messy. Devices differ wildly in compute power, memory, and the data they hold is almost never evenly distributed. A new paper introduces FedMTFI, a framework that attacks both problems at once by combining multi-teacher knowledge distillation with SHAP-based feature importance scoring.
The wall that stops federated learning from working
The standard FL playbook, FedAvg, works by having each device train a local model and then averaging all those model weights on a central server. Simple, elegant, and fragile under real-world conditions. FedAvg aggregates client models based on the number of local samples, but exhibits suboptimal performance in scenarios involving non-IID data or heterogeneous devices.
Non-IID (non-independent and identically distributed) data is the core villain here. It means that each device's local dataset looks nothing like the global distribution. A hospital in one city sees mostly elderly patients; one in another sees mostly children. The global model in FL often suffers from performance degradation due to global knowledge forgetting caused by highly non-IID client data. This knowledge forgetting is asymmetric, with locally under-represented classes suffering significantly more severe performance degradation than over-represented ones.
On top of that, system heterogeneity in FL causes the straggler issue, where resource-limited edge devices delay global model aggregation. You can't force a Raspberry Pi to run the same model as a server-grade GPU. Existing approaches either ignore device differences or require a shared public dataset on the server, which is often unavailable in practice.

Cluster, distill, and weight by importance
FedMTFI's answer is a three-stage pipeline that turns device heterogeneity from a bug into a feature. Here is how it works:
- Cluster clients by hardware and model type. Rather than forcing every device to run the same architecture, clients are grouped by their capabilities. Each cluster trains a model suited to its hardware on its local non-IID data.
- Aggregate within clusters using FedAvg. Each cluster produces a single prototype model by averaging the locally trained models within that cluster. This keeps the aggregation local and hardware-aware.
- Run multi-teacher knowledge distillation (MTKD) on the server. The prototype models from all clusters become teacher models. A single, lightweight student model is then trained to absorb knowledge from all of them simultaneously. Knowledge distillation here means the student learns not just from hard labels but from the soft probability outputs of the teachers, which carry richer information about what each teacher has learned.
- Weight the distillation loss using SHAP values. This is the key twist. SHAP (SHapley Additive exPlanations) is a technique from game theory that assigns each input feature a score reflecting how much it contributed to a model's prediction. Shapley values quantify feature importance, enabling the transfer of critical feature contributions, thereby enhancing the effectiveness of knowledge distillation. FedMTFI uses these scores to make the student pay more attention to the features that actually matter, rather than treating all inputs equally during distillation.
The result is a global student model that is both more accurate and more interpretable, since you can trace which features drove its decisions.
Why SHAP inside distillation is a genuine step forward
Combining SHAP with federated distillation is not a trivial engineering choice. SHAP provides interpretable insights while maintaining data privacy, which makes it a natural fit for FL settings where you can never inspect the raw data. Previous work like FedKDShap explored this combination for single-teacher setups on standard benchmarks. FedMTFI extends it to the multi-teacher regime, where the challenge is not just identifying important features but reconciling importance scores across teachers that were trained on completely different data distributions.
Knowledge distillation can improve the global model by extracting knowledge from local models, thereby alleviating the issue of local model drift caused by data heterogeneity. But without a mechanism to prioritize which knowledge matters most, the student can get confused by conflicting signals from teachers trained on very different data slices. The SHAP weighting acts as a filter, letting the most informative signal dominate.

What the experiments show
The paper evaluates FedMTFI on MNIST and Fashion-MNIST (FMNIST) under non-IID data partitions, testing multiple configurations of cluster counts and participating clients across 30 communication rounds. The framework is benchmarked against standard FL algorithms including FedAvg. Key findings include:
- FedMTFI achieves higher global accuracy than traditional FL algorithms under non-IID conditions.
- The model converges within 30 communication rounds across all tested configurations.
- Adding SHAP-weighted distillation improves both accuracy and interpretability compared to plain MTKD.
- Performance holds across different cluster sizes and numbers of participating clients, suggesting robustness to federation topology changes.
No code repository has been released alongside the paper at this time.
Where this fits and where it falls short
FedMTFI is most useful in settings where you have:
- Genuinely heterogeneous devices (IoT, hospital networks, mobile fleets) that cannot all run the same model architecture.
- Highly skewed local data distributions where a single global model consistently underperforms on minority classes.
- Regulatory or compliance requirements that demand model explainability alongside privacy.
The limitations are worth noting. SHAP value computation adds overhead, especially as the number of features or model complexity grows. The clustering step introduces a hyperparameter (number of clusters) that needs tuning. The experiments are limited to image classification on relatively simple benchmarks; performance on tabular, text, or medical imaging data remains untested. And like most FL papers, the evaluation uses simulated non-IID splits rather than a real-world federated deployment.
Still, the core idea of using feature importance as a distillation signal is transferable. As FL moves from research into production in healthcare, finance, and edge computing, frameworks that can handle both hardware heterogeneity and data skew without sacrificing interpretability will become increasingly important. FedMTFI is a concrete step in that direction.