Abstract
Federated Learning (FL) is often criticized for its high energy consumption and carbon footprint. We present FedZero, a system that achieves zero operational carbon emissions by training models exclusively on renewable excess energy and spare compute capacity. By utilizing spatio-temporal energy forecasts and a novel client selection strategy, FedZero overcomes the volatility of green resources to deliver faster, fairer, and more efficient training compared to traditional energy-agnostic approaches.
Introduction: The Carbon Challenge in Federated Learning
While Federated Learning (FL) enhances user privacy by keeping data on-device, it is inherently energy-intensive. The requirement for numerous training rounds across less efficient edge hardware leads to a significant carbon footprint. A potential solution is "carbon-aware" computing—scheduling tasks during peaks of renewable energy production. However, renewable energy is highly volatile. Sudden drops in energy (e.g., cloud cover over solar panels) can turn active clients into "stragglers," delaying global training rounds.
Moreover, prioritizing clients in "sunny" regions to minimize carbon emissions introduces statistical bias, as the resulting model may over-fit to specific geographical data. FedZero addresses this "triple challenge" of convergence speed, energy efficiency, and participation fairness by leveraging the growing surplus of curtailed renewable energy.
Methods: The FedZero Architecture
FedZero treats renewable excess energy as a strict constraint. The system architecture is built around several key components:
- Power Domains: Clients are grouped into clusters sharing a common energy source, such as a microgrid or green energy contract.
- Forecast-Based Selection: The server queries multi-step-ahead forecasts for renewable energy and spare compute capacity before each round.
- Iterative Optimization: A Mixed-Integer Program (MIP) selects the optimal client set, using a binary search to find the shortest round duration that meets participation requirements.
- Fairness Mechanism: To prevent geographical bias, a probabilistic blocklist "benches" recently active clients, forcing the scheduler to eventually select participants from less energy-rich regions.
- Local Control Loop: Within power domains, a controller dynamically manages the energy budget among clients in real-time.
Evaluation and Results
The system was evaluated using standard FL benchmarks (CIFAR-100, Tiny ImageNet, Shakespeare, and Google Speech Commands) with non-IID data distributions. Real-world solar traces from Solcast and hardware utilization data from Alibaba were used for simulation.
Key Findings
- Faster Convergence: FedZero reached target accuracy 35% faster than random selection in global scenarios and 26% faster in co-located scenarios.
- Energy Efficiency: By avoiding wasted computation from stragglers, FedZero consumed 36% less energy than baselines like Oort.
- Participation Fairness: The blocklisting mechanism ensured a balanced participation rate across regions, even when some regions had significantly more available energy.
- Scalability: The MIP-based selection process is efficient, handling up to 100,000 clients in under two minutes.
Discussion and Future Work
FedZero demonstrates that "Green AI" does not have to sacrifice performance or fairness. By treating excess energy as a hard constraint, it eliminates operational emissions. However, this approach can lead to training stalls if no excess energy is available globally. Future research may explore semi-synchronous training or hybrid energy models to maintain progress during low-production periods. Additionally, while compute energy is minimized, the energy costs of data transmission in low-bandwidth environments remain an area for further investigation.
Summary updated