Part XXI — Explainable AI & Model Interpretability · Chapter 1

The interpretability–accuracy tradeoff

Hook

Every model in this course so far has been judged by one number: how often it's right. But a model that's right 100% of the time and a model that's right 70% of the time can both be worth building — if the second one is simple enough that a person can actually say why it made each call.

Intuition
Stump (1 split): accuracy 70%, interpretability 0.50 (2 regions)

Same ten points, two models. The "simple" model is one rule — one threshold, two regions — and you could recite its entire logic in a sentence. The "complex" model has enough boundaries to get every point right, but describing why it drew each one starts to require pointing at the data itself, not stating a rule.

Formalize

For a set of decision regions, accuracy is just the fraction correctly classified. A simple, decreasing proxy for interpretability is one over the number of regions the model uses:

accuracy=correctn,interpretability=1regions\text{accuracy} = \frac{\text{correct}}{n}, \qquad \text{interpretability} = \frac{1}{\text{regions}}
  • accuracy — the fraction of the dataset the model classifies correctly.
  • correct — the number of points the model classifies correctly.
  • nn — the total number of points in the dataset.
  • interpretability — a simple, decreasing proxy for how easy the model is to state as a short list of rules.
  • regions — the number of decision regions the model carves the input space into.
  1. What the proxy stands in for

    This interpretability score is a stand-in for something real: a model built from a handful of regions is one a person can hold in their head and restate as a short list of rules.

  2. The tradeoff it makes visible

    A model built from dozens of regions — one for nearly every data point — has traded that away for the ability to fit exceptions no simple rule ever could.

Play
Stump (1 split): accuracy 70%, interpretability 0.50 (2 regions)

Step through all three models. Each added split fixes one more of the dataset's exceptions — but every fix also grows the rule. By the third model, every single point is classified correctly, at the cost of a rule with four separate regions instead of two.

Worked example

On the same 10-point dataset:

  1. Stump — 1 split, 2 regions

    Accuracy 7/10=70%7/10 = 70\%. Interpretability 1/2=0.501/2 = 0.50. It gets the three "noisy" points near x=7,8,9x=7,8,9 wrong, because a single threshold can't carve out a middle exception.

  2. Small tree — 2 splits, 3 regions

    Accuracy 9/10=90%9/10 = 90\%. Interpretability 1/30.331/3 \approx 0.33. The extra split recovers x=7,8,9x=7,8,9, but now misses the lone point at x=10x=10.

  3. Black box — 3 splits, 4 regions

    Accuracy 10/10=100%10/10 = 100\%. Interpretability 1/4=0.251/4 = 0.25. A third split finally isolates x=10x=10 too — every point correct, at the cost of the most regions of the three.

Checkpoint

Pick the model that reaches at least 90% accuracy while keeping interpretability above 0.3.

pick a model
Pick a model to try it
Summary
accuracy=correctn,interpretability=1regions\text{accuracy} = \frac{\text{correct}}{n}, \qquad \text{interpretability} = \frac{1}{\text{regions}}

Neither number here is "the loss" — there's no single objective that says which model is better, because that depends on what the model is for. A model that flags fraud for a human reviewer to double-check needs to be checkable; a model that only has to be right, with nobody ever asking why, doesn't. The rest of this part is about a different way out of that tradeoff entirely: keep the accurate, complex model, and build tools that explain its decisions after the fact instead of simplifying the model itself. The first of those tools looks at exactly which pixels a model was looking at.