Home Knowledge Base LIME (Local Interpretable Model-Agnostic Explanations)

LIME (Local Interpretable Model-Agnostic Explanations) is the explainability method that explains individual predictions of any black-box model by training a simple, interpretable surrogate model on locally perturbed samples around the input — providing human-readable feature importance explanations for any classifier or regressor regardless of architecture.

What Is LIME?

Why LIME Matters

The LIME Procedure

Step 1 — Select Instance to Explain:

Step 2 — Perturb the Input:

Step 3 — Query the Black Box:

Step 4 — Weight by Proximity:

Step 5 — Train Surrogate Model:

Step 6 — Present Explanation:

LIME Examples

Text Spam Classification:

Medical Diagnosis (Chest X-Ray):

Credit Scoring:

LIME Limitations

LIME vs. SHAP Comparison

PropertyLIMESHAP
SpeedModerateSlow (KernelSHAP) / Fast (TreeSHAP)
StabilityLow (random sampling)Higher
Theoretical groundingHeuristicGame-theoretic axioms
CompletenessNoYes
Model-agnosticYesYes
Ease of useSimpleModerate

LIME is the practical, universal explanation tool that made black-box ML interpretability accessible — by requiring only the ability to query a model rather than model internals, LIME democratized explanation generation for any deployed ML system, making it the go-to explainability method for practitioners who need fast, readable explanations across heterogeneous model types and modalities.

limelocalsurrogate

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.