Overview
Ditto is a simple yet powerful personalization framework for Federated Learning (FL) that simultaneously tackles the often-conflicting goals of fairness and robustness. By regularizing local models toward a global one, it achieves state-of-the-art accuracy and uniformity across diverse datasets and adversarial attack scenarios.
The Tension Between Fairness and Robustness
Federated Learning allows multiple devices to collaboratively train a model without sharing their raw data. However, real-world networks are "statistically heterogeneous"—the data on one device often looks very different from the data on another. This diversity creates a fundamental tension between two critical goals:
- Fairness: Ensuring the model performs uniformly well for all participants, not just the majority.
- Robustness: Protecting the system against malicious "poisoning" attacks where a few compromised devices try to ruin the model for everyone.
Standard fairness techniques can inadvertently make models more vulnerable to attacks by over-weighting "outlier" devices, which might actually be malicious. Conversely, robust defenses often filter out rare but legitimate data, hurting fairness for minority users. Statistical heterogeneity is the root cause of this clash.
The Ditto Framework
To resolve this tension, the researchers propose Ditto, a global-regularized multi-task learning (MTL) framework. Instead of forcing every device to use a single, identical global model $w$, Ditto learns a personalized model $v_k$ for each device $k$.
The core objective for each device is: $$\min_{v_k} h_k(v_k; w^*) := F_k(v_k) + \frac{\lambda}{2} \|v_k - w^*\|^2$$ where $w^*$ is the optimal global model and $\lambda$ is a hyperparameter that controls the trade-off.
- If $\lambda$ is small, the model is purely local.
- If $\lambda$ is large, it recovers the standard global model.
To solve this, Ditto uses an alternating solver: the server updates the global model using standard FL methods (like FedAvg), and then each device updates its personalized model locally. This modularity is a key strength—Ditto can be added as a "lightweight personalization add-on" to almost any existing FL system, inheriting its privacy and efficiency properties.
Key Insights
- Personalization as a Buffer: By allowing local models to deviate slightly from the global one, Ditto prevents a few malicious updates from corrupting the experience for benign users.
- The "Goldilocks" $\lambda$: The paper theoretically proves that for linear problems, there exists an optimal $\lambda^*$ that simultaneously minimizes both average test error and performance variance (fairness).
- Addressing Heterogeneity: The tension between fairness and robustness is a direct result of non-IID data. Personalization addresses this head-on by modeling the differences between devices rather than trying to average them away.
- Plug-and-Play Modularity: Ditto doesn't require reinventing the wheel. Practitioners can keep their existing robust aggregation or differential privacy mechanisms for the global model and simply plug in the Ditto personalization step.
Key Results
The authors evaluated Ditto using several standard FL benchmarks (Fashion MNIST, FEMNIST, CelebA, and Vehicle) under label poisoning, random updates, and model replacement attacks.
- Superior Robustness: Across all datasets and attacks, Ditto improved absolute test accuracy by an average of ~6% over the strongest robust baselines. As the fraction of malicious devices increases, Ditto successfully preserves model performance.
- Enhanced Fairness: Ditto reduced the variance of test accuracy across devices by ~10% while maintaining or improving overall accuracy compared to state-of-the-art fair FL methods like TERM.
- Mitigating Tension: While other methods are often "robust but unfair" or "fair but fragile," Ditto consistently achieves a preferred balance of high accuracy and low variance.
- Solver Efficiency: The joint optimization approach in Ditto outperformed simple local finetuning, especially under strong model replacement attacks.
Limitations and Future Work
- Attack Scope: The study primarily focuses on Byzantine robustness (arbitrary updates). Exploring backdoor attacks—where a model is trained to misbehave only on specific triggers—is a vital next step.
- Hyperparameter Tuning: While the paper provides heuristics for choosing $\lambda$, developing more automated, adaptive methods for tuning this parameter in real-time would be beneficial.
- Privacy Implications: While Ditto inherits the privacy of its global solver, the privacy implications of maintaining local personalized states (which might be more susceptible to certain white-box attacks) deserve further study.
Summary updated