Adapting Surprise Minimizing Reinforcement Learning Techniques for Transactive Control

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

TL;DR

Researchers from UC Berkeley have adapted "Surprise Minimizing Reinforcement Learning" (SMiRL) to improve energy demand response in office buildings. By incentivizing a controller to seek out predictable states, the team achieved nearly 2x faster learning and significantly more stable energy usage patterns compared to standard reinforcement learning methods.

What Problem Does This Paper Address?

As the power grid shifts from steady fossil fuels to volatile renewables like wind and solar, "demand response"—incentivizing users to shift their energy load to match generation—becomes critical. However, implementing this through behavioral changes (e.g., asking office workers to charge laptops at specific times) is difficult.

Reinforcement Learning (RL) is often used to automate price-setting for these systems, but it faces two major hurdles:

  1. Complexity and Noise: Human behavior is "noisy" and complex, making it hard for standard RL agents to find optimal pricing strategies quickly.
  2. Cost of Failure: In real-world deployments, "exploratory" price swings from an RL agent can be expensive or annoying for participants, leading to high dropout rates in studies.

The authors sought a way to make RL controllers learn faster and behave more predictably by leveraging the fact that human energy habits are inherently repetitive.

Methods

The authors combined a standard RL algorithm, Proximal Policy Optimization (PPO), with an auxiliary reward system called SMiRL (Surprise Minimizing Reinforcement Learning).

  • The Baseline: A standard PPO agent that receives rewards based solely on how much money it saves the building manager ($r_{energy}$).
  • The SMiRL Modification: The agent maintains a running distribution of the states it has visited. It receives an auxiliary reward ($r_{SMiRL}$) for encountering "familiar" states—those with high probability under its current model.
  • The Combined Objective: The total reward is calculated as:
    $r_{combined} = r_{energy} + \alpha r_{SMiRL}$
    (where $\alpha$ is a weight that balances the desire for profit vs. the desire for stability).

The system was tested in a simulated OpenAI Gym environment where the agent sets hourly prices and simulated office workers adjust their energy consumption in response.

Datasets

The study utilized OfficeLearn, an OpenAI Gym environment specifically designed to simulate occupant-level building energy demand response. This environment models how office workers react to price signals based on real-world behavioral data from the "Social Game" collaboration at SinBerBEST.

Key Insights and Ideas

  • Stability as a Catalyst for Learning: Counter-intuitively, telling an agent to "avoid surprises" actually helps it learn the "profitable" task faster. Because human habits are predictable on aggregate, seeking stability helps the agent quickly grasp the latent patterns of the environment.
  • The Exploration-Stability Tradeoff: The authors found a "Goldilocks zone" for the SMiRL weight ($\alpha \approx 0.12$). If the weight is too high ($\ge 0.25$), the agent becomes "afraid" to explore and settles for a safe but suboptimal strategy.
  • Predictable Peaks: The SMiRL agent learned to rely on "shifting" mechanics. It pushed energy consumption tightly against the "shoulder" of peak pricing periods. While this created consumption spikes, they were highly consistent from day to day, which the SMiRL reward favored.

Key Results

  • 2x Faster Convergence: The SMiRL + PPO agent reached an optimal policy in approximately 50,000 steps, whereas the baseline PPO agent required roughly 110,000 steps to reach the same level of performance.
  • Lower Sample Entropy: The SMiRL agent maintained significantly lower entropy throughout training. This translates to more consistent and less "chaotic" energy usage patterns during the learning phase.
  • Superior Final Stability: Even after convergence, the SMiRL agent's policy resulted in a more stable environment, which is crucial for maintaining participant engagement in real-world demand response programs.

Limitations and Future Work

  • Unintended Externalities: The agent achieved stability by creating large energy peaks just before price hikes. In a real-world grid, these "synchronized peaks" could cause local transformer stress. The authors suggest the reward function needs further refinement to encourage spreading the load more evenly.
  • Continuous State Spaces: The current implementation uses a buffer system that works best for discrete states. The authors propose using clustering or semantic feature searches to adapt this to more complex, continuous real-world data.
  • Real-world Testing: The next step is moving from the OfficeLearn simulation to a large-scale experiment with actual office workers to see if the "surprise minimization" translates to higher human satisfaction.

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},
}

Loading related content...

Figure