Introduction
Generative modeling—the task of creating synthetic data that mimics real-world distributions—is currently dominated by deep learning architectures such as Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs). While these models excel at structured data like images and audio, they often struggle with tabular data. Tabular datasets are frequently heterogeneous, containing a mix of continuous and categorical variables, and deep learning models in this domain are notoriously data-hungry, difficult to tune, and computationally expensive.
Furthermore, most deep learning generators are "black boxes" that do not easily support probabilistic reasoning, such as calculating marginal or conditional densities. Existing tree-based density estimators offer an alternative, but they are often "blocky" (discontinuous) and struggle to capture complex dependencies in high-dimensional spaces. This paper introduces Adversarial Random Forests (ARFs), a method that brings the power of generative adversarial logic to the efficiency of tree-based models.
The Adversarial Random Forest (ARF) Framework
The core of the proposed approach is a recursive procedure designed to find an "independence-inducing" partition of the feature space. By iteratively partitioning data into regions of "local independence," ARFs enable high-fidelity density estimation and data synthesis for tabular datasets.
The Adversarial Loop
Inspired by GANs, the algorithm employs a "generator" and a "discriminator." However, unlike traditional GANs, both are based on the same Random Forest (RF) structure. The discriminator attempts to distinguish real data from synthetic data. The generator then utilizes the discriminator's learned splits to create improved synthetic data by sampling from the marginal distributions within each leaf node. This process continues until the discriminator can no longer reliably distinguish between the two sets.
Local Independence and Density Estimation
The ultimate goal is to reach a state where, within any given leaf node, the features are effectively independent. Once this "local independence" is achieved, the joint density of the data is simply the product of its univariate marginals—a significantly simpler problem to solve. Based on this, the authors propose two specific implementations:
- FORDE (FORests for Density Estimation): Once the ARF has partitioned the space, it performs univariate density estimation (such as Kernel Density Estimation or Maximum Likelihood Estimation) within each leaf to provide smooth, continuous density estimates.
- FORGE (FORests for GEnerative modeling): To synthesize data, the model selects a leaf (weighted by its coverage of the original data) and samples each feature independently from the distributions learned within that leaf.
Experimental Results
Visual Fidelity
The authors first evaluated the method using low-dimensional visual simulations (cassini, shapes, smiley, twomoons) to verify that the model captures complex geometric patterns. As shown in the visual comparison below, the synthetic data generated by the ARF framework closely mirrors the intricate structures of the original distributions.
Performance on Tabular Benchmarks
The primary strength of FORGE lies in its performance on real-world tabular datasets. In comparisons against state-of-the-art deep generative models like CTGAN, TVAE, and CTAB-GAN+, FORGE demonstrated superior speed and competitive accuracy.
Key insights from the benchmarks include:
- Speed: FORGE is approximately 100 times faster on average than deep learning competitors. For instance, on the adult dataset, FORGE trained in 2.9 seconds, while CTGAN required over 4 minutes and other variants took hours.
- Accuracy: FORGE achieved the highest accuracy and F1-scores in three out of five tasks, outperforming deep learning models even when those models were given access to GPU acceleration.
- Scalability: The method scales linearly with the number of samples and features, whereas deep learning models exhibit much steeper complexity curves.
Conclusion and Future Work
Adversarial Random Forests provide a faster, simpler path to generative modeling for tabular data. By bridging the gap between tree-based models and probabilistic circuits, they enable exact and efficient probabilistic queries that are impossible with standard GANs.
The primary limitation is that ARFs are not designed for highly structured data like images; while they can generate recognizable digits on MNIST, they lack the inductive biases (like convolutions) required to compete with CNN-based architectures. Future research directions include exploring applications in anomaly detection, differential privacy, and handling missing data through automated imputation.
Summary updated