Interpretable AI with Local Distillation
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
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.
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 –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.
2 Local distillation
Suppose we have training data (standardized), a continuous response , and a test point . We also have a teacher , a fitted model that predicts from . Our goal is to predict at with a sparse linear model fit locally to the training data.
We describe local distillation using squared-error loss in Section 2.1 and illustrate it with an example in Section 2.2. The method is general, and Section 2.3 covers its extension to other loss functions and forms of regularization.
2.1 Model fitting and prediction
Our work is inspired in part by knowledge distillation [24], in which a simpler “student” model is trained under the guidance of a more complex “teacher” model. The student is usually a smaller neural network, and the goal is compression: a fast, lightweight model that approximates a costly one. Applying the same principle to regression with a linear student would yield
| (1) |
where hyperparameter determines the influence of the teacher.
When is highly nonlinear, however, a single linear student cannot match a flexible teacher’s predictive performance. We therefore introduce local distillation, summarized in Algorithm 1, in which a separate student model is fit for each test observation. The teacher guides the definition of the local neighborhood around the query point and anchors the fit through its prediction at that point.
More precisely, our proposed method in Algorithm 1 modifies the standard knowledge distillation objective in (1) in three ways:
- 1.
First, we fit a separate local model for each test observation , replacing the global distillation sum with a term that pulls the student’s prediction toward the teacher’s prediction; see (4). This anchors the local fit to the teacher’s prediction at the query point.
- 2.
Second, we replace uniform training weights with similarity weights that upweight training points whose teacher prediction is close to ; see (3). These weights define locality around the query point by determining which training observations belong to its local neighborhood.
- 3.
Third, we estimate from the data as the cross-validated student-to-teacher loss ratio, rather than tuning it; see (2). We scale it further by , where is the effective sample size defined in (3). The teacher’s influence therefore grows both when the teacher outperforms the student globally (larger ) and when the local neighborhood is sparse (smaller ), where the local fit most needs anchoring.
When , the teacher offers no improvement and we instead return the global linear fit for all test observations.11 1 This choice is deliberately conservative: a teacher that offers no global improvement may still help locally, but estimating where requires localized loss ratios, which we found too variable to be reliable (see “Further localization”, Section 2.3).
In an ablation study across our benchmark datasets (Appendix C), we find that using both the similarity weights and the teacher prediction anchor yields better predictions than using either alone.
In Algorithm 1 and throughout, we write for the teacher’s prediction at training point computed without access to : if the teacher is fit to the training data, or uses it as context at prediction time (as with the in-context learning of tabular foundation models), is the out-of-fold (OOF) prediction; if the teacher makes no use of the training data, . We additionally include an unpenalized intercept, which we suppress in the notation for clarity.
Input: Training data with observations; test observation ; teacher ; elastic-net parameter .
Output: Prediction and local coefficients at .
- 1.
Estimate distillation strength as the cross-validated student-to-teacher loss ratio:
(2) where is the global elastic-net fit with shrinkage parameter chosen by cross-validation, and denotes prediction at without access to .
If , return and , and stop. - 2.
Compute similarity weights and effective sample size:
(3) where is the empirical variance of .
- 3.
Fit the local model and predict: , where
(4)
Note: For a set of test observations, run step 1 once and steps 2–3 independently (in parallel) for each .
2.1.1 The teacher as a Bayesian prior
Our approach has a natural Bayesian interpretation: the teacher’s prediction at the test observation acts as a Gaussian predictive prior on , centered at with precision . This connects to data augmentation priors [25, 26], in which prior beliefs are encoded via pseudo-observations rather than parameter distributions. These priors express beliefs about observable quantities , which are typically more interpretable than beliefs about regression coefficients, and yield posterior inference via weighted least squares on a modified dataset.
Our method differs in where the prior comes from and how it is deployed: rather than using a fixed set of elicited prior locations shared by one global fit, each test observation gets its own local model with a single pseudo-observation at the query point, centered at the teacher’s prediction. Additionally, we estimate the prior precision from the data, in the spirit of empirical Bayes. This parallels the power prior of Ibrahim and Chen [27], where historical data enters the likelihood with a tunable weight; plays the analogous role and is estimated directly from the student-to-teacher loss ratio.
2.2 A worked example of local distillation
We illustrate the three steps of Algorithm 1 using the Auto MPG data [15], a set of vehicles from the 1983 American Statistical Association Exposition with predictors after encoding, including engine characteristics, vehicle weight, model year, and region of manufacture. Our goal is to predict fuel economy in miles per gallon.
We use the lasso as our student model, and TabPFN as the teacher. Using a 60/40 train/test split, we proceed as follows:
- 1.
Estimate distillation strength. The global lasso has CV PSE ; the TabPFN teacher ; therefore, . Since , the teacher improves on the global lasso and we proceed; had , we would have returned the global fit.
- 2.
Compute similarity weights. For each test vehicle, we weight the training set by similarity of TabPFN’s predicted MPG as in (3). The effective sample sizes range from 39 to 172 (median 141) out of .
- 3.
Fit and predict. We fit a locally distilled model for every test vehicle by solving (4). This produces one model and prediction per car. On this test set, the global lasso has PSE , TabPFN , and local distillation : the student performance is close to that of its teacher. In Section 4, we visualize and interpret the models.
2.3 Computability, generalizations and further localization
Computability.
For a single test observation , Equation (4) is a weighted elastic-net problem with fixed and : append to and to , and use weights . Any solver that supports observation weights (e.g. glmnet [28] or adelie [29]) can fit it directly. Fitting many models scales naturally: is estimated once on the training set, and the local fits are then independent single- problems, parallelizable across query points.
Other forms of regularization, and nonlinearities in the student.
We have focused on the elastic-net penalty, which spans lasso through ridge, but the pseudo-observation construction above is agnostic to the penalty: any regularizer supported by the solver, such as the group or fused lasso, can be used in its place.
We have also chosen the student to be locally linear, but the feature map is a modeling choice: replacing with a basis expansion (e.g. pairwise interactions) yields a student that is linear in and fit identically, at the cost of interpreting coefficients in the expanded basis. Natural choices here are glinternet [30], which selects pairwise interactions under a strong-hierarchy constraint, or reluctant interaction modeling [31], which adds interactions only where main effects leave residual signal; either keeps the local model sparse and interpretable while capturing interaction structure.
Generalization to other losses.
We have illustrated our method with squared-error loss, but it extends to any loss convex in : the local objective of Algorithm 1 becomes
| (5) |
where is the cross-validated student-to-teacher loss ratio with in place of squared error. Taking recovers Equation (4).
For logistic regression, the distillation term is the cross-entropy between the teacher’s and student’s predicted probabilities, matching the soft-target distillation of Hinton et al. [24]; similarity distances are computed on the logit scale.
A survival response requires one change: the loss is the weighted Cox partial likelihood, and since the teacher has no natural place in its risk-set structure, it enters instead as a squared penalty on the log-relative-hazard scale.
Further localization.
For each test observation, one could select by local cross-validation and estimate from locally weighted losses. We instead reuse the global : the local loss in (4) is a weighted mean on the same scale as the cross-validation loss used to select , so the same value is a sensible default, and refitting locally is expensive and in our experiments rarely improved prediction. Local estimates of were highly variable and did not reliably improve performance either.
Teacher selection.
Cross-modal and cross-domain distillation.
The teacher enters Algorithm 1 only through its predictions: out-of-fold predictions on the training data, and the prediction at . There is therefore no requirement that it use the same features as the student. A teacher built on a richer modality (e.g. images, text, or additional clinical measurements) can be distilled into a local linear model on the features we wish to interpret; conversely, the teacher may perform best with fewer features than the student, as in our gene expression example (Section 6), where the teacher screens to genes while the student is fit over all . Nor is the teacher required to be trained on the data at hand. Most of our examples use TabPFN, a foundation model pretrained on synthetic data; a model fit to an external cohort is analogous. In either case, guards against domain shift: if the teacher does not transfer well, and the method reverts to the global fit.
3 Related work
Local linear modeling.
Local modeling methods fit a separate model for each test observation rather than a single global model. The classical example is LOESS [16], which at each test observation fits a linear or quadratic regression weighted by kernel proximity in input space. LOESS produces smooth, adaptive predictions without committing to a global functional form, and its local coefficients are interpretable. Its weighting is defined by a user-specified kernel with a bandwidth tuning parameter, and it does not use a teacher.
Closer to ours are methods that fit a local linear model with supervised weights derived from a forest. Generalized random forests [20] and local linear forests [19] use a forest’s leaf co-membership, and the attention lasso [32] similarly uses random forest proximity, then blends each local fit with a global baseline via a mixing parameter tuned by cross-validation. Local distillation instead defines locality through similarity of predicted response, which allows the use of any accurate regressor as teacher. The teacher’s influence is estimated from the cross-validated loss ratio rather than tuned, and the method reverts to the global fit when the teacher offers no improvement. Moreover, the teacher enters as a pseudo-observation within a single fit, rather than blending with a second model: each local model is then an elastic-net fit on a weighted, augmented dataset with a single active set. When the local models use lasso regularization (elastic-net ), the stability guarantees of Section 5 apply to their feature-selection probabilities.
Many recent local linear methods are designed to produce local explanations of black-box predictors; they differ in what they fit and in how the black box enters. The most widely used, LIME [8], fits to the black box: a sparse linear model at each test observation is fit to proximity-weighted perturbations of the input, with the teacher’s predictions as the response, so LIME approximates the teacher rather than the data; like SHAP [9], its explanations are sensitive to choices external to the model and data [10, 11, 12, 13]. MAPLE [33] is more flexible in its response: a random forest fit to supplies global feature selection and a proximity kernel, which together weight a local regression at each test observation. This local model can regress on either the observed labels or a black-box teacher’s predictions. As a predictor, MAPLE is closely related to local linear forests, which we include in our benchmarks as a representative of this family (Section 7).
Local distillation shares this per-test-point linear structure and fits the observed response ; the teacher defines locality and anchors the fit rather than serving as the target. It is a predictive method in its own right, and in contrast to the local methods above, it comes with stability guarantees for feature selection (Section 5).
Prediction-powered inference.
Prediction-powered inference (PPI, PPI++) [34, 35] augments classical statistical analyses with predictions from a powerful machine learning (ML) model when labeled data are scarce. Given a small labeled dataset and a large unlabeled dataset, it imputes the missing labels and builds confidence intervals for population-level estimands that account for the model’s imputation error and recover the classical estimator when the ML model adds nothing. PPI and local distillation share a philosophy: both use a powerful ML model to strengthen a simpler statistical procedure, and revert to the simpler procedure—in our case, the well-understood global linear model—when the ML model is unreliable. They differ in target and mechanism. PPI targets population-level inference and corrects for prediction error in its confidence intervals; local distillation targets pointwise prediction and guards against an unhelpful teacher through the data-driven and reversion to the global fit. The power-tuning parameter of PPI++ (chosen from data to minimize variance) mirrors the role of , though enters as the precision of a pseudo-observation rather than a mixing weight.
4 Interpretability through stability
Local distillation, as described in Algorithm 1, predicts each query point through a sparse local linear fit anchored at that point. Building on the concerns raised in Section 1, conclusions drawn from predictions may inspire little trust unless they can be shown to be stable, motivating the development of a stability-based framework for interpretation. To this end, we propose randomized local distillation, a simple modification of Step 3 in Algorithm 1. The resulting framework assesses stability by examining how the local coefficients vary under random perturbations of the local distillation optimization, while holding the query point and features fixed. The stability analysis yields interpretations of predictions at two levels, as demonstrated in this section: (i) individually, through the selected features in each sparse local model, and (ii) in aggregate, by characterizing heterogeneity across query points to identify similar and dissimilar regions of the dataset.
4.1 Randomized local distillation
Let denote a vector of independent and identically distributed randomization variables, with for . Rather than relying on a single local fit, we generate repeated randomized local fits by solving
| (6) | ||||
where denotes the coefficient vector obtained at for a given randomization draw .
Randomized local distillation modifies (4) of Algorithm 1 by introducing a linear perturbation through normally distributed noise variables, while leaving the loss and penalty terms unchanged. Thus, as with local distillation, the randomized fit naturally extends to other loss functions and regularizers. Analogous to the weighting of the summands in the loss, each randomization variable in the linear perturbation term is scaled by the square root of its corresponding weight, . Consequently, if is zero or close to zero, has no or little effect on the optimization.
The amount of randomization in each randomized local fit is controlled by , the variance of the normal randomization variables in . In practice, we set , where is the effective sample size (Equation (3)), is the variance of the teacher’s out-of-fold residuals, and is a constant chosen by the analyst. Choosing the randomization variance as a fixed fraction of ensures that the scale of the randomization is comparable to the scale of variability contributed by the data to the optimization objective. We recommend using data to guide the choice of . The sensitivity bound established in Theorem 1, from which the stability bound in Corollary 1 follows, improves as the randomization sd increases, and thus as increases. But too much randomization can reduce the predictive accuracy of the randomized fits. Therefore, we take the largest whose out-of-fold median prediction error is within a small tolerance of that from the unperturbed fits (); the tolerance reflects how much prediction accuracy the analyst is willing to trade for stability, and we use 5% throughout. Figure 2 (left) shows the selection process for the Auto MPG data.
Remark 1.
The randomization in (6) is similar in form to that used in the post-selection inference literature, where linear perturbation terms are added to penalized M-estimation problems to preserve information that can later be leveraged for valid inference in selected models. See, for example, the randomized inference methods developed in [36, 37, 38, 39, 40]. Here, however, the added randomization serves a different role: in Section 5, we prove that it provides stability guarantees for feature–selection probabilities under small perturbations of the training data.
4.2 Interpreting a single local model
At a given query point , the local model characterizes the feature–response relationship among observations with similar predicted outcomes. More specifically, a single local distillation fit yields a sparse set of features, (for ), providing an interpretation of its prediction at . But, as with the standard lasso, this selected set may be unstable: predictors near the selection boundary may enter or leave the model under even slight perturbations in the outcomes, ultimately yielding different local interpretations at .
To address this instability, we compute for each feature its empirical selection frequency across the randomized local fits
where is the number of refits of (6) and denotes the randomization used in the -th fit. That is, is the proportion of randomized local refits in which that feature is selected. In particular, a low selection frequency signals uncertainty about a feature’s contribution to the prediction at .
The table in Figure 2 shows one such model for a single test car. Alongside each coefficient we report its selection frequency, the fraction of randomized local refits retaining that feature. In this example, five of the seven selected features are retained in over 90% of refits; the least stable are cylinders and horsepower, retained in 75% and 70% respectively. Randomization flags these as uncertain.
| Feature | Coef. | Sel. prob. |
|---|---|---|
| weight | 100% | |
| model year | 100% | |
| origin: European | 99% | |
| acceleration | 99% | |
| origin: Japanese | 98% | |
| cylinders | 75% | |
| horsepower | 70% |
Here, with only features, most selections are stable across refits. This is not the case in higher dimensions: in the gene expression example of Section 6 (), the median local fit selects genes, of which typically only are retained in over of refits. In simulation (Appendix D), we find that the selection frequencies distinguish the true support while yielding a smaller, more interpretable set of features.
Using randomized refits to address the instability of lasso-selected features is not new; a prominent example is stability selection [41] based on subsampling. The randomization mechanism in our approach, however, is deliberately different from subsampling. This distinction has consequences for both the computational cost of local refitting and the interpretation of the resulting stability measures, which we discuss below.
Remark 2.
Across randomized refits of local distillation, as proposed in (6), the similarity weights and teacher predictions are computed once from the training data and then held fixed. The added randomization perturbs only the optimization objective, while keeping the design fixed and using all observations in each refit. From a computational perspective, this avoids the potentially substantial additional cost of subsampling-based refitting procedures such as stability selection. Under subsampling, Steps 1 and 2 of Algorithm 1 would need to be recomputed for each refit, as would the teacher predictions whenever they depend on the sampled training data; take, for example, predictions from tabular foundation models deploying in-context learning.
Remark 3.
The choice of randomization determines the notion of stability being assessed and, consequently, the interpretation of the resulting predictions. Beyond its computational advantages, our randomization mechanism is designed to remain faithful to the locality learned from the training data: each refit preserves the same similarity weights and the teacher prediction anchor. By contrast, under subsampling-based refits, even small changes in sample composition can potentially alter the local structure in data, especially when the effective sample size is small, i.e., when the weights are concentrated on only a few observations, or when outcomes have heterogeneous noise levels. In such settings, variation across refits may reflect changes in the local structure rather than instability in the local feature–response relationship itself, making stability a less reliable characterization of that relationship.
4.3 Interpreting the local models in aggregate
Beyond individual models, we are also interested in understanding our sample and the heterogeneity within it. A natural approach would be to fit locally distilled models on a test set with observations (or in a leave-one-out setting on the training data), and then cluster the fitted coefficient vectors into clusters. However, our goal is to identify and interpret subgroups that are stable under small perturbations of the response rather than artifacts of a single fit. We therefore aggregate the clustering obtained across the randomized refits from Section 4.1 using evidence accumulation clustering [42], allowing the same refits used to characterize local feature–response relationships to also inform stable subgroup structure in the data. We proceed as follows:
- 1.
Fit unperturbed local models: run local distillation to obtain fitted local models, with coefficient vectors in .
- 2.
Choose the number of clusters: cluster the unperturbed coefficient vectors and select the appropriate .
- 3.
- 4.
Cluster the co-occurrence matrix: define the similarity between two test observations as the fraction of the clusterings in which they fall in the same group, and use this metric for a final clustering into groups.
We illustrate this using the Auto MPG data. We (1) fit local models for the observations and (2) select the number of clusters using -means clustering of the unperturbed local coefficient vectors; the silhouette score selects . We then (3) cluster the randomized refits: for each of randomized local distillation runs, we cluster the refitted coefficient vectors using -means with . Finally, we (4) cluster the co-occurrence matrix: the similarity between two cars is the fraction of the runs in which they are assigned to the same cluster, and clustering this matrix by average linkage yields the three groups shown in Figure 3. To visualize the result, we display the unperturbed coefficients in a heatmap, either ordered by cluster, or averaged within cluster. The three clusters use different features: cylinders is predictive among the least efficient cars, and displacement among the most efficient.
5 Theoretical analysis of stability
In this section, we establish stability guarantees for feature–selection probabilities under randomized local distillation (6), whose local coefficients enable interpretation of the distilled fits both individually and in aggregate. Throughout this section, we treat the similarity weights and the regularization parameters and as fixed. To avoid confusion, we drop the hats and write these quantities as , , and , respectively; similarly we write for the effective sample size. We slightly modify our notation for the teacher’s prediction at the query point, denoting it by , to make explicit that it may depend on the training response, as is the case in tabular foundation models, for example. We focus on the lasso penalty, i.e., , while deferring an extension to the elastic-net penalty for future work to keep the theoretical development streamlined.
Our main result, Theorem 1, characterizes how the feature–selection probabilities are sensitive to changes in the input responses, leading to the uniform stability guarantee in Corollary 1 under small perturbations of the training response. To prove this result, we first establish a stability guarantee for randomized lasso regression of a perturbed response on the design matrix; see Theorem 2 in Appendix A.2. To the best of our knowledge, this is the first such guarantee for Gaussian randomization introduced through linear perturbations of the optimization objective, providing a theoretical basis for the stability-based interpretation of feature–selection probabilities under the lasso penalty.
5.1 Notation and preliminaries
Before proceeding, we introduce notation used to develop the theory.
First, let
denote the augmented response vector and design matrix, obtained by appending the teacher’s prediction and the query point to the response vector and design matrix, respectively.
Let
denote the diagonal matrix of weights for the observations in the augmented dataset, where is the weight assigned to the pseudo-response at the query point. We then define
| (7) |
to be the weight-adjusted response and design, respectively, i.e., coordinatewise, , and .
Under this notation, when and denotes the tuning parameter for the lasso penalty, the randomized local distillation problem (6) is equivalent to solving
| (8) |
where is drawn independently of the training response. The equivalent optimization problem, which follows from straightforward algebra, is used throughout this section. An advantage of this formulation is that it allows us to first establish guarantees for randomized lasso regression of a perturbed response on a design matrix. These results then yield the desired guarantees for local distillation, while also being of potential independent interest beyond the present setting.
Let denote the active set obtained by solving the randomized lasso in (8). The quantity of interest is the feature-selection probability for predictor , evaluated as a function of and denoted by
| (9) |
where the probability is over the randomization , with and hence treated as fixed, and . The subscript on the probability, here and throughout, indicates that the probability is taken only with respect to the randomization.
5.2 Stability of randomized local distillation
Because the selection probabilities in (9) are obtained by convolving the discontinuous feature–selection indicator with the Gaussian density of , they are smooth provided that the teacher’s prediction is a smooth function of the input . Lemma 1 formalizes this observation before we turn to the stability guarantee for randomized local distillation; the proof is provided in Appendix A.1.
Lemma 1 (Smoothness of feature–selection probabilities).
Fix and suppose that belongs to . Then for every , the selection probability , defined in (9), also belongs to .
We now state Theorem 1, which bounds the sensitivity of the feature–selection probabilities to perturbations of the training response , leveraging the smoothness of these probabilities established in Lemma 1. We derive this result under the following assumptions on the design matrix , the similarity weights and the weight-adjusted design matrix .
Assumption 1 (Weight-adjusted design in general position).
The columns of are in general position [43].
Assumption 2 (Bounded weight concentration).
We assume that there exists a constant such that .
Assumption 3 (Bounded design and local distillation weight).
For some constants , we assume that , and .
Assumption 4 (Non-degeneracy of restricted design).
For some constant , we assume that, uniformly over and , where denotes the collection of essential active sets from lasso regression on (i.e., active sets from the leave--covariate-out lasso fit whose corresponding selection regions have positive Lebesgue measure),
where collects the training observations whose similarity weights are at least one half of the effective uniform weight.
Under Assumption 1, the randomized local distillation problem (8) admits a unique solution. Assumption 2 prevents the similarity weights from concentrating too heavily on a small number of observations. Assumption 3 requires both the design covariates and the distillation-weight parameter to be bounded. Assumption 4 imposes a lower singular-value condition on the design restricted to the effective similarity neighborhood , preventing the relevant design columns from becoming nearly linearly dependent among observations receiving non-negligible weights.
Theorem 1 (Sensitivity bound for selection probabilities).
A proof of Theorem 1 is provided in Appendix A.1. The proof consists of two main components. First, we analyze the stability of the randomized lasso obtained by regressing a perturbed response on a -dimensional feature matrix, as detailed in Appendix A.2. Second, we apply the chain rule to characterize the additional contribution from local distillation, as detailed in Appendix A.3.
We make a few observations on the above-stated result.
- (i)
It follows directly from the bound in Theorem 1 that the contribution of each training observation to the sensitivity of a feature’s selection probability has two components: the first is a direct contribution, excluding the effect of distillation, which is of order , and the second contribution arises through the teacher’s prediction, which is of order .
- (ii)
Although we make no assumption on , which reflects how the sensitivity of the teacher’s prediction scales with the effective sample size, it may decrease as the effective sample size grows, leading to a sharper rate for the second contribution in the bound.
- (iii)
When the teacher is a fully pretrained model (i.e., the teacher’s prediction does not depend on the training samples), the bound in Theorem 1 simplifies to
since . As a further special case, for the global lasso fit without using the teacher as a Bayesian prior to shrink the linear predictor toward its predictions, and with uniform similarity weights , the same bound holds with .
Theorem 1 immediately yields the following corollary, which quantifies the stability of the feature–selection probabilities in response to a perturbation of a single response value, paralleling notions of algorithmic stability under single-observation perturbations [44].
Corollary 1 (Stability guarantee).
Under the assumptions of Theorem 1, there exists a constant such that, for every , , and for any satisfying for all (equivalently, differing only in the -th coordinate),
The proof of Corollary 1 follows directly from the sensitivity bound in Theorem 1 and is therefore omitted.
The stability bound presented in Corollary 1 improves with the randomization standard deviation . However, this does not imply that arbitrarily increasing the amount of randomization is desirable, since doing so can compromise predictive accuracy. Accordingly, as described in Section 4.1, we choose to balance stability against a user-specified tolerance for loss in predictive accuracy.
Extension to stability over a regularization-grid.
Our stability-based approach could be extended to base decisions on a grid of lasso regularization parameters , rather than on a single fixed value of . As proposed in the stability selection framework of [41], a natural quantity on which to base decisions is , where denotes the selection probability at (with the dependence on made explicit in the notation), and the maximum taken over the grid of regularization parameters. However, our proof techniques for controlling the sensitivity of this quantity to perturbations of the training input, and hence for establishing stability guarantees, may not extend directly to the maximum operation because it is not smooth.
Instead, one can consider a smooth approximation to , namely , for fixed . Like the selection probability for any fixed , this quantity also takes values in . In practice, using its empirical counterpart , one can then determine the set of selected features as , for a chosen threshold . Furthermore, the gradient of can be written as
a convex combination of the derivatives of the selection probabilities. Consequently, a fairly straightforward extension of our results to establish a uniform stability bound over the grid would yield a corresponding stability guarantee for under perturbations to a single coordinate of the input response, analogous to the bound in Corollary 1. We omit the details of this extension from the present work.
6 A high-dimensional example: predicting gene expression
Here, we turn to a breast cancer gene expression study from The Cancer Genome Atlas (TCGA) [45], distributed by Breheny and Huang [46]. Tumor samples from patients were assayed on Agilent mRNA expression microarrays, and measurements are on the log scale. Following the example in Breheny and Huang [46], we treat BRCA1 expression as the response and the remaining genes as predictors, excluding 491 genes with missing data. BRCA1 is the first gene identified whose mutations increase the risk of early onset breast cancer, and because it is likely to interact with many others, those whose expression is related to BRCA1 are candidates for further study.
We divide the data into a 60/40 train/test split, with and . The student model is lasso regression. For the teacher, we considered two candidates and chose between them using cross-validated error as described in Section 2.3: TabPFN applied to all genes, and TabPFN applied to the genes most correlated with BRCA1 expression, screened within each training fold. The screened teacher performed far better and was selected. (The global lasso did not improve when restricted to the gene subset.) Note that in this setting, the teacher and student have different feature representations, as in cross-modal distillation: the teacher uses genes while the student uses all .
On this split, the global lasso had test PSE (), TabPFN (), and local distillation (): a 22% reduction relative to the global lasso, matching (here, slightly exceeding) its teacher, while retaining transparency. Additionally, the local fits were sparser than the global lasso fit: the global fit selected genes, while the median local fit selected .22 2 The PSE improvement was robust across 100 random 60/40 train/test splits, where local distillation improved on the global lasso in 96% of runs, with a median PSE reduction of 22%. The sparsity comparison was also stable: the median local fit was sparser than the global fit on 97 of 100 splits, with a median reduction of 15% in the number of selected genes. Applying the stability screen of Section 4 ( across randomized refits) reduces this further: the local models retained a median of stably selected genes (IQR –).
We then clustered the local models using 100 randomized fits with randomization scale and clusters, with all parameters selected as described and exemplified in Section 4.3; the resulting clusters are visualized in Figure 4. The clusters reveal heterogeneity across patients: FAM107A is selected almost only in cluster one, KLF14 almost only in cluster five, both with negative coefficients, and both given a coefficient of zero by the global lasso. These are reported tumor suppressors down-regulated in cancer [47, 48]. This heterogeneity is not visible to a global linear model, and is difficult to surface in black-box models.
7 Benchmark comparisons
Here, we use common machine learning benchmark datasets to compare local distillation to (1) the student model (global lasso or ridge regression), (2) the teacher model (TabPFN or XGBoost [49]) and (3) two local linear models (LOESS and local linear forests). We evaluate on 17 regression datasets spanning sample sizes and feature counts . The datasets are from the UCI Machine Learning Repository [50] (automobile, servo, liver disorders, auto MPG, real estate valuation, infrared thermography temperature, student performance) and the OpenML-CTR23 regression benchmark [51, 52] (cars, QSAR fish toxicity, concrete compressive strength, socmob, airfoil self-noise, red wine, auction verification, space ga, abalone, white wine).
For each dataset, we generate 20 random 80/20 train/test splits. We use a complete-case design and perform one-hot encoding for categorical variables. Within each train/test split, we normalize features using the mean and standard deviation of the training set. Per-dataset sample size and feature counts are given in Appendix Table 1.
We compare methods using test , and we find that local distillation closely matches the predictive performance of its teacher across a wide range of datasets. See Figure 5 for representative examples, where local distillation is labeled as “LD (teacher, regularization)”. For teacher models, we use TabPFN and XGBoost, and student regularization comparators are lasso (L) and ridge (R). Appendix B shows complete results.
8 Discussion
Modern black-box models are presenting new opportunities for predictive modeling across domains and data types, often with performance that classical methods cannot easily match without significant feature engineering [14]. However, predictive models are only useful to the extent that decision-makers can draw trustworthy conclusions from them. We posit that well-constructed local linear models are in a “sweet spot” between interpretable modeling and modern AI: they retain the benefits of linear models (transparent, easy to understand, computationally simple) while rivaling the performance of black-box models. The statistical principle underlying this intuition is familiar: a smooth regression surface is locally well approximated by a linear model. But it is nontrivial to determine what constitutes local, how the local models should be fit, and how the resulting collection of fits should be interpreted.
Local distillation, as proposed in this work, relies on a black-box “teacher” for prediction and on randomized refits for interpretation. For prediction, the teacher plays two roles: its predictions (1) define locality by determining which training observations inform the fit at each query point, and (2) provide anchoring pseudo-observations. Across 17 benchmark datasets and a high-dimensional gene expression example, and across a range of teacher models (TabPFN, TabFM, XGBoost), local distillation consistently matches or approaches the predictive accuracy of its teacher.
For interpretation, we apply a small amount of Gaussian randomization to the local distillation optimization, leaving both the loss and penalty unchanged. The randomized refits identify which interpretations are sufficiently stable and therefore reliable, both at an individual test point (through selection frequencies) and across the test dataset as a whole (through clustering into stable subgroups). Under the lasso penalty, we established theoretical guarantees showing that this randomization yields stability under small perturbations of the training responses. These results are of independent interest and extend beyond local distillation, providing a general mechanism for stabilizing feature–selection probabilities under lasso penalization.
Extensions.
Section 2.3 suggests several extensions of local distillation. For example, when a linear student fails to recover the teacher’s accuracy, using a richer student class (with interactions or transformations of the covariates) may narrow the gap. And, when there are many candidate teacher models, the teacher may be selected through cross-validation with the training data. Finally, local distillation can incorporate external datasets or other data modalities through cross-modal distillation, in which the teacher is built on a different feature set than the student. Our gene expression example provides one instance of this approach, and we view distillation across genuinely different modalities as a promising avenue.
The distillation strength is estimated using a ratio of losses; this rule is intuitive and it performed well in our experiments, but we have not made any claims about optimality. We additionally use a hard cutoff to decide when to revert to the global linear model (when , the estimated teacher error is worse than that of the student). We considered a continuous alternative, weighting the teacher by its excess performance , but found that this reduced predictive performance: when the teacher is stronger than the student, the local fits benefit from a strong teacher weight. A similar observation was made in the distillation paper from Hinton et al. [24], where they found the best results placed most of the weight on the teacher’s soft targets rather than the true labels. Alternative approaches to estimating and determining when to revert to a simpler model may nevertheless be worth exploring.
Local regression more generally.
We view local linear modeling as a general and flexible framework that can compete with modern predictive methods, built from modular components that can be chosen to suit the problem: the weights, which define locality (kernels in LOESS, forest proximities, or, here, similarity of the teacher’s predictions); the penalty, which defines structure (e.g., lasso, elastic-net, group lasso); and pseudo-observations, which carry external information to anchor the fit (elicited priors, or, here, the teacher’s prediction at the query point). The choice of weights deserves particular care, because the definition of “local” determines which heterogeneity the local models can express. This is analogous to unsupervised clustering, where many clusterings may be equally valid though not all are equally informative; we expect different definitions of locality to likewise have different virtues. Interpretation methods for local regression also require careful consideration: conclusions drawn from the local fits are only reliable when they are stable, and the appropriate notion of stability depends on the choice of locality. The stability theory under Gaussian randomization is agnostic to the specific choice of weights in our approach, allowing the guarantees to extend beyond our construction of local linear models. Their specific form, however, may offer additional structure that can be exploited for deriving different theoretical guarantees, which we leave for future investigation.
Local distillation is one instantiation of local linear modeling: a black-box teacher defines locality and anchors each fit, and randomization assesses stability. Our results suggest that this framework is a promising path toward predictive, interpretable, and trustworthy statistical modeling.
Acknowledgements. We would like to thank Robert Tibshirani, Trevor Hastie and Shihan Khan for helpful comments. The authors used Claude Opus 4.5 (model ID: claude-opus-4-5-20251101) and ChatGPT 5.0 for coding support and text editing. The gene expression example shown here is based upon data generated by the TCGA Research Network: https://www.cancer.gov/tcga.
Funding. S.P. was supported by NSF CAREER Award DMS-2337882.
Disclosure. The authors report there are no competing interests to declare.
Data availability. The data that support the findings of this study are public and cited throughout. The scripts to download data and run simulations are published on Github at https://github.com/erincr/local-distillation-benchmark. The breast cancer expression data are from The Cancer Genome Atlas (https://www.cancer.gov/tcga); we use the processed version distributed with the hdrm R package (https://github.com/pbreheny/hdrm).
References
- [1] (2021) Highly accurate protein structure prediction with AlphaFold. Nature 596 (7873), pp. 583–589. Cited by: §1.
- [2] (2023) Learning skillful medium-range global weather forecasting. Science 382 (6677), pp. 1416–1421. Cited by: §1.
- [3] (2025) Accurate predictions on small data with a tabular foundation model. Nature 637 (8045), pp. 319–326. Cited by: §1, §1.
- [4] (2025) TabPFN-wide: continued pre-training for extreme feature counts. arXiv preprint arXiv:2510.06162. Cited by: §1.
- [5] (2026) TabDPT: scaling tabular foundation models on real data. Advances in Neural Information Processing Systems 38. Cited by: §1.
- [6] (2026) Introducing TabFM: a zero-shot foundation model for tabular data. Note: Google Research BlogAccessed July 7, 2026 External Links: Link Cited by: Appendix B, §1.
- [7] (2025) TabICL: a tabular foundation model for in-context learning on large data. arXiv preprint arXiv:2502.05564. Cited by: §1.
- [8] (2016) “Why should I trust you?”: explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1135–1144. Cited by: §1, §3.
- [9] (2017) A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems 30. Cited by: §1, §3.
- [10] (2020) Explaining the explainer: a first theoretical analysis of LIME. In International Conference on Artificial Intelligence and Statistics, pp. 1287–1296. Cited by: §1, §3.
- [11] (2020) Fooling LIME and SHAP: adversarial attacks on post hoc explanation methods. In Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society, pp. 180–186. Cited by: §1, §3.
- [12] (2020) Problems with Shapley-value-based explanations as feature importance measures. In International Conference on Machine Learning, pp. 5491–5500. Cited by: §1, §3.
- [13] (2021) Explaining individual predictions when features are dependent: more accurate approximations to Shapley values. Artificial Intelligence 298, pp. 103502. Cited by: §1, §3.
- [14] (2019) Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature Machine Intelligence 1 (5), pp. 206–215. Cited by: §1, §8.
- [15] (1993) Auto mpg. Note: UCI Machine Learning Repositoryhttps://doi.org/10.24432/C5859H. Dataset from the 1983 American Statistical Association Data Exposition Cited by: §1, §2.2.
- [16] (1988) Locally weighted regression: an approach to regression analysis by local fitting. Journal of the American Statistical Association 83 (403), pp. 596–610. Cited by: §1, §3.
- [17] (2024) Random forest weighted local Fréchet regression with random objects. Journal of Machine Learning Research 25 (107), pp. 1–69. Cited by: §1.
- [18] (2016) Supervised neighborhoods for distributed nonparametric regression. In Artificial Intelligence and Statistics, pp. 1450–1459. Cited by: §1.
- [19] (2020) Local linear forests. Journal of Computational and Graphical Statistics 30 (2), pp. 503–517. Cited by: §1, §3.
- [20] (2019) Generalized random forests. The Annals of Statistics 47 (2), pp. 1148–1178. Cited by: §1, §3.
- [21] (2013) Stability. Bernoulli 19 (4), pp. 1484–1500. Cited by: §1.
- [22] (2020) Veridical data science. Proceedings of the National Academy of Sciences 117 (8), pp. 3920–3929. Cited by: §1.
- [23] (2025) PCS workflow for veridical data science in the age of AI. arXiv preprint arXiv:2508.00835. Cited by: §1.
- [24] (2015) Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531. Cited by: §2.1, §2.3, §8.
- [25] (1980) Interactive elicitation of opinion for a normal linear model. Journal of the American Statistical Association 75 (372), pp. 845–854. Cited by: §2.1.1.
- [26] (1996) A new perspective on priors for generalized linear models. Journal of the American Statistical Association 91 (436), pp. 1450–1460. Cited by: §2.1.1.
- [27] (2000) Power prior distributions for regression models. Statistical Science 15 (1), pp. 46–60. Cited by: §2.1.1.
- [28] (2010) Regularization paths for generalized linear models via coordinate descent. Journal of Statistical Software 33 (1), pp. 1–22. Cited by: §2.3.
- [29] (2024) A fast and scalable pathwise-solver for group lasso and elastic net penalized regression via block-coordinate descent. arXiv preprint arXiv:2405.08631. Cited by: §2.3.
- [30] (2015) Learning interactions via hierarchical group-lasso regularization. Journal of Computational and Graphical Statistics 24 (3), pp. 627–654. Cited by: §2.3.
- [31] (2019) Reluctant interaction modeling. arXiv preprint arXiv:1907.08414. Cited by: §2.3.
- [32] (2025) Supervised learning pays attention. arXiv preprint arXiv:2512.09912. Cited by: §3.
- [33] (2018) Model agnostic supervised local explanations. Advances in Neural Information Processing Systems 31. Cited by: §3.
- [34] (2023) Prediction-powered inference. Science 382 (6671). External Links: Document Cited by: §3.
- [35] (2023) PPI++: efficient prediction-powered inference. arXiv preprint arXiv:2311.01453. Cited by: §3.
- [36] (2018) Selective inference with a randomized response. The Annals of Statistics 46 (2), pp. 679–710. Cited by: Remark 1.
- [37] (2021) Selection-adjusted inference: an application to confidence intervals for cis-eqtl effect sizes. Biostatistics 22 (1), pp. 181–197. Cited by: Remark 1.
- [38] (2024) Selective inference for time-varying effect moderation. arXiv preprint arXiv:2411.15908. Cited by: Remark 1.
- [39] (2025) Selective inference using randomized group lasso estimators for general models. Electronic Journal of Statistics 19 (2), pp. 3489–3531. Cited by: Remark 1.
- [40] (2026) Post-selection inference for penalized m-estimators via score thinning. arXiv preprint arXiv:2601.13514. Cited by: Remark 1.
- [41] (2010) Stability selection. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 72 (4), pp. 417–473. Cited by: §4.2, §5.2.
- [42] (2005) Combining multiple clusterings using evidence accumulation. IEEE Transactions on Pattern Analysis and Machine Intelligence 27 (6), pp. 835–850. Cited by: §4.3.
- [43] (2013) The lasso problem and uniqueness. Electronic Journal of Statistics 7, pp. 1456–1490. Cited by: Assumption 1.
- [44] (2002) Stability and generalization. Journal of Machine Learning Research 2 (Mar), pp. 499–526. Cited by: §5.2.
- [45] (2012) Comprehensive molecular portraits of human breast tumours. Nature 490 (7418), pp. 61–70. External Links: Document Cited by: §6.
- [46] (2025) Hdrm: high-dimensional regression modeling. Note: R package version 0.17.1 External Links: Link Cited by: §6.
- [47] (2022) Identification of the putative tumor suppressor characteristics of FAM107A via pan-cancer analysis. Frontiers in Oncology 12, pp. 861281. Cited by: §6.
- [48] (2022) KLF14 alleviated breast cancer invasion and m2 macrophages polarization through modulating SOCS3/RhoA/Rock/STAT3 signaling. Cellular Signalling 92, pp. 110242. Cited by: §6.
- [49] (2016) XGBoost: a scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785–794. Cited by: §7.
- [50] (2025) The uci machine learning repository. Note: https://archive.ics.uci.edu Cited by: §7.
- [51] (2017) OpenML benchmarking suites. arXiv preprint arXiv:1708.03731. Cited by: §7.
- [52] (2023) OpenML-CTR23–a curated tabular regression benchmarking suite. In AutoML Conference 2023 (Workshop), Cited by: §7.
Appendix A Details of theoretical results
A.1 Proof of main results
Proof of Lemma 1.
Let denote the selection probability of predictor under lasso regression of on , evaluated as a function of the weight-adjusted response . Then, by definition,
The map has entries for and for ; the first entries are linear in , while the final entry is times differentiable by assumption, and hence, is times differentiable.
Observe that we can write
where , and is the density function at .
Since is bounded and has integrable derivatives of all orders, differentiation under the integral sign yields , with for every multi-index . Applying the chain rule to shows that, for each , every derivative of of order can be expressed in terms of derivatives of and derivatives of of order at most . Since all such derivatives exist, is times differentiable on . ∎
A.2 Theoretical analysis of stability under randomized lasso
Throughout this section, we study the stability of the feature–selection probabilities
with respect to perturbations in . The main result of this section, Theorem 2, characterizes the sensitivity of feature-selection probabilities to perturbations in the response under randomized lasso regression.
A.2.1 Leave--out score and lasso geometry
For a feature , define the leave--out lasso
| (10) |
Furthermore, let be the leave--out residual, and define
| (11) |
Proof.
Set . By definition, is the support of the full Lasso solution with response . The KKT conditions for the full Lasso problem state that a vector is optimal if and only if there exists such that
| (12) |
where, for every ,
Let be the solution of the leave--out Lasso, and define The KKT conditions for the restricted problem imply that there exists such that
| (13) |
with
Now construct the -dimensional candidate with
Its residual in the full Lasso problem is exactly Equation (13) verifies the full KKT conditions for every coordinate other than . Since , the remaining KKT condition is By definition, which gives Therefore,
| (14) |
If , then (14) shows that is a full Lasso solution. By uniqueness of the full Lasso solution, guaranteed by Assumption 1, Since , it follows that .
Conversely, suppose that , so that . The vector must then solve the leave--out problem. Indeed, if some had a strictly smaller restricted objective, then the full vector would have a strictly smaller full Lasso objective than , contradicting its optimality. By uniqueness of the restricted solution, implied by Assumption 1, The full KKT condition at the zero coefficient therefore gives
Equivalently, . We have thus proved
∎
Having characterized the lasso active set through the leave--out score, we now turn to the analysis of this score. To this end, we introduce some additional notation. For an active set and sign vector , define the polyhedral selection region
and let be the set of essential active sets from lasso regression on , i.e., whose corresponding selection regions have positive Lebesgue measure.
Lemma 3 (Almost-everywhere gradient of the score).
For every , let . Then
where , and
Proof.
Fix , and let denote the support and sign of the leave--out lasso solution. Assumption 1 implies that has full column rank, and therefore
throughout this neighborhood. It follows that
and therefore,
Here, guarantees that is in the interior of , and therefore stay constant in a local neighborhood of during differentiation. ∎
Lemma 4 (Sandwich-bound on leave--out score).
Let and . For every and ,
where, for ,
Proof.
By Lemma 3, for almost every , if is the locally active leave--out model at , then
When , the definition of gives
When , both sides vanish. Hence,
Lebesgue-almost everywhere.
By linearity of directional derivatives in the direction of differentiation, it follows almost everywhere that
To apply Lemma 6, observe that
Thus, applying the lemma first from in direction , and then from in direction , gives
This proves the claim. ∎
A.2.2 Stability bound for feature–selection probabilities
Lemma 5 (Bounding probabilities under randomization).
Let be measurable and define
Then, for every unit vector , , and .
Proof.
Differentiation under the Gaussian convolution gives us
If , then and
By symmetry, , and the result follows. ∎
Theorem 2 (Sensitivity bound for selection probabilities under randomized lasso).
Proof.
A.3 Auxiliary results
For , recall from Lemma 3 and Lemma 4 that denotes the orthogonal projection onto the column space of , and that
and that for ,
Proposition 1 (Sensitivity bound under randomized local distillation).
Suppose that belongs to , and that Assumption 1 holds. Then, for every , , and ,
Proof.
The coordinates of satisfy
where . Consequently, for and ,
The chain rule therefore gives
| (17) |
Lemma 6 (Directional monotonicity).
Let be Lipschitz, and let . If for Lebesgue-almost every , then for every and .
Proof.
The result is immediate if . Otherwise, let and decompose , and for , define . By Fubini’s theorem, for almost every , the inequality
holds for almost every . Since is Lipschitz, is absolutely continuous, and
for almost every . Hence is nondecreasing.
Now fix an arbitrary . Choose a sequence such that is nondecreasing. For ,
Passing to the limit and using continuity of yields . Thus is nondecreasing along every line parallel to . ∎
Lemma 7 (Effective similarity neighborhood: size and weights).
Let . Under Assumption 2, . Moreover, for every , .
Proof.
For every , the definition of gives , and therefore
where the last inequality uses . Since , it follows that
On the other hand, Assumption 2 implies , for . Therefore,
Combining the preceding two displays yields , i.e.,
Finally, for , the lower bound on follows from the definition of , while the upper bound follows from Assumption 2. ∎
Lemma 8 (Bounds on residual and design in augmented regression).
Proof.
First, because the training weights are nonnegative and sum to one,
Therefore, . Using and Assumption 3, we obtain
This proves the asserted upper bound on .
Next, fix arbitrary and . By the definition of an orthogonal projection, . For every ,
where the final inequality follows from the definition of .
Lemma 9 (Bounds for weighted contributions from local distillation).
Appendix B Performance on UCI ML and OpenML datasets
Here we report the complete results across all 17 benchmark datasets and methods, including a second tabular foundation-model teacher, TabFM [6], and the cross-validated teacher-selection rule (Section 2.3) omitted from the main-text figure for legibility. Table 1 lists per-dataset sample sizes and feature counts; Figure 6 shows test .
| Dataset | Source | ||
|---|---|---|---|
| Automobile | 159 | 51 | UCI |
| Servo | 167 | 10 | UCI |
| Liver Disorders | 341 | 5 | UCI |
| Auto MPG | 392 | 8 | UCI |
| Real Estate Valuation | 414 | 6 | UCI |
| Student Performance | 649 | 39 | UCI |
| Cars | 804 | 17 | OpenML |
| QSAR Fish Toxicity | 907 | 6 | OpenML |
| Concrete Compressive Strength | 1005 | 8 | OpenML |
| Infrared Thermography Temperature | 1018 | 43 | UCI |
| Socmob | 1156 | 35 | OpenML |
| Red Wine | 1359 | 11 | OpenML |
| Airfoil Self-Noise | 1503 | 5 | OpenML |
| Auction Verification | 2043 | 7 | OpenML |
| Space GA | 3107 | 6 | OpenML |
| White Wine | 3961 | 11 | OpenML |
| Abalone | 4177 | 9 | OpenML |
Appendix C Ablation study
Local distillation has two components: (1) the similarity weights and (2) the “prior” prediction from the teacher. Here, we find that both combined usually have the best predictive performance (Figure 8).
Appendix D Performance with simulated data
Local distillation is intended to summarize the feature–outcome relationship linearly at each prediction point. Here we study its performance when the data generating process is known, and test how the method responds to changes in the amount of noise, and the sizes of and . We simulate training data as follows:
| (18) |
The true local coefficients vary with respect to and , but the global linear model cannot model this heterogeneity. Our testing data in all cases is query points drawn from the same distribution.
We vary , and ; for each combination, we run 50 iterations of local distillation with a gradient boosting teacher and lasso student. Table 2 reports (1) correlations across query points between the fitted local coefficients and and the true local gradients; (2) support recovery described by feature selection true positive rate and the number of false positives (incorrectly selected features); (3) and the fraction of runs in which and the method reverted to the global fit.
We find that local distillation is generally strong across , and (including ), though it naturally degrades as the level of noise grows (and eventually reverts to the global linear model). In particular, the first two coefficients and are typically well fit, with correlation to the true values between and . However, the third coefficient, , is harder to recover (correlation –). This is a result of our definition of “similarity”: the difference affects the response only through its interaction with , so observations with very different values of can have similar teacher predictions, and each local fit returns roughly the average coefficient over its neighborhood.
| reverted | TPR | FP | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 400 | 100 | 0.3 | 2.89 (0.49) | 0/50 | 0.79 (0.06) | 0.78 (0.06) | 0.34 (0.13) | 0.97 (0.02) | 7.4 (3.7) |
| 400 | 100 | 1 | 1.46 (0.15) | 0/50 | 0.77 (0.07) | 0.77 (0.07) | 0.30 (0.13) | 0.96 (0.02) | 9.3 (5.6) |
| 400 | 100 | 2 | 1.07 (0.06) | 11/50 | 0.73 (0.08) | 0.72 (0.08) | 0.24 (0.16) | 0.94 (0.04) | 10.3 (5.9) |
| 400 | 100 | 3 | 1.02 (0.02) | 40/50 | 0.63 (0.09) | 0.64 (0.06) | 0.14 (0.14) | 0.92 (0.05) | 9.3 (5.3) |
| 200 | 100 | 0.3 | 1.86 (0.37) | 0/50 | 0.76 (0.07) | 0.75 (0.07) | 0.33 (0.17) | 0.96 (0.02) | 7.7 (4.6) |
| 400 | 800 | 0.3 | 2.43 (0.33) | 0/50 | 0.78 (0.06) | 0.77 (0.07) | 0.34 (0.15) | 0.95 (0.02) | 10.4 (7.6) |
| 200 | 500 | 0.3 | 1.66 (0.36) | 0/50 | 0.77 (0.06) | 0.75 (0.08) | 0.25 (0.17) | 0.94 (0.03) | 9.8 (7.8) |
We then repeated this experiment to test the effect of filtering by selection probabilities. For each configuration, we took the first replicates, selected using the rule of Section 4.1, and ran randomized refits per query point to compute for every selected feature. Table 3 reports the results. We find that filtering reduces the false positive rate for feature selection, and retains most of the true positives.
| share with | FP per query | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| reverted | active | spurious | unfiltered | filtered | TPR (filtered) | ||||
| 400 | 100 | 0.3 | 0/10 | 1.14 (0.98) | 0.98 (0.02) | 0.12 (0.14) | 8.3 (5.1) | 0.9 (1.0) | 0.95 (0.02) |
| 400 | 100 | 1 | 0/10 | 0.67 (0.76) | 0.98 (0.03) | 0.21 (0.23) | 10.4 (6.5) | 2.0 (2.2) | 0.93 (0.05) |
| 400 | 100 | 2 | 0/10 | 0.89 (0.92) | 0.95 (0.06) | 0.12 (0.12) | 12.4 (6.7) | 1.8 (2.2) | 0.87 (0.09) |
| 400 | 100 | 3 | 8/10 | 0.62 (0.53) | 0.93 (0.03) | 0.05 (0.07) | 9.1 (0.6) | 0.5 (0.7) | 0.86 (0.01) |
| 200 | 100 | 0.3 | 0/10 | 0.39 (0.37) | 0.98 (0.02) | 0.21 (0.27) | 7.3 (4.9) | 1.6 (2.0) | 0.94 (0.03) |
| 400 | 800 | 0.3 | 0/10 | 0.66 (0.76) | 0.98 (0.02) | 0.15 (0.22) | 10.1 (9.1) | 1.7 (2.3) | 0.93 (0.02) |
| 200 | 500 | 0.3 | 0/10 | 0.42 (0.75) | 0.98 (0.02) | 0.27 (0.28) | 9.0 (5.5) | 2.4 (2.9) | 0.94 (0.01) |
Comments
· 0