Characterizing MARL for Energy Control: A Multi-KPI Benchmark on the CityLearn Environment
Organizations: InstaDeep
Abstract
The optimization of urban energy systems is crucial for the advancement of sustainable and resilient smart cities, which are becoming increasingly complex with multiple decision-making units. To address scalability and coordination concerns, Multi-Agent Reinforcement Learning (MARL) is a promising solution. This paper addresses the imperative need for comprehensive and reliable benchmarking of MARL algorithms on energy management tasks. CityLearn is used as a case study environment because it realistically simulates urban energy systems, incorporates multiple storage systems, and utilizes renewable energy sources. By doing so, our work sets a new standard for evaluation, conducting a comparative study across multiple key performance indicators (KPIs). This approach illuminates the key strengths and weaknesses of various algorithms, moving beyond traditional KPI averaging which often masks critical insights. Our experiments utilize widely accepted baselines such as Proximal Policy Optimization (PPO) and Soft Actor Critic (SAC), and encompass diverse training schemes including Decentralized Training with Decentralized Execution (DTDE) and Centralized Training with Decentralized Execution (CTDE) approaches and different neural network architectures. Our work also proposes novel KPIs that tackle real world implementation challenges such as individual building contribution and battery storage lifetime. Our findings show that DTDE consistently outperforms CTDE in both average and worst-case performance. Additionally, temporal dependency learning improved control on memory dependent KPIs such as ramping and battery usage, contributing to more sustainable battery operation. Results also reveal robustness to agent or resource removal, highlighting both the resilience and decentralizability of the learned policies.
Figures & tables
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Policy Type | Coordination | Network Type | Algorithm |
| On-policy | Centralized | Feed Forward | MAPPO |
| On-policy | Centralized | Recurrent | Rec-MAPPO |
| On-policy | Decentralized | Feed Forward | Independent PPO (IPPO) |
| On-policy | Decentralized | Recurrent | Rec IPPO |
| Off-policy | Decentralized | Feed Forward | SAC |
| Off-policy | Decentralized | Recurrent | Rec SAC |
| Hyperparameter | Values Swept |
| Update Epochs ( ) | [2, 4, 8] |
| Actor Learning rate ( ) | [1e-4, 2.5e-4, 5e-4] |
| Critic Learning rate ( ) | [1e-4, 2.5e-4, 5e-4] |
| Clipping value | [0.2, 0.1, 0.05] |
| Entropy Coefficient | [0.0, 1e-2, 1e-55] |
| Max grad norm | [0.5, 5, 10] |
| Hyperparameter | Values Swept |
| Minibatch size | [64, 128, 256, 512] |
| Learning rate ( ) | [1e-4, 2.5e-4, 5e-4] |
| Replay Buffer size | [1e6, 5e6] |
| Actor Parameter update frequency | [1, 2, 4] |
| Learner Start | [23040, 46080] |
| Actor Network Layers | [(128, 128), (256,256)] |
| Experimental setup | SAX | Rec SAX | IPPO | REC IPPO | MAPPO | REC MAPPO |
| Hyperparameters | ||||||
| Discount factor | 0.95 | 0.95 | 0.99 | 0.99 | 0.99 | 0.99 |
| Batch size | 8192 | 8192 | 8192 | 8192 | 8192 | 8192 |
| Replay buffer size | 1M | 1M | - | - | - | - |
| Minimum replay buffer size before updating | 23040 | 46080 | - | - | - | - |
| Target smoothing coefficient | 0.001 | 0.001 | - | - | - | - |
| Observation | Description |
|---|---|
| day type | Indicates the type of day (e.g., weekday, weekend, holiday), impacting building occupancy and energy consumption patterns. |
| hour | Represents the hour of the day, crucial for daily patterns in electricity consumption, solar generation, and pricing. |
| outdoor dry bulb temperature and variations | Represents outdoor temperature, informing anticipatory actions for heating or cooling systems. |
| diffuse solar irradiance and variations | Measures sunlight from the sky, excluding direct sunlight, impacting natural light and heat in a building. |
| direct solar irradiance and variations | Represents sunlight directly from the sun’s direction, affecting solar power generation and building cooling needs. |
| carbon intensity | Indicates carbon dioxide emitted per unit of electricity consumed, guiding decisions to reduce a building’s carbon footprint. |
| KPI Name | Description |
|---|---|
| Carbon Emission (G) | Total carbon emissions resulting from imported electricity, quantifying the environmental impact of energy consumption. Lower values indicate more environmentally friendly patterns. |
| Discomfort (U) | Proportion of times when a building’s indoor temperature is outside the comfort zone. A higher value indicates more discomfort for occupants. |
| Ramping (R) | Average change in electricity consumption from one time step to another. Lower values suggest smoother transitions and fewer spikes, indicating a more stable power consumption profile. |
| Daily one minus load factor average (L) | Average measure of the ratio of daily average electricity consumption to daily peak consumption. Closer to 1 indicates more even consumption throughout the day, while closer to 0 suggests variability. |
| Daily peak average ( ) | Average of the maximum electricity consumption recorded at any time step in a day. |
| Annual Peak Average ( ) | Highest electricity consumption value recorded across all time steps in a year. |
Multi-Agent Reinforcement Learning
Multi-agent reinforcement learning studies how interacting agents learn coordinated or competitive policies through shared experience and rewards.
See all 373 papers