Adapting Surprise Minimizing Reinforcement Learning Techniques for Transactive Control

William Arnold, Tarang Srivastava, Lucas Spangher, Utkarsha Agwan, Costas J. Spanos

Abstract

Optimizing prices for energy demand response requires a flexible controller with the ability to navigate complex environments. We propose a reinforcement learning controller with surprise minimizing modifications in its architecture. We suggest that surprise minimization can be used to improve learning speed, taking advantage of predictability in peoples' energy usage. Our architecture performs well in a simulation of energy demand response. We propose this modification to improve functionality and save in a large scale experiment.

Introduction

As the global power grid transitions from steady fossil fuel generation to volatile renewable sources like wind and solar, "demand response" becomes a critical tool for grid stability. Demand response involves incentivizing users to shift their energy consumption to match generation patterns. However, implementing this through behavioral changes—such as asking office workers to adjust their device charging habits—is notoriously difficult due to the inherent noise and complexity of human behavior.

Reinforcement Learning (RL) offers a path toward automating price-setting for these systems. Yet, standard RL agents face significant hurdles: they often learn slowly in noisy environments and their exploratory actions can lead to erratic price swings that are costly or disruptive for participants. This paper explores a novel approach: leveraging the repetitive nature of human habits to make RL controllers learn faster and behave more predictably.

Methods: Surprise Minimizing Reinforcement Learning

The researchers integrated Proximal Policy Optimization (PPO), a standard RL algorithm, with an auxiliary reward system known as SMiRL (Surprise Minimizing Reinforcement Learning).

In this framework, the agent receives a standard reward based on energy cost savings ($r_{energy}$). Crucially, it also receives an auxiliary reward ($r_{SMiRL}$) for encountering "familiar" states. The agent maintains a running distribution of visited states; states with high probability under this model yield higher SMiRL rewards. The combined objective is calculated as:

$r_{combined} = r_{energy} + \alpha r_{SMiRL}$

where $\alpha$ balances the pursuit of profit with the desire for environmental stability. The system was evaluated using OfficeLearn, an OpenAI Gym environment that simulates occupant-level building energy demand response based on real-world behavioral data.

Key Results and Performance

The inclusion of surprise minimization significantly enhanced the agent's performance. The SMiRL + PPO agent achieved optimal policy convergence in approximately 50,000 steps—nearly twice as fast as the baseline PPO agent, which required roughly 110,000 steps to reach the same level of performance.

Comparison of environment rewards and sample entropy between SMiRL+PPO and standard PPO.

Furthermore, the SMiRL agent maintained lower sample entropy throughout training. This indicates that the agent's behavior and the resulting energy usage patterns were more consistent and less chaotic during the learning phase, a vital characteristic for real-world deployment where stability is key to participant retention.

Key Insights: Stability as a Catalyst

A primary insight of this work is that seeking stability can actually accelerate learning for profitable tasks. Because human energy habits are aggregate-predictable, an agent that avoids "surprises" quickly identifies the latent patterns of its environment.

Evolution of energy consumption patterns over training steps for SMiRL+PPO vs. PPO.

The authors identified a "Goldilocks zone" for the SMiRL weight ($\alpha \approx 0.12$). While too much weight can discourage necessary exploration, the right balance allows the agent to learn "shifting" mechanics effectively. As shown in the consumption patterns, the SMiRL agent learned to concentrate energy usage just before peak pricing periods. While this created consumption spikes, they were highly consistent day-to-day, satisfying the surprise minimization objective.

Limitations and Future Directions

Despite the performance gains, the tendency of the SMiRL agent to create "synchronized peaks" just before price hikes could stress local grid infrastructure. Future refinements to the reward function are needed to encourage a more even distribution of load. Additionally, while the current implementation uses a buffer system suited for discrete states, adapting the method to continuous real-world data via clustering or semantic features is a priority. The ultimate goal is to validate these findings in large-scale experiments with actual office occupants to ensure that "surprise minimization" translates to improved human satisfaction and grid reliability.

Summary updated

BibTeX
@inproceedings{arnold2021adapting,
  author = {William Arnold and Tarang Srivastava and Lucas Spangher and Utkarsha Agwan and Costas J. Spanos},
  title = {{Adapting Surprise Minimizing Reinforcement Learning Techniques for Transactive Control}},
  booktitle = {e-Energy},
  year = {2021},
  url = {https://openreview.net/forum?id=_CPXclLM_l},
}
Figure