Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›LIME: Local Interpretable Model-agnostic Explanations
Machine learningExplainable AI

LIME: Local Interpretable Model-agnostic Explanations

Local Interpretable Model-agnostic Explanations (LIME) · Also known as: Local Surrogate Explanations, Model-Agnostic Local Explanations, Locally Faithful Approximations, Yerel Yorumlanabilir Model-Bağımsız Açıklamalar

LIME, introduced by Ribeiro, Singh, and Guestrin in 2016, explains the predictions of any black-box classifier or regressor by building a simple, locally faithful surrogate model around a single prediction of interest. Rather than explaining the global model, LIME focuses on why a specific instance was classified the way it was, making complex models such as deep neural networks and ensemble methods interpretable to end-users, domain experts, and auditors.

ScholarGate
  1. Machine learning
  2. v1
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

LIME
Counterfactual Explanati…Random ForestExplainable K-Nearest Ne…Explainable Semantic Seg…

When to use it

Use LIME when you need human-readable, instance-level explanations for any black-box model — neural networks, gradient boosting, SVMs, or opaque APIs — without modifying the model itself. It is well-suited for tabular, text, and image data. LIME assumes local linearity: the black-box behaves approximately linearly near the instance of interest. It is less reliable when the decision boundary is highly non-linear even locally, when the feature space is very high-dimensional, or when the perturbed samples are out-of-distribution. For global explanations consider SHAP; for contrastive reasoning consider counterfactual explanations.

Strengths & limitations

Strengths
  • Model-agnostic: works with any classifier or regressor that can produce predictions, requiring only query access to the black box.
  • Instance-level granularity: produces tailored explanations for each prediction rather than summarising global model behaviour.
  • Human-interpretable output: sparse linear models with few features are readable by non-technical stakeholders and domain experts.
  • Supports multiple data modalities: tabular features, raw text (word toggles), and images (superpixel masks) within a single unified framework.
Limitations
  • Local fidelity only: explanations are valid near the explained instance and may not reflect the model's behaviour elsewhere in the feature space.
  • Instability: small changes to the instance or the random seed for neighbourhood sampling can produce noticeably different explanations, reducing reliability.
  • Kernel sensitivity: the choice of kernel width sigma substantially affects which neighbourhood samples are emphasised, yet there is no universally principled selection criterion.
  • Out-of-distribution samples: perturbed neighbours may lie in regions the original model was never trained on, potentially producing misleading fidelity estimates.

Frequently asked

How is LIME different from SHAP?

Both methods explain individual predictions of black-box models, but they differ in foundation and consistency. SHAP computes Shapley values from cooperative game theory, guaranteeing properties such as local accuracy and consistency across all features. LIME fits a locally weighted surrogate and its explanations can vary with random sampling. SHAP is generally more stable and theoretically grounded; LIME is faster and more flexible across data modalities.

How many perturbed samples are needed for a reliable LIME explanation?

The original LIME implementation defaults to 5 000 perturbed samples per explanation, which is usually sufficient for tabular and text tasks. Highly non-linear decision boundaries or very high-dimensional feature spaces may require more samples to achieve stable coefficient estimates. In practice, users should check explanation stability by re-running LIME with different seeds and increasing sample count if coefficients vary substantially between runs.

Can LIME explain regression models as well as classifiers?

Yes. LIME is model-agnostic and works for any function that maps an input to a scalar or probability output. For regression, the black-box output is the continuous predicted value, and LIME fits a locally weighted linear surrogate to approximate that output near the instance of interest. The resulting coefficients indicate which features most strongly influence the predicted magnitude in the local neighbourhood.

Sources

  1. Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). "Why should I trust you?": Explaining the predictions of any classifier. ACM SIGKDD, 1135–1144. DOI: 10.1145/2939672.2939778 ↗

How to cite this page

ScholarGate. (2026, June 2). Local Interpretable Model-agnostic Explanations (LIME). ScholarGate. https://scholargate.app/en/machine-learning/lime

Related methods

Counterfactual ExplanationsRandom Forest

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Counterfactual ExplanationsMachine learning↔ compare
  • Random ForestMachine learning↔ compare
Compare side by side →

Referenced by

Counterfactual ExplanationsExplainable K-Nearest NeighborsExplainable Semantic Segmentation

Similar methods

Explainable Support Vector MachineExplainable Image ClassificationExplainable Sentiment AnalysisExplainable Multilayer PerceptronSHAPCounterfactual ExplanationsExplainable XGBoostExplainable K-Nearest Neighbors

Related reference concepts

Supervised LearningSupport Vector Machines and Kernel MethodsHyperparameter OptimizationBias-Variance and OverfittingRegression and Function ApproximationSupport Vector Classification

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — LIME (Local Interpretable Model-agnostic Explanations (LIME)). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/lime · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Marco Ribeiro, Sameer Singh & Carlos Guestrin
Year
2016
Type
post-hoc local explanation
Subfamily
Explainable AI
Scope
instance-level (local)
Model Agnostic
Yes
Related methods
Counterfactual ExplanationsRandom Forest
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account