Correcting Class Imbalance in Prior-Data Fitted Networks for Tabular Classification

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, long

Summary

Prior-data fitted networks (PFNs), particularly TabPFN-2.5, achieve exceptional performance on tabular classification but struggle with class imbalance, leading to poor accuracy for rare classes. This study investigates methods to mitigate this issue, adapting classical techniques for PFNs' in-context learning (ICL) dynamic. Experiments on 11 binary classification datasets from OpenML-CC18, using train sets with up to π₁=0.05 imbalance, revealed that PFNs are well-calibrated on balanced data but exhibit a majority class bias on imbalanced data. The research found that adjusting the decision threshold to τ=π₁ significantly improves minority class accuracy, aligning with Pₑ minimization, and yields strong balanced and worst-class accuracy. Downsampling the majority class to achieve π₀=π₁ also performs well, increasing worst-class accuracy and reducing inference computation, as TabPFN query computation scales quadratically with context size.

Key takeaway

For Machine Learning Engineers addressing class imbalance in Prior-Data Fitted Networks, adjust your decision threshold to the minority class prior probability (τ=π₁). This simple modification significantly boosts minority class accuracy without complex model changes. Alternatively, downsample the majority class to match minority samples. This improves worst-class accuracy and also reduces inference costs by decreasing context size.

Key insights

PFNs' class imbalance issues are best addressed by simple thresholding or downsampling due to their unique calibration.

Principles

Method

For binary classification with imbalanced PFNs, adjust the decision threshold to the minority class prior probability (τ=π₁) or downsample majority class samples to match minority class count.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.