Skip to content
learn
  1. Learn
  2. Machine Learning
  3. Responsible ML

ML-M16

Responsible machine learning (responsible ML)

Responsible ML (responsible machine learning) in practice: measure fairness, explain predictions, protect training data and test robustness.

4 lessonsabout 45 min

Responsible machine learning, often shortened to responsible ML, is the practice of making sure a model treats people fairly, can explain its decisions, protects the data it learned from and keeps working when inputs are hostile or the world changes. It matters because a model that is accurate on average can still deny loans unfairly to one group, refuse to say why, leak the medical records it was trained on, or fall over when someone changes a few pixels. None of these failures show up in a single test-set score, and all of them have ended real projects.

This section covers the four parts of responsible ML, one lesson each:

  • Fairness and bias: where bias enters a system, how demographic parity and equalized odds measure it, why fairness metrics conflict, and how to mitigate at each stage.
  • Explainability: explaining a model globally and one prediction at a time with SHAP, LIME and counterfactuals, and explaining it to people who are not experts.
  • Privacy-preserving ML: how training data leaks through membership inference, and how differential privacy and federated learning protect it.
  • Robustness and adversarial examples: adversarial inputs, distribution shift and how to test for robustness before users do it for you.

Lessons

  1. ML-16.01 Fairness and bias Models can reproduce and amplify biases present in historical data. Intermediate 12 min
  2. ML-16.02 Explainability Explainability helps people trust, debug and challenge models. Intermediate 10 min
  3. ML-16.03 Privacy-preserving ML Models can leak information about training data. Advanced 12 min
  4. ML-16.04 Robustness and adversarial examples Tiny, carefully crafted changes to an input can make a model confidently wrong; these are adversarial examples. Advanced 10 min

Start with lesson 1