Interpretable models improve accuracy and explain feature effects in tabular data

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

Machine Learning

Summary

Making predictions from tables of data is useful but understanding why a model makes its predictions can be hard. The authors create a new method called TICL3 that combines a basic overall linear model with a local correction based on similar past data points. This combined approach offers clearer explanations about how each feature impacts the result. Testing on hundreds of datasets, their method performs well and often better than other models, while making the predictions easier to understand.

What this means in practice

  • For medical data teams: Identify key biomarkers in patient data by using a model that explains feature contributions while maintaining strong predictive accuracy.
  • For customer analytics teams: Improve customer segment predictions with interpretable models that reveal which features drive decisions for different customer groups.

Authors

Ran Eisenberg, Steven Berger, Ofir Lindenbaum

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$ (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$ 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$ 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.