ARASH: Adaptive Retrieval And Shot Selection for Tabular Prediction
Organizations: Department of Electrical and Computer Engineering McMaster University Hamilton, ON, Canada
Abstract
Tabular prediction is a critical task across numerous applications. The recent success of large language models has sparked various approaches for adapting them to the tabular domain. A prevalent strategy involves training or fine-tuning specialized Tabular Foundation Models (TFMs) such as TabPFN. However, TFMs require substantial computational resources, and frequent model retraining is often impractical. In-context learning (ICL), specifically, few-shot prompting, offers a resource-efficient alternative to enhance performance. Yet, identifying the most relevant rows to serve as shots remains a challenge for tabular data. This paper introduces ARASH (Adaptive, query-specific Retrieval And Shot selection), a method that improves TFM efficiency by selecting optimal shots based on local neighborhood analysis within the training set. Our results demonstrate that ARASH reduces the prompt length and memory usage of TabPFN by 1261.5 and 2.56, respectively, while providing comparable accuracy.
Figures & tables
| Predictor | Coef. | SE | |
|---|---|---|---|
| Dataset-level locality | 0.088 | 0.027 | 0.0014 |
| Final purity | 0.090 | 0.019 |
| Method | Accuracy | Macro-F1 |
|---|---|---|
| ARASH | 0.750 | 0.657 |
| ARASH Without Step I (No clustering) | 0.700 | 0.592 |
| ARASH Without Step II (Fixed shots per cluster) | 0.720 | 0.627 |
| ARASH Without Step III (Random retrieval) | 0.645 | 0.495 |
| Variant | Accuracy | Macro-F1 |
|---|---|---|
| ARASH with Entropy only score | ||
| ARASH with Impurity only score | ||
| ARASH with Entropy + impurity |
Tabular Prediction
Tabular prediction uses structured rows and columns to forecast labels, values, risks, and outcomes from data.
See all 112 papers