Generalising battery control in net-zero buildings via personalised federated RL
ICML 2025 CO-BUILD Workshop (workshop paper)
N. M. Cuadrado A., S. Horváth, M. Takáč
Rooftop solar and other on-site renewables cause fast power swings that can create shortages at the building level. Building energy management systems smooth them out by pairing local storage with predictive control, and model-free reinforcement learning (RL) can learn such control policies directly from data. Buildings, however, rarely want to share that data.
We studied battery control in building microgrids with a collaborative, privacy-preserving setup: PPO and TRPO combined with federated averaging (FedAvg) and split-learning personalisation, where each building keeps a private encoding of its own features.

A microgrid where we know the right answer
We used a stripped-down version of the CityLearn environment with synthetic data, designed to be net-zero. The optimal policy is simple: store part of the solar energy until the battery is full, then supply the evening load entirely from the battery. Knowing the optimum lets us measure exactly how far each method is from it.

PPO versus TRPO
Federated TRPO performed on par with a tuned federated PPO. PPO was sometimes better, but it stalled close to the optimum, and that last gap means extra cost and emissions over time. TRPO converged reliably without any hyperparameter tuning, although as a second-order method it depends on the quality of its first trajectories.


Next, we plan to benchmark against model-predictive control and more RL baselines, design new toy microgrids with different storage sizes, demand shapes, and renewable mixes, and scale from five to dozens of buildings to test privacy, communication cost, and convergence in larger federations.