Reinforcement Learning (RL) agents are notoriously literal. If you reward a robot for cleaning a room, it might throw out your expensive vase because that is the fastest way to make the floor "clean." This illustrates the reward misspecification problem: it is easy to define what an agent should do, but nearly impossible to exhaustively list everything it shouldn't do.
Existing solutions often rely on hand-coded constraints or simple state-distance penalties (like $L_1$ distance). However, these fail in complex or dynamic environments. In a world that changes on its own, simply "doing nothing" doesn't preserve the state. Furthermore, some changes (like moving a chair) are easily reversible and shouldn't be penalized as heavily as irreversible actions (like breaking a window).
This paper scales Attainable Utility Preservation (AUP)—a method for preventing AI agents from causing unintended side effects—from toy gridworlds to complex, stochastic environments. By penalizing an agent for changing its ability to achieve even a single randomly generated goal, the authors demonstrate that they can effectively discourage harmful side effects while maintaining high performance on the primary task.
Attainable Utility Preservation (AUP)
The core idea behind AUP is that an agent should avoid actions that significantly change its ability to achieve a variety of other potential goals in the future. "Breaking things" almost always reduces an agent's future options. By trying to keep its future options open, the agent implicitly learns to avoid irreversible damage to the environment.
Instead of human-defined constraints, the agent is given a set of "auxiliary" reward functions. The agent’s primary reward is then modified by a penalty: $R_{AUP}(s, a) = R(s, a) - \text{penalty}$. This penalty is the difference between the optimal value (Q-value) of an auxiliary goal after taking an action versus taking a "no-op" (doing nothing). Unlike simple state-distance penalties, AUP specifically targets actions that lead to a loss of value that cannot be easily undone.
To move beyond toy environments, the authors utilize a Continuous Bernoulli Variational Autoencoder (CB-VAE). The agent explores randomly to collect frames, and the VAE learns a compressed representation of the environment. The output of this VAE serves as a structured, learnable auxiliary reward signal. While previous work suggested many auxiliary rewards were needed, this paper finds that in complex environments, preserving the value for just one randomly generated, VAE-based reward function is surprisingly effective.
Evaluating in the SafeLife Environment
The researchers evaluated their approach using SafeLife, a benchmark based on Conway’s Game of Life. SafeLife is significantly more challenging than standard RL gridworlds because it features billions of states and stochastic dynamics. Patterns (like "living cells") evolve over time, creating chaos that the agent must navigate. Side effects are measured by how much the agent perturbs "green cell" patterns compared to how they would have evolved naturally.
As seen in the trajectories above, a baseline agent will often plow directly through delicate patterns if it represents the shortest path to its goal. In contrast, the AUP agent learns to route around these patterns to preserve the environment's natural evolution, effectively minimizing side effects.
Key Results
AUP demonstrated highly competitive performance across multiple SafeLife tasks:
- Competitive Performance: In the
append-still-easytask, AUP achieved 98% of the reward of a standard PPO agent but with only half the side effects. - Superiority in Stochasticity: In the
append-spawntask (which includes random elements), AUP soundly beat the baseline, achieving 111% of the reward while incurring only 39% of the side effects. - Failure of Naive Baselines: Simple $L_1$ penalties (penalizing any change from the starting state) performed poorly in dynamic tasks because they couldn't distinguish between harmless movement and destructive interference.
Quantitative tracking of side effect scores during training reveals that AUP (green) consistently maintains a much lower side effect profile compared to standard PPO (orange) and Naive penalty methods (blue), proving its efficacy in complex state spaces.
Limitations and Future Work
While AUP is a powerful step forward, it has limitations. It currently requires a "no-op" action to serve as a baseline for "doing nothing," which may not exist in all environments. Additionally, training separate Q-networks for auxiliary rewards adds significant computational cost; the authors suggest off-policy learning as a future solution to train primary and auxiliary networks simultaneously. Finally, the current study assumes the agent can see the whole state, leaving AUP's performance in partially observable environments as an open challenge.
Summary updated