Accountability of AI Under the Law: The Role of Explanation

Finale Doshi-Velez, Mason Kortz, Ryan Budish, Chris Bavitz, Sam Gershman, David O'Brien, Stuart Schieber, James Waldo, David Weinberger, Alexandra WoodarXiv 2017

Abstract

The ubiquity of systems using artificial intelligence (AI) has brought increasing attention to how those systems should be regulated. The choice of how to regulate AI systems will require care. AI systems have the potential to synthesize large amounts of data, allowing for greater levels of personalization and precision than ever before—applications range from clinical decision support to autonomous driving and predictive policing. That said, there exist legitimate concerns about the intentional and unintentional negative consequences of AI systems. There are many ways to hold AI systems accountable. In this work, we focus on one: explanation. Questions about a legal right to explanation from AI systems was recently debated in the EU General Data Protection Regulation, and thus thinking carefully about when and how explanation from AI systems might improve accountability is timely. In this work, we review contexts in which explanation is currently required under the law, and then list the technical considerations that must be considered if we desired AI systems that could provide kinds of explanations that are currently required of humans.

Introduction: The Accountability Gap

As AI transitions from low-stakes applications, like face-focusing cameras, to safety-critical domains such as clinical decision support and predictive policing, a significant accountability gap has emerged. Critics often characterize AI as an "indecipherable black box," suggesting that because we cannot trace every signal through every neuron of a deep learning model, the technology is inherently beyond the reach of traditional regulation.

This paper challenges that notion by asking a fundamental question: When does the law actually require an explanation from a human, and can an AI provide a functionally equivalent one? By mapping legal requirements to technical properties, we can move past the "all-or-nothing" transparency debate and find a pragmatic path for AI regulation that mirrors existing societal norms.

The "Human Standard" for Explanation

A central insight of this work is that the legal system does not require humans to explain the biological firing of their neurons to justify a decision. Instead, judges, administrative agencies, and credit reporting firms are required to provide a set of reasons—a functional explanation.

Through a survey of legal systems in the U.S., U.K., France, and Germany, we identify three primary factors that trigger the need for an explanation in society:

  1. High Impact: The decision significantly affects the lives of others.
  2. Error Correction: There is a possibility that providing an explanation will allow for the correction of a mistake.
  3. Suspicion of Error: There is a specific reason to suspect that the decision-making process was flawed or biased.

AI should be held to this same "functional" standard rather than an impossible standard of total internal transparency.

Translating Law into Technical Requirements

To bridge the gap between legal theory and machine learning, we translate the concept of a "legally-operative explanation" into two specific technical properties:

1. Local Explanation

Most legal needs are satisfied by explaining why a particular decision was made (e.g., "Why was my loan denied?") rather than explaining the entire global model. Local boundaries are mathematically easier to characterize than the entire complex logic of a high-dimensional model. By focusing on the specific factors and weights that led to a single output, we can provide clarity without needing to simplify the entire system.

2. Counterfactual Faithfulness

A robust explanation must be able to answer "what if" questions. For example: "Would the loan have been approved if the applicant's income were $5,000 higher?" If the explanation system can reliably predict how changes in input would change the output, it is considered "faithful" to the underlying model.

An Architectural Framework for Explainable AI

We propose a framework where the Explanation System is a distinct entity from the Proprietary Model. In this architecture, the explanation system provides human-interpretable rules that are locally faithful to the complex model.

This separation offers several advantages:

  • Protection of Trade Secrets: Companies can provide accountability by revealing which factors were determinative for a specific case without exposing their entire "secret sauce" or proprietary source code.
  • Regulatory Flexibility: Regulators can demand different levels of faithfulness depending on the stakes. For instance, a high-stakes medical AI might be required to provide a faithful explanation 99% of the time, whereas a recommendation engine might have a lower threshold.

Challenges and Limitations

While technically feasible for most modern AI architectures, several hurdles remain:

  • The Semantic Gap: AI often operates on high-dimensional data like pixels or sensor logs, while humans think in concepts like "race" or "income." Bridging this gap requires training systems on human-interpretable concepts in advance.
  • The Proxy Problem: AI is adept at finding proxies for protected categories (e.g., using zip codes as a proxy for race). Detecting this requires measuring protected terms, which ironically necessitates access to sensitive data that regulators may wish to protect.
  • Engineering Costs: Requiring explanations adds a significant engineering burden. This could potentially disadvantage smaller companies or incentivize the use of simpler, but less accurate, models.
  • Ex Ante vs. Ex Post: Unlike humans, who can often generate explanations after the fact based on experience, AI systems must be designed ex ante to store the necessary data to reconstruct and explain a decision later.

Conclusion

Providing legally-operative explanations for AI is not only a regulatory necessity but a technical possibility. By aligning AI requirements with the existing "human standard" of explanation, we can ensure that these systems remain accountable to the law without stifling innovation or requiring the disclosure of proprietary internals. The path forward involves designing systems that are not just accurate, but are built from the ground up to communicate their reasoning in human-interpretable terms.

Summary updated

BibTeX
@misc{doshivelez2017accountability,
  author = {Finale Doshi-Velez and Mason Kortz and Ryan Budish and Chris Bavitz and Sam Gershman and David O'Brien and Stuart Schieber and James Waldo and David Weinberger and Alexandra Wood},
  title = {{Accountability of AI Under the Law: The Role of Explanation}},
  year = {2017},
  eprint = {1711.01134},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.01134},
}
Figure