TL;DR Treeffuser is a novel non-parametric method for probabilistic prediction on tabular data. It combines the flexibility of conditional diffusion models with the efficiency of gradient-boosted trees (GBTs). By using GBTs to estimate the score function of a diffusion process, Treeffuser successfully captures complex, multimodal, and skewed distributions that traditional parametric models often fail to represent.
The Challenge of Probabilistic Prediction
In fields like finance, healthcare, and supply chain management, a single "point prediction" is rarely sufficient. Decision-makers need to understand uncertainty to evaluate the full range of possible outcomes. While probabilistic models exist, most rely on strict parametric assumptions, assuming the data follows a specific shape like a Gaussian (bell curve) or Poisson distribution.
However, real-world tabular data is rarely that well-behaved. It frequently exhibits:
- Multimodality: Having multiple "peaks" of likelihood.
- Skewness or Heavy Tails: Containing extreme outliers or asymmetric distributions.
- Zero-Inflation: Having a massive cluster of data points at zero (common in sales or insurance claims).
When these assumptions fail, traditional models provide poorly calibrated uncertainty estimates. While diffusion models (the technology behind advanced image generators) are incredibly flexible at modeling complex distributions, they are typically built using deep neural networks. Neural networks often struggle with the heterogeneous, categorical, and missing-value-prone nature of tabular data.
Introducing Treeffuser
To bridge this gap, the authors introduce Treeffuser, which implements a conditional diffusion model where the "score function" (the gradient of the log-density of the data) is estimated using gradient-boosted trees rather than neural networks.
Key Innovations
- GBTs as Score Estimators: The model uses LightGBM to learn the score function. This allows the model to inherit the inherent strengths of trees: native handling of categorical variables, robustness to unscaled data, and high-performance training on standard CPUs.
- Conditional Score Objective: Instead of just modeling the marginal distribution of the target $y$, Treeffuser directly learns the score of the conditional distribution $p(y|x)$.
- Noise-Scaling Reparameterization: A critical technical contribution is the stabilization of the learning process. By reparameterizing the score function relative to the noise level (using a $U/\sigma$ scaling), the authors ensure the GBTs can effectively learn across the varying noise levels inherent in the diffusion process. Without this "secret sauce," GBTs struggle to handle the wide range of gradients produced during diffusion.
- Sampling: To make a prediction, the model starts with pure noise and uses an SDE solver (Euler-Maruyama) to iteratively "denoise" the sample into a prediction, guided by the learned tree-based score function.
Experimental Validation
The authors evaluated Treeffuser across a diverse range of scenarios, including custom synthetic tasks designed to test multimodality and shifting support, 10 standard benchmark datasets from the UCI Machine Learning Repository, and the large-scale Walmart Sales (M5) dataset featuring 112,000 observations of zero-inflated, long-tailed product sales.
Key Results
- Superior Calibration: Treeffuser consistently outperformed established methods like NGBoost, IBUG, and Deep Ensembles on the Continuous Ranked Probability Score (CRPS), a metric that rewards both accuracy and well-calibrated uncertainty.
- Robustness: Even when the underlying data was Gaussian (where parametric models should have a theoretical advantage), Treeffuser remained highly competitive, ranking second only to the exact "oracle" models.
- Real-World Profitability: In a "Newsvendor" simulation—deciding how much inventory to stock based on predicted demand—Treeffuser's more accurate quantile estimations led to higher cumulative profits compared to traditional quantile regression and Poisson-based models.
Why Trees Work for Tabular Diffusion
The paper reinforces the idea that for tabular data, the hierarchical partitioning of decision trees is often superior to the continuous optimization of neural networks. Because Treeffuser is a diffusion model, it doesn't "guess" the shape of the distribution; it learns it directly from the data. Furthermore, unlike most diffusion models that require powerful GPUs, Treeffuser trains in seconds or minutes on a standard laptop CPU (e.g., training on the 112k-row Walmart dataset took just 53 seconds).
Limitations and Future Directions
While highly effective, Treeffuser has a few limitations:
- Continuous vs. Discrete: Diffusion processes are theoretically defined for continuous variables. While Treeffuser performed well on Walmart's count data, direct modeling of discrete outcomes remains a fruitful area for future improvement.
- Sampling Speed: While training is lightning-fast, generating samples requires solving an SDE (often iterating 50+ times). This is inherently slower than the single-pass prediction of a standard random forest or XGBoost model.
Future work may explore "consistency models" or "progressive distillation"—techniques used in image generation—to reduce the number of steps required to generate a prediction, potentially making Treeffuser viable for strict real-time applications.
Summary updated