Abstract
In real-world applications, tabular data often suffer from distribution shifts due to their widespread and abundant nature, leading to erroneous predictions of pre-trained machine learning models. However, addressing such distribution shifts in the tabular domain has been relatively underexplored due to unique challenges such as varying attributes and dataset sizes, as well as the limited representation learning capabilities of deep learning models for tabular data. Particularly, with the recent promising paradigm of test-time adaptation (TTA), where we adapt the off-the-shelf model to the unlabeled target domain during the inference phase without accessing the source domain, we observe that directly adopting commonly used TTA methods from other domains often leads to model collapse. We systematically explore challenges in tabular data test-time adaptation, including skewed entropy, complex latent space decision boundaries, confidence calibration issues with both overconfident and under-confident, and model bias towards source label distributions along with class imbalances. Based on these insights, we introduce AdapTable, a novel tabular test-time adaptation method that directly modifies output probabilities by estimating target label distributions and adjusting initial probabilities based on calibrated uncertainty. Extensive experiments on both natural distribution shifts and synthetic corruptions demonstrate the adaptation efficacy of the proposed method.
Introduction: The Challenge of Tabular Distribution Shifts
Tabular data—the structured information found in spreadsheets and databases—is the backbone of critical industries like finance and healthcare. However, machine learning models trained on this data often "break" when deployed because the data distribution shifts over time. For example, a credit scoring model trained during economic stability may fail during a recession as the underlying relationship between income and creditworthiness changes.
While Test-Time Adaptation (TTA) allows models to adjust to new data on the fly without retraining, most existing methods were designed for computer vision. These methods rely on the "cluster assumption"—the idea that similar inputs should have the same label. In the tabular domain, this assumption often fails due to latent confounders, where two nearly identical profiles might result in different outcomes.
The AdapTable Framework
To bridge this gap, we introduce AdapTable, a two-stage, model-agnostic framework that adjusts model outputs (logits) rather than internal parameters. This makes it compatible with popular "black box" models like XGBoost and CatBoost, as well as standard Deep Learning architectures.
1. Shift-Aware Uncertainty Calibrator
Tabular models are notoriously prone to miscalibration, becoming either overconfident or under-confident under shift. AdapTable uses a Graph Neural Network (GNN) to treat each feature column as a node, capturing complex correlations across a batch of data. It then assigns a dynamic "temperature" to each prediction, effectively telling the model when to be confident and when to be skeptical based on the detected shift trends.
2. Label Distribution Handler
Real-world test data often has a different class balance than the training set. AdapTable estimates the actual balance of labels in the current test batch using a "debiased" estimator to move away from training biases and an "online" estimator to track changes over time. It then mathematically nudges the model’s predictions to align with this new reality.
Key Insights: The Tabular TTA Gap
The fundamental difficulty in adapting tabular models lies in the nature of their latent spaces. As shown in the visualizations below, image-based data (like Optdigits) forms distinct, label-consistent clusters. In contrast, tabular data (like HELOC) results in a tangled latent space where decision boundaries are overlapping and messy.
This explains why computer vision-based TTA methods, which rely on neat clusters, often cause model collapse when applied to tabular tasks. Furthermore, reliability diagrams highlight that tabular models are frequently miscalibrated when facing distribution shifts.
Experimental Results
We evaluated AdapTable using the TableShift benchmark, which includes six diverse datasets such as HELOC (credit risk) and Hospital Readmission.
- Accuracy Gains: On the HELOC dataset, AdapTable improved performance by up to 16% over the unadapted baseline.
- Robustness: In scenarios with heavy data corruption (e.g., missing values or Gaussian noise), AdapTable maintained high accuracy while established methods like TENT and EATA collapsed, showing over 10% gains in robustness.
- Efficiency: The method is highly optimized for real-time use, processing samples in approximately 0.0002 seconds.
Conclusion and Future Work
AdapTable provides a flexible, high-performance solution for the unique challenges of tabular data adaptation. By focusing on uncertainty calibration and label distribution handling, it avoids the pitfalls of standard TTA methods. Future work will explore handling "concept shifts"—where the fundamental rules of the data change—potentially by using Large Language Models (LLMs) to provide semantic context for these shifts.
Summary updated