Introduction
Tabular data—the structured rows and columns found in spreadsheets and databases—remains a "final frontier" for deep learning. While generative models like GANs and Diffusion have revolutionized image and text processing, they often struggle with tabular data, which is frequently small, heterogeneous (mixing numerical and categorical variables), and riddled with missing values.
Existing methods typically face a trade-off: traditional methods like MissForest excel at imputation (filling in missing values) but cannot generate synthetic data, while deep learning diffusion models are excellent at generation but struggle with "inpainting" and require significant computational resources. This paper introduces UnmaskingTrees, a method designed to handle missingness naturally, work "out-of-the-box" for users with limited compute, and perform both imputation and generation with high fidelity.
Methodology
UnmaskingTrees
Inspired by permutation language modeling (e.g., XLNet), UnmaskingTrees treats tabular data generation as a process of "filling in the blanks." During training, features are randomly masked, and gradient-boosted decision trees (GBDTs) are trained to predict the masked values based on visible ones. At inference time, the model generates a new row by starting with a completely masked row and "unmasking" features one by one in a random order. For imputation, it starts with known values and unmasks only the missing ones, bridging the gap between training and inference that often plagues diffusion models.
BaltoBot
Standard regression models often predict the mean of a distribution, which fails to capture complex, multimodal data. To address this, the paper introduces BaltoBot, a novel probabilistic predictor that treats regression as a hierarchical classification problem. BaltoBot builds a "meta-tree" of binary classifiers using Kernel Density Integral (KDI) quantization to find optimal split points. This allows it to model complex, non-parametric distributions without the "blurring" effect of standard mean-squared error (MSE) regression.
Experimental Evaluation
The authors evaluated UnmaskingTrees across a diverse range of data, including synthetic case studies (e.g., "Two Moons"), a benchmark of 27 real-world small-to-medium tabular datasets (ranging from 103 to 20,640 samples), and the M5 sales forecasting dataset to test performance on heavy-tailed economic data.
Results and Discussion
UnmaskingTrees demonstrates state-of-the-art performance in both imputation and generation. On the 27-dataset benchmark, it achieved the best performance on several key metrics and was the only method to never rank lower than 5th across all tests, showcasing remarkable consistency compared to specialized models.
Key findings include:
- Superior Imputation: The autoregressive approach is more natural for imputation than diffusion because GBDTs handle missing values natively, avoiding the "train-inference gap."
- Efficiency: In synthetic studies, BaltoBot was 7x faster at generating samples than diffusion-based alternatives like Treeffuser, while providing closed-form density estimates.
- Robustness: The simplicity of the algorithm (roughly 70 lines of Python) makes it robust for use without the extensive hyperparameter tuning required by deep learning models.
Conclusion and Future Work
While UnmaskingTrees is highly effective for small-to-medium datasets, its training complexity is cubic relative to the number of features, which may limit scalability for extremely high-dimensional data. Future work includes exploring multi-output trees to improve scalability and integrating base learners like TabPFN to enable better in-context learning. Despite these limitations, UnmaskingTrees provides a powerful, simple, and efficient alternative for tabular data tasks.
Summary updated