Nicolas M. Cuadrado A.

ML Ph.D. Student

ML M.Sc.

Electronics Engineer

Entrepreneur

Nicolas M. Cuadrado A.

ML Ph.D. Student

ML M.Sc.

Electronics Engineer

Entrepreneur

Blog Post

Generalising battery control in net-zero buildings via personalised federated RL

30th November 2026 Research
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.

Our models: the same network type for the policy and state-value networks, with personal encodings for private features and shared layers for public ones.
Our models: the same network type for the policy and state-value networks, with personal encodings for private features and shared layers for public ones.

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.

Optimal actions and battery state of charge: mean and variance over a full year for one building.
Optimal actions and battery state of charge: mean and variance over a full year for one building.

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.

Best federated PPO policies in the five-building setup: evaluation cost (mean and one standard deviation over five seeds).
Best federated PPO policies in the five-building setup: evaluation cost (mean and one standard deviation over five seeds).
Best federated TRPO policies in the five-building setup: evaluation cost (mean and one standard deviation over five seeds).
Best federated TRPO policies in the five-building setup: evaluation cost (mean and one standard deviation over five seeds).

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.

Related Posts
Write a comment