LIME — short for Local Interpretable Model-agnostic Explanations — fits a straight line near one point and hopes it's still roughly right a little further away. What if, instead of hoping, you could state a simple rule and guarantee it holds — as long as you're honest about how much of the input space it actually covers?
Toggle between a simple one-condition rule and a stricter two-condition rule. The simple rule covers more of the space, but the prediction it "guarantees" is often wrong. The stricter rule covers less, but never lies.
An anchor is a rule such that, with precision at least a chosen threshold (commonly ), every point satisfying gets the same prediction as the instance being explained:
- — the anchor: a rule (a conjunction of conditions on the input) being evaluated.
- — the fraction of points satisfying the rule that get the same prediction as the instance being explained.
- — a point in the input space being checked against the rule.
- instance — the specific input whose prediction is being explained (i.e. ).
- — the minimum precision the anchor must clear, commonly .
- — the fraction of the entire input space that satisfies the rule, regardless of prediction.
- Search for the smallest sufficient rule
Anchors search for the smallest rule that clears the precision bar — not the most precise rule possible, just the smallest one that's precise enough.
- Coverage is spent, not sacrificed
Coverage is traded away for precision only as far as actually necessary, never further — every extra condition that isn't needed to clear is left out.
The model's true positive region is a small corner of the grid, not a whole half-plane. A rule that only checks one condition sweeps in a lot of that corner's neighbors that don't actually belong — only the full conjunction traces the region exactly.
Model: predict only when and . Instance: , predicted . Grid: :
- A plausible-looking rule that isn't reliable
"" alone is satisfied by of the grid points — but the model only predicts for of them. Precision : barely better than a coin flip, nowhere near a usable guarantee.
- Adding the second condition fixes it completely
" and " is satisfied by exactly points — and the model predicts for all of them, by construction. Precision exactly.
- The cost: less of the space is covered
Coverage drops from to . The anchor is smaller and less general, but it's the smallest rule that actually clears a precision bar — the single condition never could.
None of these three rules appeared earlier. Find the one that clears the anchor algorithm's 0.95 precision requirement.
A linear local explanation always applies "everywhere," it just gets less accurate as you move away from the point — there's no line where it stops being valid. An anchor draws that line explicitly: inside the rule, the prediction is guaranteed (to within the precision threshold); outside it, the anchor makes no claim at all. That honesty about its own boundary is the entire trade this method makes. The capstone that closes this part runs every explainability method built so far against one model, side by side.