FinDiff: Diffusion Models for Financial Tabular Data Generation

Timur Sattarov, Marco Schreyer, Damian Borth · DOI

Abstract

FinDiff is a novel generative framework that applies diffusion models to the complex domain of financial tabular data. By utilizing continuous embedding encodings instead of traditional one-hot encoding, FinDiff generates synthetic datasets that maintain high statistical fidelity and utility for machine learning while strictly adhering to privacy regulations such as GDPR. This approach effectively addresses the "data silo" problem in finance, enabling secure data sharing for downstream research and stress testing.

Introduction: The Financial Data Silo Problem

Financial institutions and central banks manage vast quantities of "microdata"—granular records of fund holdings, derivative trades, and transactions. While this data is invaluable for economic research and risk assessment, it is heavily restricted by privacy laws and confidentiality agreements. These restrictions often stifle collaborative research because raw data cannot be shared across institutional boundaries.

Synthetic data generation offers a solution by creating "fake" datasets that mirror the statistical properties of real data without containing private information. However, financial data is notoriously difficult to synthesize due to its "mixed modality," combining continuous numerical values (e.g., transaction amounts) with discrete categorical variables (e.g., bank IDs). Existing methods like Generative Adversarial Networks (GANs) often struggle with training stability and capturing complex correlations in these tabular formats.

The FinDiff workflow: from internal data collection and generative modeling to external data sharing for downstream tasks like clustering and anomaly detection.

Methodology

FinDiff adapts Denoising Diffusion Probabilistic Models (DDPMs)—originally successful in image generation—to the specific requirements of tabular data. The framework consists of several key technical components designed to handle mixed-modality inputs.

Embedding Encodings and Assembly

To avoid the "curse of dimensionality" associated with one-hot encoding, FinDiff maps categorical variables into a continuous, lower-dimensional embedding space. This allows the model to treat categories similarly to continuous data during the diffusion process. The model then concatenates these categorical embeddings with normalized numerical values, sinusoidal time-step embeddings, and class labels to form a unified input vector.

The Diffusion and Denoising Process

The model follows a standard forward-reverse architecture. In the forward pass, Gaussian noise is gradually added to the data. A Feed-Forward Neural Network (MLP) is then trained to perform the reverse pass, effectively "undoing" the noise to recover the underlying data structure.

The FinDiff technical architecture, illustrating the transition from mixed-modality real data to synthetic data through embedding, diffusion, and inverse mapping.

Post-Processing

Once the model generates a synthetic embedding, an inverse mapping process is required. FinDiff uses a "nearest neighbor" approach to map synthetic points back to the closest valid real-world category, ensuring the output remains interpretable and usable.

Experimental Setup and Datasets

The researchers evaluated FinDiff using three distinct real-world datasets:

  1. Credit Default: A public dataset of credit card clients in Taiwan with a balanced mix of features.
  2. City of Philadelphia Payments: A public dataset of municipal transactions, predominantly categorical.
  3. Fund Holdings: A proprietary dataset of individual investment fund holdings, characterized by highly skewed numerical data.

Key Results and Insights

FinDiff was benchmarked against state-of-the-art models, including TVAE, CTGAN, and TabDDPM, demonstrating superior performance across several metrics:

  • High Fidelity: FinDiff consistently outperformed baselines in matching both individual feature distributions (Column Fidelity) and complex feature correlations (Row Fidelity).
  • Predictive Utility: In the Credit Default task, FinDiff achieved a utility score of 0.794, surpassing other generators and even the "real-on-real" baseline (0.706), suggesting that the diffusion process acts as a sophisticated form of data augmentation.
  • Privacy Preservation: Using the "Distance to Closest Record" (DCR) metric, FinDiff proved to be highly privacy-preserving, ensuring synthetic records are sufficiently distinct from real records to prevent identity leakage.
  • Scaling and Normalization: For highly skewed financial data, the authors found that using a Quantile Transformer for normalization was critical for model performance.

Conclusion and Future Work

FinDiff represents a significant step forward in generating high-fidelity, privacy-compliant synthetic financial data. While the model performed exceptionally well, extremely skewed datasets like Fund Holdings still present challenges for capturing perfect row-level correlations. Future research will focus on refining normalization techniques for power-law distributions and exploring conditional generation to simulate rare market events like financial crashes or fraud.

Summary updated

BibTeX
@inproceedings{sattarov2023findiff,
  author = {Timur Sattarov and Marco Schreyer and Damian Borth},
  title = {{FinDiff: Diffusion Models for Financial Tabular Data Generation}},
  booktitle = {ICAIF},
  year = {2023},
  doi = {10.1145/3604237.3626876},
}
Figure