STUNT: Few-shot Tabular Learning with Self-generated Tasks from Unlabeled Tables

Jaehyun Nam, Jihoon Tack, Kyungmin Lee, Hankook Lee, Jinwoo Shin

Introduction

STUNT (Self-generated Tasks from UNlabeled Tables) is a novel meta-learning framework designed to tackle the "few-shot" problem in tabular data—where models must learn from only a handful of labeled examples. By treating random subsets of columns as pseudo-labels and training the model to solve these "self-generated" tasks, STUNT learns a highly adaptable representation that significantly outperforms existing self-supervised and semi-supervised methods.

The Challenge of Tabular Data

While few-shot learning has seen massive success in computer vision and natural language processing, tabular data remains a frontier. Tabular datasets are notoriously difficult because they are heterogeneous: unlike pixels in an image, columns in a table have distinct meanings, different scales, and no inherent spatial structure.

In industrial settings (like finance or rare disease research), labeling data is often expensive or impossible. Standard self-supervised methods (like VIME or SubTab) try to learn by predicting missing values or detecting corrupted rows. However, these methods often fail to provide meaningful gains over a simple k-Nearest Neighbor (kNN) classifier in few-shot scenarios. The core challenge is the "task gap"—the disconnect between generic pre-training tasks and the specific, limited-label task the model eventually needs to solve.

The STUNT Framework

The authors propose a two-step approach: Unsupervised Meta-learning followed by Few-shot Adaptation.

STUNT Task Generation
  1. Task Generation (The "STUNT" Trick): To create a training task without labels, the algorithm randomly selects a subset of columns from an unlabeled table. It then runs k-means clustering on these columns to generate pseudo-labels.
  2. Cheating Prevention (Marginal Distribution Masking): If the model has access to the columns used to create the labels, it will simply "cheat" by learning the clustering logic. To prevent this, STUNT replaces the values in those selected columns with random values sampled from their respective empirical marginal distributions. This forces the model to learn the relationships between different features rather than just memorizing the input.
  3. Meta-learning with Prototypical Networks: The model is trained using a Prototypical Network (ProtoNet) architecture. It learns an embedding space where samples from the same pseudo-class are clustered around a "prototype" (a mean vector). This setup is specifically designed for fast adaptation to new, unseen classes.
  4. Unsupervised Validation: A major hurdle in few-shot learning is hyperparameter tuning without a labeled validation set. The authors introduce a "pseudo-validation" scheme using STUNT-generated tasks on a holdout portion of the unlabeled data, which correlates strongly with actual test performance.

Key Insights: Columns as Targets

The most profound insight of STUNT is that in tabular data, the line between "feature" and "label" is blurry.

Columns as Targets

For example, a "blood sugar" column can serve as a highly effective proxy label for a "diabetes" task. By cycling through different columns as targets, the model encounters a myriad of tasks that mirror the complexity of real-world classification.

Furthermore, traditional self-supervision learns a static representation. Meta-learning, however, trains the model how to learn. This flexibility is crucial for tabular data where the important features change drastically from one dataset to another.

Datasets and Results

The researchers evaluated STUNT on a diverse array of benchmarks from the OpenML-CC18 suite, covering mixed features, numerical-only, and categorical-only datasets. STUNT consistently outperformed supervised, semi-supervised, and other unsupervised meta-learning baselines:

  • 1-Shot Accuracy: On average across 8 datasets, STUNT improved accuracy from 59.89% (best baseline) to 63.88%.
  • 5-Shot Accuracy: Improved from 72.19% to 74.77%.
  • Breakthroughs in Specific Domains: In the 1-shot "pixel" dataset task, STUNT jumped from a baseline of 67.61% to 79.05%.
  • Multi-tasking: STUNT showed it could adapt to multiple different tasks at test-time without any additional retraining, outperforming specialized baselines in 5 out of 6 tasks on the emotions dataset.

Limitations and Future Work

While STUNT is highly effective for classification, the performance gains in regression tasks (predicting continuous numbers) were more marginal. The authors suggest that specialized "target-regression" task generation is a necessary next step. Additionally, this study used a standard 2-layer MLP. Integrating STUNT with more advanced tabular architectures, such as TabTransformers or FT-Transformers, could potentially yield even higher performance. Finally, generating thousands of k-means clusters for meta-training tasks is computationally intensive, though the authors argue this is a fair trade-off for the resulting accuracy gains.

Summary updated

BibTeX
@inproceedings{nam2023stunt,
  author = {Jaehyun Nam and Jihoon Tack and Kyungmin Lee and Hankook Lee and Jinwoo Shin},
  title = {{STUNT: Few-shot Tabular Learning with Self-generated Tasks from Unlabeled Tables}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=_xlsjehDvlY},
}
Figure