Abstract
While deep learning has achieved state-of-the-art performance in vision and language domains, tree-based models like XGBoost remain the standard for tabular data. Contrastive learning offers a path to bridge this gap, yet it is often hindered by augmentation techniques that destroy the semantic meaning of data points. This paper proposes a class-conditioned augmentation strategy that utilizes pseudo-labeling to ensure corrupted values are sampled from semantically similar instances. Evaluated across 30 diverse datasets, our method outperforms conventional random corruption in over 83% of cases and produces significantly more separable latent representations.
Introduction
The primary challenge in applying contrastive learning to tabular data lies in the augmentation step. In computer vision, operations like rotation or cropping preserve the semantic identity of an image. In contrast, standard tabular "feature-value corruption"—randomly swapping a value in a row with another from the same column—can easily create nonsensical data points. For instance, swapping a "high income" value from a "loan approved" row with a "low income" value from a "loan denied" row creates a synthetic instance that confuses the model's encoder. This paper addresses this by introducing semantic preservation into the augmentation pipeline.
Methodology
Class-Conditioned Corruption
Instead of sampling replacement values from an entire column, the proposed method restricts sampling to rows that share the same class identity. To handle unlabeled data, the researchers employ an iterative pseudo-labeling approach. A classifier is trained on available labeled data to predict labels for the unlabeled set; these "best guesses" then guide the corruption process. As the model improves, the pseudo-labels become more accurate, leading to increasingly precise and semantically consistent augmentations.
Correlation-Based Feature Masking
Beyond how to corrupt, the authors investigated where to corrupt. They hypothesized that masking highly correlated features—similar to corrupting adjacent pixels in an image—would be more effective than random masking. They utilized XGBoost feature importance as a proxy to identify and mask subsets of features that share high mutual information.
Key Results and Analysis
The class-conditioned approach was benchmarked against conventional methods using the OpenML-CC18 suite of 30 diverse datasets. The results indicate a significant performance leap over standard practices.
As shown in the win-rate matrix above, the class-conditioned method outperformed conventional random corruption on 83.3% of the tested datasets. Notably, the pseudo-labeling approach performed nearly as well as an "Oracle" version (which uses true labels for all data during augmentation), demonstrating the robustness of the semi-supervised signal.
Visualizing the Embedding Space
To understand why class-conditioning works, the authors performed PCA visualizations of the latent space. Standard corruption often results in overlapping clusters, whereas class-conditioned pre-training creates tighter, more distinct groupings.
The visual evidence confirms that semantic preservation is critical. By restricting corruption to the same class, the augmented views remain valid representatives of their respective classes, allowing the encoder to learn a more coherent and separable embedding space.
Discussion and Limitations
While class-conditioning proved highly effective, the authors found that correlation-based masking did not yield consistent gains. This may be due to the highly curated nature of the OpenML-CC18 datasets, which often lack the raw redundancy found in real-world "crude" data.
Furthermore, the authors noted that in specific domains governed by strict logical or physical constraints (e.g., the Balance Scale dataset), any form of corruption might be too disruptive. Future work will focus on quantifying feature structures more effectively to inform selective masking and exploring the method's performance on raw, un-preprocessed datasets.
Summary updated