While clients may join federated learning to improve performance on data they rarely observe locally, they often remain self-interested, expecting the global model to perform well on their own data. This motivates an objective that ensures all clients achieve a similar loss gap -the difference in performance between the global model and the best model they could train using only their local data-. To this end, we propose EAGLE, a novel federated learning algorithm that explicitly regularizes the global model to minimize disparities in loss gaps across clients. Our approach is particularly effective in heterogeneous settings, where the optimal local models of the clients may be misaligned. Unlike existing methods that encourage loss parity, potentially degrading performance for many clients, EAGLE targets fairness in relative improvements. We provide theoretical convergence guarantees for EAGLE under non-convex loss functions, and characterize how its iterates perform relative to the standard federated learning objective using a novel heterogeneity measure. Empirically, we demonstrate that EAGLE reduces the disparity in loss gaps among clients by prioritizing those furthest from their local optimal loss, while maintaining competitive utility in both convex and non-convex cases compared to strong baselines.
Figures & tables
Figure 1: In this example, we use the AFL algorithm to enforce loss parity between the two clients, and our approach, EAGLE , to enforce loss gap parity. Enforcing loss parity favors client1 , which has noisier data and a more complex prediction task, resulting in poorer performance for client0 . In contrast, optimizing for loss gap parity handles this imbalance more effectively.
Figure 2: EMNIST data: min{Lk∗}k∈[10] (red) and max{Lk∗}k∈[10] (blue) for a heterogeneous data split ( α=0.1 ) and a homogeneous split ( α=2000 ) using a linear model. As expected, the range of optimal local losses is larger for non-iid data.
Figure 3: Local losses and local gaps for EAGLE( λ=2.0 ), q-FFL ( q=5.0 ) and AFL. The optimal local loss of client0 is nearly 0 by design and thus only its loss gap is visible in the plot. By balancing the losses across clients, q-FFL and AFL prioritize learning a good classifier for clients 1 and 2, which harms the performance of client0 . In contrast, by balancing the loss gaps across clients, EAGLE allows all clients to benefit equally from federated learning.
Figure 4: The distribution of loss gaps for the 10 clients for a heterogeneous split ( α=0.5) with CNN model. We notice that in the case of high non-iid data, EAGLE reduces the gap of the worst performing client in terms of loss and achieves less variance then other baselines.
Algorithm
α=0.1
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
0.152 ( ± 0.207)
-0.477 ( ± 0.155)
0.687 ( ± 0.003)
0.037 ( ± 0.026)
FedAvg
0.106 ( ± 0.170)
-0.459 ( ± 0.211)
0.692 ( ± 0.004)
0.033 ( ± 0.021)
q-FFL q=1.0
0.104 ( ± 0.178)
-0.464 ( ± 0.193)
0.692 ( ± 0.002)
0.032 ( ± 0.021)
q-FFL q=3.0
0.109 ( ± 0.186)
-0.471 ( ± 0.178)
0.691 ( ± 0.004)
0.032 ( ± 0.022)
q-FFL q=5.0
0.118 ( ± 0.189)
-0.471 ( ± 0.169)
0.689 ( ± 0.004)
0.033 ( ± 0.023)
Table 1: Performance of different algorithms on EMNIST with a highly heterogeneous split ( α=0.1 ) and a linear model. EAGLE achieves the best performance for the worst-performing client in terms of loss gaps, while maintaining accuracy comparable to the other baselines.
Algorithm
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-0.016 ± 0.013
-0.822 ± 0.017
0.882 ± 0.003
0.083 ± 0.000
FedAvg
-0.083 ± 0.004
-0.877 ± 0.046
0.889 ± 0.007
0.081 ± 0.010
q-FFL q=1.0
-0.084 ± 0.004
-0.886 ± 0.022
0.889 ± 0.001
0.084 ± 0.003
q-FFL q=3.0
-0.062 ± 0.013
-0.883 ± 0.020
0.883 ± 0.005
0.088 ± 0.006
q-FFL q=5.0
-0.070 ± 0.003
-0.876 ± 0.018
0.879 ± 0.006
0.083 ± 0.005
EAGLE λ=0.1
-0.095 ± 0.003
-0.944 ± 0.018
0.897 ± 0.001
0.093 ± 0.005
Table 2: Performance of different algorithms on DirtyMNIST with a CNN model. EAGLE achieves the best performance for the worst-performing client in terms of loss gaps, while slightly improving accuracy comparable to the other baselines. Note that all approaches generally achieve good accuracy because clients with ambiguous examples provide gradients that are also useful for the clean data.
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Notation
Description
λ
Regularization parameter to be controlled by the user
θ
An arbitrary model in the space
t
counter of synchronization rounds
τ
counter of local steps
θk(t,τ)
Local model inside each client k , after t syncs and τ local steps.
θˉ(t,τ)
K1∑k=1Kθk(t,τ)
Appendix
Table 3: Table of notations and their descriptions
Figure 5: Synthetic data distributions of the three clients. Rotating data resulted in client1 and client2 sharing the same optimal separator which is different than the one for client0 . This difference resuls in conflicting gradient directions between local optimizers for different clients.
Figure 6: Training behavior on the synthetic dataset. AFL and q-FFL increase the training loss of client0 to match that of client2 , but fail to balance the losses of client1 and client2 , which share the same optimal model despite differing in data separability.
Algorithm
α=0.1
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
0.152 ( ± 0.207)
-0.477 ( ± 0.155)
0.687 ( ± 0.003)
0.037 ( ± 0.026)
FedAvg
0.106 ( ± 0.170)
-0.459 ( ± 0.211)
0.692 ( ± 0.004)
0.033 ( ± 0.021)
q-FFL q=1.0
0.104 ( ± 0.178)
-0.464 ( ± 0.193)
0.692 ( ± 0.005)
0.032 ( ± 0.021)
q-FFL q=3.0
0.109 ( ± 0.186)
-0.471 ( ± 0.178)
0.691 ( ± 0.004)
0.032 ( ± 0.022)
q-FFL q=5.0
0.118 ( ± 0.189)
-0.471 ( ± 0.169)
0.689 ( ± 0.004)
0.033 ( ± 0.023)
Appendix
Table 4: Maximum, minimum and variance of loss gaps and accuracy different baselines with a linear model reported on the test split for a heterogeneous split dir(α=0.1) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=0.5
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-0.949 ( ± 0.106)
-1.710 ( ± 0.054)
0.686 ( ± 0.004)
0.053 ( ± 0.012)
FedAvg
-0.961 ( ± 0.094)
-1.715 ( ± 0.044)
0.691 ( ± 0.004)
0.053 ( ± 0.014)
q-FFL q=1
-0.963 ( ± 0.096)
-1.717 ( ± 0.048)
0.690 ( ± 0.004)
0.053 ( ± 0.013)
q-FFL q=3
-0.965 ( ± 0.097)
-1.720 ( ± 0.051)
0.690 ( ± 0.004)
0.053 ( ± 0.013)
q-FFL q=5.0
-0.965 ( ± 0.098)
-1.723 ( ± 0.051)
0.690 ( ± 0.003)
0.053 ( ± 0.012)
Appendix
Table 5: Maximum, minimum and variance of loss gaps and accuracy different baselines with a linear model reported on the test split for a less heterogeneous split dir(α=0.5) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=1.0
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-1.495 ( ± 0.141)
-2.011 ( ± 0.067)
0.688 ( ± 0.002)
0.028 ( ± 0.016)
FedAvg
-1.503 ( ± 0.132)
-2.015 ( ± 0.074)
0.693 ( ± 0.002)
0.028 ( ± 0.018)
q-FFL q=1
-1.505 ( ± 0.134)
-2.015 ( ± 0.072)
0.693 ( ± 0.002)
0.028 ( ± 0.017)
q-FFL q=3
-1.507 ( ± 0.135)
-2.016 ( ± 0.071)
0.692 ( ± 0.002)
0.028 ( ± 0.017)
q-FFL q=5.0
-1.508 ( ± 0.136)
-2.017 ( ± 0.070)
0.692 ( ± 0.002)
0.028 ( ± 0.017)
Appendix
Table 6: Maximum, minimum and variance of loss gaps and accuracy different baselines with a linear model reported on the test split for a moderately heterogeneous split dir(α=1.0) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=2000.0
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-2.075 ( ± 0.126)
-2.571 ( ± 0.087)
0.692 ( ± 0.001)
0.017 ( ± 0.010)
FedAvg
-2.076 ( ± 0.126)
-2.570 ( ± 0.087)
0.693 ( ± 0.002)
0.017 ( ± 0.010)
q-FFL q=1.0
-2.072 ( ± 0.126)
-2.565 ( ± 0.087)
0.692 ( ± 0.002)
0.017 ( ± 0.010)
q-FFL q=3.0
-2.072 ( ± 0.126)
-2.566 ( ± 0.086)
0.692 ( ± 0.002)
0.017 ( ± 0.010)
q-FFL q=5.0
-2.072 ( ± 0.126)
-2.566 ( ± 0.086)
0.692 ( ± 0.001)
0.017 ( ± 0.010)
Appendix
Table 7: Maximum, minimum and variance of loss gaps and accuracy different baselines with a linear model reported on the test split for homogeneous split dir(α=2000.0) (IID data) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=0.1
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
0.144 ( ± 0.096)
-0.497 ( ± 0.159)
0.843 ( ± 0.001)
0.036 ( ± 0.018)
FedAvg
0.294 ( ± 0.196)
-0.512 ( ± 0.131)
0.844 ( ± 0.005)
0.047 ( ± 0.020)
q-FFL q=1.0
0.097 ( ± 0.067)
-0.473 ( ± 0.120)
0.835 ( ± 0.003)
0.028 ( ± 0.013)
q-FFL q=3.0
0.244 ( ± 0.089)
-0.330 ( ± 0.147)
0.800 ( ± 0.009)
0.030 ( ± 0.015)
q-FFL q=5.0
0.386 ( ± 0.089)
-0.201 ( ± 0.159)
0.765 ( ± 0.011)
0.032 ( ± 0.017)
Appendix
Table 8: Maximum, minimum and variance of loss gaps and accuracy different baselines with a CNN model reported on the test split for a heterogeneous split dir(α=0.1) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=0.5
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-0.416 ( ± 0.132)
-1.480 ( ± 0.674)
0.841 ( ± 0.004)
0.110 ( ± 0.137)
FedAvg
-0.409 ( ± 0.130)
-1.477 ( ± 0.675)
0.840 ( ± 0.003)
0.112 ( ± 0.140)
q-FFL q=1.0
-0.534 ( ± 0.111)
-1.558 ( ± 0.670)
0.843 ( ± 0.002)
0.109 ( ± 0.141)
q-FFL q=3.0
-0.476 ( ± 0.115)
-1.524 ( ± 0.681)
0.833 ( ± 0.002)
0.114 ( ± 0.145)
q-FFL q=5.0
-0.416 ( ± 0.108)
-1.470 ( ± 0.679)
0.820 ( ± 0.005)
0.115 ( ± 0.144)
Appendix
Table 9: Maximum, minimum and variance of loss gaps and accuracy different baselines with a CNN model reported on the test split for a less heterogeneous split dir(α=0.5) with EMNIST dataset, results are aggregated over four independent repetitions.
Algorithm
α=1
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-0.726 ( ± 0.078)
-1.367 ( ± 0.082)
0.845 ( ± 0.003)
0.038 ( ± 0.012)
FedAvg
-0.742 ( ± 0.052)
-1.400 ( ± 0.065)
0.843 ( ± 0.003)
0.039 ( ± 0.014)
q-FFL q=1.0
-0.760 ( ± 0.077)
-1.431 ( ± 0.096)
0.846 ( ± 0.004)
0.041 ( ± 0.016)
q-FFL q=3.0
-0.764 ( ± 0.079)
-1.437 ( ± 0.100)
0.842 ( ± 0.003)
0.042 ( ± 0.018)
q-FFL q=5.0
-0.745 ( ± 0.081)
-1.432 ( ± 0.102)
0.839 ( ± 0.004)
0.043 ( ± 0.018)
Appendix
Table 10: Maximum, minimum and variance of loss gaps and accuracy different baselines with CNN model reported on the test split for a moderately heterogeneous split dir(α=1.0) with EMNIST dataset, results are aggregated over four independent repetitions
Algorithm
α=2000
k∈[K]maxrk(θ)↓
k∈[K]minrk(θ)↓
accuracy ↑
Vk∈[K]rk(θ)↓
AFL
-1.140 ( ± 0.063)
-1.591 ( ± 0.060)
0.845 ( ± 0.002)
0.015 ( ± 0.002)
FedAvg
-1.140 ( ± 0.063)
-1.591 ( ± 0.060)
0.845 ( ± 0.002)
0.015 ( ± 0.002)
q-FFL q=1.0
-1.170 ( ± 0.053)
-1.615 ( ± 0.053)
0.849 ( ± 0.002)
0.015 ( ± 0.001)
q-FFL q=3.0
-1.180 ( ± 0.062)
-1.605 ( ± 0.069)
0.845 ( ± 0.004)
0.014 ( ± 0.002)
q-FFL q=5.0
-1.193 ( ± 0.040)
-1.618 ( ± 0.054)
0.846 ( ± 0.003)
0.014 ( ± 0.002)
Appendix
Table 11: Maximum, minimum and variance of loss gaps and accuracy different baselines with a CNN model reported on the test split for homogeneous split dir(α=2000.0) (IID data) with EMNIST dataset, results are aggregated over four independent repetitions.
Division of Information Science and Engineering, School of Electrical Engineering and Computer Science (EECS), KTH Royal Institute of Technology, 11428 Stockholm, Sweden