Counterfactual Baselines for Side Effect Minimization

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 118 papers37 conceptsfrozen 2026-10-04

When a reinforcement learning agent is given a goal—like "move the vase to the table"—it often finds the most efficient path involves collateral damage, such as knocking over a lamp or scuffing the floor. These are negative side effects: changes to the environment that are irrelevant to the primary reward but harmful to the designer's broader interests.

The challenge is that we cannot simply reward "not changing anything." In a dynamic world, the environment changes on its own. If a robot stands still while a fire spreads, it hasn't "preserved" the state, even though it didn't move. To solve this, researchers have converged on a core mechanism: counterfactual baselines. To measure its impact, an agent must compare the world it created against a hypothetical world where it acted differently or did nothing at all.

The Problem of the Static Baseline

The simplest way to measure impact is to compare the current state to the starting state. However, as Laurent Orseau, Shane Legg, and colleagues point out in Measuring and avoiding side effects using relative reachability, this leads to interference. If an agent is penalized for any deviation from the initial state, it will actively try to stop natural environmental processes. For example, it might prevent a human from eating lunch because the "lunch-eaten" state is different from the "initial" state.

To avoid becoming a "meddler," the agent needs a baseline that accounts for time. Danilo Naiff notes in Low impact agency: review and discussion that defining this baseline involves a fundamental trade-off. If we compare the agent's actions to a world where it never existed, we isolate its total influence. If we compare it to a world where it simply stops acting now, we isolate its marginal influence.

Stepwise Inaction and Marginal Impact

A more robust approach is the stepwise inaction baseline. Instead of looking back at the beginning of time, the agent looks back exactly one step. It asks: "What would the world look like in the next moment if I took a 'no-op' (null) action right now?"

In Penalizing Side Effects using Stepwise Relative Reachability, Victoria Krakovna and her co-authors argue that this marginal counterfactual prevents the agent from being penalized for external changes it cannot control. It also prevents the "offsetting" behavior where an agent tries to undo its own previous beneficial actions just to return the environment to a previous state.

However, defining a "null action" is non-trivial. In a complex robot, is "doing nothing" cutting the power to the motors (letting the arm fall) or maintaining the current position? Benedict Wilkins and Kostas Stathis explore this in Disentangling Reafferent Effects by Doing Nothing, suggesting that agents can learn to isolate their own causal influence by subtracting the predicted outcome of this "null-action" from the actual outcome.

From State Changes to Option Preservation

Even with a good baseline, penalizing any change is too restrictive. We want the agent to be able to clean the floor (a change) but not break the vase (a side effect).

Alexander Matt Turner, Dylan Hadfield-Menell, and Prasad Tadepalli introduced Attainable Utility Preservation (AUP) in Conservative Agency to address this. Instead of penalizing changes to the state itself, AUP penalizes changes in the agent's ability to achieve a wide range of random auxiliary goals.

The intuition is that if you break a vase, you've made it impossible to "fill the vase with water" or "move the vase to the kitchen." By keeping its "options open" relative to an inaction baseline, the agent naturally avoids irreversible side effects. This shift from state-minimization to reachability-preservation allows for more flexible, "considerate" behavior, as explored by Parand A. Alamdari and colleagues in Be Considerate: Objectives, Side Effects, and Deciding How to Act.

Causal Blame and Controlled Effects

Beyond safety, these counterfactual baselines provide a powerful tool for learning. If an agent can distinguish between "what happened because of me" and "what happened anyway," it can focus its learning on the parts of the environment it actually controls.

In Did I do that? Blame as a means to identify controlled effects in reinforcement learning, Raul Vicente and Oriol Corcoll use a "blame" mechanism. By comparing actual transitions to a "normal" counterfactual (the most frequent outcome across all actions), the agent identifies its controlled effects. This causal disentanglement allows agents to ignore background noise—like a flickering light or a moving enemy—and focus on the specific transformations they cause, leading to more efficient exploration in sparse-reward environments.

Summary of the Intuition

The research direction across these papers suggests that safe and efficient agency requires a "shadow" world. By constantly simulating a counterfactual baseline—usually a version of "doing nothing"—the agent gains two critical abilities:

  1. Safety: It can penalize itself for making the counterfactual world and the real world diverge in irreversible ways (side effects).
  2. Agency: It can identify which changes in the environment are its "fault" (blame), allowing it to ignore environmental noise and master complex skills.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_counterfactual_baselines_for_side_effect_05365cb5,
  title = {Counterfactual Baselines for Side Effect Minimization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/counterfactual-baselines-for-side-effect-minimization/rdr_05365cb5d14c42ab9af2d362045e070b},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-06},
}

This exact version (version 1, frozen text):

@misc{lacuna_counterfactual_baselines_for_side_effect_05365cb5_v1,
  title = {Counterfactual Baselines for Side Effect Minimization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/counterfactual-baselines-for-side-effect-minimization/rdr_05365cb5d14c42ab9af2d362045e070b/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-06},
}