NeurIPS 2026QuestionsPapersAreasAboutMarkdown

TabK: Amortized Bayesian Estimation of the Number of Clusters in Tabular Data

Mohammadreza Bakhtyari, Bogdan Mazoure, Renato C de Amorim, Guillaume Rabusseau, Vladimir Makarenkov

NeurIPS page · OpenReview · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Gaussian Process Modeling and Inference · Type: new method · Keywords: cluster number estimation, tabular data, amortized Bayesian inference, transformer, quantile feature encoder

Summary

TabK is a zero-shot transformer that amortizes Bayesian inference to estimate the number of clusters in tabular data, achieving state-of-the-art accuracy and speed.

Explained to a 5-year-old

We want to know how many groups exist in a set of numbers. Usually we try many guesses and wait a long time. This paper makes a quick guess by learning from many examples. It looks at the shape of the numbers and says how many groups there likely are. It works super fast, so you can get an answer in less than a second.

Explained to a 5-year-old, longer

Imagine you have a big pile of numbers and you need to know how many groups they belong to. Doing this by hand is slow because you have to try many possible group counts and check each one. The paper creates a smart helper that learns from many examples of numbers and can instantly tell you the likely number of groups. This helper looks at the overall shape and spread of the numbers, ignoring the order they appear in. It was trained on many synthetic datasets so it can handle real-world data well. When you give it new data, it makes a prediction in just a fraction of a second. This speed makes it useful for applications where you need quick answers, like sorting customers or organizing items. The helper is called TabK and works only with table-like data. It does not need any extra training for each new dataset, making it easy to use. The paper shows that this quick method is even more accurate than older, slower methods. Overall, TabK gives a fast, reliable way to guess the number of groups in any set of numbers.

For a technical reader

TabK is a transformer-based model that amortizes Bayesian inference to predict the number of clusters directly from tabular data. It uses a Quantile Feature Encoder to capture distribution information without caring about the order of rows. By learning a structural bias from synthetic priors, it can output a k estimate in a single forward pass. This design yields sub-second inference while matching or exceeding the accuracy of existing grid-search and adaptive methods. The implementation is open-source and can be integrated into existing clustering pipelines as a preprocessing step.

Problem

Estimating the appropriate number of clusters (k) for clustering algorithms is challenging, as existing methods rely on expensive grid searches or assumptions and are slow.

Method

The approach frames k estimation as an amortized Bayesian inference problem, using a permutation-invariant transformer that learns a structural bias from synthetic priors and extracts representations via a quantile feature encoder.

Results

The approach reduces the MAE of k estimation from 2.24 to 1.04 (a drop of 1.2) and predicts k in under one second, being twice as fast as the nearest competitor and 30× faster than traditional CVIs such as Silhouette and Calinski-Harabasz.

Contributions

It introduces an amortized Bayesian inference framework for zero-shot k estimation, a novel quantile feature encoder for position-free representations, and demonstrates superior accuracy and speed across many benchmarks.

Practical relevance

The method enables fast, scalable cluster number estimation for tabular data, facilitating real-time clustering pipelines.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction