Counterfactual harm

Jonathan Richens, Rory Beard, Daniel H. ThompsonNeurIPS 2022

TL;DR

This paper introduces the first formal statistical definition of "harm" using causal models, enabling AI agents to reason about and avoid harmful actions. They demonstrate that standard machine learning algorithms, which rely on factual outcomes, are inherently limited in preventing harm, especially under changing conditions, and propose a new framework for harm-averse decision-making.

What Problem Does This Paper Address?

In critical domains like medicine and finance, AI systems are increasingly making high-stakes decisions. However, current AI primarily optimizes for factual outcomes (e.g., survival rates, financial gains) and lacks the ability to understand why an outcome occurred. This means they can't distinguish between a good outcome achieved safely and a good outcome achieved by risking harm. For instance, two medical treatments might have the same survival rate, but one might be inherently riskier. Human decision-making, in contrast, incorporates a nuanced understanding of harm, often prioritizing actions that achieve similar results with less risk. This paper addresses the lack of a formal, statistical method for AI to measure and incorporate this concept of harm into its decision-making processes, which is crucial for building safe and ethical AI.

Methods

The authors leverage Structural Causal Models (SCMs) to formally define harm. SCMs represent causal relationships between variables, allowing for counterfactual reasoning – understanding what would have happened under different circumstances. They introduce the Counterfactual Comparative Account (CCA) of harm, which defines harm as an event or action that makes a person worse off than they would have been had the action not been performed (or a default action taken).

To incorporate this into AI decision-making, they propose Harm-Penalized Utility (HPU). This is a counterfactual objective function that modifies the standard utility function by adding a penalty proportional to the calculated harm. This allows agents to balance expected benefits against expected harms, with a parameter ($\lambda$) controlling the degree of "harm aversion."

Datasets

Not discussed in the paper. The paper focuses on theoretical development and uses a simulated dose-response model for illustration.

Key Insights and Ideas

  • Harm is more than just bad outcomes: The paper highlights that simply looking at the final outcome isn't enough. The cause of the outcome matters, especially when considering potential harm.
  • Factual vs. Counterfactual Reasoning: Standard ML algorithms excel at factual reasoning (correlations, observed outcomes) but fail at counterfactual reasoning (what if?). This limitation makes them incapable of truly understanding and avoiding harm.
  • Distributional Shifts Expose Weaknesses: AI systems that seem safe in their training environment can become harmful when the underlying data distribution changes (e.g., a new patient population or a slightly different disease progression). Factual objectives are particularly vulnerable to this.
  • Harm Aversion is Necessary for Safety: The proposed HPU framework allows AI to be "harm averse," actively seeking to minimize harm even if it means a slight trade-off in immediate utility. This is crucial for robust safety.
  • Risk Aversion Isn't Enough: The paper demonstrates that standard risk-aversion objectives, which focus on outcome variance, can still lead to harmful policies because they don't distinguish between harm caused by the agent and external factors.

Key Results

  • The paper provides the first formal statistical definition of counterfactual harm and benefit.
  • They prove that standard machine learning algorithms optimizing factual objectives are fundamentally incapable of robustly avoiding harm, especially under distributional shifts.
  • The proposed harm-averse decision-making framework using HPU allows agents to balance harm and benefit.
  • An illustration using a dose-response model for a drug (Aripiprazole) shows that standard methods (maximizing treatment effects) can lead to unnecessarily harmful doses, while the HPU approach identifies significantly less harmful doses without sacrificing efficacy. For example, a harm-averse agent can reduce harm by 90% while only reducing treatment effect by 2%.

Limitations and Future Work

  • Assumption of Causal Sufficiency: The theoretical results often assume causal sufficiency, meaning all relevant common causes are observed. The paper mentions that bounds on harm can be determined when the SCM is unknown, but this is an area for further exploration.
  • Focus on Single Actions: The current framework is primarily demonstrated for single agents performing single actions. Extending this to multi-agent or sequential decision problems is a natural next step.
  • Learning the SCM: The current framework assumes knowledge of the SCM. Future work could focus on learning SCMs from data and integrating this learning process with harm-averse decision-making.
  • Practical Deployment: While the paper provides a theoretical framework and an illustration, applying this to real-world, complex systems will require significant engineering and validation.

Summary updated

Abstract

To act safely and ethically in the real world, agents must be able to reason about harm and avoid harmful actions. However, to date there is no statistical method for measuring harm and factoring it into algorithmic decisions. In this paper we propose the first formal definition of harm and benefit using causal models. We show that any factual definition of harm is incapable of identifying harmful actions in certain scenarios, and show that standard machine learning algorithms that cannot perform counterfactual reasoning are guaranteed to pursue harmful policies following distributional shifts. We use our definition of harm to devise a framework for harm-averse decision making using counterfactual objective functions. We demonstrate this framework on the problem of identifying optimal drug doses using a dose-response model learned from randomised control trial data. We find that the standard method of selecting doses using treatment effects results in unnecessarily harmful doses, while our counterfactual approach identifies doses that are significantly less harmful without sacrificing efficacy.
BibTeX
@inproceedings{richens2022counterfactual,
  author = {Jonathan Richens and Rory Beard and Daniel H. Thompson},
  title = {{Counterfactual harm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=zkQho-Jxky9},
}
Figure