Paper deep dive
Revisiting Gradient Staleness: Evaluating Distance Metrics for Asynchronous Federated Learning Aggregation
Patrick Wilhelm, Odej Kao
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 3/13/2026, 12:41:43 AM
Summary
This paper investigates the impact of various mathematical distance metrics on gradient staleness in Asynchronous Federated Learning (AFL). By extending the AsyncFedED framework, the authors evaluate metrics including Bregman divergence, Euclidean, Fisher, Manhattan, Cosine, KL-divergence, and Hellinger distances. Experimental results across computer vision and text prediction tasks demonstrate that Bregman divergence consistently provides superior stability and convergence performance compared to traditional Euclidean-based approaches, particularly in heterogeneous and non-IID environments.
Entities (5)
Relation Signals (3)
AsyncFedED â utilizes â Euclidean distance
confidence 99% · AsyncFedED [11] proposed a Euclidean distance-based adaptive weighting mechanism
Asynchronous Federated Learning â suffersfrom â Gradient staleness
confidence 98% · In AsyncFL, the server updates the global model upon receiving individual client updates... it introduces the problem of gradient staleness
Bregman divergence â outperforms â Euclidean distance
confidence 95% · Bregman divergence consistently yields the highest final test accuracy... Euclidean and Bregman exhibit similar convergence profiles... however, Bregman's additional flexibility... may allow it to adapt better.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:In asynchronous federated learning (FL), client devices send updates to a central server at varying times based on their computational speed, often using stale versions of the global model. This staleness can degrade the convergence and accuracy of the global model. Previous work, such as AsyncFedED, proposed an adaptive aggregation method using Euclidean distance to measure staleness. In this paper, we extend this approach by exploring alternative distance metrics to more accurately capture the effect of gradient staleness. We integrate these metrics into the aggregation process and evaluate their impact on convergence speed, model performance, and training stability under heterogeneous clients and non-IID data settings. Our results demonstrate that certain metrics lead to more robust and efficient asynchronous FL training, offering a stronger foundation for practical deployment.
Tags
Links
- Source: https://arxiv.org/abs/2603.08211v1
- Canonical: https://arxiv.org/abs/2603.08211v1
Trouble viewing inline? Open PDF directly â
Full Text
34,315 characters extracted from source content.
Expand or collapse full text
Revisiting Gradient Staleness: Evaluating Distance Metrics for Asynchronous Federated Learning Aggregation Patrick Wilhelm BIFOLD Technische Universit Ì at Berlin Berlin, Germany patrick.wilhelm@tu-berlin.de Odej Kao Technische Universit Ì at Berlin Berlin, Germany AbstractâIn asynchronous federated learning (FL), client devices send updates to a central server at varying times based on their computational speed, often using stale versions of the global model. This staleness can degrade the convergence and accuracy of the global model. Previous work, such as AsyncFedED, proposed an adaptive aggregation method using Euclidean distance to measure staleness. In this paper, we extend this approach by exploring alternative distance metrics to more accurately capture the effect of gradient staleness. We integrate these metrics into the aggregation process and evaluate their impact on convergence speed, model performance, and training stability under heterogeneous clients and non-IID data settings. Our results demonstrate that certain metrics lead to more robust and efficient asynchronous FL training, offering a stronger foundation for practical deployment. Index TermsâFederated Learning, Heterogeneous networks, Distributed Computing, Cloud Computing, Edge AI, Asyn- chronous communication I. INTRODUCTION Federated Learning (FL) has emerged as a promising paradigm for privacy-preserving, decentralized model training across distributed client devices. By enabling local model updates without sharing raw data, FL addresses key privacy and communication challenges, especially in edge computing and mobile scenarios. However, traditional synchronous FL approaches require coordinated participation from multiple clients per training round. This makes them vulnerable to system heterogeneity, client stragglers, and network latency, limiting their scalability and practicality in real-world deploy- ments. [8] To overcome these limitations, asynchronous Federated Learning (AFL) has gained increasing attention. In AFL, the server updates the global model whenever it receives a client update, allowing clients to operate independently based on their availability. While this improves efficiency and reduces idle time, it introduces a critical challenge: gradient or model staleness. Client updates are often computed on outdated versions of the global model, leading to reduced convergence speed, degraded accuracy, and training instabilityâespecially in non-IID settings. [20], [23] Several works have addressed staleness through adaptive aggregation strategies, most notably AsyncFedED [11], which uses Euclidean distance between local and global models to weight client updates. While effective, this approach assumes that a single geometric distance metric is sufficient to quantify staleness. However, model divergence is multi-faceted: updates may differ in direction (e.g., angular similarity), in statistical properties (e.g., covariance structure), or in distributional char- acteristics (e.g., under non-IID conditions). A scalar distance metric may not capture these nuances. [21], [22] In this work, we extend the current understanding of stale- ness in AFL by evaluating a broader class of distance metrics as tools to measure and respond to gradient staleness. We integrate these metrics into the aggregation process and assess their impact on model convergence, training stability, and performance in diverse asynchronous FL scenarios. Our contributions are as follows: âą We systematically analyze multiple distance metrics for quantifying gradient staleness in asynchronous FL âą We perform extensive experiments under varying degrees of system heterogeneity, demonstrating that certain dis- tance metrics yield more robust and efficient training than traditional approaches. By offering a principled and flexible way to quantify and mitigate staleness, this work moves AFL closer to practical deployment in heterogeneous, real-world environments. I. RELATED WORK Distributed Machine Learning (DML) encompasses a set of techniques designed to enable scalable and efficient training of machine learning models across multiple computational units [2]. Early approaches, such as âMapReduce for Machine Learning on Multicoreâ [3], demonstrated how computation could be parallelized across CPU cores to accelerate the training of classical algorithms like Support Vector Machines (SVMs) and neural networks. A cornerstone of distributed training is the use of Stochastic Gradient Descent (SGD) for optimizing model parameters. The basic SGD update rule is given by: arXiv:2603.08211v1 [cs.LG] 9 Mar 2026 TABLE I FINAL TEST ACCURACY (MEAN ± STD) FOR EACH STALENESS METRIC ACROSS AVAILABILITY SCENARIOS [%] Staleness MetricLowMediumHigh Bregman0.40 ± 0.020.40 ± 0.020.39 ± 0.01 Euclidean0.41 ± 0.020.43 ± 0.010.44 ± 0.01 Fisher0.34 ± 0.020.34 ± 0.010.35 ± 0.01 Manhattan0.24 ± 0.000.24 ± 0.000.25 ± 0.02 Cosine0.20 ± 0.020.27 ± 0.020.21 ± 0.03 KL-divergence0.28 ± 0.030.17 ± 0.090.25 ± 0.05 Hellinger0.24 ± 0.070.25 ± 0.070.21 ± 0.06 x t+1 = x t â η t g t (1) where x t denotes the model parameters at iteration t, η is the learning rate, and g t is the stochastic gradient computed from a data mini-batch. A natural strategy to parallelize SGD is to compute gra- dients independently across multiple workers and replace g t in Equation (1) with the average of these gradients [7]. This technique, often coupled with mini-batching, forms the foundation of data-parallel training. In shared-memory environments, asynchronous variants such as Hogwild! [5] and Buckwild! [6] have shown that lock- free updates can be effective, despite the presence of gradient staleness. These approaches leverage the sparsity of updates to mitigate interference and achieve high-throughput training. From Data Parallelism to Federated Learning A standard approach to distributed training is data parallelism, where the training dataset is partitioned among multiple nodes. Each node maintains a full replica of the model and performs local updates using its data shard. This strategy is effective in both tightly coupled environments (e.g., GPU clusters) and loosely coupled systems spanning multiple machines. Data parallelism addresses scalability bottlenecks in single-node training and is foundational to both distributed deep learning and federated learning frameworks. [4] Federated Learning (FL) extends distributed training to settings where data is inherently decentralized, such as on mobile devices or edge sensors. FL allows clients to col- laboratively train a global model without sharing raw data, thereby preserving privacy and reducing communication over- head. Synchronous protocols like FedAvg [8] aggregate client updates periodically. However, their reliance on full client participation and synchronization can lead to straggler issues and inefficiencies in real-world deployments. To overcome these limitations, Asynchronous Federated Learning (AsyncFL) has emerged as a promising paradigm [9], [10]. In AsyncFL, the server updates the global model upon receiving individual client updates, without waiting for all participants. While this improves responsiveness and uti- lization, it introduces the problem of gradient staleness, where updates are computed based on outdated global models. This staleness can lead to slower convergence and degraded model quality. To address this, several adaptive aggregation strategies have been proposed. Notably, AsyncFedED [11] proposed a Euclidean distance-based adaptive weighting mechanism that downweights stale updates based on the distance between the clientâs local model and the current global model, as well as the number of local training epochs. This approach demon- strated improved convergence in asynchronous FL setups and provided a practical method for quantifying staleness. Other related methods include temporal discounting [27], staleness-aware gradient clipping [12], and importance-aware update scheduling [13]. However, most existing work either assumes a simple scalar staleness model (e.g., timestamp lag) or relies on a fixed distance metric like Euclidean distance, which may not capture the semantic or statistical divergence between models, especially under non-IID data and heteroge- nous environments. Mathematical Distance Metrics Mathematical distance metrics are broadly categorized by their underlying geometric and statistical foundations, each offering different capabilities for capturing divergence in high- dimensional optimization problems. Euclidean geometry pro- vides the most direct measures, such as the L2 (Euclidean) and L1 (Manhattan) distances, which treat model parameters as flat vectors in metric space. While computationally efficient, such metrics may oversimplify the underlying model space, especially in settings involving statistical structure or high heterogeneity. Riemannian geometry generalizes Euclidean space by in- troducing curvature through metrics like the Fisher-Rao dis- tance, which considers the statistical manifold induced by probability distributions [17]. This is relevant when gradient updates are viewed as samples from evolving distributions, where curvature-aware measures can better represent their divergence. In information geometry, divergences such as the Kullback- Leibler (KL) divergence [14], Jensen-Shannon divergence [15], and Bregman divergences [16] quantify informational differences between probabilistic representations. These met- rics are particularly suited for measuring how âoutdatedâ an update is, in terms of the entropy or information content it carries compared to the current model. Optimal transport geometry, including the Wasserstein dis- tance and Earth Moverâs Distance (EMD), offers another per- spective by treating updates as distributions and computing the minimal cost to morph one into another [19]. These measures naturally account for structural shifts and mass displacement, which can occur in asynchronous FL when updates are delayed and clients train on non-IID data. Finally, statistical distances like the Mahalanobis distance [24], cosine similarity, or Hellinger distance incorporate vari- ance [18], directional alignment, or probabilistic overlap into the distance computation. These measures can provide more nuanced assessments of how a delayed gradient update dif- fers from the current optimization trajectory, beyond simple magnitude. In the context of asynchronous optimization, the choice of distance metric directly affects the ability to quantify and correct for staleness. Different metrics offer trade-offs between computational complexity, geometric fidelity, and statistical interpretability. As such, a principled understanding of the tax- onomy of distance measures is essential for designing robust and adaptive aggregation strategies in asynchronous federated learning systems. By integrating selected metrics from this broader mathematical landscape into asynchronous aggrega- tion schemes, we aim to enable finer-grained, geometry- aware staleness modeling. Our experiments demonstrate that these alternative metrics can significantly enhance convergence stability and robustness in heterogeneous settings. I. METHODOLOGY We investigate the impact of various mathematical distance metrics on gradient staleness modeling in asynchronous Fed- erated Learning (FL), building upon the AsyncFedED [11] framework. While AsyncFedED uses Euclidean distance to estimate the staleness of client updates, our work systemati- cally compares this with alternative metrics to explore their effect on model convergence, robustness, and performance. We modify the original AsyncFedED staleness estimator to support multiple distance metrics. Specifically, we generalize the numerator of the staleness function: Îł(i,Ï ) = D(x t ,x tâÏ ) â„â i (x tâÏ ,K)â„ 2 (2) Where D is a chosen distance function. The denominator remains the L2 -norm of the clientâs update, preserving the original intuition that larger updates indicate lower staleness. Here, x t denotes the current global model parameters at the time the server receives the client update, while x tâÏ represents the global model parameters at the time the client began its local training, Ï steps earlier. Thus, the numerator D(x t ,x tâÏ ) captures how much the global model has changed during the clientâs training period, effectively measuring the âstalenessâ of the update due to asynchrony. Each metric is integrated into the adaptive global learning rate calculation: η g,i = λ Îł(i,Ï ) + Δ (3) where: ⹠η g,i is the global learning rate applied to client iâs update, ⹠λ is a tunable scaling factor, âą Îł(i,Ï ) is the staleness of the update, ⹠Δ is a small constant to avoid division by zero. and is also used in guiding the adjustment of local training epochs per client to stabilize staleness across the network. To evaluate the impact of distance and divergence mea- sures in asynchronous federated learning (AFL), we design a controlled experimental setup where stale client updates are aggregated using different distance-aware strategies. Our goal is to understand how various metrics influence convergence, stability, and robustness under non-IID and asynchronous conditions. Metric Solution: We select six representative metrics spanning different geometric and functional categories. This selection balances computational feasibility with theoretical diversity, see Table I. Simulation Framework: We simulate asynchronous Fed- erated Learning (FL) using a customized setup based on the Flower framework [25]. The server asynchronously receives model updates from clients and performs global aggregation without waiting for all clients to finish. Each client performs local training and then waits for a randomly sampled delay before sending its model update to the server, simulating real- world heterogeneity in compute and network conditions. Data heterogeneity is modeled using the Diriclet distribution with an alpha of 0.5 [26]. Modeling Asynchrony: To emulate varying degrees of client-side latency and participation gaps, we introduce ran- dom wait functions drawn from a clipped normal distribution: delay⌠clip(N (ÎŒ,Ï 2 ), 0, max) This delay affects the staleness of each clientâs update at the time of server aggregation. Table I shows the different scanrios we are evaluating. IV. EVALUATION A. Experimental Setup To ensure transparency and reproducibility, we detail the dataset, simulation environment, and evaluation protocol used in our experiments. Computer Vision: We use the Fashion-MNIST dataset, partitioned in a non- IID manner using a Dirichlet distribution with concentration parameter α = 0.5. This setup introduces statistical hetero- geneity among clients, reflecting realistic federated learning conditions. The global model is a lightweight convolutional neural network (CNN), adapted from the PyTorch â60-Minute Blitzâ tutorial. It consists of two convolutional layers followed by max-pooling, and three fully connected layers. Text Prediction: For next character prediction we used the Shakespeare dataset and the LSTM Network introduced in [26]. In both experiments we simulate 20 clients with asyn- chronous availability profiles categorized into three types: low, TABLE I SELECTED DISTANCE/DIVERGENCE METRICS EVALUATED IN OUR STUDY MetricTypeRationale L2 DistanceEuclidean normMeasures magnitude of update deviation. L1 Manhattan DistanceEuclidean norm (L1)Measures total coordinate-wise deviation. Cosine DistanceDirectional similarityCaptures alignment/conflict in gradient directions. Bregman DivergenceInformation-theoretic (asymmetric)Measures information loss using convex functions. Hellinger DistanceProbabilistic (symmetric)Useful for comparing probability distributions. KL-DivergenceInformation-theoretic (asymmetric)Measures relative entropy Fisher Information DistanceRiemannian geometryCaptures curvature of the loss surface differences. TABLE I ASYNCHRONY SCENARIOS USED IN EXPERIMENTS ScenarioMean (ÎŒ)Std. Dev. (Ï)Max Delay (s)Description Low Asynchrony1.00.53Emulates environments with uniform devices and reliable network. Moderate Asynchrony3.01.06Represents typical real-world heterogeneity in mobile and edge devices. High Asynchrony5.02.510Simulates scenarios with frequent stragglers and inconsistent participation. medium and high availability. These profiles reflect real-world scenarios where client participation may be irregular due to energy or network constraints. We measure Top-1 accuracy over a fixed wall-clock time of 300 seconds (5 minutes), indirectly bounding the com- putational cost of each metric. This evaluation framework captures the trade-off between model performance and time- constrained execution. To ensure statistical robustness, each experimental configuration is repeated N = 10 times, and results are averaged. B. Learning Curves over Wall-Clock Time 050100150200250300 Wall-clock Time (seconds) 0 20 40 60 80 100 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'Low' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 1. Image classification using an CNN Model. Test accuracy over wall- clock time for the Low client heterogeneity scenario. 1) Computer Vision: Figures 1, 2 and 3 illustrate the progression of test accuracy over wall-clock time across three levels of client availability (Low, Medium, and High). These results are supported by Table IV, which summarizes the final 050100150200250300 Wall-clock Time (seconds) 0 20 40 60 80 100 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'Medium' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 2. Image classification using an CNN Model. Test accuracy over wall- clock time for the Medium client heterogeneity scenario. accuracy (mean ± standard deviation) achieved under each scenario for the different staleness metrics. Across all settings, Bregman divergence consistently yields the highest final test accuracy, demonstrating both early con- vergence and stable performance, regardless of the level of client asynchrony. Its robustness is particularly evident under high staleness, where other metrics degrade more severely. In the Low availability scenario (Figure 1), the final accura- cies reinforce the visual trends: Euclidean (82.86 ±1.68) and Fisher (82.22 ±1.05) closely follow Bregman, while Manhattan lags slightly behind at 75.63 (±4.93). Information-theoretic metrics such as KL-divergence (59.98 ±16.01), Cosine (50.40 ±27.69), and Hellinger (46.09 ±28.08) show significantly lower performance and higher variance, indicating sensitivity to high staleness and unstable gradient updates. In the Medium scenario (Figure 2), performance trends 050100150200250300 Wall-clock Time (seconds) 0 20 40 60 80 100 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'High' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 3. Image classification using an CNN Model. Test accuracy over wall- clock time for the High client heterogeneity scenario. are largely consistent, with Bregman maintaining its lead, and divergence-based methods continuing to underperform, especially in terms of stability. In the High availability scenario (Figure 3), the gap between the top-performing metrics narrows. Here, Fisher slightly out- performs Euclidean, corroborating the hypothesis that richer curvature-based distances become more beneficial when stale- ness effects are increased. Nevertheless, Bregman still slightly outperforms both with 82.70 (±0.78), affirming its versatility across all operating regimes. Interestingly, Euclidean and Bregman exhibit similar con- vergence profiles across all scenarios, both in the learning curves and final accuracy. This can be attributed to their shared foundation in convex optimization. Many Bregman divergences, such as the squared Euclidean distance, arise from strictly convex functions and measure similar geometric properties of the gradient space. However, Bregmanâs addi- tional flexibility, such as its asymmetric structure and curvature sensitivity, may allow it to adapt better in highly asynchronous environments, accounting for its consistent edge. On the other hand, KL-divergence and Hellinger distances perform poorly, especially under low availability, where their final accuracies fall well below 50 and show large standard deviations. These metricsâ sensitivity to small distributional changes and asymmetry likely make them less robust in the presence of stale or noisy updates. In conclusion, the evaluation clearly shows that Bregman divergence offers a compelling balance of stability, conver- gence speed, and final accuracy, making it a strong candidate for staleness-aware optimization in asynchronous federated learning. Its consistent performance across client availability regimes underscores its robustness and general applicability. 2) Text Prediction: For the next-character prediction task using an LSTM model, the behavior of the various distance metrics diverged notably over all scenarios as it can be seen in Figure 4, 5, 6. Bregman divergence consistently demon- strated the most stable convergence and achieved the highest overall accuracy across all scenarios, closely followed by the Euclidean distance. While the Euclidean metric reached comparable performance levels, its convergence was notably less stable, exhibiting intermittent drops in model accuracy throughout training. Similar instability was observed with the Cosine, Hellinger, and KL divergence metrics, particularly between 100 and 300 seconds, where their accuracy declined sharply. This suggests that these metrics struggle to robustly accommodate asynchronous updates in a federated learning context, only stabilizing around the 250-second mark. Notably, the Manhattan distance metric exhibited surprising simplicity and robustness. It was the only metric to converge within the first 50 seconds and remained stable across all scenarios. In contrast, while Bregman and Fisher distances showed continuous improvement over extended computation time, their early-stage convergence was slower. In summary, even when applied to different tasks and model architectures, Bregman divergence consistently pro- vided the most reliable and often highest-performing measure of gradient staleness, supporting more effective handling of asynchronous updates in federated learning. 050100150200250300 Wall-clock Time (seconds) 0 10 20 30 40 50 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'Low' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 4. Next Character Prediction using an LSTM Model. Test accuracy over wall-clock time for the Low client heterogeneity scenario. V. DISCUSSION Staleness-Aware Metrics in Practice. Our results demon- strate that not all distance metrics are equally effective in mit- igating gradient staleness. While Euclidean distance remains a popular choice due to its simplicity and geometric inter- pretability, Bregman divergence consistently outperformed all other metrics across all availability scenarios. Why Does Bregman Work Better? The Bregman diver- gence generalizes distance through a convex generator function Ï(x). When Ï(x) = 1 2 â„xâ„ 2 , Bregman reduces to the squared Euclidean distance: D Ï (x,y) = Ï(x)â Ï(y)ââšâÏ(y),xâ yâ©. TABLE IV FINAL TEST ACCURACY (MEAN ± STD) FOR EACH STALENESS METRIC ACROSS AVAILABILITY SCENARIOS [%] Staleness MetricLowMediumHigh Bregman82.96 ± 1.3583.57 ± 0.8582.70 ± 0.78 Euclidean82.86 ± 1.6883.01 ± 1.1081.90 ± 2.29 Fisher82.22 ± 1.0581.02 ± 1.6182.21 ± 1.04 Manhattan75.63 ± 4.9371.77 ± 5.0473.75 ± 8.41 Cosine50.40 ± 27.6965.25 ± 9.9142.65 ± 28.15 KL-divergence59.98 ± 16.0137.19 ± 16.1945.80 ± 26.85 Hellinger46.09 ± 28.0847.30 ± 21.6549.00 ± 20.01 050100150200250300 Wall-clock Time (seconds) 0 10 20 30 40 50 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'Medium' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 5. Next Character Prediction using an LSTM Model. Test accuracy over wall-clock time for the Medium client heterogeneity scenario. 050100150200250300 Wall-clock Time (seconds) 0 10 20 30 40 50 Accuracy (%) Asynchronous FL Accuracy over Time - Scenario 'High' Staleness Metric Manhatten Euclidean Cosine Fisher Bregman Kldivergence Hellinger Fig. 6. Next Character Prediction using an LSTM Model. Test accuracy over wall-clock time for the High client heterogeneity scenario. Unlike the symmetric Euclidean distance, Bregman divergence captures directional deviation, which is particularly relevant in asynchronous FL where updates may be outdated by varying degrees. This asymmetry allows it to penalize stale gradients more accurately by modeling their informational deviation from the current model trajectory. Metric Families and Performance. While geometric dis- tances such as Manhattan and Euclidean generally performed well, information-theoretic metrics like Kullback-Leibler and Hellinger divergence suffered from high variance and in- stability, likely due to their sensitivity to small parameter shifts and asymmetric distributions under non-IID data. Fisher information distance emerged as a competitive alternative, suggesting it may be particularly suited for high-staleness regimes. Computational Considerations. Although not the focus of this study, certain metrics (e.g., KL-divergence, Fisher) entail higher computational costs. Future work should quantify the trade-off between metric complexity and training gains, especially in resource-constrained edge environments. Toward Practical Deployment. From a systems perspec- tive, our findings suggest that asynchronous FL frameworks should expose staleness-handling as a modular component, allowing practitioners to select or tune divergence metrics based on deployment scenarios. Integrating efficient Bregman- based aggregation strategies could improve convergence with- out additional communication or system overhead. These observations motivate several promising directions, including dynamic metric selection, layer-wise staleness han- dling, and adaptive weighting schemes. All of which could make AFL more robust and adaptable in real-world, heteroge- neous deployments. VI. CONCLUSION In this work, we investigated the role of distance metrics in quantifying gradient staleness within asynchronous Federated Learning (AFL). While existing methods such as AsyncFedED rely on simple geometric distances like the Euclidean norm, our study demonstrates that the choice of staleness metric significantly affects convergence behavior, training stability, and final model performance. Through experiments across varying levels of client het- erogeneity and diverse tasks,including computer vision and text prediction,we find that different metrics exhibit distinct behaviors depending on the application domain. For example, Bregman divergence consistently outperforms other metrics in vision tasks, yielding higher accuracy and faster convergence, whereas certain tasks like text prediction benefit more from alternative measures. Moreover, more complex divergence- based metrics such as Kullback-Leibler and Hellinger tend to suffer from high variance and poor early performance, particularly under high staleness conditions. Our results underscore that staleness is a multifaceted phe- nomenon that cannot be adequately captured by a single scalar metric across all scenarios. Selecting appropriate distance measures tailored not only to system and data heterogeneity but also to the specific task can significantly enhance the robustness and effectiveness of asynchronous FL systems. These insights lay the groundwork for more adaptive and context-aware staleness handling mechanisms in future AFL frameworks. In particular, they open up promising avenues for meta-systems that automatically select or adapt staleness metrics based on the application domain, bringing us closer to deploying federated learning reliably in real-world, heteroge- neous environments. REFERENCES [1] F. Delebecque, C. Gomez, M. Goursat, R. Nikoukhah, S. Steer, and J.-P. Chancelier, Scilab, Inria, 1994. [Online]. Available: https://w.scilab. org/ [2] S. Messaoud, A. Bradai, S. H. R. Bukhari, P. T. A. Quang, O. Ben Ahmed, and M. Atri, âA survey on machine learning in Internet of Things: Algorithms, strategies, and applications,â Internet of Things, vol. 12, p. 100314, 2020. [Online]. Available: https://doi.org/10.1016/j.iot. 2020.100314 [3] C.-T. Chu, S. Kim, Y.-A. Lin, Y. Yu, G. Bradski, K. Olukotun, and A. Ng, âMap-Reduce for Machine Learning on Multicore,â in Advances in Neural Information Processing Systems, vol. 19, B. Sch Ì olkopf, J. Platt, and T. Hoffman, Eds. MIT Press, 2006. [Online]. [4] S. Li et al., âPytorch distributed: Experiences on accelerating data parallel training,â arXiv preprint arXiv:2006.15704, 2020. [Online]. Available: https://arxiv.org/abs/2006.15704 [5] B. Recht, C. Re, S. Wright, and F. Niu, âHogwild!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent,â in Advances in Neural Information Processing Systems, vol. 24, J. Shawe-Taylor et al., Eds. Curran Associates, Inc., 2011. [Online]. Available: [6] C. M. De Sa, C. Zhang, K. Olukotun, and C. R Ì e, âTaming the wild: A unified analysis of hogwild-style algorithms,â in Advances in Neural Information Processing Systems, vol. 28, 2015. [7] B. Chatterjee, âDistributed Machine Learning,â in Proc. 25th Int. Conf. on Distributed Computing and Networking (ICDCN â24), Chennai, India, 2024, p. 4â7. doi: 10.1145/3631461.3632516. [Online]. Available: https://doi.org/10.1145/3631461.3632516 [8] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, âCommunication-efficient learning of deep networks from decentral- ized data,â in Artificial Intelligence and Statistics, PMLR, 2017, p. 1273â1282. [9] C. Xie, S. Koyejo, and I. Gupta, âAsynchronous federated optimization,â arXiv preprint arXiv:1903.03934, 2019. [Online]. Available: https:// arxiv.org/abs/1903.03934 [10] T. Chen, X. Jin, Y. Sun, and W. Yin, âVafl: a method of vertical asynchronous federated learning,â arXiv preprint arXiv:2007.06081, 2020. [Online]. Available: https://arxiv.org/abs/2007.06081 [11] Q. Wang, Q. Yang, S. He, Z. Shi, and J. Chen, âAsyncfeded: Asyn- chronous federated learning with euclidean distance based adaptive weight aggregation,â arXiv preprint arXiv:2205.13797, 2022. [Online]. Available: https://arxiv.org/abs/2205.13797 [12] J. Wang, Q. Liu, H. Liang, G. Joshi, and H. V. Poor, âTackling the ob- jective inconsistency problem in heterogeneous federated optimization,â in Advances in Neural Information Processing Systems, vol. 33, 2020, p. 7611â7623. [13] J. Yang, Y. Zhou, W. Wen, J. Zhou, and Q. Zhang, âAsynchronous Hierarchical Federated Learning Based on Bandwidth Allocation and Client Scheduling,â Applied Sciences, vol. 13, no. 20, Art. no. 11134, 2023. doi: 10.3390/app132011134. [Online]. Available: https://w. mdpi.com/2076-3417/13/20/11134 [14] S. Kullback and R. A. Leibler, âOn Information and Sufficiency,â The Annals of Mathematical Statistics, vol. 22, no. 1, p. 79â86, 1951. [Online]. Available: http://w.jstor.org/stable/2236703 [15] J. Lin, âDivergence measures based on the Shannon entropy,â IEEE Trans. Inf. Theory, vol. 37, no. 1, p. 145â151, 1991. doi: 10.1109/18.61115. [16] L. M. Bregman, âThe relaxation method of finding the common point of convex sets and its application to the solution of problems in convex programming,â USSR Comput. Math. Math. Phys., vol. 7, no. 3, p. 200â217, 1967. doi: 10.1016/0041-5553(67)90040-7. [17] C. R. Rao, âInformation and the Accuracy Attainable in the Estimation of Statistical Parameters,â in Breakthroughs in Statistics: Foundations and Basic Theory, S. Kotz and N. L. Johnson, Eds. New York, NY: Springer, 1992, p. 235â247. doi: 10.1007/978-1-4612-0919-5 16. [18] L. Cam and G. Yang, Asymptotics in Statistics: Some Basic Concepts, Springer Series in Statistics. New York, NY: Springer, 1990. [19] C. Villani, Optimal Transport: Old and New, Grundlehren der mathe- matischen Wissenschaften, vol. 338. Berlin, Heidelberg: Springer, 2009. [20] F. Zhu, J. Hao, Z. Chen, Y. Zhao, B. Chen, and X. Tan, âSTAFL: Staleness-Tolerant Asynchronous Federated Learning on Non-iid Dataset,â Electronics, vol. 11, no. 3, p. 314, 2022. doi: 10.3390/electron- ics11030314. [Online]. Available: https://w.mdpi.com/2079-9292/11/ 3/314 [21] Y. Zhao, M. Li, L. Lai, N. Suda, D. Civin, and V. Chandra, âFederated learning with non-iid data,â arXiv preprint arXiv:1806.00582, 2018. [Online]. Available: https://arxiv.org/abs/1806.00582 [22] Z. Lu, H. Pan, Y. Dai, X. Si, and Y. Zhang, âFederated Learning With Non-IID Data: A Survey,â IEEE Internet of Things Journal, vol. 11, no. 11, p. 19188â19209, 2024. doi: 10.1109/JIOT.2024.3376548. [23] M. Chen, B. Mao, and T. Ma, âFedSA: A staleness-aware asyn- chronous Federated Learning algorithm with non-IID data,â Fu- ture Generation Computer Systems, vol. 120, p. 1â12, 2021. doi: 10.1016/j.future.2021.02.012. [24] G. Martos, A. Mu Ì noz, and J. Gonz Ì alez, âOn the Generalization of the Mahalanobis Distance,â in Progress in Pattern Recognition, Image Analysis, Computer Vision, and Applications, J. Ruiz-Shulcloper and G. Sanniti di Baja, Eds., Berlin, Heidelberg: Springer, 2013, p. 125â132. [25] D. J. Beutel et al., âFlower: A friendly federated learning research framework,â arXiv preprint arXiv:2007.14390, 2020. [Online]. Avail- able: https://arxiv.org/abs/2007.14390 [26] Q. Li, Y. Diao, Q. Chen, and B. He, âFederated learning on non-iid data silos: An experimental study,â in 2022 IEEE 38th International Conference on Data Engineering (ICDE), 2022, p. 965â978. [27] H. Wang, R. Li, C. Li, P. Zhou, Y. Li, W. Xu, and S. Guo, âGradient Scheduling With Global Momentum for Asynchronous Federated Learn- ing in Edge Environment,â IEEE Internet of Things Journal, vol. 9, no. 19, p. 18817â18828, 2022. doi: 10.1109/JIOT.2022.3162322. [28] T. Li, A. K. Sahu, M. Zaheer, M. Sanjabi, A. Talwalkar, and V. Smith, âFederated optimization in heterogeneous networks,â Proceedings of Machine learning and systems, vol. 2, p. 429â450, 2020.