CausalDiffTab: Mixed-Type Causal-Aware Diffusion for Tabular Data Generation

Jia-Chen Zhang, Zheng Zhou, Yu-Jie Xiong, Chun-Ming Xia, Fei DaiarXiv 2025

TL;DR

CausalDiffTab introduces a novel diffusion framework for tabular data generation that embeds non-linear causal relationships directly into the denoising process. By utilizing a hybrid adaptive causal regularization mechanism, it prevents the generation of logically impossible "counterfactual" data while maintaining exceptional data fidelity and privacy.

What Problem Does This Paper Address?

Generating high-quality synthetic tabular data is a powerful way to train machine learning models while preserving data privacy. However, tabular data is notoriously difficult to synthesize because it mixes numerical and categorical fields with complex, non-linear dependencies.

Standard diffusion models generate features independently during the reverse denoising process. Because they lack structural awareness, they often ignore the underlying causal logic between columns. This leads to the generation of "counterfactual" or logically impossible rows—for example, creating a data record where an individual's relationship status is "Wife" but their biological sex is listed as "Male" (as shown in Figure 1). CausalDiffTab bridges this gap by making diffusion models causally aware.

Figure 1: A simple example of causal awareness

Methods

The CausalDiffTab architecture integrates causal discovery with continuous-time diffusion models through three main components:

  1. Nonlinear Causal Extraction: Before training the diffusion model, the framework applies a non-linear extension of the notears method (using a Multi-Layer Perceptron) to automatically learn a Directed Acyclic Graph (DAG) of causal relationships directly from the observational data. This produces a binary causal matrix.
  2. Causal Pair Matching: During the reverse diffusion process, the model computes the outer product of its predicted noise values to capture feature interactions. It then aligns this noise interaction matrix with the pre-extracted causal matrix, penalizing gradients that violate the discovered causal directions.
  3. Hybrid Adaptive Causal Regularization (HACR): Enforcing strict causal rules too early in training can destabilize a diffusion model. Inspired by the principle of Hierarchical Prior Fusion, HACR dynamically scales the causal loss weight based on training stability (loss fluctuations) and noise levels. Early on (high noise), the constraint is relaxed so the model can learn basic data distributions; later on (low noise), the constraint is tightened to enforce strict logical consistency.
Figure 3: This section provides a high-level overview of CausalDiffTab. The model constructs a causal correlation matrix by applying one-hot encoding to categorical features, thereby establishing interpretable causal relationships between different feature types . During the reverse denoising process, it dynamically aligns this causal matrix with the noise prediction matrix generated at each diffusion step via a causality-constrained mechanism.

Datasets

The authors evaluated CausalDiffTab across seven diverse, real-world benchmark datasets containing mixed numerical and categorical features:

  • Adult (Classification)
  • Default (Classification)
  • Shoppers (Classification)
  • Magic (Classification)
  • Beijing (Regression)
  • News (Regression)
  • Diabetes (Classification)

Key Insights and Ideas

  • Causality as a Structural Constraint: Instead of merely matching statistical distributions, treating causal directions as a regularizer prevents generative models from wasting capacity exploring logically impossible data spaces.
  • The Timing of Constraints Matters: Forcing a model to adhere to strict causal graphs during the chaotic, high-noise early stages of diffusion training hurts convergence. The "aha moment" here is dynamically scaling the regularization weight so that structural rules are enforced only as the data distribution becomes clearer.
  • Non-linearity is Essential: Real-world tabular relationships are rarely linear. Moving from linear causal assumptions to an MLP-based non-linear causal discovery tool is vital for capturing authentic data dependencies.

Key Results

CausalDiffTab was compared against nine popular generative baselines (including CTGAN, TVAE, STaSy, and TABDIFF) and demonstrated state-of-the-art (SOTA) performance:

  • Fidelity Improvements: The model achieved a 13.7% average reduction in shape similarity error and a 14.3% average reduction in trend error compared to the previous best method, TABDIFF.
  • Eliminating Counterfactuals: On the Adult dataset, CausalDiffTab drastically reduced the frequency of causally implausible combinations (like Husband-Female or Wife-Male), proving the efficacy of the causal regularization module.
Figure 2: A comparison of whether causal regularization is included. The results show the number of causally implausible instances (Husband-Female and Wife-Male) in the Adult dataset. Our method significantly reduces the number of such causally implausible cases.
  • Downstream Utility & Privacy: In Machine Learning Efficacy (MLE) tests, classifiers trained on CausalDiffTab-generated data achieved performance closest to models trained on real data. Simultaneously, Distance to Closest Record (DCR) scores confirmed that the model maintains strong privacy protections without leaking sensitive training samples.

Limitations and Future Work

The authors note that balancing multi-task objectives in the early stages of training requires careful tuning of the adaptive noise factor. Additionally, while the framework handles static tabular data exceptionally well, the paper does not explore how this method scales to streaming or dynamic tabular environments where causal graphs might evolve over time. Extending causal-aware diffusion to time-series tabular data remains an open and promising direction.

Summary updated

BibTeX
@misc{zhang2025causaldifftab,
  author = {Jia-Chen Zhang and Zheng Zhou and Yu-Jie Xiong and Chun-Ming Xia and Fei Dai},
  title = {{CausalDiffTab: Mixed-Type Causal-Aware Diffusion for Tabular Data Generation}},
  year = {2025},
  eprint = {2506.14206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.14206},
}
Figure