ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Data

Patryk Marszalek, Tomasz Kusmierczyk, Witold Wydmanski, Jacek Tabor, Marek Smieja · DOI

TL;DR

This paper introduces ZEUS, a novel zero-shot learning model for unsupervised clustering of tabular data. By pre-training on synthetically generated datasets, ZEUS learns to create meaningful embeddings that allow for effective clustering of new, unseen datasets without any fine-tuning, significantly reducing computational cost and hyperparameter tuning complexity.

What Problem Does This Paper Address?

Clustering tabular data is notoriously difficult because the notion of similarity between data points is highly dataset-dependent, unlike in image or text data where inherent structures guide clustering. Existing deep learning methods for tabular clustering often require extensive hyperparameter tuning and are prone to instability, especially in unsupervised settings where there are no ground-truth labels to guide optimization. This leads practitioners to rely on simpler, classical algorithms like k-means, which may fail to capture complex data structures. ZEUS aims to bridge this gap by providing a robust, zero-shot solution that generalizes across datasets and requires minimal user intervention.

Methods

ZEUS leverages a transformer architecture, similar to Prior-Data Fitted Networks (PFNs), but adapted for unsupervised clustering. The core idea is zero-shot pre-training:

  1. Synthetic Data Generation: ZEUS generates a diverse set of synthetic tabular datasets with known cluster structures. These datasets are created using a mixture of Gaussians, augmented with categorical features, and transformed by neural networks to mimic complex, non-linear relationships. This diverse prior aims to capture a wide range of potential clustering scenarios.
  2. Pre-training Objective: The transformer is trained to invert the data generation process. Instead of directly predicting labels (as in PFNs), it learns to map input data points to a latent representation space where clusters are naturally formed. This is achieved by maximizing the log-likelihood of correct cluster assignments on the synthetic data.
  3. Regularization: To enhance intra-cluster cohesion and prevent cluster centroid collapse, ZEUS incorporates two regularization terms: a point concentration regularizer and a centroid separation regularizer.
  4. Inference: For a new, unseen dataset, the pre-trained ZEUS model generates embeddings in a single forward pass. These embeddings can then be clustered using standard algorithms like k-means, without any further training or fine-tuning.

Datasets

  • Pre-training: A diverse collection of synthetic tabular datasets generated by the authors, incorporating mixtures of Gaussians, categorical features, and neural network transformations.
  • Evaluation:
    • Real-world datasets: Sourced from OpenML.org.
  • Synthetic datasets: * Synthetic Gaussian (Syn. Gauss.): Datasets generated from a mixture of Gaussians.
  • Synthetic Transformed (Syn. Transf.): Datasets generated from transformed Gaussian mixtures, mimicking more complex structures.

Key Insights and Ideas

  • Zero-shot learning for tabular clustering is feasible: By pre-training on a rich synthetic prior, ZEUS demonstrates that a model can learn generalizable representations for clustering without task-specific fine-tuning.
  • Inverting data generation as a clustering strategy: Instead of directly optimizing for cluster assignments, ZEUS learns by understanding how data is generated, which implicitly structures the learned representations for easier separation.
  • The importance of a diverse synthetic prior: The authors highlight that the quality and diversity of the synthetic data used for pre-training are crucial for ZEUS's generalization capabilities to unseen real-world datasets.
  • Transformer architectures are well-suited for tabular data: ZEUS builds upon the success of transformers in other domains, showing their applicability and effectiveness for tabular data representation learning.

Key Results

  • ZEUS consistently matches or surpasses traditional clustering algorithms (k-means, GMM) and recent deep learning-based methods (DEC, IDEC, G-CEALS) in terms of clustering quality (ARI scores).
  • On the challenging Synthetic Transformed datasets, ZEUS outperforms the second-best method by over 6 percentage points and classical baselines by over 10 percentage points.
  • ZEUS achieves competitive performance on real-world datasets, demonstrating its ability to generalize knowledge from synthetic data.
  • The model is significantly faster than deep learning-based methods during inference, often completing in seconds.
  • ZEUS also shows strong performance in soft clustering quality (Brier score), indicating well-calibrated probabilistic assignments.
  • The model exhibits robustness to noise and outliers.

Limitations and Future Work

  • Input dimensionality: Like its predecessor TabPFN, ZEUS has a maximum input feature and sample limit, though PCA can mitigate this.
  • Prior dependence: The performance of ZEUS heavily relies on the synthetic data used for pre-training. The authors suggest exploring alternative data-generating priors for better performance on datasets that deviate from the assumed structures.
  • No direct clustering: ZEUS provides embeddings; a separate clustering algorithm is still needed for the final cluster assignments.
  • Potential for overfitting: The authors note that for very high token dimensions, there might be a risk of overfitting to the prior on OpenML datasets.
  • High-stakes applications: The authors acknowledge the inherent risks of using automated grouping in sensitive domains like healthcare or finance, recommending fairness assessment and expert review for any deployment.
  • Future work: Investigating more expressive priors, exploring alternative transformer architectures (like TabICL), and further analyzing scenarios where ZEUS underperforms are suggested.

Summary updated

BibTeX
@inproceedings{marszalek2025zeus,
  author = {Patryk Marszalek and Tomasz Kusmierczyk and Witold Wydmanski and Jacek Tabor and Marek Smieja},
  title = {{ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=fjBsE0kKk4},
}
Figure