Fully Test-time Adaptation for Tabular Data

Zhi Zhou, Kun-Yang Yu, Lan-Zhe Guo, Yu-Feng Li

TL;DR

Deep learning models for tabular data often fail when the data distribution changes between training and testing. This paper introduces FTAT (Fully Test-time Adaptation for Tabular data), a novel framework that adapts pre-trained models to new distributions using only unlabeled test data, without relying on image-centric assumptions or unreliable data augmentations.

What Problem Does This Paper Address?

In real-world applications like finance or healthcare, the data a model sees during deployment often looks different from the data it was trained on—a phenomenon known as distribution shift. While "Fully Test-time Adaptation" (FTTA) has been successful in computer vision, existing methods fail when applied to tabular data.

The authors identify three specific hurdles:

  1. Complex Shifts: Tabular data suffers from both covariate shift (the input features change) and label shift (the proportion of classes changes) simultaneously.
  2. Augmentation Failure: In vision, you can flip or crop an image to create a "consistent" view for the model. In tabular data, adding noise or perturbing features often destroys the underlying logic, making standard consistency-based adaptation ineffective.
  3. Hyperparameter Sensitivity: Tabular models are notoriously finicky. A learning rate that works for one dataset or architecture might cause the model to collapse on another.

Methods

To solve these issues, the authors propose FTAT, which consists of three specialized modules:

  • Confident Distribution Optimizer (CDO): Instead of just trusting the model's raw output, this module robustly tracks the shifting label distribution. it uses a "temporal ensemble" to smoothly estimate how class proportions are changing over time, focusing only on high-confidence (low-entropy) predictions to avoid noise.
  • Local Consistent Weighter (LCW): Since standard data augmentation doesn't work, FTAT looks at "neighbors." It assumes that a data point should have a similar prediction to its nearest neighbors in the feature space. It weights samples higher if they are consistent with their neighborhood and have a clear "margin" of prediction.
  • Dynamic Model Ensembler (DME): To solve the sensitivity problem, FTAT doesn't pick one learning rate. It maintains multiple models with different learning rates and ensembles their predictions in real-time based on their recent performance. This allows the system to "self-tune" to the specific task and architecture.

Datasets

The researchers evaluated FTAT using the TableShift benchmark, which is specifically designed to test models against real-world distribution shifts. They used six diverse datasets:

  • HELOC: Home equity line of credit applications.
  • ANES: Survey data predicting US presidential election voting behavior.
  • ASSIST: Student performance data from a tutoring platform.
  • DIABETES: Hospital readmission records for diabetic patients.
  • Hypertension: Blood pressure and cardiovascular risk factors.
  • Health Ins: Public health insurance coverage data.

They tested these across three different backbone architectures: standard MLPs, TabTransformer, and FT-Transformer.

Key Insights and Ideas

  • The "Augmentation Gap": One of the most important findings is that the "perturbation" augmentations used in vision-based FTTA actually hurt tabular performance. This confirms that tabular data requires a structural approach to consistency (like the neighborhood-based LCW) rather than a pixel-style noise approach.
  • Label Shift Matters: Many existing methods only focus on covariate shift. The authors show that failing to account for changing class proportions (label shift) is a primary reason why previous SOTA methods underperform on tabular benchmarks.
  • Speed of Adaptation: FTAT estimates label distributions significantly faster and more accurately than previous robust methods like ODS, which require multiple iterations to converge.

Key Results

FTAT consistently outperformed the non-adaptation baseline and several SOTA FTTA methods (including TENT, CoTTA, and LAME) across all datasets and architectures.

  • Accuracy Gains: On the HELOC dataset using an MLP backbone, FTAT achieved 64.09% accuracy, a significant jump from the 54.37% of the non-adapted baseline.
  • F1 Score Improvements: In many cases, FTAT nearly doubled the F1 score of competing methods, particularly on datasets with severe label imbalance.
  • Robustness: The framework proved resilient to different batch sizes and minor changes in its own internal hyperparameters ($\alpha, \epsilon, \beta$), making it practical for real-world deployment where perfect tuning is impossible.

Limitations and Future Work

The authors acknowledge that while FTAT works empirically well, it currently lacks a deep theoretical proof of convergence or optimality. They also note that while the neighborhood-based consistency (LCW) is effective, calculating nearest neighbors in very high-dimensional spaces or extremely large batches could become a computational bottleneck. Future work will likely focus on providing theoretical guarantees and further optimizing the efficiency of the neighborhood search.

Summary updated

BibTeX
@inproceedings{zhou2025fully,
  author = {Zhi Zhou and Kun-Yang Yu and Lan-Zhe Guo and Yu-Feng Li},
  title = {{Fully Test-time Adaptation for Tabular Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=I3sa1yiupJ},
}

Loading related content...

Figure