Abstract
Privacy and regulatory constraints make data generation vital to advancing machine learning without relying on real-world datasets. A leading approach for tabular data generation is the Forest Flow (FF) method, which combines Flow Matching with XGBoost. Despite its good performance, FF is slow and makes errors when treating categorical variables as one-hot continuous features. It is also highly sensitive to small changes in the initial conditions of the ordinary differential equation (ODE). To overcome these limitations, we develop Heterogeneous Sequential Feature Forest Flow (HS3F). Our method generates data sequentially (feature-by-feature), reducing the dependency on noisy initial conditions through the additional information from previously generated features. Furthermore, it generates categorical variables using multinomial sampling (from an XGBoost classifier) instead of flow matching, improving generation speed. We also use a Runge-Kutta 4th order (Rg4) ODE solver for improved performance over the Euler solver used in FF. Our experiments with 25 datasets reveal that HS3F produces higher quality and more diverse synthetic data than FF, especially for categorical variables. It also generates data 21-27 times faster for datasets with $\geq20\%$ categorical variables. HS3F further demonstrates enhanced robustness to affine transformation in flow ODE initial conditions compared to FF. This study not only validates the HS3F but also unveils promising new strategies to advance generative models.
Introduction
Generating synthetic tabular data—the backbone of spreadsheets and SQL databases—is notoriously difficult. Unlike images or text, tabular data is "heterogeneous," mixing continuous numerical values (like age or salary) with discrete categorical labels (like city or job title).
A recent leading approach, Forest Flow (FF), combines Flow Matching with XGBoost to learn a trajectory that pushes random noise toward a data distribution. However, FF suffers from three major drawbacks:
- Categorical Errors: Treating categorical variables as continuous via one-hot encoding leads to significant approximation errors.
- Computational Cost: Solving Ordinary Differential Equations (ODEs) for every feature dimension simultaneously is slow.
- Sensitivity: The model is highly sensitive to the starting "noise" distribution; minor deviations in the initial state can cause data quality to plummet.
Methodology: The HS3F Approach
Researchers developed Heterogeneous Sequential Feature Forest Flow (HS3F) to address these limitations through three core innovations:
- Sequential Generation: Instead of simultaneous generation, HS3F generates features one-by-one (autoregressively). This allows the model to use previously generated features as context, providing a "filter" that mitigates errors from the starting ODE conditions.
- Heterogeneous Handling: HS3F treats categories naturally. Rather than forcing them into a continuous flow, it uses an XGBoost classifier for multinomial sampling. Flow Matching is reserved strictly for continuous features, avoiding the pitfalls of one-hot encoding.
- Advanced ODE Solvers: HS3F employs a Runge-Kutta 4th order (Rg4) solver instead of the simpler Euler solver used in FF, resulting in more accurate trajectories from noise to data.
Experimental Evaluation
The model was evaluated against 25 real-world datasets from the UCI Machine Learning Repository and scikit-learn, ranging from classic benchmarks like Iris and Wine to categorical-heavy datasets like Car Evaluation and Tic-Tac-Toe.
Key Results
- Massive Speedup: For datasets where at least 20% of features are categorical, HS3F is 21 to 27 times faster than Forest Flow. For example, on the "Blood Transfusion" dataset, HS3F-Euler completed generation in ~17 seconds, while Forest Flow required ~468 seconds.
- Higher Data Quality: HS3F-Rg4 consistently outperformed FF across metrics such as Wasserstein distance (measuring distributional similarity) and F1 scores (measuring the utility of synthetic data for training downstream classifiers).
- Enhanced Robustness: HS3F maintained performance even when the initial noise distribution was intentionally perturbed (e.g., changing mean or variance), whereas Forest Flow’s accuracy dropped significantly.
Discussion and Future Work
HS3F demonstrates that modeling discrete categories as continuous flows is often counterproductive. By switching to classifier-based sampling for categories and utilizing sequential context, the authors achieved significant gains in both speed and robustness. Furthermore, by using XGBoost as the "velocity" estimator, the model remains efficient on standard CPUs.
However, some challenges remain:
- Feature Ordering: The sequence in which features are generated matters; noisy early features can propagate errors.
- Causal Integration: Future work may involve using causal discovery to determine the optimal generation order.
- High-Dimensional Scaling: The performance of sequential methods on extremely "wide" tables (thousands of columns) remains an area for further investigation.
Summary updated