arXiv:2610.39506cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39506

Interpretable by Design Tabular Prediction via In-Context Local Linear Learning

Ran Eisenberg, Steven Berger, Ofir Lindenbaum

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

Abstract

In-context learning (ICL) lets tabular foundation models make predictions without dataset-specific training or fine-tuning. These models achieve strong predictive accuracy, but interpreting how individual features contribute to the prediction remains difficult. In biology, for example, feature contributions can help identify biomarkers or risk genes. Post-hoc interpretability methods assign feature importance scores, but these scores do not indicate what the model actually uses and can lead to explanation errors. We introduce TICL 3^{3} (Tabular In-Context Local Linear Learning), an interpretable-by-design predictor that uses a tabular foundation model to guide a simple linear prediction rule. TICL 3^{3} first learns a shared linear model to capture dataset-level feature effects. Then, for each query, it retrieves similar training samples using representations from the foundation model and fits a second linear model to the residuals in that neighborhood. The shared model captures broad effects, while the local model corrects errors among similar samples. Their combined coefficients determine each feature contribution to the final query-specific linear score, so the same model makes and explains the prediction. Across 386 classification benchmark–dataset evaluations, TICL 3^{3} trails TABICLV2 by 1.1 percentage points and outperforms CatBoost in 266 evaluations. It improves average support F1 over MAPLE by 4.7 points and achieves the best performance on both real-data selected-feature utility metrics.

1 Introduction

Making predictions on tabular data remains a challenge in machine learning, where interpretability of individual predictions is often as important as predictive accuracy. Classical algorithms, including sparse linear models, generalized additive models (GAMs), and explainable boosting machines (EBMs) [1], provide explicit feature contributions, although their structural constraints may limit predictive performance. Recent tabular foundation models [2, 3] adopt a different paradigm by leveraging labeled examples as context to predict new samples without requiring dataset-specific parameter updates. Related in-context regression approaches have also been extended to reinforcement learning [4]. While these models show strong predictive performance, multiple attention layers complicate attributing individual input feature contributions to each prediction.

Post-hoc interpretability methods such as LIME [5] and SHAP [6] explain predictors after training. Other approaches include gradient-based attribution methods [7, 8], FastSHAP [9], and learned local surrogate models [10]. While these methods can provide useful feature importance scores, they do not use these scores to make predictions and may not fully reflect how the model uses each feature.

TICL 3^{3} is introduced as an interpretable-by-design predictor that leverages a tabular foundation model to infer a simple prediction rule. First, we train a shared ElasticNet [11] to learn a dataset-wide rule based on the foundation model's predictions. For each query, the foundation model's embedding identifies similar training samples, referred to as a neighborhood. We then fit a second ElasticNet to the residuals between the foundation model's predictions and the shared rule within a Predictive performance

Figure

b Explanation quality

c Explanation cost

Figure 1: Summary of results. (a) Average per-dataset rank in classification and regression over all methods in Tables 2 and 6; a subset is shown. (b) Deletion monotonicity and selected-feature utility; the latter averages Gen-SVM and Genkmeans, reported separately in Table 5. (c) Per-dataset cost for 50 predictions and explanations, including method-specific explainer construction. All methods explain the same TICL 3^{3} (global + residual) predictor, so its setup is excluded for every method. Online latency is similar for TICL 3^{3} (global + residual) and the learned explainers (about 27 ms per query); the difference comes from explainer construction. LIME and KernelSHAP are extrapolated from the fixed 10-query-per-dataset subset.

Table 1: Conceptual positioning of TICL 3^{3} . Interpretable by design: the explanation is part of the deployed predictor; explicit additive prediction: prediction sums inspectable feature terms mapped to input columns; query-specific deployed rule: an explicit feature-level rule is fitted or selected per test point (sample weights or post-hoc explanations alone do not qualify); ICL-guided locality: an ICL representation defines locality. KernelICL uses ICL-derived query weights but no query-specific feature-level rule. ShapPFN sums per-feature contributions computed by its transformer but deploys no explicit feature-level rule; ExplainerPFN estimates attributions without access to a predictor.

MethodInterpretable by designExplicit additive predictionQuery-specific deployed ruleICL-guided locality
TABICLV2✕✕✕✕
SHAP/LIME on TABICLV2✕✕✕✕
ExplainerPFN✕✕✕✕
EBM/NAM✓✓✕✕
MAPLE✓✓✓✕
LLSPIN✓✓✓✕
KernelICL✓✕✕✓
ShapPFN✓✓✕✕
TICL3^{3}(global + residual)✓✓✓✓

References: TABICLV2 [12]; SHAP/LIME [5, 6]; ExplainerPFN [13]; EBM/NAM [1, 14]; MAPLE [15]; LLSPIN [16]; KernelICL [17]; ShapPFN [18].

this neighborhood. Integrating this local correction with the shared model produces a query-specific linear rule whose coefficients directly determine the final prediction. Figure 2 summarizes this procedure. In TICL 3^{3}, the foundation model's learned representation guides sample selection for local correction, while the shared and local coefficients specify each feature's contribution to the prediction.

The central idea of TICL 3^{3} is to use the foundation model's learned representation to inform local correction fitting, with explicit coefficients specifying the prediction process. Table 1 compares TICL 3^{3} with existing methods. In TICL 3^{3}, we derive feature contributions directly from the linear model used to compute each class score, rather than from a separate explanation technique. When combined with a baseline, these contributions sum precisely to the class score. The model further employs representations learned through tabular in-context learning (ICL) to select relevant training samples. However, these contributions do not elucidate how individual features influence sample selection or the determination of fitted coefficients. Figure 1 compares prediction accuracy, explanation quality, and computational cost.

For each query, we form a single linear model that is composed of the shared and local models. The coefficients, together with the processed feature values, determine each feature's contribution to the prediction score for a class, and we map these contributions back to the original columns of the table. We use an ElasticNet regularizer to encourage a sparse coefficient vector. The foundation model does not make the final prediction; it provides targets to fit the shared prediction rule and selects the rows to use for each query. The final prediction is made by the explicit prediction rule described above. The error in this local approximation can be bounded in terms of (i) smoothness of the residual, (ii) context shift, (iii) the radius of the neighborhood in the representation space, (iv) distance of the query to the weighted feature centroid, and (v) the amount of regularization.

Figure

Figure 2: Overview of TICL 3^{3} (global + residual). Offline we use a frozen TABICLV2 backbone with cross-fitting to build a reference bank of processed features, class probability targets and learned representations. We fit a shared ElasticNet model to the bank targets. For each query, we then use its representation to select similar reference rows and fit a second ElasticNet model to the shared model's remaining errors on those rows. We add the shared model and the local correction to give a single linear model for the query. We clip and normalize the class scores from this to make the final prediction. We also use the model coefficients and the centered feature values to compute the contribution of each feature to the class scores.

References (49)