Introduction
While few-shot learning has seen transformative success in computer vision and natural language processing, tabular data—the most common data format in industrial applications—has largely been left behind. In domains like finance and healthcare, obtaining labeled data is often prohibitively expensive, and new classification tasks frequently emerge with only a handful of available samples.
Existing research typically addresses this through self-supervised learning (pre-training on unlabeled data) or semi-supervised learning. However, a significant "conventional belief" gap exists: state-of-the-art self-supervised methods for tabular data often fail to outperform a simple k-nearest neighbor (kNN) classifier in few-shot scenarios. This failure stems from the wide gap between general pretext tasks (such as predicting a masked cell) and specific downstream tasks, exacerbated by the heterogeneous nature of tabular features. To bridge this gap, we introduce STUNT (Self-generated Tasks from UNlabeled Tables), a framework that applies unsupervised meta-learning to tabular data.
The STUNT Framework
STUNT shifts the paradigm from general representation learning to unsupervised meta-learning. Instead of learning a static representation, the model is trained to "learn how to learn" by solving thousands of diverse, self-generated tasks.
1. Task Generation from Columns
The central insight of STUNT is that in tabular datasets, feature columns often contain semantic information that can serve as proxies for labels. For instance, in a medical dataset, a "Blood Sugar" column is a feature, but it is inherently correlated with a "Diabetes" label. STUNT exploits this by selecting a random subset of columns and applying k-means clustering to them to generate pseudo-labels for the entire unlabeled dataset. This creates a rich distribution of tasks that mimic the complexity of real-world classification.
2. Marginal Distribution Masking
To prevent the model from "cheating"—simply identifying the columns used to generate the pseudo-labels—STUNT employs Marginal Distribution Masking. The selected feature columns are replaced with random values sampled from their own empirical distributions. This forces the model to ignore the direct evidence and instead learn the underlying relationships and dependencies from the remaining features.
3. Meta-Learning with Prototypical Networks
The model is trained across these self-generated tasks using Prototypical Networks. It learns an embedding space where samples belonging to the same pseudo-class are clustered around a central "prototype" vector. This optimization prepares the model for rapid adaptation to unseen, real-world tasks during the inference phase.
4. Unsupervised Validation
A persistent challenge in few-shot learning is hyperparameter tuning without a large validation set. STUNT addresses this by generating a "pseudo-validation set" from unlabeled data using the same task-generation logic. Experiments show that performance on these pseudo-tasks correlates strongly with actual test performance, providing a reliable proxy for model selection.
Experimental Evaluation
The researchers evaluated STUNT on eight diverse datasets from the OpenML-CC18 benchmark, ensuring a broad range of data types:
- Mixed types:
income,cmc(categorical and numerical features). - Numerical only:
mfeat-karhunen,optdigit,diabetes,semeion,mfeat-pixel. - Categorical only:
dna. - Multi-task: The
emotionsdataset was utilized to test the model's capacity for handling multiple binary classification tasks simultaneously.
Key Results and Insights
STUNT consistently outperformed supervised, semi-supervised, and self-supervised baselines in low-shot regimes:
- 1-Shot Accuracy: STUNT improved average test accuracy from a baseline best of 59.89% to 63.88%. Notably, on the
pixeldataset, STUNT achieved 79.05% accuracy, significantly outperforming the unsupervised meta-learning baseline CACTUs (67.61%). - 5-Shot Accuracy: Performance improved from 72.19% to 74.77%.
- Multi-Task Adaptation: STUNT proved highly effective in multi-task scenarios, adapting to new tasks without requiring retraining of the underlying network architecture.
The results suggest that Meta-Learning is superior to Self-Supervision for few-shot tabular tasks. While standard self-supervision (e.g., VIME or SubTab) learns a fixed representation, STUNT's meta-learning approach explicitly trains the model to adapt, which is more effective when the target task is unknown during the pre-training phase.
Limitations and Future Directions
While STUNT excels at classification, its performance gains in regression tasks are currently marginal. This is likely because the model is meta-trained on classification tasks via clustering. Future work may involve extending STUNT to self-generate target-regression tasks to bridge this gap. Furthermore, while STUNT is highly effective in the 1-10 shot range, its relative advantage diminishes as more labeled data becomes available (e.g., 50-shot), suggesting that hybrid approaches may be necessary for "mid-shot" scenarios.
Conclusion
STUNT demonstrates that the inherent structure of tabular data—where features are semantically meaningful—can be leveraged to create a rich task distribution for meta-learning. By treating features as labels and employing robust perturbation techniques, STUNT provides a powerful new tool for high-performance machine learning in data-scarce environments.
Summary updated