NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ReConTab: Regularized Contrastive Representation Learning for Tabular Data

Suiyao Chen, Jing Wu, Naira Hovakimyan, Handong Yao

TL;DR

This paper introduces ReConTab, a novel framework for automatic representation learning on tabular data. By combining regularized autoencoders with contrastive learning, ReConTab generates high-quality, low-dimensional embeddings that significantly improve the performance of downstream tasks, even when used as plug-and-play features with traditional models like XGBoost and Random Forest.

What Problem Does This Paper Address?

While representation learning has revolutionized fields like computer vision and natural language processing, tabular data has lagged behind. Traditional methods for tabular data often rely on time-consuming and expertise-driven manual feature engineering and selection. This process is labor-intensive and doesn't guarantee optimal results. The inherent complexity of tabular data, with its mix of continuous, categorical, and ordinal values, and their intricate interdependencies, makes it challenging to extract meaningful representations automatically. ReConTab aims to bridge this gap by providing an automated, deep learning-based approach to learn robust and informative features for tabular datasets.

Methods

ReConTab employs an asymmetric autoencoder (AE) architecture. The core idea is to learn a compressed, low-dimensional representation (embedding) of the input tabular data. This AE is trained using a combination of techniques:

  • Regularization: To address the challenge of feature selection and prevent overfitting, ReConTab applies regularization to the input weights. This encourages the model to assign less weight to redundant or less important features, promoting more robust representations.
  • Feature Corruption: Inspired by successful techniques in other domains, ReConTab introduces feature corruption. A subset of features in the input data is randomly replaced with corrupted versions. This acts as a data augmentation strategy, forcing the model to learn more resilient representations.
  • Contrastive Learning: This is a key component for distilling pertinent information. ReConTab forms contrastive pairs of embeddings. The goal is to maximize the similarity between embeddings originating from similar data points (e.g., same class) and minimize similarity for dissimilar points. This helps the model capture discriminative features relevant to downstream tasks.
  • Self- and Semi-Supervised Learning: ReConTab can be trained in both self-supervised (using only unlabeled data) and semi-supervised (leveraging a small amount of labeled data) modes. In self-supervised learning, the primary loss is reconstruction error. In semi-supervised learning, additional losses for label prediction (classification loss) and contrastive learning are incorporated.
  • Downstream Fine-Tuning/Plug-and-Play: The learned encoder can be fine-tuned for specific downstream tasks. Alternatively, the generated embeddings can be used as additional features alongside the original data, acting as "plug-and-play" enhancements for traditional models.

Datasets

The paper evaluates ReConTab on several public datasets, including:

  • Bank (BK)
  • Blastchar (BC)
  • Arrhythmia (AT)
  • Arcene (AR)
  • Shoppers (SH)
  • Volkert (VO)
  • MNIST (MN)

These datasets exhibit diversity in size (from 200 to 495,141 samples) and feature dimensions (from 8 to 784), and include both binary and multi-class classification tasks, as well as datasets with missing values and skewed class distributions. No new benchmarks were introduced.

Key Insights and Ideas

  • Tabular Data's Unique Challenges: The paper highlights that tabular data's heterogeneity (mix of data types) and complex interdependencies make it harder to apply deep learning compared to images or text, which have inherent spatial or sequential structures.
  • Feature Corruption as a Powerful Augmentation: Randomly corrupting features forces the model to learn more robust representations, as it cannot rely on specific features being present and correct. This is a crucial step in learning generalizable embeddings.
  • Contrastive Learning for Discriminative Features: By explicitly training the model to distinguish between similar and dissimilar data points in the embedding space, contrastive learning helps extract features that are most relevant for classification or other downstream tasks.
  • Plug-and-Play Embeddings are Effective: The generated embeddings can be directly concatenated with original features to boost the performance of traditional models like XGBoost and Random Forest, often without requiring further fine-tuning of the encoder. This offers a practical way to leverage deep learning insights without completely replacing existing pipelines.

Key Results

  • ReConTab achieved substantial and robust performance improvements across a range of datasets, outperforming other deep learning methods and often achieving second-best results overall.
  • In the plug-and-play setting, concatenating ReConTab's distilled features with original data led to marginal but consistent improvements for traditional models. This integration enhanced performance across various datasets, as shown in Table 1.
  • An ablation study indicated that a feature corruption ratio of approximately 0.3 was optimal for most experiments, though this can vary depending on dataset complexity.
  • For the multi-class datasets (VO and MN), ReConTab (Semi-Sup.) achieved accuracies of 0.680 and 0.968, respectively, demonstrating strong performance. For binary classification tasks, AUROC scores were generally in the 0.90-0.93 range for ReConTab (Semi-Sup.).

Limitations and Future Work

  • Dataset-Specific Optimal Ratio: The paper notes that the optimal feature corruption ratio might not be universal and can depend on the dataset's characteristics. Datasets with simpler, lower-dimensional features might benefit from smaller corruption ratios.
  • Suboptimal Performance on Some Datasets: ReConTab achieved suboptimal results compared to the best models on the BK, SH, and VO datasets. The authors acknowledge that the tabular domain presents unique challenges and suggest further investigation into the specific factors contributing to this variation.
  • Future Directions: The paper implies that further exploration into optimizing the regularization and contrastive learning components, as well as investigating their application to other tabular data tasks beyond classification, would be valuable. The framework's adaptability to different training scenarios (self- and semi-supervised) also suggests potential for broader applications.

Summary updated

BibTeX
@inproceedings{chen2023recontab,
  author = {Suiyao Chen and Jing Wu and Naira Hovakimyan and Handong Yao},
  title = {{ReConTab: Regularized Contrastive Representation Learning for Tabular Data}},
  booktitle = {TRL @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=uzVCoZSfly},
}
Figure