Manuscript Offprint

arXiv:2608.23538

Interpretable AI with Local Distillation

Erin Craig, Yiling Huang, Snigdha Panigrahi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern AI models such as tabular foundation models and gradient-boosted ensembles can outpredict classical methods, but provide little basis for reasoning about their predictions. High-stakes decisions call for models that are both accurate and interpretable as built. Local linear modeling offers a path forward: a smooth regression function is locally well approximated by a linear one, allowing a linear fit near each query point to achieve high accuracy without sacrificing transparency. The challenges lie in learning what is “local” and developing statistical tools for interpretation.

Here, we propose local distillation, in which a black-box “teacher” guides a regularized linear “student” model at each query point. The teacher (1) defines locality by upweighting training observations with similar predicted outcomes, and (2) anchors the fit with its prediction at the query point, included as a pseudo-observation whose weight is estimated from the data. For interpretation, we add a small amount of Gaussian randomization to the local objective and use refits to assess stability: selection frequencies identify reliable features at a query point, and clustering the randomized fits identifies stable subgroups across the data. Under the lasso penalty, we prove that this randomization yields feature-selection probabilities that are stable under small perturbations of the training responses. Across 17 benchmark datasets, local distillation nearly matches its AI teacher’s accuracy while producing a sparse linear model at each test point. In a high-dimensional cancer gene expression example, the framework identifies patient subgroups whose local models use different genes; this heterogeneity is invisible to a global linear model, and difficult to surface in a black-box model.

Keywords: Local regression; Interpretable AI; Distillation; Randomization; Stability; Tabular foundation models

∗^{*}Corresponding author. Email: ercr@umich.edu.

1 Introduction

Advances in artificial intelligence (AI) are rapidly changing what is predictable [1, 2]. Modern black-box models, such as foundation models and gradient-boosted ensembles, sometimes outpredict simpler classical models even in their traditional strongholds, such as small-sample tabular data [3, 4, 5, 6, 7]. Yet, acting on predictions requires more than accuracy alone: decision-makers must reason about the model's predictions. Black-box models offer little basis for such reasoning, which limits the value of their predictions for decision-making.

The standard response, when opting for a black box, is to explain its predictions post hoc. Popular tools such as LIME [8] and SHAP [9] fit per-observation attributions that quantify how much each feature contributes to a given prediction. However, because such explanations are constructed separately from the model, their fidelity to it is not guaranteed. Moreover, the attributions can be unstable, changing with choices external to the model and data, such as LIME's perturbation scheme or SHAP's reference distribution [10, 11, 12, 13].

By contrast, our work is guided by the view that transparency and reasoning should come from the predictive model itself, i.e., predictions should be interpretable as produced, rather than explained through post hoc tools [14]. To achieve this goal, we propose local distillation, a method in which a high-performing black-box “teacher” guides a local linear “student” fit at each observation or query point. Because a smooth regression function is locally well approximated by a linear function, a locally fit simple model can approach the accuracy of a flexible black box while remaining transparent at the query point. Figure 1 illustrates local distillation on the Auto MPG dataset [15], where we predict fuel economy (miles per gallon, MPG). In the test set, each car receives its own sparse linear model; together, they improve on the global lasso’s prediction squared error (PSE) by 48% while nearly matching their foundation model teacher (PSE 5.59 vs. TabPFN 5.25; global lasso 10.81). The local coefficients show that the number of cylinders predicts fuel economy among the least efficient cars but is not predictive among the most efficient, where engine displacement is more useful. A global linear model averages over this difference and assigns both a coefficient of zero. We include a high-dimensional gene expression example in Section 6 and benchmarks across 17 datasets in Section 7 and Appendix B.

Figure

Test car, ordered by increasing predicted mpg

Figure 1: Car-specific miles-per-gallon models from local distillation. Local coefficients for the Auto MPG data using local distillation with a tabular foundation model teacher, TabPFN, and a lasso student. Cars are ordered left to right by TabPFN's predicted MPG; coefficients are per standard deviation of each feature. The column on the left shows the global lasso coefficients. On a held-out test set, local distillation improves over the global lasso's PSE by 48% (global lasso regression PSE 10.81; TabPFN 5.25; local distillation 5.59).

The central question, then, is how to define “local”: which observations should inform the fit at a given query point? Classical local regression defines locality through unsupervised similarity in input space (LOESS [16]), which ignores the response variable and is known to be vulnerable to the curse of dimensionality. Recent work instead defines locality through supervised weights derived from random forests [17, 18, 19, 20]. Local distillation, as proposed in our work, takes this idea further, defining locality in a supervised and tuning-free way: the teacher plays two roles, (1) identifying which training observations are informative via similarity of its predictions, and (2) pulling the student’s prediction toward its own, with the strength of the teacher’s influence determined from the data by the cross-validated student-to-teacher loss ratio. If the teacher does not outperform the student, the method simply reverts to a global linear fit.

Using the teacher’s predicted response to define similarity collapses the p-dimensional feature space into a single interpretable axis along which the model is localized. We define locality this way for two reasons: (1) it is an axis along which the feature–outcome relationship often varies, and (2) it is an axis of scientific and clinical interest. This construction gives each local model a natural interpretation: in medicine, for example, a patient’s model describes the feature–outcome relationship among patients within a similar risk group. Moreover, when the teacher is a pretrained foundation model such as TabPFN [3], the student inherits its prior knowledge.

For decision-makers, the ultimate goal is not only accurate and interpretable prediction, but also trustworthy conclusions drawn from those predictions. Trust is closely tied to the stability of such conclusions under small perturbations of the training data, as emphasized by the PCS framework [21, 22, 23]. Motivated by this perspective, we propose a simple modification to local distillation based on external randomization, treating a conclusion as interpretable to the extent that it can be shown to be stable. The resulting randomized distillation fits produce stable local conclusions—such as identifying which features are important for its prediction at a query point—without breaking the inherent dependence among features or requiring teacher predictions to be recomputed. Our choice of the randomization scheme is supported by stability guarantees for feature selection, and it preserves fidelity to the notion of locality learned from the training data. Beyond localized conclusions, the randomized fits also reveal how the local feature–outcome relationship varies across observations: we cluster observations using their randomized local coefficients to learn subgroups that are stable rather than artifacts of any single fit.

This work contributes (1) local distillation, a predictive method that uses a black-box teacher to construct accurate, sparse local linear fits (Sections 2 and 7), and (2) a randomized stability framework for interpreting these fits, both at individual query points and in aggregate, with theoretical guarantees (Sections 4 and 5). In two case studies, the framework reveals heterogeneity in the feature–outcome relationship that a global linear model cannot express (Sections 4.3 and 6), a central but elusive goal of prediction methods, particularly in personalized medicine.

References (48)