Mitigating Gradient Divergence in Non-IID Federated Learning via Tri-Temporal Self-Adaptive Weighting

Document Type : Original Article

Authors

1 Department of Computer, Qu.C., Islamic Azad University, Quchan, Iran

2 Department of Computer Engineering – Software Engineering, Imam Reza International University, Mashhad, Iran

3 Department of Computer Engineering – Secure Computing, Imam Reza International University, Mashhad, Iran

Abstract

Statistical heterogeneity (Non-IID) in Federated Learning (FL) induces the well-documented client-drift phenomenon, where local model updates deviate from the global optimization direction. Existing approaches often misinterpret statistical fluctuations caused by heterogeneous data distributions as malicious behavior and consequently employ reactive filtering mechanisms that may suppress informative updates. This paper proposes TE-FL, a novel framework incorporating a Tri-Temporal Self-Adaptive Weighting mechanism to mitigate the adverse effects of statistical heterogeneity. The proposed aggregation strategy integrates three complementary temporal dimensions: Present (directional alignment via Cosine Similarity), Past (temporal variance compensation through Exponential Moving Average (EMA)), and Future (adaptive noise allocation guided by temporal stability and inspired by the Gaussian mechanism used in Differential Privacy). Experimental evaluation under Dirichlet-based data partitioning demonstrates that the EMA-based temporal filter effectively suppresses transient statistical fluctuations while preserving informative structural patterns in local updates. The proposed framework improves model accuracy from 87.2% to 92.1% under severe statistical heterogeneity and maintains 89.5% accuracy at the critical heterogeneity level, whereas conventional baseline methods degrade to below 81%. Although the proposed temporal consensus mechanism introduces a 31.8% runtime overhead, experimental analysis indicates that this additional computational cost represents a reasonable trade-off for achieving substantially improved convergence stability in heterogeneous federated learning environments.

Keywords

Main Subjects