Mixed-type data generation method based on generative adversarial networks

Ning Wei, Longzhi Wang, Guanhua Chen, Yirong Wu, Shunfa Sun, Peng Chen

Abstract

Data-driven deep learning has become a cornerstone of artificial intelligence, yet the efficacy of these models depends heavily on the availability of large, high-quality training sets. Privacy regulations and data-sharing risks often restrict access to such data, particularly in sensitive domains like finance and healthcare. This paper proposes mixGAN, a mixed-type data generation model designed to synthesize realistic datasets containing both continuous and discrete attributes. By mapping data into a low-dimensional continuous space via a pre-trained autoencoder and employing a specialized GAN framework, the model effectively captures the intrinsic distribution of mixed-type data. Experimental results demonstrate that mixGAN outperforms existing deep learning-based generation methods in preserving both attribute distributions and inter-attribute relationships.

Introduction

In the era of "Big Data," the demand for training samples often outstrips the supply due to privacy policies like GDPR or HIPAA. Synthetic data generation offers a solution, but generating "mixed-type" data—datasets containing both numerical (continuous) and categorical (discrete) variables—remains a significant technical challenge. Standard Generative Adversarial Networks (GANs) struggle with discrete data because the selection process is non-differentiable, preventing the backpropagation of gradients necessary for model improvement. Existing methods frequently fail to maintain the complex correlations between different feature types, such as the relationship between a person's income and their credit grade.

The mixGAN Architecture

The researchers present a two-stage framework to bypass the non-differentiable bottleneck of discrete variables.

Stage 1: The Pre-trained Autoencoder

The first stage involves training an autoencoder to compress high-dimensional mixed data into a low-dimensional, continuous "code space." This transformation allows the subsequent GAN to operate entirely within a continuous domain.

Figure 1: The autoencoder architecture maps mixed-type input into a continuous code space.

A key innovation in the decoder is its parallel structure. Numerical features are processed through Sigmoid activations, while categorical features utilize the Gumbel-Softmax trick. This technique "softens" discrete choices into continuous approximations, ensuring that gradients can flow back through the network during the training process.

Stage 2: The GAN Framework

Once the autoencoder is established, the GAN framework is introduced. The Generator ($G$) learns to produce synthetic vectors within the latent code space rather than attempting to generate raw data directly.

Figure 2: The mixGAN framework, where the generator operates in the latent space and the discriminator evaluates samples in the original data space.

The generated codes are passed through the pre-trained decoder to be reconstructed into the original data format. The Discriminator ($D$) then evaluates these samples in the original feature space. This dual-space approach forces the generator to capture the true underlying distribution of both continuous and labeled attributes simultaneously.

Experimental Evaluation

The model was evaluated using a subset of the Lending Club dataset, consisting of 10,000 records with 15 numerical and 9 categorical features. To ensure balanced training, numerical features were normalized using Min-Max scaling to prevent them from dominating the loss calculation ($L_{rec}$), which combines Mean Squared Error for numbers and Cross-Entropy for categories.

Key Results

Compared to state-of-the-art methods like HI-VAE, mixGAN demonstrated superior performance in two critical areas:

  • Distribution Fidelity: Paired point plots showed that mixGAN’s synthetic data distributions clustered tightly with real-world data, indicating high statistical similarity.
  • Correlation Maintenance: In feature prediction tests, mixGAN achieved significantly lower estimation errors, proving it successfully preserves the hidden dependencies between variables (e.g., the correlation between income and loan status).

Conclusion and Future Work

mixGAN provides a robust mathematical workaround for the challenges of mixed-type data generation. By leveraging a latent code space and the Gumbel-Softmax bridge, it produces high-fidelity synthetic datasets that respect the logic of the original data. Future research will focus on improving the model's robustness against missing values in "messy" real-world datasets and integrating Differential Privacy (DP) layers to provide formal security guarantees for high-stakes applications.

Summary updated

BibTeX
@inproceedings{wei2022mixed,
  author = {Ning Wei and Longzhi Wang and Guanhua Chen and Yirong Wu and Shunfa Sun and Peng Chen},
  title = {{Mixed-type data generation method based on generative adversarial networks}},
  booktitle = {EURASIP},
  year = {2022},
  doi = {10.1186/s13638-022-02105-7},
}
Figure