Abstract
Reinforcement learning (RL) is a powerful tool for optimal control that has found great success in building optimization. However, RL agents often overfit to their training environment and fail to generalize to new settings, such as extreme weather. Unsupervised environment design (UED) aims to solve this by training agents in specially selected environments. We present ActivePLR, a novel UED algorithm that uses uncertainty-aware neural network architectures to generate training environments at the limit of the agent's ability. ActivePLR prioritizes performance in a desired base environment while ensuring robustness to extreme conditions. We demonstrate that ActivePLR outperforms state-of-the-art UED algorithms in minimizing energy usage while maximizing occupant comfort in building control settings.
Introduction
Heating, Ventilation, and Air Conditioning (HVAC) systems are responsible for nearly one-third of global building energy consumption. While Reinforcement Learning (RL) offers a path toward optimizing these systems for efficiency and comfort, standard RL agents are notoriously "brittle." They typically train on historical average weather data, leading to poor performance when faced with the "Sim2Real" gap or the increasing frequency of extreme weather events like heatwaves.
The core challenge lies in Unsupervised Environment Design (UED): creating a curriculum of training scenarios that are challenging yet realistic. Existing UED methods often prioritize broad generalization, which can dilute performance in the specific "base" environment where the building operates most of the time.
The ActivePLR Framework
ActivePLR builds upon the Prioritized Level Replay (PLR) framework by introducing a proactive method for environment selection based on agent uncertainty.
The framework operates through three key mechanisms:
- Uncertainty Estimation: The agent utilizes Monte Carlo Dropout to estimate its own predictive variance. High variance indicates regions of the state space where the agent is uncertain.
- Gradient-Based Design: Unlike methods that sample environments randomly, ActivePLR treats environment parameters (e.g., temperature, humidity) as differentiable. It uses gradient ascent to find parameters that maximize the agent's uncertainty, effectively asking: "What realistic weather pattern am I most confused by?"
- Constrained Optimization: To ensure physical realism, the system applies hard bounds and a "soft constraint" (the $\phi_0$-neighborhood). This prevents the generation of impossible weather while keeping the scenarios relevant to the target climate.
Challenging environments are stored in a Replay Buffer and revisited based on the agent's value loss, ensuring long-term robustness without forgetting earlier lessons.
Experimental Setup
The researchers evaluated ActivePLR using Sinergym, a wrapper for the EnergyPlus building simulation engine.
- Base Environment: A simulated 5-zone single-story building in an Arizona-like climate.
- Robustness Benchmarks: A dataset of 120 Typical Meteorological Year (TMY) weather patterns from across the US, plus five handcrafted extreme scenarios (e.g., hot droughts, cold snaps).
- Sim2Real Simulation: To model the gap between simulation and reality, agents were trained at a 1-hour resolution but evaluated at a higher 15-minute resolution.
Results and Discussion
ActivePLR demonstrated significant improvements over vanilla RL, Rule-Based Controllers (RBC), and standard UED methods like Domain Randomization (DR).
Key findings include:
- Performance Gains: ActivePLR achieved a 9% higher reward than vanilla RL in base conditions and a 24% improvement over traditional RBCs.
- Enhanced Comfort: The algorithm resulted in a 15% relative decrease in thermal comfort violations across all test environments compared to the best baseline.
- Resilience to Fidelity Jumps: When moving from low-fidelity training to high-fidelity evaluation, ActivePLR's performance dropped by only 3.1%, whereas vanilla RL saw an 8.5% degradation.
- Efficiency of Targeted Training: Domain Randomization performed poorly because it wasted training time on unrealistic environments. In contrast, ActivePLR's uncertainty-driven approach focused on the "frontier" of the agent's knowledge.
Conclusion
ActivePLR addresses the brittleness of RL in building control by actively seeking out and training on the most informative environmental scenarios. By using uncertainty as a compass, it bridges the gap between average-case performance and extreme-case robustness. Future work will explore handling categorical variables, such as different building materials or HVAC configurations, to further broaden the applicability of this robust control framework.
Summary updated