Standard machine learning is designed to maximize utility—to achieve the best possible outcome in a given environment. However, as Jonathan Richens, Rory Beard, and Daniel H. Thompson argue in Counterfactual harm, an agent can maximize utility while still being "harmful."
Consider a medical AI that recommends a treatment. If the patient recovers, a standard model sees a success. But what if the patient would have recovered even faster without the treatment? Or what if the treatment caused a side effect that, while not fatal, made the patient worse off than if the doctor had done nothing at all?
To distinguish between a "bad outcome" and "harm," researchers are developing a formal framework based on Structural Causal Models (SCMs). This direction moves beyond factual observations to ask: How much worse is the world because of this specific intervention?
The Baseline Problem
The core challenge in defining harm is the "but-for" test: an action is harmful if, but for that action, the victim would be better off. However, simple counterfactuals are often insufficient. If a person is already in a state of low utility (e.g., suffering from a terminal illness), a failed treatment might result in a low-utility outcome, but did the treatment cause the harm, or was the harm inevitable?
To solve this, Sander Beckers, Hana Chockler, and Joseph Halpern introduce the concept of default utility in A Causal Analysis of Harm.
Instead of just comparing the actual outcome to one alternative, they propose a normative benchmark. Harm is defined as a deviation from a "default" state—a level of utility an agent is entitled to or can reasonably expect. This mechanism allows systems to distinguish between:
- Causing harm: Bringing an agent below the default baseline.
- Failing to benefit: Failing to raise an agent above the baseline.
- The lesser of two evils: Choosing an action that results in low utility but is still better than any other available alternative.
Why Utility Maximization Fails
It is a common misconception that an agent that maximizes total utility will naturally minimize harm. Richens et al. prove that agents blind to counterfactuals are actually guaranteed to pursue harmful policies in certain environments.
This happens because standard agents only care about the final state ($Y$). A causal agent, however, looks at the difference between the outcome of its action ($Y_{do(A)}$) and the outcome of doing nothing ($Y_{do(0)}$). In Quantifying Harm, Beckers et al. formalize this as a quantitative metric: harm is the non-negative difference between the baseline utility and the actual utility achieved.
By incorporating these counterfactual objective functions, we can design AI that adheres to the "First, do no harm" principle. Such an agent might pass up a high-reward opportunity if that reward comes at the cost of significant counterfactual harm to an individual.
Harm in Human-AI Collaboration
This framework is not just theoretical; it has immediate implications for how AI assists humans. In Controlling Counterfactual Harm in Decision Support Systems Based on Prediction Sets, Eleni Straitouri and colleagues examine AI systems that provide "prediction sets" to experts (like radiologists).
They identify a specific type of counterfactual harm: a situation where a human expert would have been correct on their own, but becomes incorrect because they were influenced or constrained by the AI’s suggestions. By using causal models, they can quantify this "loss of expertise" and use conformal risk control to ensure that the frequency of such harm stays below a user-defined threshold.
Resolving Ethical Disputes
One of the most powerful aspects of this causal approach is its ability to parameterize subjectivity. As noted in A Causal Analysis of Harm (EWAF 2023), many legal and ethical disagreements are actually disagreements about the default utility benchmark.
Is the "default" state the status quo? Is it a promised outcome? Or is it the average outcome for a population? By framing harm as a function of this baseline, Beckers and Halpern provide a mathematical language for stakeholders to debate the normative standards of a system rather than arguing over vague definitions of "badness."
This transformation of abstract ethics into concrete causal parameters is a vital step toward the regulatory oversight of autonomous systems. It moves us from asking "Is this AI good?" to "Does this AI's intervention result in a state worse than what we, as a society, have agreed is the acceptable default?"