LIME (Local Interpretable Model-agnostic Explanations)
A technique that explains individual predictions of any black-box model by fitting a simple interpretable model (usually linear) locally around the prediction of interest.
Method
Perturb the input sample; obtain black-box predictions on perturbed points; weight them by proximity to the original; fit a sparse linear model on the weighted data. Coefficients of the local model serve as explanations. Supports tabular, text, and image data with appropriate perturbations.
Applications
Explaining classifier decisions in text and images, debugging models, providing user-facing explanations, regulatory contexts requiring local interpretability.
Advantages
Model-agnostic; intuitive local linear approximations; works across data types; relatively easy to implement and communicate.
Limitations
Stability of explanations can be low (different runs differ); sensitive to perturbation strategy and kernel width; local fidelity does not guarantee global understanding; can be misled by complex decision boundaries.
Alternatives
SHAP, Anchors, counterfactual explanations, integrated gradients, attention-based explanations.
Sources
Educational reference only, not professional advice.
All algorithms