Choosing an explainability technique for a black-box model comes down to three questions: do you need to explain one prediction or the whole model, what kind of data are you working with, and how much computation can you afford? For most projects, the answer lands on one of three model-agnostic methods. LIME delivers fast, local explanations of individual predictions. SHAP offers mathematically grounded feature attribution that works both locally and globally, at a higher computational price. Permutation Feature Importance gives a straightforward global view of which features matter, with no per-instance explanations at all.
These methods share one defining property: they treat the model as a function that maps inputs to outputs, without needing to inspect its internal architecture, as practitioner guides to explainable AI emphasize. That is what makes them portable across algorithms. This guide compares the three techniques across interpretability scope, core mechanism, typical application, and computational cost, then walks through the decision points that should drive your selection.
LIME: Local Explanations for Any Model
Local Interpretable Model-Agnostic Explanations rests on a simple insight: while a complex model's global behavior may be incomprehensible, its local behavior around any specific prediction can be approximated by a simple, interpretable model. LIME fits a local linear model around the prediction you want to explain, and the coefficients of that surrogate tell you which features pushed the output in which direction.
The scope is strictly local. A perspective piece comparing SHAP and LIME, published on arXiv, notes that LIME generates one plot per instance, while SHAP produces several plots reporting outcomes both locally and globally. That per-instance character is LIME's strength and its limitation: it is ideal when a stakeholder asks "why did the model make this prediction?" but poorly suited to summarizing overall model behavior.
Its speed is a genuine advantage. The same comparison finds LIME much faster than SHAP, especially with tree-based models, with computational complexity on the order of O(NLD), where N is the number of perturbations, L the features, and D the dimensions. The trade-off is fidelity: because LIME fits a local linear model, it can fail to capture non-linear associations, whereas SHAP may detect them depending on the underlying model.
In practice, LIME has been used to assess prediction reliability in high-stakes settings. A systematic review of model-agnostic XAI in finance, authored by Farhina Sardar Khan and colleagues and published in Artificial Intelligence Review, cites work by Çelik et al. (2023) that used LIME to assess prediction reliability and prevent erroneous decision-making in stock market forecasting on the KOSPI dataset. That pattern—spot-checking individual predictions before acting on them—is where LIME fits best.
