Towards Heterogeneity-Aware and Energy-Efficient Topology Optimization for Decentralized Federated Learning in Edge Environment

Yuze Liu, Tiehua Zhang, Zhishu Shen, Libing Wu, Shiping Chen, Jiong Jin

Introduction

Federated Learning (FL) has emerged as a vital technique for training machine learning models across distributed devices while maintaining data privacy. However, traditional centralized FL architectures often suffer from communication bottlenecks at the central server. Decentralized Federated Learning (DFL) addresses this by enabling peer-to-peer communication between edge servers. Despite its potential, DFL faces significant challenges in real-world edge environments, primarily due to system heterogeneity (varying computational and energy constraints) and data heterogeneity (non-IID data distributions).

This paper presents Hat-DFed (Heterogeneity-aware and cost-effective decentralized federated learning), a framework designed to optimize network topology and aggregation strategies to balance model accuracy with energy efficiency.

Problem Statement: The Topology Challenge

The efficiency of DFL is heavily dependent on the underlying communication topology—the map of which devices talk to which. Optimizing this topology is a complex task because it must account for the diverse energy budgets of edge devices and the varying quality of their local data. The authors prove that finding the optimal topology is NP-hard, specifically identifying it as a variation of the Zero-One Knapsack problem. Consequently, simple greedy approaches often fail to find a sustainable balance between learning progress and resource consumption.

The Hat-DFed Framework

Hat-DFed addresses these challenges through a two-phased approach:

1. Utility-based Topology Construction (UTC)

To navigate the NP-hard complexity of topology selection, Hat-DFed reformulates the problem as a Multi-Armed Adversarial Bandit (MAB) problem.

  • Utility Metric: The framework defines a utility score for potential communication links, considering both the expected contribution to model accuracy and the associated energy costs (transmission and computation).
  • Exploration vs. Exploitation: Using the MAB approach, the system balances "exploring" new potential links to assess their utility and "exploiting" established high-utility links. This allows the network to adapt dynamically to changing edge conditions.
  • Unbiased Estimation: Since the true utility of a link is only known post-interaction, Hat-DFed utilizes historical data to generate unbiased estimates for future link selection rounds.

2. Decentralized Collaborative Model Update (DCMU)

Once the topology is established for a training round, Hat-DFed manages the model aggregation process using Importance-aware Model Aggregation (IMA).

  • Handling Non-IID Data: In scenarios where data is not identically distributed, simple averaging of model weights can lead to divergence.
  • Weighted Aggregation: Under IMA, each device evaluates a neighbor's model on a small local validation set. Models that demonstrate lower loss (higher relevance to the local task) are assigned higher weights during aggregation, ensuring that "low-quality" or irrelevant updates do not degrade the local model.

Experimental Evaluation

The authors evaluated Hat-DFed using the Fashion-MNIST and CIFAR-10 datasets. To simulate realistic edge conditions, they employed a Dirichlet distribution to create non-IID data splits and modeled two distinct hardware profiles: "Type A" (energy-efficient but computationally limited) and "Type B" (powerful but energy-intensive).

Key Findings

  • Performance Gains: Hat-DFed achieved an average 1.9% increase in test accuracy compared to baselines like D-PSGD and DAC, particularly in highly skewed non-IID scenarios.
  • Energy Efficiency: The framework reduced total energy consumption by 36.7%, demonstrating the effectiveness of the utility-based link selection.
  • The Sparsity Sweet Spot: Analysis revealed that a fully connected network is not necessary. Optimal performance was achieved at approximately 30% connectivity (parameter $\gamma$), beyond which energy costs increased without significant accuracy gains.
  • Robustness: The system remained stable under conditions of intermittent connectivity ("churn") and scaled effectively from 5 to 50 edge servers.

Conclusion and Future Directions

Hat-DFed provides a robust solution for decentralized learning at the edge by intelligently managing the trade-off between communication costs and model performance. While the framework shows significant promise, the authors note that future research should explore its performance with larger architectures, such as Transformers, and investigate more dynamic hardware profiles where energy availability fluctuates in real-time.

Summary updated

Abstract

Federated learning (FL) has emerged as a promising paradigm within edge computing (EC) systems, enabling numerous edge devices to collaboratively train artificial intelligence (AI) models while maintaining data privacy. To overcome the communication bottlenecks associated with centralized parameter servers, decentralized federated learning (DFL), which leverages peer-to-peer (P2P) communication, has been extensively explored in the research community. Although researchers design a variety of DFL approaches to ensure model convergence, its iterative learning process inevitably incurs considerable cost along with the growth of model complexity and the number of participants. These costs are largely influenced by the dynamic changes in topology in each training round, particularly its sparsity and connectivity conditions. Furthermore, the inherent resources heterogeneity in the edge environments affects energy efficiency of the learning process, while data heterogeneity degrades model performance. These factors pose significant challenges to the design of an effective DFL framework for EC systems. To this end, we propose Hat-DFed, a heterogeneity-aware and cost-effective decentralized federated learning framework. In Hat-DFed, the topology construction is formulated as a dual optimization problem, which is then proven to be NP-hard, with the goal of maximizing model performance while minimizing cumulative energy consumption in complex edge environments. To solve this problem, we design a two-phase algorithm that dynamically constructs optimal communication topologies while unbiasedly estimating their impact on both model performance and energy cost. Additionally, the algorithm incorporates an importance-aware model aggregation mechanism to mitigate performance degradation caused by data heterogeneity. Extensive experiments demonstrate that Hat-DFed outperforms state-of-the-art baselines, achieving an average 1.8% improvement in test accuracy while reducing total energy cost by 36.9% throughout the learning process.
BibTeX
@article{liu2026towards,
  author = {Yuze Liu and Tiehua Zhang and Zhishu Shen and Libing Wu and Shiping Chen and Jiong Jin},
  title = {{Towards Heterogeneity-Aware and Energy-Efficient Topology Optimization for Decentralized Federated Learning in Edge Environment}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2026},
  doi = {10.1109/tmc.2025.3647496},
}
Figure