Latent Score-Based Reweighting for Robust Classification on Imbalanced Tabular Data

Yunze Tong, Fengda Zhang, Zihao Tang, Kaifeng Gao, Kai Huang, Pengfei Lyu, Jun Xiao, Kun Kuang

Overview

Machine learning models often fail on minority groups because they over-rely on "spurious correlations" found in imbalanced training data. This paper introduces a Latent Score-Based Reweighting framework that uses diffusion-style score models to identify underrepresented data points and upweight them during training. Unlike previous methods, it doesn't require manual group labels and achieves a more globally balanced data distribution, significantly improving "worst-case" accuracy across diverse tabular datasets.

The Challenge of Imbalanced Tabular Data

In the world of tabular data (e.g., spreadsheets, census records, or medical logs), machine learning models are notorious for "learning the wrong thing." If a dataset shows a statistical link between a non-causal feature (like a zip code) and a target (like credit risk), the model might exploit that bias. This leads to high average accuracy but miserable failure rates on specific subgroups where that correlation doesn't hold.

Reweighting Toy Example

Existing solutions have two major blind spots:

  1. The Label Gap: Many robust methods require "group labels" (knowing exactly which samples belong to a minority demographic), which are rarely available in real-world datasets.
  2. The Boundary Trap: "Boundary-based" methods only upweight samples that the model gets wrong (those near the decision boundary). This doesn't fix the global imbalance of the dataset; it just makes the model try harder on the "hard" samples it already knows about, often ignoring underrepresented regions of the data space entirely.

The Latent Score-Based Reweighting Framework

To achieve unbiased learning without needing prior group information, the authors propose a proactive, three-stage framework:

  1. Latent Representation: A Variational AutoEncoder (VAE) compresses raw tabular data into a latent space, helping the model focus on meaningful semantic structures rather than superficial noise.
  2. Score-Based Modeling: Class-specific score-based models (the mathematical foundation of diffusion models) are trained on these latents. These models learn the "score field"—essentially a map of where the data is most dense.
  3. Density Proxy via Score Similarity: Instead of calculating exact probability density (which can lead to unstable "density explosions"), the method uses Score Similarity.
  4. In high-density regions, the score vectors of neighboring points tend to align and point toward each other.
  5. In low-density regions, this alignment is weak.
Score Vector Field

By measuring this similarity, the framework creates a stable "SimDiff" (Similarity Difference) score to identify truly underrepresented samples.

  1. Reweighted Training: These scores are used to assign weights to every training sample, ensuring the final classifier trains on a globally balanced representation of the data. By training separate score models for each class, the method can detect both covariate shift and label shift.

Experimental Validation

The researchers evaluated their method on diverse tabular datasets known for distribution shifts and imbalances, including Adult & US-Wide ACS PUMS (census data), Bank (marketing), Default (credit cards), Shoppers (online behavior), and Taxi (trip durations).

Key Results

  • Superior Robustness: The method consistently achieved the highest worst-group accuracy across all primary datasets, with an average improvement of at least 3% over the next best baseline.
  • No "Accuracy Tax": Often, making a model robust for minorities degrades its average performance. This method maintained or even improved mean accuracy while boosting worst-case performance.
  • Architecture Agnostic: While the score modeling uses neural networks, the resulting weights can be plugged into any model. The authors demonstrated significant gains using the weights with XGBoost, CatBoost, and LightGBM—the industry gold standards for tabular data.

Limitations and Future Work

While highly effective, the framework introduces computational overhead by requiring the training of VAEs and score-based models prior to the classifier. It also introduces hyperparameters (like temperature $\tau$ and timesteps $T$) that require tuning, though ablation studies suggest stability across values. Finally, in cases of extreme causal mechanism changes between training and deployment, specialized causal discovery methods may still be necessary to achieve peak performance.

Summary updated

BibTeX
@inproceedings{tong2025latent,
  author = {Yunze Tong and Fengda Zhang and Zihao Tang and Kaifeng Gao and Kai Huang and Pengfei Lyu and Jun Xiao and Kun Kuang},
  title = {{Latent Score-Based Reweighting for Robust Classification on Imbalanced Tabular Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=nnO4TpeUnH},
}
Figure