Amazon SageMaker Clarify: Machine Learning Bias Detection and Explainability in the Cloud

Michaela Hardt, Xiaoguang Chen, Xiaoyi Cheng, Michele Donini, Jason Gelman +16 more
9/7/2021
cs.LG

Official code: aws/amazon-sagemaker-clarify (76 stars, Python, Apache-2.0, last commit 2025-04-04).

Abstract

Understanding the predictions made by machine learning (ML) models and their potential biases remains a challenging and labor-intensive task that depends on the application, the dataset, and the specific model. We present Amazon SageMaker Clarify, an explainability feature for Amazon SageMaker that launched in December 2020, providing insights into data and ML models by identifying biases and explaining predictions.

Show full abstract

It is deeply integrated into Amazon SageMaker, a fully managed service that enables data scientists and developers to build, train, and deploy ML models at any scale. Clarify supports bias detection and feature importance computation across the ML lifecycle, during data preparation, model evaluation, and post-deployment monitoring. We outline the desiderata derived from customer input, the modular architecture, and the methodology for bias and explanation computations. Further, we describe the technical challenges encountered and the tradeoffs we had to make. For illustration, we discuss two customer use cases. We present our deployment results including qualitative customer feedback and a quantitative evaluation. Finally, we summarize lessons learned, and discuss best practices for the successful adoption of fairness and explanation tools in practice.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Fairness Aware Machine Learning. Bias detection and mitigation for datasets and models.

7641Python, ShellApr 21, 20201 years agoApache-2.0
fairnessfairness-aifairness-mlmachine-learning

Similar Papers

Cite this paper

@article{hardt2021amazon,
  title  = {Amazon SageMaker Clarify: Machine Learning Bias Detection and Explainability in the Cloud},
  author = {Michaela Hardt and Xiaoguang Chen and Xiaoyi Cheng and Michele Donini and Jason Gelman and Satish Gollaprolu and John He and Pedro Larroy and Xinyu Liu and Nick McCarthy and Ashish Rathi and Scott Rees and Ankit Siva and ErhYuan Tsai and Keerthan Vasist and Pinar Yilmaz and Muhammad Bilal Zafar and Sanjiv Das and Kevin Haas and Tyler Hill and Krishnaram Kenthapadi},
  year   = {2021},
  eprint = {2109.03285},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03285}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.03285.svg)](https://codeofpaper.com/paper/2109.03285)

Discussion